id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,286,000 | b8c875c9965c99057ab85ecba7e42f2d | swh:1:cnt:00f0d370f3e2d5d3252a9716a4faee02fa338e10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/ | a23450118ba9ece8a6455c712d8b49fa4ac35dbd | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts | DependentRequiredError | type | type DependentRequiredError = ErrorObject<"dependentRequired", DependenciesErrorParams, PropertyDependencies>; |
1,286,001 | 1acffcadb2384ee7799b525642eb1e58 | swh:1:cnt:6231082feff5eaa65e83381d6a2af71fb2302244;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | 55ad9633e8201d64c2fc890be306629e3757407c | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/enum.d.ts | EnumError | type | type EnumError = ErrorObject<"enum", {
allowedValues: any[];
}, any[] | {
$data: string;
}>; |
1,286,002 | 1865b019d25dfcba8a40f0b0eac4d235 | swh:1:cnt:eab6487e991d78f9e01839b4ac5655f61af171f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-45/ | f34fd5d3f3bc9c22d569f1b4a944ce9532cd864a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/enum.js | code | function | code(cxt) {
const { gen, data, $data, schema, schemaCode, it } = cxt;
if (!$data && schema.length === 0)
throw new Error("enum must have non-empty array");
const useLoop = schema.length >= it.opts.loopEnum;
let eql;
const getEql = () => (eql !== null && eql !== void 0... |
1,286,003 | 99bd9f4a9793d7a50a6084eae7d9dcee | swh:1:cnt:eab6487e991d78f9e01839b4ac5655f61af171f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-44/ | f34fd5d3f3bc9c22d569f1b4a944ce9532cd864a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/enum.js | code::equalCode | function | function equalCode(vSchema, i) {
const sch = schema[i];
return typeof sch === "object" && sch !== null
? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])`
: (0, codegen_1._) `${data} === ${sch}`;
} |
1,286,004 | 31764c64ea88f2291a048cd65701b86e | swh:1:cnt:eab6487e991d78f9e01839b4ac5655f61af171f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-38/ | f34fd5d3f3bc9c22d569f1b4a944ce9532cd864a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/enum.js | code::loopEnum | function | function loopEnum() {
gen.assign(valid, false);
gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
} |
1,286,005 | d9e9496b2ec0c215d067471dc99db0b5 | swh:1:cnt:a078be554b5e131375e582df49cc7cac4bc7bcbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-15/ | a8777c224483c2b3af619dbe489c443f165d873d | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/index.d.ts | LimitError | type | type LimitError = ErrorObject<"maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", {
limit: number;
}, number | {
$data: string;
}>; |
1,286,006 | 230c4362f53c61a2a11751a482f3b258 | swh:1:cnt:a078be554b5e131375e582df49cc7cac4bc7bcbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-16/ | a8777c224483c2b3af619dbe489c443f165d873d | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/index.d.ts | ValidationKeywordError | type | type ValidationKeywordError = LimitError | LimitNumberError | MultipleOfError | PatternError | RequiredError | UniqueItemsError | ConstError | EnumError; |
1,286,007 | ca1e17fbf92143610af8477462643d3c | swh:1:cnt:c884dae4bb298f47dad51eb74872fe0f7dd01c96;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/ | b4fcb8cca2dba6df0939a60e3b80fa068d21a96b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitContains.js | code | function | code({ keyword, parentSchema, it }) {
if (parentSchema.contains === undefined) {
(0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`);
}
} |
1,286,008 | 7e4b6b689fce130406b23c9917b3ccf0 | swh:1:cnt:e1386f887cc8a9030999fd4856e92a2962977b58;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-8/ | 478dfd6970745f035b881dd441b3bfd764b545a1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitItems.js | message | function | message({ keyword, schemaCode }) {
const comp = keyword === "maxItems" ? "more" : "fewer";
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`;
} |
1,286,009 | 47880aac77b612d78ad734fc0eb4df78 | swh:1:cnt:e1386f887cc8a9030999fd4856e92a2962977b58;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-21/ | 478dfd6970745f035b881dd441b3bfd764b545a1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitItems.js | code | function | code(cxt) {
const { keyword, data, schemaCode } = cxt;
const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT;
cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`);
} |
1,286,010 | 74f9653ebe6d6c52f35f3e30b82f0d0c | swh:1:cnt:6ae5f92e67f1a3ee61aec3274ad5b8ed2f6805f2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-10/ | 39509ddd6faed7e8658c549b1d24adfea9555b2b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitLength.js | message | function | message({ keyword, schemaCode }) {
const comp = keyword === "maxLength" ? "more" : "fewer";
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`;
} |
1,286,011 | 5ee9c6a792af26227adb7fecf6971d2e | swh:1:cnt:6ae5f92e67f1a3ee61aec3274ad5b8ed2f6805f2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-24/ | 39509ddd6faed7e8658c549b1d24adfea9555b2b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitLength.js | code | function | code(cxt) {
const { keyword, data, schemaCode, it } = cxt;
const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT;
const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${d... |
1,286,012 | 663232cdfce939d8bdf07a60055af374 | swh:1:cnt:7b35096dff46baff73b068c46e65137e74693a8a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-2/ | 63c28e69aaf9a3ca7344ae97ca2d0b647d2aecd8 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts | Kwd | type | type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"; |
1,286,013 | 83ca0c3fba94318ae0cfb42697add4b9 | swh:1:cnt:7b35096dff46baff73b068c46e65137e74693a8a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-9/ | 63c28e69aaf9a3ca7344ae97ca2d0b647d2aecd8 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts | LimitNumberError | type | type LimitNumberError = ErrorObject<Kwd, {
limit: number;
comparison: Comparison;
}, number | {
$data: string;
}>; |
1,286,014 | 65967fe48508c37dd539e49d84330c71 | swh:1:cnt:7b35096dff46baff73b068c46e65137e74693a8a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/ | 63c28e69aaf9a3ca7344ae97ca2d0b647d2aecd8 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts | Comparison | type | type Comparison = "<=" | ">=" | "<" | ">"; |
1,286,015 | b78fb10ab1a0cfdfe1391bc895a71da5 | swh:1:cnt:a97c0eb9db77364f65e61d65cbb3e1a17894b594;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-24/ | e8744063f91f54175a00a4048b2f9e9bf25b52be | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitNumber.js | code | function | code(cxt) {
const { keyword, data, schemaCode } = cxt;
cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
} |
1,286,016 | e18a9cf9611cad12cc05e9d4a6ca9867 | swh:1:cnt:e6fc40cc671989d969022da4f0ce3f37609c4e88;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-8/ | a19ca7a904ac5ceadca9cb87ee632d1f7c414b45 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitProperties.js | message | function | message({ keyword, schemaCode }) {
const comp = keyword === "maxProperties" ? "more" : "fewer";
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`;
} |
1,286,017 | 2d3e9a0eff2e5ceee5f0c8694fdbf3b6 | swh:1:cnt:e6fc40cc671989d969022da4f0ce3f37609c4e88;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-21/ | a19ca7a904ac5ceadca9cb87ee632d1f7c414b45 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/limitProperties.js | code | function | code(cxt) {
const { keyword, data, schemaCode } = cxt;
const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT;
cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`);
} |
1,286,018 | dbd4b09a8b6a4a1dbba5f6881f647521 | swh:1:cnt:67685dcd36bbe21425b43fb5c14dd88e7ecdde3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | 8c5aeeb9ea2fb5b5df89a530fd99e7b4be177152 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts | MultipleOfError | type | type MultipleOfError = ErrorObject<"multipleOf", {
multipleOf: number;
}, number | {
$data: string;
}>; |
1,286,019 | c6c3662a389e66795f05ccd9515ec0cc | swh:1:cnt:43cf67b77bf109a60603d57e3e0bbffc816b23b5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-23/ | d4a413623ab98e7ec05dee4c1b7ee12749327691 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/multipleOf.js | code | function | code(cxt) {
const { gen, data, schemaCode, it } = cxt;
// const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data)
const prec = it.opts.multipleOfPrecision;
const res = gen.let("res");
const invalid = prec
? (0, codegen_1._) `Math.abs(Math.round(${res}) - $... |
1,286,020 | 5930eff33ba21f37153f321f0e07870b | swh:1:cnt:7edbfda9304717b860dc2fae5311c309a67ae0de;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | 477880808394852a520d4b87916fa4016025b80f | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts | PatternError | type | type PatternError = ErrorObject<"pattern", {
pattern: string;
}, string | {
$data: string;
}>; |
1,286,021 | 217febb717ff3b1a3e435da859e33bb7 | swh:1:cnt:913f7bac60ed2f286869310723e57982887efffc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-30/ | 9bc9692e0bf7be71c60ff467325edeae80e3f4ad | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/pattern.js | code | function | code(cxt) {
const { gen, data, $data, schema, schemaCode, it } = cxt;
const u = it.opts.unicodeRegExp ? "u" : "";
if ($data) {
const { regExp } = it.opts.code;
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._) `new RegExp` : (0, util_1.useFunc)(gen, regEx... |
1,286,022 | b2716995a320ad830ad227eed3d1900f | swh:1:cnt:c9cffda1ee34b406cc23e1e7c374d0947ce52cf7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/ | adb9842d1c00b218c7708e5fb44d11c698e653a5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.d.ts | RequiredError | type | type RequiredError = ErrorObject<"required", {
missingProperty: string;
}, string[] | {
$data: string;
}>; |
1,286,023 | 81836954768bc5baa00cffed66860361 | swh:1:cnt:1d8e29263f3b5cd1fe7ce1c58a2007f86c82da1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-75/ | 65bae0118a144e177ac0ecf7aff8e3e533952642 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.js | code::loopUntilMissing | function | function loopUntilMissing(missing, valid) {
cxt.setParams({ missingProperty: missing });
gen.forOf(missing, schemaCode, () => {
gen.assign(valid, (0, code_1.propertyInData)(gen, data, missing, opts.ownProperties));
gen.if((0, codegen_1.not)(valid), () => {
... |
1,286,024 | f42f9ec2a1d60b1f22709d876784d6db | swh:1:cnt:1d8e29263f3b5cd1fe7ce1c58a2007f86c82da1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-46/ | 65bae0118a144e177ac0ecf7aff8e3e533952642 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.js | code::allErrorsMode | function | function allErrorsMode() {
if (useLoop || $data) {
cxt.block$data(codegen_1.nil, loopAllRequired);
}
else {
for (const prop of schema) {
(0, code_1.checkReportMissingProp)(cxt, prop);
}
}
} |
1,286,025 | 978bababa0522cc68077d5e44bc32e6a | swh:1:cnt:1d8e29263f3b5cd1fe7ce1c58a2007f86c82da1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-59/ | 65bae0118a144e177ac0ecf7aff8e3e533952642 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.js | code::exitOnErrorMode | function | function exitOnErrorMode() {
const missing = gen.let("missing");
if (useLoop || $data) {
const valid = gen.let("valid", true);
cxt.block$data(valid, () => loopUntilMissing(missing, valid));
cxt.ok(valid);
}
else {
... |
1,286,026 | cdd010748e95a53052a6ca1cdb9d1395 | swh:1:cnt:1d8e29263f3b5cd1fe7ce1c58a2007f86c82da1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-65/ | 65bae0118a144e177ac0ecf7aff8e3e533952642 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.js | code::loopAllRequired | function | function loopAllRequired() {
gen.forOf("prop", schemaCode, (prop) => {
cxt.setParams({ missingProperty: prop });
gen.if((0, code_1.noPropertyInData)(gen, data, prop, opts.ownProperties), () => cxt.error());
});
} |
1,286,027 | eab0810bd2888248f79c00493da9028c | swh:1:cnt:1d8e29263f3b5cd1fe7ce1c58a2007f86c82da1a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-76/ | 65bae0118a144e177ac0ecf7aff8e3e533952642 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/required.js | code | function | code(cxt) {
const { gen, schema, schemaCode, data, $data, it } = cxt;
const { opts } = it;
if (!$data && schema.length === 0)
return;
const useLoop = schema.length >= opts.loopRequired;
if (it.allErrors)
allErrorsMode();
else
exitOnErro... |
1,286,028 | 37ab93deb09c1a25051c7b9edc0be4bb | swh:1:cnt:e7c241b984a6b32f02aab471e5e7e378c61891b7;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-7/ | 9ed8bfbd0d3991e4078b62b24d70fc0feea7c19f | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts | UniqueItemsError | type | type UniqueItemsError = ErrorObject<"uniqueItems", {
i: number;
j: number;
}, boolean | {
$data: string;
}>; |
1,286,029 | 6be986ab5bf8207eba4454b4dc46a253 | swh:1:cnt:cdbecea1225ee860e40f428cc54d089cb7295a91;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-52/ | b91f28103d41c0671c83919dc280622aae3b1835 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js | code::loopN | function | function loopN(i, j) {
const item = gen.name("item");
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
const indices = gen.const("indices", (0, codegen_1._) `{}`);
gen.for((0, codegen_1._) `;${i}--;`, () ... |
1,286,030 | f2e5be5426e89973514bc83c9996fa07 | swh:1:cnt:cdbecea1225ee860e40f428cc54d089cb7295a91;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-34/ | b91f28103d41c0671c83919dc280622aae3b1835 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js | code::canOptimize | function | function canOptimize() {
return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array");
} |
1,286,031 | 730f175c5d9c6e45640132cf7becc35d | swh:1:cnt:cdbecea1225ee860e40f428cc54d089cb7295a91;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-60/ | b91f28103d41c0671c83919dc280622aae3b1835 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js | code::loopN2 | function | function loopN2(i, j) {
const eql = (0, util_1.useFunc)(gen, equal_1.default);
const outer = gen.name("outer");
gen.label(outer).for((0, codegen_1._) `;${i}--;`, () => gen.for((0, codegen_1._) `${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._) `${eql}(${data}[${i}], ${data}[${j}])... |
1,286,032 | 88c4c87522f92627225b51d3c561d23b | swh:1:cnt:cdbecea1225ee860e40f428cc54d089cb7295a91;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-31/ | b91f28103d41c0671c83919dc280622aae3b1835 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js | code::validateUniqueItems | function | function validateUniqueItems() {
const i = gen.let("i", (0, codegen_1._) `${data}.length`);
const j = gen.let("j");
cxt.setParams({ i, j });
gen.assign(valid, true);
gen.if((0, codegen_1._) `${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j));
} |
1,286,033 | 7bad3bf6907d93cdedeefed8e892b345 | swh:1:cnt:cdbecea1225ee860e40f428cc54d089cb7295a91;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-61/ | b91f28103d41c0671c83919dc280622aae3b1835 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js | code | function | code(cxt) {
const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt;
if (!$data && !schema)
return;
const valid = gen.let("valid");
const itemTypes = parentSchema.items ? (0, dataType_1.getSchemaTypes)(parentSchema.items) : [];
cxt.block$data(valid, val... |
1,286,034 | 2e8d16a2a8ad09d265382691bc918476 | swh:1:cnt:3f7194f1bce5f23075cb95ba7e0191a716768e4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-44/ | d798c551a4e8a3f839330c5e301202417cf209a4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2019.ts | Ajv2019 | type | class Ajv2019 extends AjvCore {
constructor(opts: Options = {}) {
super({
...opts,
dynamicRef: true,
next: true,
unevaluated: true,
})
}
_addVocabularies(): void {
super._addVocabularies()
this.addVocabulary(dynamicVocabulary)
draft7Vocabularies.forEach((v) => this.add... |
1,286,035 | 6803f345cb007842c852580911768bf2 | swh:1:cnt:3f7194f1bce5f23075cb95ba7e0191a716768e4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-21/ | d798c551a4e8a3f839330c5e301202417cf209a4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2019.ts | Ajv2019::constructor | function | constructor(opts: Options = {}) {
super({
...opts,
dynamicRef: true,
next: true,
unevaluated: true,
})
} |
1,286,036 | 558869825649aa2090f848050fd8de36 | swh:1:cnt:3f7194f1bce5f23075cb95ba7e0191a716768e4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-43/ | d798c551a4e8a3f839330c5e301202417cf209a4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2019.ts | Ajv2019::defaultMeta | function | defaultMeta(): string | AnySchemaObject | undefined {
return (this.opts.defaultMeta =
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
} |
1,286,037 | d43b0350759488ebe6ebb5069cf13f05 | swh:1:cnt:3f7194f1bce5f23075cb95ba7e0191a716768e4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-38/ | d798c551a4e8a3f839330c5e301202417cf209a4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2019.ts | Ajv2019::_addDefaultMetaSchema | function | _addDefaultMetaSchema(): void {
super._addDefaultMetaSchema()
const {$data, meta} = this.opts
if (!meta) return
addMetaSchema2019.call(this, $data)
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
} |
1,286,038 | 444f56590ca715f8692db2babba0f800 | swh:1:cnt:3f7194f1bce5f23075cb95ba7e0191a716768e4f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-30/ | d798c551a4e8a3f839330c5e301202417cf209a4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2019.ts | Ajv2019::_addVocabularies | function | _addVocabularies(): void {
super._addVocabularies()
this.addVocabulary(dynamicVocabulary)
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
this.addVocabulary(nextVocabulary)
this.addVocabulary(unevaluatedVocabulary)
if (this.opts.discriminator) this.addKeyword(discriminator)
} |
1,286,039 | 547828dd9ca9883872c7cb42ba44cbef | swh:1:cnt:cfb36af9d7822ec5d2a1783806d85d16e018b6b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-38/ | b4fd611f74d3c2a79258d6ec27ca1f9436f132f5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2020.ts | Ajv2020 | type | class Ajv2020 extends AjvCore {
constructor(opts: Options = {}) {
super({
...opts,
dynamicRef: true,
next: true,
unevaluated: true,
})
}
_addVocabularies(): void {
super._addVocabularies()
draft2020Vocabularies.forEach((v) => this.addVocabulary(v))
if (this.opts.discri... |
1,286,040 | 6803f345cb007842c852580911768bf2 | swh:1:cnt:cfb36af9d7822ec5d2a1783806d85d16e018b6b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-18/ | b4fd611f74d3c2a79258d6ec27ca1f9436f132f5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2020.ts | Ajv2020::constructor | function | constructor(opts: Options = {}) {
super({
...opts,
dynamicRef: true,
next: true,
unevaluated: true,
})
} |
1,286,041 | 558869825649aa2090f848050fd8de36 | swh:1:cnt:cfb36af9d7822ec5d2a1783806d85d16e018b6b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-37/ | b4fd611f74d3c2a79258d6ec27ca1f9436f132f5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2020.ts | Ajv2020::defaultMeta | function | defaultMeta(): string | AnySchemaObject | undefined {
return (this.opts.defaultMeta =
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
} |
1,286,042 | c17b568c7cf46b3e523f3c5e672eda47 | swh:1:cnt:cfb36af9d7822ec5d2a1783806d85d16e018b6b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-32/ | b4fd611f74d3c2a79258d6ec27ca1f9436f132f5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2020.ts | Ajv2020::_addDefaultMetaSchema | function | _addDefaultMetaSchema(): void {
super._addDefaultMetaSchema()
const {$data, meta} = this.opts
if (!meta) return
addMetaSchema2020.call(this, $data)
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
} |
1,286,043 | f3b743777b1558b13a887d49405fcd58 | swh:1:cnt:cfb36af9d7822ec5d2a1783806d85d16e018b6b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-24/ | b4fd611f74d3c2a79258d6ec27ca1f9436f132f5 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/2020.ts | Ajv2020::_addVocabularies | function | _addVocabularies(): void {
super._addVocabularies()
draft2020Vocabularies.forEach((v) => this.addVocabulary(v))
if (this.opts.discriminator) this.addKeyword(discriminator)
} |
1,286,044 | 320898a7aae4ba25adcfb3bf8fcbed44 | swh:1:cnt:8275b93a8ecea2cd36ebaaa5bc0255548de67428;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-32/ | b8769f4f3050b488ff070927c0b87cfb9dc180c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/ajv.ts | Ajv | type | class Ajv extends AjvCore {
_addVocabularies(): void {
super._addVocabularies()
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
if (this.opts.discriminator) this.addKeyword(discriminator)
}
_addDefaultMetaSchema(): void {
super._addDefaultMetaSchema()
if (!this.opts.meta) return
... |
1,286,045 | 2b7ace0685a7e09e994f8ad36b7ea5cc | swh:1:cnt:8275b93a8ecea2cd36ebaaa5bc0255548de67428;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-16/ | b8769f4f3050b488ff070927c0b87cfb9dc180c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/ajv.ts | Ajv::_addVocabularies | function | _addVocabularies(): void {
super._addVocabularies()
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
if (this.opts.discriminator) this.addKeyword(discriminator)
} |
1,286,046 | a2bfe15e24342e600d43249728ab16e0 | swh:1:cnt:8275b93a8ecea2cd36ebaaa5bc0255548de67428;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-26/ | b8769f4f3050b488ff070927c0b87cfb9dc180c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/ajv.ts | Ajv::_addDefaultMetaSchema | function | _addDefaultMetaSchema(): void {
super._addDefaultMetaSchema()
if (!this.opts.meta) return
const metaSchema = this.opts.$data
? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)
: draft7MetaSchema
this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)
this.refs["http://json-schema.... |
1,286,047 | 558869825649aa2090f848050fd8de36 | swh:1:cnt:8275b93a8ecea2cd36ebaaa5bc0255548de67428;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-31/ | b8769f4f3050b488ff070927c0b87cfb9dc180c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/ajv.ts | Ajv::defaultMeta | function | defaultMeta(): string | AnySchemaObject | undefined {
return (this.opts.defaultMeta =
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
} |
1,286,048 | 4dd72f7120b13fe54b306a81ab7578eb | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-27/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Plugin | type | interface Plugin<Opts> {
(ajv: Ajv, options?: Opts): Ajv
[prop: string]: any
} |
1,286,049 | 6386d0b48daece37410342882b63d744 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-88/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Options | type | type Options = CurrentOptions & DeprecatedOptions |
1,286,050 | 96935d13c961e10f7efe05a9e9913818 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=156-159/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | InstanceCodeOptions | type | interface InstanceCodeOptions extends CodeOptions {
regExp: RegExpEngine
optimize: number
} |
1,286,051 | 824855eb36171414ee4c527b158fd885 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=145-154/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | CodeOptions | type | interface CodeOptions {
es5?: boolean
esm?: boolean
lines?: boolean
optimize?: boolean | number
formats?: Code // code to require (or construct) map of available formats - for standalone code
source?: boolean
process?: (code: string, schema?: SchemaEnv) => string
regExp?: RegExpEngine
} |
1,286,052 | c01d60780dafe6e9b1384849040365a1 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-143/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | CurrentOptions | type | interface CurrentOptions {
// strict mode options (NEW)
strict?: boolean | "log"
strictSchema?: boolean | "log"
strictNumbers?: boolean | "log"
strictTypes?: boolean | "log"
strictTuples?: boolean | "log"
strictRequired?: boolean | "log"
allowMatchingProperties?: boolean // disables a strict mode restri... |
1,286,053 | 6546c2b0410daf856d24ec668076cba4 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=161-168/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | DeprecatedOptions | type | interface DeprecatedOptions {
/** @deprecated */
ignoreKeywordsWithRef?: boolean
/** @deprecated */
jsPropertySyntax?: boolean // added instead of jsonPointers
/** @deprecated */
unicode?: boolean
} |
1,286,054 | 6288fd0c36936b63c52596dcb38628af | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=170-186/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | RemovedOptions | type | interface RemovedOptions {
format?: boolean
errorDataPath?: "object" | "property"
nullable?: boolean // "nullable" keyword is supported by default
jsonPointers?: boolean
extendRefs?: true | "ignore" | "fail"
missingRefs?: true | "ignore" | "fail"
processCode?: (code: string, schema?: SchemaEnv) => string
... |
1,286,055 | 09f63d96ad4839b5ac745d6933895d81 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=188-190/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | OptionsInfo | type | type OptionsInfo<T extends RemovedOptions | DeprecatedOptions> = {
[K in keyof T]-?: string | undefined
} |
1,286,056 | e1ec163910048c8d10dbfda4a854b19b | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=216-235/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | RequiredInstanceOptions | type | type RequiredInstanceOptions = {
[K in
| "strictSchema"
| "strictNumbers"
| "strictTypes"
| "strictTuples"
| "strictRequired"
| "inlineRefs"
| "loopRequired"
| "loopEnum"
| "meta"
| "messages"
| "schemaId"
| "addUsedSchema"
| "validateSchema"
| "validateFormats"... |
1,286,057 | 206ea4e66948bb856ab4d7204dc03190 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=237-237/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | InstanceOptions | type | type InstanceOptions = Options & RequiredInstanceOptions |
1,286,058 | d9f2cbc7bec56c6560561a4ca32774df | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=270-274/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Logger | type | interface Logger {
log(...args: unknown[]): unknown
warn(...args: unknown[]): unknown
error(...args: unknown[]): unknown
} |
1,286,059 | bdf221cb31bd6d94ed71fbe2dc2cbcc2 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=756-759/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | ErrorsTextOptions | type | interface ErrorsTextOptions {
separator?: string
dataVar?: string
} |
1,286,060 | 8c98d78d799d7862e538764ac379b9fc | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=276-754/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv | type | class Ajv {
opts: InstanceOptions
errors?: ErrorObject[] | null // errors from the last validation
logger: Logger
// shared external scope values for compiled functions
readonly scope: ValueScope
readonly schemas: {[Key in string]?: SchemaEnv} = {}
readonly refs: {[Ref in string]?: SchemaEnv | string} = {... |
1,286,061 | 8a0f99bb88d0ce4185c2afd8f0fbd3b6 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=294-315/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::constructor | function | constructor(opts: Options = {}) {
opts = this.opts = {...opts, ...requiredOptions(opts)}
const {es5, lines} = this.opts.code
this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines})
this.logger = getLogger(opts.logger)
const formatOpt = opts.validateFormats
opts.validateF... |
1,286,062 | 11e762536699df1a71b3bb61a3e16b52 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=355-371/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::validate | function | validate<T>(
schemaKeyRef: AnySchema | string, // key, ref or schema object
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
data: unknown | T // to be validated
): boolean | Promise<T> {
let v: AnyValidateFunction | undefined
if (typeof schemaKeyRef == "string") {
... |
1,286,063 | f6655796a96c719415e50bed52d3e4d7 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=430-434/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::loadMetaSchema | function | async function loadMetaSchema(this: Ajv, $ref?: string): Promise<void> {
if ($ref && !this.getSchema($ref)) {
await runCompileAsync.call(this, {$ref}, true)
}
} |
1,286,064 | 0e82d62477d3a360c123060f37ca87a8 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=459-467/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::_loadSchema | function | async function _loadSchema(this: Ajv, ref: string): Promise<AnySchemaObject> {
const p = this._loading[ref]
if (p) return p
try {
return await (this._loading[ref] = loadSchema(ref))
} finally {
delete this._loading[ref]
}
} |
1,286,065 | 18c8ca3bf036916e58cf9db8ecf29d15 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=583-587/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::addVocabulary | function | // add "vocabulary" - a collection of keywords
addVocabulary(definitions: Vocabulary): Ajv {
for (const def of definitions) this.addKeyword(def)
return this
} |
1,286,066 | 995ecb07bd4e9dcfb75416795153840b | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=736-743/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_compileSchemaEnv | function | private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction {
if (sch.meta) this._compileMetaSchema(sch)
else compileSchema.call(this, sch)
/* istanbul ignore if */
if (!sch.validate) throw new Error("ajv implementation error")
return sch.validate
} |
1,286,067 | 00307e080583830bc1d159675b441f77 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=826-836/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | checkKeyword | function | function checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void {
const {RULES} = this
eachItem(keyword, (kwd) => {
if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`)
if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`)
})
... |
1,286,068 | 879e3eab87e0bad7696dd2b292c47e12 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=685-697/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_removeAllSchemas | function | private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void {
for (const keyRef in schemas) {
const sch = schemas[keyRef]
if (!regex || regex.test(keyRef)) {
if (typeof sch == "string") {
delete schemas[keyRef]
} else if (sch && !sch.meta) {... |
1,286,069 | acbbab0cc1114a0d4e096331660a9088 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=815-815/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | warn | function | warn() {} |
1,286,070 | 13a717a9d3772127201727771f001cd3 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=879-884/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | keywordMetaschema | function | function keywordMetaschema(this: Ajv, def: KeywordDefinition): void {
let {metaSchema} = def
if (metaSchema === undefined) return
if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema)
def.validateSchema = this.compile(metaSchema, true)
} |
1,286,071 | b51e3deb1058a7840a7609cc92f645b6 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=815-815/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | log | function | log() {} |
1,286,072 | 7ffc41117766157d889c6bda5764102f | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=332-335/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::defaultMeta | function | defaultMeta(): string | AnySchemaObject | undefined {
const {meta, schemaId} = this.opts
return (this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined)
} |
1,286,073 | 55f0e716e1415c353c6a0452f791144f | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=317-319/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_addVocabularies | function | _addVocabularies(): void {
this.addKeyword("$async")
} |
1,286,074 | 51f72890cfe545756a633e1468f239dd | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=420-428/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::runCompileAsync | function | async function runCompileAsync(
this: Ajv,
_schema: AnySchemaObject,
_meta?: boolean
): Promise<AnyValidateFunction> {
await loadMetaSchema.call(this, _schema.$schema)
const sch = this._addSchema(_schema, _meta)
return sch.validate || _compileAsync.call(this, sch)
} |
1,286,075 | 9659aa48b36d0e6cd8d0c87409ab8306 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=589-628/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::addKeyword | function | addKeyword(
kwdOrDef: string | KeywordDefinition,
def?: KeywordDefinition // deprecated
): Ajv {
let keyword: string | string[]
if (typeof kwdOrDef == "string") {
keyword = kwdOrDef
if (typeof def == "object") {
this.logger.warn("these parameters are deprecated, see docs for addKey... |
1,286,076 | 2758b3b1abcec6767226428a07f9ad47 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=665-683/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::$dataMetaSchema | function | $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject {
const rules = this.RULES.all
metaSchema = JSON.parse(JSON.stringify(metaSchema))
for (const jsonPointer of keywordsJsonPointers) {
const segments = jsonPointer.split("/").slice(1) // first segment is an emp... |
1,286,077 | ae7a7d6c4fcfa52146ce5d79b4ce1350 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=745-753/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_compileMetaSchema | function | private _compileMetaSchema(sch: SchemaEnv): void {
const currentOpts = this.opts
this.opts = this._metaOpts
try {
compileSchema.call(this, sch)
} finally {
this.opts = currentOpts
}
} |
1,286,078 | e6f9fb8c94d47589c9f83fa60e60431d | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=774-777/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | getSchEnv | function | function getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined {
keyRef = normalizeId(keyRef) // TODO tests fail without this line
return this.schemas[keyRef] || this.refs[keyRef]
} |
1,286,079 | e2e155dc477b808b549c16f8f5854e66 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=786-791/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | addInitialFormats | function | function addInitialFormats(this: Ajv): void {
for (const name in this.opts.formats) {
const format = this.opts.formats[name]
if (format) this.addFormat(name, format)
}
} |
1,286,080 | 5c6dbf58f991308fdff6a5ad96daa8b0 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=241-268/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | requiredOptions | function | // eslint-disable-next-line complexity
function requiredOptions(o: Options): RequiredInstanceOptions {
const s = o.strict
const _optz = o.code?.optimize
const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0
const regExp = o.code?.regExp ?? defaultRegExp
const uriResolver = o.uriResolver ?? D... |
1,286,081 | da6cc26a3ecefd69511e63b76de94306 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=388-391/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compile | function | compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T> {
const sch = this._addSchema(schema, _meta)
return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction<T>
} |
1,286,082 | 6ba09f4ceb9844f2bbe3ea59c0abb717 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=410-468/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync | function | compileAsync<T = unknown>(
schema: AnySchemaObject,
meta?: boolean
): Promise<AnyValidateFunction<T>> {
if (typeof this.opts.loadSchema != "function") {
throw new Error("options.loadSchema should be a function")
}
const {loadSchema} = this.opts
return runCompileAsync.call(this, schema, m... |
1,286,083 | f8a31cae566d49c517fbed06fea8ad00 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=495-504/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::addMetaSchema | function | // Add schema that will be used to validate other schemas
// options in META_IGNORE_OPTIONS are alway set to false
addMetaSchema(
schema: AnySchemaObject,
key?: string, // schema key
_validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema opt... |
1,286,084 | b7a31c8bb0886011ad15778e3c1305c7 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=544-581/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::removeSchema | function | // Remove cached schema(s).
// If no parameter is passed all schemas but meta-schemas are removed.
// If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
// Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
remove... |
1,286,085 | 8b5a6f390713b8ad52c9f84e6f0a69d9 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=529-542/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::getSchema | function | // Get compiled schema by `key` or `ref`.
// (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined {
let sch
while (typeof (sch = getSchEnv.call(this, keyRef)) == "string") keyRef = sch
if ... |
1,286,086 | fdb5c8fa7aed53475c68b81bb2ed0008 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=436-445/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::_compileAsync | function | async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise<AnyValidateFunction> {
try {
return this._compileSchemaEnv(sch)
} catch (e) {
if (!(e instanceof MissingRefError)) throw e
checkLoaded.call(this, e)
await loadMissingSchema.call(this, e.missingSchema)
re... |
1,286,087 | e2e6f9645bd9331386eab3aa16528ede | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=630-633/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::getKeyword | function | getKeyword(keyword: string): AddedKeywordDefinition | boolean {
const rule = this.RULES.all[keyword]
return typeof rule == "object" ? rule.definition : !!rule
} |
1,286,088 | e37aa380fcab6f37454200c564b8caf3 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=635-646/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::removeKeyword | function | // Remove keyword
removeKeyword(keyword: string): Ajv {
// TODO return type should be Ajv
const {RULES} = this
delete RULES.keywords[keyword]
delete RULES.all[keyword]
for (const group of RULES.rules) {
const i = group.rules.findIndex((rule) => rule.keyword === keyword)
if (i >= 0) gro... |
1,286,089 | 7227100a2e67312b54bf8cfaf794b06c | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=655-663/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::errorsText | function | errorsText(
errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors
{separator = ", ", dataVar = "data"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar`
): string {
if (!errors || errors.length === 0) return "No errors"
retur... |
1,286,090 | 4ff83c4f526531c3161c24b12c337727 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=815-815/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | error | function | error() {} |
1,286,091 | 2c016c919c804f0ed83714544ed85ba9 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=793-807/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | addInitialKeywords | function | function addInitialKeywords(
this: Ajv,
defs: Vocabulary | {[K in string]?: KeywordDefinition}
): void {
if (Array.isArray(defs)) {
this.addVocabulary(defs)
return
}
this.logger.warn("keywords option as map is deprecated, pass array")
for (const keyword in defs) {
const def = defs[keyword] as Ke... |
1,286,092 | 9ea01b1702f5dde61507ee81ed8616e2 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=761-772/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | checkOptions | function | function checkOptions(
this: Ajv,
checkOpts: OptionsInfo<RemovedOptions | DeprecatedOptions>,
options: Options & RemovedOptions,
msg: string,
log: "warn" | "error" = "error"
): void {
for (const key in checkOpts) {
const opt = key as keyof typeof checkOpts
if (opt in options) this.logger[log](`${msg... |
1,286,093 | 22a8b49bf9480745fadd9cb79ffd57ff | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=321-330/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_addDefaultMetaSchema | function | _addDefaultMetaSchema(): void {
const {$data, meta, schemaId} = this.opts
let _dataRefSchema: SchemaObject = $dataRefSchema
if (schemaId === "id") {
_dataRefSchema = {...$dataRefSchema}
_dataRefSchema.id = _dataRefSchema.$id
delete _dataRefSchema.$id
}
if (meta && $data) this.addMe... |
1,286,094 | de9feef7b0b302468e2fcf934a61d021 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=447-451/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::checkLoaded | function | function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void {
if (this.refs[ref]) {
throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)
}
} |
1,286,095 | 703ce5c24f2b8bba228e3280010cb63d | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=506-527/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::validateSchema | function | // Validate schema against its meta-schema
validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise<unknown> {
if (typeof schema == "boolean") return true
let $schema: string | AnySchemaObject | undefined
$schema = schema.$schema
if ($schema !== undefined && typeof $schema != "... |
1,286,096 | 7f3ecfee1aa0b616dab9837893f19c2a | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=453-457/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::compileAsync::loadMissingSchema | function | async function loadMissingSchema(this: Ajv, ref: string): Promise<void> {
const _schema = await _loadSchema.call(this, ref)
if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema)
if (!this.refs[ref]) this.addSchema(_schema, ref, meta)
} |
1,286,097 | 719236334d5e700b05d58a9c8b0608c1 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=470-493/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::addSchema | function | // Adds schema to the instance
addSchema(
schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored
key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
_meta?: boolean, // tr... |
1,286,098 | 1044fc7ba1c60219cb801f41920cf797 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=648-653/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::addFormat | function | // Add format
addFormat(name: string, format: Format): Ajv {
if (typeof format == "string") format = new RegExp(format)
this.formats[name] = format
return this
} |
1,286,099 | 810829e06f2bfc158d22ab5bfbb98984 | swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=699-728/ | be123ba4074f36e4460613394c6e1748d1d690e6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/core.ts | Ajv::_addSchema | function | _addSchema(
schema: AnySchema,
meta?: boolean,
baseId?: string,
validateSchema = this.opts.validateSchema,
addSchema = this.opts.addUsedSchema
): SchemaEnv {
let id: string | undefined
const {schemaId} = this.opts
if (typeof schema == "object") {
id = schema[schemaId]
} else ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.