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,285,900
482515e85c0aecb851f06056535305b5
swh:1:cnt:48501c6e33e3c492b927ecfc02fb990651ab1b3d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-48/
39ffb43307c3336a389d44cee32a38235b7d11d1
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
code::checkMatchingProperties
function
function checkMatchingProperties(pat) { for (const prop in checkProperties) { if (new RegExp(pat).test(prop)) { (0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`); } } }
1,285,901
a1c5cb49146115fe2609a19cf63ef264
swh:1:cnt:7347358e29e2f7e6cb7c5f27d6bd381e03fb7c7b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-51/
6abb50c674b34a60f83b78472e466c628b2dc71e
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/properties.js
code
function
code(cxt) { const { gen, schema, parentSchema, data, it } = cxt; if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) { additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties")); } ...
1,285,902
5fdb7299ba3e6b14d49bdb0b48834cdb
swh:1:cnt:7347358e29e2f7e6cb7c5f27d6bd381e03fb7c7b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-43/
6abb50c674b34a60f83b78472e466c628b2dc71e
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/properties.js
code::hasDefault
function
function hasDefault(prop) { return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined; }
1,285,903
40c67c08601cd76b9ade984eccbeac2b
swh:1:cnt:7347358e29e2f7e6cb7c5f27d6bd381e03fb7c7b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-50/
6abb50c674b34a60f83b78472e466c628b2dc71e
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/properties.js
code::applyPropertySchema
function
function applyPropertySchema(prop) { cxt.subschema({ keyword: "properties", schemaProp: prop, dataProp: prop, }, valid); }
1,285,904
cdb9f47dc0370d366f18f61a6e869728
swh:1:cnt:a806da32f0be53e9fcb9fd32a15f56e442582701;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
9fa02da9d04f7f982e09474fee40ed2a33076456
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts
PropertyNamesError
type
type PropertyNamesError = ErrorObject<"propertyNames", { propertyName: string; }, AnySchema>;
1,285,905
6c7a5b4565bf4521e194f9fa55b6e0c4
swh:1:cnt:f3871152de3cee3702b476e823569e324b50b237;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-35/
c76edc772580265c3e50a5743a05035ff51b80a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
code
function
code(cxt) { const { gen, schema, data, it } = cxt; if ((0, util_1.alwaysValidSchema)(it, schema)) return; const valid = gen.name("valid"); gen.forIn("key", data, (key) => { cxt.setParams({ propertyName: key }); cxt.subschema({ keyword: ...
1,285,906
67a8d6e50f4fc8a7b7dd94b92eb6dd6e
swh:1:cnt:1ae6390215cdd6091eb76c82df786e15950dbb47;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-10/
6eac4b0dfe58a40e951a45e2b2ee7edd116c45eb
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
code
function
code({ keyword, parentSchema, it }) { if (parentSchema.if === undefined) (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`); }
1,285,907
f9d7e97dbfeb505c81e465380feb70b4
swh:1:cnt:313598aab87eb681dad117567c6ce375839c797f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-7/
7a97a494cfe138cf518b806fdc0a88213b46e507
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/id.js
code
function
code() { throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID'); }
1,285,908
699711cd26b09e41aab7ed2c9182c1ac
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-34/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
code::callValidate
function
function callValidate(sch) { const v = getValidate(cxt, sch); callRef(cxt, v, sch, sch.$async); }
1,285,909
6661c5c4f68443dbb764ef71310aedb4
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-55/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
getValidate
function
function getValidate(cxt, sch) { const { gen } = cxt; return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.validate`; }
1,285,910
e235f5dd9c6e7d9a54798da932b76761
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-47/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
code::inlineRefSchema
function
function inlineRefSchema(sch) { const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch }); const valid = gen.name("valid"); const schCxt = cxt.subschema({ schema: sch, dataTyp...
1,285,911
260a8232348dd15f82e5456c232ae692
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-30/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
code::callRootRef
function
function callRootRef() { if (env === root) return callRef(cxt, validateName, env, env.$async); const rootName = gen.scopeValue("root", { ref: root }); return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async); }
1,285,912
357011c3562735875544287783d90422
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-119/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
callRef
function
function callRef(cxt, v, sch, $async) { const { gen, it } = cxt; const { allErrors, schemaEnv: env, opts } = it; const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil; if ($async) callAsyncRef(); else callSyncRef(); function callAsyncRef() { if (!env.$as...
1,285,913
0943b5f4a92f05709386d96cbbd2d954
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-81/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
callRef::callAsyncRef
function
function callAsyncRef() { if (!env.$async) throw new Error("async schema referenced by sync schema"); const valid = gen.let("valid"); gen.try(() => { gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`); addEvaluatedFrom(v); // T...
1,285,914
6fdbfaec1ebae7fd0de230bc7445f4df
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-84/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
callRef::callSyncRef
function
function callSyncRef() { cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v)); }
1,285,915
13b38658d8ad95817994844bfe0d8775
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=85-89/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
callRef::addErrorsFrom
function
function addErrorsFrom(source) { const errs = (0, codegen_1._) `${source}.errors`; gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged gen.assign(names_1.default.errors, (0, codegen_1._...
1,285,916
0911c59df4b88c2ea7d79f0134c8aa89
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-48/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
code
function
code(cxt) { const { gen, schema: $ref, it } = cxt; const { baseId, schemaEnv: env, validateName, opts, self } = it; const { root } = env; if (($ref === "#" || $ref === "#/") && baseId === root.baseId) return callRootRef(); const schOrEnv = compile_1.resolveRef.call(se...
1,285,917
f91cf6f0fbe4cdeaeeff25c72c1811df
swh:1:cnt:bac1ae853fc0ae14da87693976bb3f205dd0df22;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-118/
78cb4d73b732a965fa6d1031a5e70e54a20bbe9a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/core/ref.js
callRef::addEvaluatedFrom
function
function addEvaluatedFrom(source) { var _a; if (!it.opts.unevaluated) return; const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated; // TODO refactor if (it.props !== true) { if...
1,285,918
bfc492cf28a17a9222b7895e5d2d4e50
swh:1:cnt:ab3669a42dabd3a7b9f449055dfcb7e097fb61f2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/
6fc38666e5e94c2d0cdb1e42435c5e56b4abe3e4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts
DiscriminatorError
type
type DiscriminatorError = DiscrErrorObj<DiscrError.Tag> | DiscrErrorObj<DiscrError.Mapping>;
1,285,919
2cc8bd7d03286801798cabb53de4671c
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-80/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::getMapping::hasRequired
function
function hasRequired({ required }) { return Array.isArray(required) && required.includes(tagName); }
1,285,920
645f618ecb98e8f15ab57021d7fd0c0c
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-52/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::applyTagSchema
function
function applyTagSchema(schemaProp) { const _valid = gen.name("valid"); const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid); cxt.mergeEvaluated(schCxt, codegen_1.Name); return _valid; }
1,285,921
9af64defa7c5f7cbeb2e454ff721506b
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-46/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::validateMapping
function
function validateMapping() { const mapping = getMapping(); gen.if(false); for (const tagValue in mapping) { gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); gen.assign(valid, applyTagSchema(mapping[tagValue])); } gen.else(...
1,285,922
a06bbeadca701b50ffeec41c6645a2fb
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-100/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::getMapping
function
function getMapping() { var _a; const oneOfMapping = {}; const topRequired = hasRequired(parentSchema); let tagRequired = true; for (let i = 0; i < oneOf.length; i++) { let sch = oneOf[i]; if ((sch === null || sch === void 0 ? v...
1,285,923
536a9434ecd734129c12af6adeebb886
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-93/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::getMapping::addMappings
function
function addMappings(sch, i) { if (sch.const) { addMapping(sch.const, i); } else if (sch.enum) { for (const tagValue of sch.enum) { addMapping(tagValue, i); } } ...
1,285,924
da016e5f43eff0902001afd14268e7a2
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-99/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code::getMapping::addMapping
function
function addMapping(tagValue, i) { if (typeof tagValue != "string" || tagValue in oneOfMapping) { throw new Error(`discriminator: "${tagName}" values must be unique strings`); } oneOfMapping[tagValue] = i; }
1,285,925
fe9a88010cc111357a072b928d1c06dc
swh:1:cnt:e113aed7015c2ab1170fd9b337ce36750269c79a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-101/
4c1112c41731b6efffdf03076611318efb719b71
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/index.js
code
function
code(cxt) { const { gen, data, schema, parentSchema, it } = cxt; const { oneOf } = parentSchema; if (!it.opts.discriminator) { throw new Error("discriminator: requires discriminator option"); } const tagName = schema.propertyName; if (typeof tagName != "string...
1,285,926
6306cc5002507379189dbfa281c07887
swh:1:cnt:8550f6d97d4218ee0165837b6a79f3e94432f066;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-5/
80355cad6549b1dd858c0c33515150a5876bcce3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts
DiscrError
type
enum DiscrError { Tag = "tag", Mapping = "mapping" }
1,285,927
2c84677f31ea68894c066f381b2bac6e
swh:1:cnt:8550f6d97d4218ee0165837b6a79f3e94432f066;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-10/
80355cad6549b1dd858c0c33515150a5876bcce3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts
DiscrErrorObj
type
type DiscrErrorObj<E extends DiscrError> = ErrorObject<"discriminator", { error: E; tag: string; tagValue: unknown; }, string>;
1,285,928
062bb50676b0d893fdbc69f1b0833687
swh:1:cnt:972dc35c4b053b850592ded106465c4e4901ce8a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-19/
3351bb31ad37275a2597b0ff9a0378e5fd885e86
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
dynamicAnchor
function
function dynamicAnchor(cxt, anchor) { const { gen, it } = cxt; it.schemaEnv.root.dynamicAnchors[anchor] = true; const v = (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`; const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt); gen.if...
1,285,929
958c69d11473625801c1a2453912c87f
swh:1:cnt:972dc35c4b053b850592ded106465c4e4901ce8a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-28/
3351bb31ad37275a2597b0ff9a0378e5fd885e86
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js
_getValidate
function
function _getValidate(cxt) { const { schemaEnv, schema, self } = cxt.it; const { root, baseId, localRefs, meta } = schemaEnv.root; const { schemaId } = self.opts; const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta }); compile_1.compileSchema.call(self, sch); re...
1,285,930
f758797ff76c033303e7726c0e83444e
swh:1:cnt:9f010a0df422b96b35d84db149aed28c126c3687;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-48/
72c8c153ac95ceed2851a26ed41c0cf6093864d7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
dynamicRef
function
function dynamicRef(cxt, ref) { const { gen, keyword, it } = cxt; if (ref[0] !== "#") throw new Error(`"${keyword}" only supports hash fragment reference`); const anchor = ref.slice(1); if (it.allErrors) { _dynamicRef(); } else { const valid = gen.let("valid", false); ...
1,285,931
d6e6fbbafd7a60017ad36b4b5e156778
swh:1:cnt:9f010a0df422b96b35d84db149aed28c126c3687;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-47/
72c8c153ac95ceed2851a26ed41c0cf6093864d7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
dynamicRef::_callRef
function
function _callRef(validate, valid) { return valid ? () => gen.block(() => { (0, ref_1.callRef)(cxt, validate); gen.let(valid, true); }) : () => (0, ref_1.callRef)(cxt, validate); }
1,285,932
f7cb8f021cfcbc81bcdc484572f1056c
swh:1:cnt:9f010a0df422b96b35d84db149aed28c126c3687;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-39/
72c8c153ac95ceed2851a26ed41c0cf6093864d7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js
dynamicRef::_dynamicRef
function
function _dynamicRef(valid) { // TODO the assumption here is that `recursiveRef: #` always points to the root // of the schema object, which is not correct, because there may be $id that // makes # point to it, and the target schema may not contain dynamic/recursiveAnchor. // Because of ...
1,285,933
8f3890ad3137555539ded29dc55d05a1
swh:1:cnt:9fd8323535f9f06d5373ade2c7bd8107568305b0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-13/
6ff3c34d568be88fd18c38e32942d432d5e4be0c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js
code
function
code(cxt) { if (cxt.schema) (0, dynamicAnchor_1.dynamicAnchor)(cxt, ""); else (0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored"); }
1,285,934
b0c52b88c5c8fbaac0e98855dc5b9407
swh:1:cnt:04dc98f64822264582fc4f5a2c5ac18f543e68ad;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-6/
f9e4925ae460c42123e567b4695d024e71304092
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.d.ts
FormatError
type
type FormatError = ErrorObject<"format", { format: string; }, string | { $data: string; }>;
1,285,935
b9fb3304f82614c702e20f90e3b1edac
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-88/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validateFormat
function
function validateFormat() { const formatDef = self.formats[schema]; if (!formatDef) { unknownFormat(); return; } if (formatDef === true) return; const [fmtType, format, fmtRef] = getFormat(formatDef); ...
1,285,936
b83f67119ca717d36682a13f24d3652a
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-38/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validate$DataFormat::unknownFmt
function
function unknownFmt() { if (opts.strictSchema === false) return codegen_1.nil; return (0, codegen_1._) `${schemaCode} && !${format}`; }
1,285,937
4fcb2705333263c36bae9d0ac4a1154c
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-45/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validate$DataFormat::invalidFmt
function
function invalidFmt() { const callFormat = schemaEnv.$async ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._) `${format}(${data})`; const validData = (0, codegen_1._) `(typeof ${format} == "func...
1,285,938
a37da4acef9ce4febcc77b4cb49886aa
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-46/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validate$DataFormat
function
function validate$DataFormat() { const fmts = gen.scopeValue("formats", { ref: self.formats, code: opts.code.formats, }); const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`); const fType = gen.let("fType"); ...
1,285,939
2d9632e0b3b73009a6c6007cbb96c62d
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-67/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validateFormat::unknownFormat
function
function unknownFormat() { if (opts.strictSchema === false) { self.logger.warn(unknownMsg()); return; } throw new Error(unknownMsg()); function unknownMsg() { return `unknown format "${schema}" ig...
1,285,940
683446632d138a75ea748a9fcfda732a
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-66/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validateFormat::unknownFormat::unknownMsg
function
function unknownMsg() { return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; }
1,285,941
27875d513c45d806448d465b09b36132
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-79/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validateFormat::getFormat
function
function getFormat(fmtDef) { const code = fmtDef instanceof RegExp ? (0, codegen_1.regexpCode)(fmtDef) : opts.code.formats ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` : undefined; ...
1,285,942
1ae5482892083926ac90fbbff656334e
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-87/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code::validateFormat::validCondition
function
function validCondition() { if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) { if (!schemaEnv.$async) throw new Error("async format in sync schema"); return (0, codegen_1._) `await ${fmtRef}(${data})`; ...
1,285,943
6fe429b9e566fc651ac4c40b53e13db7
swh:1:cnt:aa667c1ef13ead4b14f523464fed67cf6f2eb04e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-89/
fc9606a1a4ef57455c85438d08e58acf2dfa651c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/format/format.js
code
function
code(cxt, ruleType) { const { gen, data, $data, schema, schemaCode, it } = cxt; const { opts, errSchemaPath, schemaEnv, self } = it; if (!opts.validateFormats) return; if ($data) validate$DataFormat(); else validateFormat(); function va...
1,285,944
e7bcc9e81b480e0a4a11ee0c9c9827d1
swh:1:cnt:85e16df6a2d6a1f0cb02d4d1f5e35c14ef617255;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-4/
6ea816dec18c98de587c9c911808dcb48e7c9c70
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts
JTDDiscriminatorError
type
type JTDDiscriminatorError = _JTDTypeError<"discriminator", "object", string> | DiscrErrorObj<DiscrError.Tag> | DiscrErrorObj<DiscrError.Mapping>;
1,285,945
881f88780fe99d2ecd8a18ed01ec04e1
swh:1:cnt:e7074d2794c19cd19ed6271243d6f7d32013be4a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-68/
21ad29fd672351f8f79a08402a0174cdf326b657
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/discriminator.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema, parentSchema } = cxt; const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); gen.if(cond); validateDiscriminator(); gen.elseIf((0, codegen_1.not)(valid)); cxt.error(); ...
1,285,946
8ddbab959f10992571acc2088b3e33d3
swh:1:cnt:e7074d2794c19cd19ed6271243d6f7d32013be4a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-67/
21ad29fd672351f8f79a08402a0174cdf326b657
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/discriminator.js
code::applyTagSchema
function
function applyTagSchema(schemaProp) { const _valid = gen.name("valid"); cxt.subschema({ keyword: "mapping", schemaProp, jtdDiscriminator: schema, }, _valid); return _valid; }
1,285,947
397d02a4b610bac13bc374113a091f31
swh:1:cnt:e7074d2794c19cd19ed6271243d6f7d32013be4a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-48/
21ad29fd672351f8f79a08402a0174cdf326b657
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/discriminator.js
code::validateDiscriminator
function
function validateDiscriminator() { const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(schema)}`); gen.if((0, codegen_1._) `${tag} === undefined`); cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }); gen.elseIf((0, codegen_1._) `t...
1,285,948
15b17235a202dff911d1ceb47c80817b
swh:1:cnt:e7074d2794c19cd19ed6271243d6f7d32013be4a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-58/
21ad29fd672351f8f79a08402a0174cdf326b657
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/discriminator.js
code::validateMapping
function
function validateMapping(tag) { gen.if(false); for (const tagValue in parentSchema.mapping) { gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); gen.assign(valid, applyTagSchema(tagValue)); } gen.else(); cxt.error(false, { d...
1,285,949
892671f5e8281885c2867fbc92692fe2
swh:1:cnt:82c942c35af242c9eeab8f50635cda9d52cd4c42;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/
75ef16758bdd1aed18a0554159af755d53d0abfc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts
JTDElementsError
type
type JTDElementsError = _JTDTypeError<"elements", "array", SchemaObject>;
1,285,950
9fc0a117ebe49a1b675aca8a74ba0fe7
swh:1:cnt:9b8fb548a4fe23c058bf517459dfef9a872b59b5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-21/
1dec3dc3ac4fb801948b0f55550ed1d9a031598a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/elements.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema, it } = cxt; if ((0, util_1.alwaysValidSchema)(it, schema)) return; const [valid] = (0, nullable_1.checkNullable)(cxt); gen.if((0, codegen_1.not)(valid), () => gen.if((0, codegen_1._) `Array.isA...
1,285,951
0fce0f6c1b274b2a0f3806f29e85d6e0
swh:1:cnt:8ba1790d7321b7bf22ebe4fc12b3508cadfddc71;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
e9716b85313e44fb95e2d43af91f79d39f7a451f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts
JTDEnumError
type
type JTDEnumError = ErrorObject<"enum", { allowedValues: string[]; }, string[]>;
1,285,952
00d01cc9f7602bb34eca06fb74bb2f3d
swh:1:cnt:78b01ee3762fb487e500c060be12c73dcf3f122c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-40/
46411ab9e996567bfd4040ee6bcbe9cdb18f9ccf
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/enum.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema, schemaValue, parentSchema, it } = cxt; if (schema.length === 0) throw new Error("enum must have non-empty array"); if (schema.length !== new Set(schema).size) throw new Error("enum items mu...
1,285,953
d8ba786c7847de33b701f1545b23c6f7
swh:1:cnt:78b01ee3762fb487e500c060be12c73dcf3f122c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-39/
46411ab9e996567bfd4040ee6bcbe9cdb18f9ccf
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/enum.js
code::loopEnum
function
function loopEnum() { gen.forOf("v", schemaValue, (v) => gen.if((0, codegen_1._) `${valid} = ${data} === ${v}`, () => gen.break())); }
1,285,954
2b34af2820547d83ab0f44bf765afb0e
swh:1:cnt:d334ff54cb0ea2cebabff39ef146cb62d2ea099f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-6/
368966150505da5fce3a2a9d89eadaf689ff50c9
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/error.d.ts
_JTDTypeError
type
type _JTDTypeError<K extends string, T extends string, S> = ErrorObject<K, { type: T; nullable: boolean; }, S>;
1,285,955
5ba80aa2de6fa7530753b749d432ddb3
swh:1:cnt:1a3920a7e5a02e24ceb98aa8f06fd0be15162758;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-10/
3a8be9d4972a0ebecdd30a8fc2330a2db70000bc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/error.js
typeError
function
function typeError(t) { return { message: (cxt) => typeErrorMessage(cxt, t), params: (cxt) => typeErrorParams(cxt, t), }; }
1,285,956
cb9ccab678b3c97dd3521098353d993a
swh:1:cnt:1a3920a7e5a02e24ceb98aa8f06fd0be15162758;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-14/
3a8be9d4972a0ebecdd30a8fc2330a2db70000bc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/error.js
typeErrorMessage
function
function typeErrorMessage({ parentSchema }, t) { return (parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable) ? `must be ${t} or null` : `must be ${t}`; }
1,285,957
8ffdc529675d20fb777d688085f84c78
swh:1:cnt:1a3920a7e5a02e24ceb98aa8f06fd0be15162758;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-18/
3a8be9d4972a0ebecdd30a8fc2330a2db70000bc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/error.js
typeErrorParams
function
function typeErrorParams({ parentSchema }, t) { return (0, codegen_1._) `{type: ${t}, nullable: ${!!(parentSchema === null || parentSchema === void 0 ? void 0 : parentSchema.nullable)}}`; }
1,285,958
059ce463b8d7079e9c468954427f9dbc
swh:1:cnt:c56246b78281d9ef8e6a17a8a0d5bab317d1bfd0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-10/
24fa3beab70fff5d75bc3e14de8393e3cbf7f59d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/index.d.ts
JTDErrorObject
type
type JTDErrorObject = JTDTypeError | JTDEnumError | JTDElementsError | JTDPropertiesError | JTDDiscriminatorError | JTDValuesError;
1,285,959
bbb974c4ecda2ff2072de7643f9bf338
swh:1:cnt:eeb3c91cda634c31c284dd8ef945a193ad864b05;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-16/
6653aba280faed722d0f04497b408636fbfbd19f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/metadata.js
code
function
code(cxt) { checkMetadata(cxt); const { gen, schema, it } = cxt; if ((0, util_1.alwaysValidSchema)(it, schema)) return; const valid = gen.name("valid"); cxt.subschema({ keyword: "metadata", jtdMetadata: true }, valid); cxt.ok(valid); }
1,285,960
476268ab30b1c66918ec4c9e21eb1998
swh:1:cnt:eeb3c91cda634c31c284dd8ef945a193ad864b05;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-22/
6653aba280faed722d0f04497b408636fbfbd19f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/metadata.js
checkMetadata
function
function checkMetadata({ it, keyword }, metadata) { if (it.jtdMetadata !== metadata) { throw new Error(`JTD: "${keyword}" cannot be used in this schema location`); } }
1,285,961
d2a3c4eb639bdbad6239322c55c220ee
swh:1:cnt:8c92d2cde3da68273f89a6160bf5aed01363e628;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-15/
e73452ffbec3efce28371f85519ac55e867aba2e
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/nullable.js
checkNullable
function
function checkNullable({ gen, data, parentSchema }, cond = codegen_1.nil) { const valid = gen.name("valid"); if (parentSchema.nullable) { gen.let(valid, (0, codegen_1._) `${data} === null`); cond = (0, codegen_1.not)(valid); } else { gen.let(valid, false); } return [valid...
1,285,962
b32568816bfb983d437ed4caf97ec08c
swh:1:cnt:8c92d2cde3da68273f89a6160bf5aed01363e628;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-20/
e73452ffbec3efce28371f85519ac55e867aba2e
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/nullable.js
checkNullableObject
function
function checkNullableObject(cxt, cond) { const [valid, cond_] = checkNullable(cxt, cond); return [valid, (0, codegen_1._) `${cond_} && typeof ${cxt.data} == "object" && !Array.isArray(${cxt.data})`]; }
1,285,963
5aee71f148ae190555ee6dee952022ce
swh:1:cnt:fe272758f56556501c82f61e8194ab7392aa7e0e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/
c7013841be0b2fa2c234edc16f655aab4257e91d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js
code
function
code(cxt) { if (cxt.parentSchema.properties) return; (0, properties_1.validateProperties)(cxt); }
1,285,964
3d2915898ba3697ef75b7845501b6543
swh:1:cnt:54e3b347cb3aabae0c8e196801b8f837294dfb18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-7/
b2f777883c5aa14c0d40068ff09919c89cfb00ba
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts
PropError
type
enum PropError { Additional = "additional", Missing = "missing" }
1,285,965
5ccd257c139ba92ac521fb2d9917a8f6
swh:1:cnt:54e3b347cb3aabae0c8e196801b8f837294dfb18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-11/
b2f777883c5aa14c0d40068ff09919c89cfb00ba
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts
PropSchema
type
type PropSchema = { [P in string]?: SchemaObject; };
1,285,966
c964a45bff8836c6ec71f14a1b69b463
swh:1:cnt:54e3b347cb3aabae0c8e196801b8f837294dfb18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-18/
b2f777883c5aa14c0d40068ff09919c89cfb00ba
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts
JTDPropertiesError
type
type JTDPropertiesError = _JTDTypeError<PropKeyword, "object", PropSchema> | ErrorObject<PropKeyword, { error: PropError.Additional; additionalProperty: string; }, PropSchema> | ErrorObject<PropKeyword, { error: PropError.Missing; missingProperty: string; }, PropSchema>;
1,285,967
c6bdd59644b7437fb03b8d67fbea04fb
swh:1:cnt:54e3b347cb3aabae0c8e196801b8f837294dfb18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-8/
b2f777883c5aa14c0d40068ff09919c89cfb00ba
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts
PropKeyword
type
type PropKeyword = "properties" | "optionalProperties";
1,285,968
081ce6ca0a7c4ca9f0109881e6217952
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-146/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties
function
// const error: KeywordErrorDefinition = { // message: "should NOT have additional properties", // params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`, // } function validateProperties(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, parentSchema, it } = cxt; const {...
1,285,969
3096ee2c3f565293c02a7347cd239bbe
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-102/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::validateProps
function
function validateProps(props, keyword, required) { const _valid = gen.var("valid"); for (const prop of props) { gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => applyPropertySchema(prop, keyword, _valid), () => missingProperty(prop)); cxt.ok(_valid...
1,285,970
be3d9dc380e068342f48d461a1f03c8b
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-77/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::commonProperties
function
function commonProperties() { const props = parentSchema.properties; const optProps = parentSchema.optionalProperties; if (!(props && optProps)) return false; for (const p in props) { if (Object.prototype.hasOwnProperty.call(optProps, p)) return tr...
1,285,971
fdd931c344b4a533a3edbd6ecd89845f
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-86/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::schemaProperties
function
function schemaProperties(keyword) { const schema = parentSchema[keyword]; const allPs = schema ? (0, code_1.allSchemaProperties)(schema) : []; if (it.jtdDiscriminator && allPs.some((p) => p === it.jtdDiscriminator)) { throw new Error(`JTD: discriminator tag used in ${keyword}`); ...
1,285,972
b7b2d3ba2a0a8bf1470a15913f7c26d4
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-101/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::validateProps::missingProperty
function
function missingProperty(prop) { if (required) { gen.assign(_valid, false); cxt.error(false, { propError: PropError.Missing, missingProperty: prop }, { schemaPath: prop }); } else { gen.assign(_valid, true); } }
1,285,973
b8ff06e35eee4d5504fa6c9b8d2c2a6b
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=103-109/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::applyPropertySchema
function
function applyPropertySchema(prop, keyword, _valid) { cxt.subschema({ keyword, schemaProp: prop, dataProp: prop, }, _valid); }
1,285,974
866b7ed18b5dba9a028a3c41015f6222
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-126/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::validateAdditional
function
function validateAdditional() { gen.forIn("key", data, (key) => { const addProp = isAdditional(key, allProps, "properties", it.jtdDiscriminator); const addOptProp = isAdditional(key, allOptProps, "optionalProperties"); const extra = addProp === true ? addOptProp : addOptProp ...
1,285,975
d2ef391f369dd1a36c715f2f3a199cbb
swh:1:cnt:f4e9de4587aac1b88f944dc1aa44506a3db63cdc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-145/
f9c3e7e804e7e9f50dc090810073eb5ede896223
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/properties.js
validateProperties::isAdditional
function
function isAdditional(key, props, keyword, jtdDiscriminator) { let additional; if (props.length > 8) { // TODO maybe an option instead of hard-coded 8? const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema[keyword], keyword); additional = (0, codegen_1.not)(...
1,285,976
0a0d1f9cfb7fcffcba9302ae375c6998
swh:1:cnt:b7c6b02d758f7ce25c907c33b98f83960202b0b1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-44/
130b8541620618651c3cf6fea2891aadccf288f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/ref.js
code::callValidate
function
function callValidate(schema) { const sch = compile_1.compileSchema.call(it.self, new compile_1.SchemaEnv({ schema, root, schemaPath: `/definitions/${ref}` })); const v = (0, ref_1.getValidate)(cxt, sch); const errsCount = gen.const("_errs", names_1.default.errors); (0, r...
1,285,977
8bd1413d7d7eed6a081aa220088f4937
swh:1:cnt:b7c6b02d758f7ce25c907c33b98f83960202b0b1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-64/
130b8541620618651c3cf6fea2891aadccf288f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/ref.js
hasRef
function
function hasRef(schema) { for (const key in schema) { let sch; if (key === "ref" || (typeof (sch = schema[key]) == "object" && hasRef(sch))) return true; } return false; }
1,285,978
b6e116c0f66687159ded7ed6ed461da9
swh:1:cnt:b7c6b02d758f7ce25c907c33b98f83960202b0b1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=45-54/
130b8541620618651c3cf6fea2891aadccf288f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/ref.js
code::inlineRefSchema
function
function inlineRefSchema(schema) { const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: (0, codegen_1.stringify)(schema) } : { ref: schema }); cxt.subschema({ schema, dataTypes: [], schemaPath: codegen_1.nil,...
1,285,979
b234af04ba7aa6009bc9237b707bc069
swh:1:cnt:b7c6b02d758f7ce25c907c33b98f83960202b0b1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-37/
130b8541620618651c3cf6fea2891aadccf288f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/ref.js
code::validateJtdRef
function
function validateJtdRef() { var _a; const refSchema = (_a = root.schema.definitions) === null || _a === void 0 ? void 0 : _a[ref]; if (!refSchema) { throw new ref_error_1.default(it.opts.uriResolver, "", ref, `No definition ${ref}`); } if (hasR...
1,285,980
db930e06ccf259cac524529bfecbafa7
swh:1:cnt:b7c6b02d758f7ce25c907c33b98f83960202b0b1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-55/
130b8541620618651c3cf6fea2891aadccf288f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/ref.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema: ref, parentSchema, it } = cxt; const { schemaEnv: { root }, } = it; const valid = gen.name("valid"); if (parentSchema.nullable) { gen.var(valid, (0, codegen_1._) `${data} === null`); ...
1,285,981
c907fecff9dc7ef2738e0578cde6b179
swh:1:cnt:a115c7dade22ea1b99005f77bce7ec7f7789becf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/
7ebaeb05b13562a6b5a1efd5bad6c8b9b9537a20
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/type.d.ts
JTDTypeError
type
type JTDTypeError = _JTDTypeError<"type", JTDType, JTDType>;
1,285,982
4029219b3d1806d545ebd80512e7bd25
swh:1:cnt:a115c7dade22ea1b99005f77bce7ec7f7789becf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-4/
7ebaeb05b13562a6b5a1efd5bad6c8b9b9537a20
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/type.d.ts
IntType
type
type IntType = "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32";
1,285,983
9bad443f4a192bf1dc397ef6f9a92d2c
swh:1:cnt:a115c7dade22ea1b99005f77bce7ec7f7789becf;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-8/
7ebaeb05b13562a6b5a1efd5bad6c8b9b9537a20
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/type.d.ts
JTDType
type
type JTDType = "boolean" | "string" | "timestamp" | "float32" | "float64" | IntType;
1,285,984
f6d6ef38edc86ef6a578d2f9a873669f
swh:1:cnt:17a0b510792f9429beb3a2bca7d9c77835e1baa1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-30/
64b3b60f3909937f1baf72380dcaea8602922258
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/type.js
timestampCode
function
function timestampCode(cxt) { const { gen, data, it } = cxt; const { timestamp, allowDate } = it.opts; if (timestamp === "date") return (0, codegen_1._) `${data} instanceof Date `; const vts = (0, util_1.useFunc)(gen, timestamp_1.default); const allowDateArg = allowDate ? (0, codegen_1._) `,...
1,285,985
4bfb5880165827dd2bcf1f98ac9e7299
swh:1:cnt:17a0b510792f9429beb3a2bca7d9c77835e1baa1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-66/
64b3b60f3909937f1baf72380dcaea8602922258
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/type.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { data, schema, parentSchema, it } = cxt; let cond; switch (schema) { case "boolean": case "string": cond = (0, codegen_1._) `typeof ${data} == ${schema}`; break; cas...
1,285,986
65b7bcf03fdcdd7bc755c758e100ca9e
swh:1:cnt:1eaa884a53dcf5c52d2d2892874f599407757c02;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/
89df79abb72d90b0193b848f73008708c20aabc5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/values.d.ts
JTDValuesError
type
type JTDValuesError = _JTDTypeError<"values", "object", SchemaObject>;
1,285,987
799f7a4445314d7c11e5970e42adeb0b
swh:1:cnt:3c2c95f55d9aff34de651ccd2669167feb91b729;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-48/
b72078e8388fd7614e8a9482221fff72c2f40644
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/values.js
code
function
code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema, it } = cxt; const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); if ((0, util_1.alwaysValidSchema)(it, schema)) { gen.if((0, codegen_1.not)((0, codegen_1.or)(cond, valid)), () => cxt.e...
1,285,988
382139161a7344d4e41e0bcb7d94784c
swh:1:cnt:3c2c95f55d9aff34de651ccd2669167feb91b729;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-47/
b72078e8388fd7614e8a9482221fff72c2f40644
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/values.js
code::validateMap
function
function validateMap() { const _valid = gen.name("valid"); if (it.allErrors) { const validMap = gen.let("valid", true); validateValues(() => gen.assign(validMap, false)); return validMap; } gen.var(_valid, true); ...
1,285,989
a142e7d8dcd2bc35334bdbc6000ef934
swh:1:cnt:3c2c95f55d9aff34de651ccd2669167feb91b729;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-46/
b72078e8388fd7614e8a9482221fff72c2f40644
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/jtd/values.js
code::validateMap::validateValues
function
function validateValues(notValid) { gen.forIn("key", data, (key) => { cxt.subschema({ keyword: "values", dataProp: key, dataPropType: util_1.Type.Str, }, _valid); gen.if((0...
1,285,990
f50b63efe167b8fb54f44fa9d51b4bcd
swh:1:cnt:06f023926664cefbeaa87114f2c4dffb840cb3e3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
193c81ae2ed9bd33540db1443ad8e2e9ddaec4fe
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts
UnevaluatedItemsError
type
type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", { limit: number; }, AnySchema>;
1,285,991
01a7b590f1979ced2e8ea43223f0478b
swh:1:cnt:0a0cd3aa4fdef840586d786a76c2af32d3524115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-37/
5a966837d56f64e0c413de6b1d8de9c860d5c986
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
code
function
code(cxt) { const { gen, schema, data, it } = cxt; const items = it.items || 0; if (items === true) return; const len = gen.const("len", (0, codegen_1._) `${data}.length`); if (schema === false) { cxt.setParams({ len: items }); cxt.fail((0, cod...
1,285,992
fe9f28a742b0e4998ed6b3cc707a308f
swh:1:cnt:0a0cd3aa4fdef840586d786a76c2af32d3524115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-36/
5a966837d56f64e0c413de6b1d8de9c860d5c986
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js
code::validateItems
function
function validateItems(valid, from) { gen.forRange("i", from, len, (i) => { cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid); if (!it.allErrors) gen.if((0, codegen_1.not)(valid), () => gen.break()); ...
1,285,993
8980a6371dd895878912e74311057600
swh:1:cnt:ba63f62e851e0ecdbd1fc698b36eb97ec08bef4c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
db5f8a06bd0376de356beecdde9c195641e6c6f6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts
UnevaluatedPropertiesError
type
type UnevaluatedPropertiesError = ErrorObject<"unevaluatedProperties", { unevaluatedProperty: string; }, AnySchema>;
1,285,994
e4571784d54c12967f7ebb87abfccae8
swh:1:cnt:ad298499f28a97e1e79da81d6de6049aebd58e87;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-62/
56624bd36377f4d06b9c54e69ce3c99c2e927b87
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
code
function
code(cxt) { const { gen, schema, data, errsCount, it } = cxt; /* istanbul ignore if */ if (!errsCount) throw new Error("ajv implementation error"); const { allErrors, props } = it; if (props instanceof codegen_1.Name) { gen.if((0, codegen_1._) `${props} !=...
1,285,995
785bfc729dbe3b0d7da55742b1ada86b
swh:1:cnt:ad298499f28a97e1e79da81d6de6049aebd58e87;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-53/
56624bd36377f4d06b9c54e69ce3c99c2e927b87
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
code::unevaluatedDynamic
function
function unevaluatedDynamic(evaluatedProps, key) { return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`; }
1,285,996
9fcfd9ac53acf708e1a6d0dfac07578b
swh:1:cnt:ad298499f28a97e1e79da81d6de6049aebd58e87;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-50/
56624bd36377f4d06b9c54e69ce3c99c2e927b87
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
code::unevaluatedPropCode
function
function unevaluatedPropCode(key) { if (schema === false) { cxt.setParams({ unevaluatedProperty: key }); cxt.error(); if (!allErrors) gen.break(); return; } if (!(0, util_1.alwaysValidSchema)(it, sche...
1,285,997
2e02fc9eafdb1309f238019d52b6d172
swh:1:cnt:ad298499f28a97e1e79da81d6de6049aebd58e87;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-61/
56624bd36377f4d06b9c54e69ce3c99c2e927b87
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
code::unevaluatedStatic
function
function unevaluatedStatic(evaluatedProps, key) { const ps = []; for (const p in evaluatedProps) { if (evaluatedProps[p] === true) ps.push((0, codegen_1._) `${key} !== ${p}`); } return (0, codegen_1.and)(...ps); }
1,285,998
2f33d773375d5a0a9c618b1aa641f959
swh:1:cnt:af91a900705512c8264d92860e19112932bc5d43;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
42286619c7c3f0c59cb7a1e0023570188f20330b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/const.d.ts
ConstError
type
type ConstError = ErrorObject<"const", { allowedValue: any; }>;
1,285,999
68ab3b06a848a6196ffd536311f55ca7
swh:1:cnt:9564496a658fc6a46552d174984446d8c79fc1db;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-22/
419f775ffaa681c7fa72e00108b15ba8c03f8db7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/vocabularies/validation/const.js
code
function
code(cxt) { const { gen, data, $data, schemaCode, schema } = cxt; if ($data || (schema && typeof schema == "object")) { cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`); } else { cxt.fail((0, codegen_1._) `${s...