Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
t.on("exit", function () {
a.ok(out.length > 4, "Interval");
var isNoColor = Boolean(process.env.NO_COLOR);
if (isNoColor) {
a(startsWith.call(out.join(""), "START"), true, "Output");
} else {
a(
startsWith.call(
out.join(""),
"START\x1b[31m-\x1b[39m\x1b[31m\b\\\x1b" +
"[39m\x1b[31m\b|\x1b[39m\x1b[31m\b/\x1b[39m\x1b[31m\b-\x1b[39m"
),
true, "Output"
);
}
a(err, "", "No stderr output");
d();
});
}
npaths = paths.filter(function (path) {
return (
path !== "one" &&
path.indexOf(sep + "one") === -1 &&
!startsWith.call(path, "dthree" + sep + "dthree")
);
});
t.on("exit", function () {
a.ok(out.length > 4, "Interval");
var isNoColor = Boolean(process.env.NO_COLOR);
if (isNoColor) {
a(startsWith.call(out.join(""), "START"), true, "Output");
} else {
a(
startsWith.call(
out.join(""),
"START\x1b[31m-\x1b[39m\x1b[31m\b\\\x1b" +
"[39m\x1b[31m\b|\x1b[39m\x1b[31m\b/\x1b[39m\x1b[31m\b-\x1b[39m"
),
true, "Output"
);
}
a(err, "", "No stderr output");
d();
});
}
t.on("exit", function () {
a.ok(out.length > 4, "Interval");
a(startsWith.call(out.join(""), "START-\b\\\b|\b/\b-\b"), true, "Output");
a(err, "", "No stderr output");
d();
});
},
attrs = compact.call(map.call(attrs, function (attr) {
if (startsWith.call(attr.name, 'data-')) return null;
return (!re.test(attr.name) ? ('\'' + attr.name + '\'') : attr.name) +
': ' + text(attr.value);
}));
getOwnPropertyNames(obj).forEach(function (name) {
var rel;
if (!startsWith.call(name, '__')) return;
if (metaNames.hasOwnProperty(name)) return;
if (((name === '__value') && (this.obj._type_ === 'relation')) ||
!(rel = this.obj[name]) || (rel._type_ !== 'relation')) {
return;
}
if (rel._value && (typeof rel._value === 'function') &&
rel._value.hasOwnProperty('_overridenValue_')) {
return;
}
name = name.slice(2);
if (this._filter(name)) {
this[this._serialize(name)] = name;
++this.count;
}
}, this);
obj.on('update', this._onupdate.bind(this));
forEach(this.readers, function (newReader, key) {
if (startsWith.call(key, path)) {
newReader.files.close();
if (newReader.dirs) newReader.dirs.close();
newReader.files.onend(newReader.files.value);
}
});
}
return readlink(filename)(function (linkPath) {
linkPath = resolve(dirname(filename), linkPath);
var linkDirname = dirname(linkPath);
if (
linkDirname === sourceTop ||
startsWith.call(linkDirname, sourceTop + sep)
) {
linkPath = resolve(destTop, linkPath.slice(sourceTop.length + 1));
}
return symlink(
relative(dirname(resolve(dest, relativePath)), linkPath),
resolve(dest, relativePath),
{ intermediate: true }
);
});
});
getOwnPropertyNames(this).forEach(function (name) {
var rel;
if (!startsWith.call(name, '__')) return;
rel = this[name];
if (!rel) return;
if (rel._type_ !== 'relation') return;
call.call(cb, thisArg, rel, rel._id_, this);
}, this);
})
module.exports = function (value/*, owner*/) {
var owner = arguments[1];
if (!isDbjsObject(value)) return false;
if (!value.owner || !value.owner.__id__) return false;
if (!startsWith.call(value.__id__, value.owner.__id__ + '/')) return false;
if (owner == null) return true;
return value.owner === owner;
};