Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cb();
}
return res;
});
};
};
const ifNotBlocking = function(settings) {
return settings.findBySlug('client').then(res => !res.blocking);
};
// TODO: Expose this as a env var
const cache = new Map();
// sources are 'manually' removed when closed,
// they are only closed when the usage counter is 0
const sources = new Map();
const refs = new MultiMap(Set);
export default Service.extend({
// TODO: Temporary repo list here
service: service('repository/service'),
node: service('repository/node'),
session: service('repository/session'),
client: service('client/http'),
settings: service('settings'),
// TODO: Temporary finder
finder: function(src, filter) {
const temp = src.split('/');
temp.shift();
const slug = temp.pop();
const model = temp.pop();
const dc = temp.shift();
init() {
super.init(...arguments);
cache = new Map();
sources = new Map();
usage = new MultiMap(Set);
this._listeners = this.dom.listeners();
}
init: function() {
this._super(...arguments);
cache = new Map();
sources = new Map();
usage = new MultiMap(Set);
this._listeners = this.dom.listeners();
},
resetCache: function() {