Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function (thresholdLevelName, debugNamespacesTokens) {
// Resolve intended logging level configuration
// On this level and above all logs will be exposed
if (!thresholdLevelName || !includes.call(levels, thresholdLevelName)) {
thresholdLevelName = "notice";
}
var thresholdLevelIndex = levels.indexOf(thresholdLevelName);
// Resolve namespace based debug logging configuration
// Applies only to logs below level threshold (will expose logs just for chosen namespaces)
var debugNamespacesSettings = Object.create(null);
resolveDebugNamespaces(debugNamespacesTokens, debugNamespacesSettings);
var debugNamespacesList = Object.keys(debugNamespacesSettings);
// Apply resolved settings on existing loggers
levels.forEach(function (levelName, levelIndex) {
// If logger for given level not initialized yet, skip
if (!logger.isLevelInitialized(levelName)) return;
// If logs of given level are meant to be exposed, skip (default is to expose)
if (levelIndex <= thresholdLevelIndex) return;
module.exports = function (t, a) {
var obj = t.$$create('$$protoTest$$');
a(getPrototypeOf(obj), t, "Prototype");
a.deep(keys(obj), [], "Enumerable");
a(obj._id_, '$$protoTest$$', "Id");
a(contains.call(t._children_, obj), true, "Child");
a.deep(obj._prototypes_, [t], "Prototypes");
};
if (!data.tokens.every(function (token, index) {
var pathToken = pathTokens[index];
if (includes.call(data.matchPositions, index)) {
if (!token.test(pathToken)) return false;
args.push(pathToken);
return true;
}
return (token === pathToken);
})) {
return false;
if (!data.tokens.every(function (token, index) {
var pathToken = pathTokens[index];
if (includes.call(data.matchPositions, index)) {
if (!token.test(pathToken)) return false;
args.push(pathToken);
return true;
}
return (token === pathToken);
})) {
return false;
result = getter.call(this, function (obj, forceMap) {
var dupe;
if (!isNonMapObservable(obj, forceMap)) return obj;
if (!nu) nu = [];
else if (contains.call(nu, obj)) dupe = true;
if (!dupe) {
nu.push(obj);
if (obj._makeObservable_) obj._makeObservable_();
}
if (!isObservableValue(obj)) return obj;
obj = obj.value;
if (dupe) return obj;
if (isNonMapObservable(obj, forceMap)) {
nu.push(obj);
if (obj._makeObservable_) obj._makeObservable_();
}
return obj;
}, arg);
if (!observed) {
return some(parser.extNames, data => contains.call(data, ext));
})
has: d(function (value) {
return contains.call(this._value, this._ns.normalize(value));
}),
forEach: d(function (fn/*, thisArg*/) {