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,600
fac257e8742cb83bd968a55adac64aed
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=182-211/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
parseSchemaProperties
function
function parseSchemaProperties(cxt, discriminator) { const { gen, schema, data } = cxt; const { properties, optionalProperties, additionalProperties } = schema; parseItems(cxt, "}", () => { const key = gen.let("key"); parseString({ ...cxt, data: key }); parseToken(cxt, ":"); ...
1,285,601
42b0b6f5a47b70700def314e657029fa
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=212-218/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
parseDefinedProperty
function
function parseDefinedProperty(cxt, key, schemas = {}) { const { gen } = cxt; for (const prop in schemas) { gen.elseIf((0, codegen_1._) `${key} === ${prop}`); parsePropertyValue(cxt, key, schemas[prop]); } }
1,285,602
ab69b21d96fec7ba3d6e7930022d931f
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-181/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
parseProperties
function
function parseProperties(cxt) { const { gen, data } = cxt; parseToken(cxt, "{"); gen.assign(data, (0, codegen_1._) `{}`); parseSchemaProperties(cxt); }
1,285,603
dcb62b7d0f2fe324c0bee6bd41013242
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=262-265/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
parseString
function
function parseString(cxt) { parseToken(cxt, '"'); parseWith(cxt, parseJson_1.parseJsonString); }
1,285,604
a0c834bda333913d5a0be96773cf319d
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=316-321/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
partialParse
function
function partialParse(cxt, parseFunc, args) { const { gen, data } = cxt; gen.assign(data, (0, codegen_1._) `${parseFunc}(${names_1.default.json}, ${names_1.default.jsonPos}${args ? (0, codegen_1._) `, ${args}` : codegen_1.nil})`); gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${parseFunc}.position`)...
1,285,605
4960c882e89f7ffd4e3ffbe89e8b16f2
swh:1:cnt:8fc94fd0eae5349e3513ce79e3f2ba1a3ffbdc6a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=342-344/
7ad955b431cf9b9e2367b6087e5e48ba18b931f4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/parse.js
jsonSyntaxError
function
function jsonSyntaxError(cxt) { parsingError(cxt, (0, codegen_1._) `"unexpected token " + ${names_1.default.json}[${names_1.default.jsonPos}]`); }
1,285,606
2131e337619f502122865caf4abe16ce
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=109-123/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeDiscriminator
function
function serializeDiscriminator(cxt) { const { gen, schema, data } = cxt; const { discriminator } = schema; gen.add(names_1.default.json, (0, codegen_1.str) `{${JSON.stringify(discriminator)}:`); const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(discriminator)}`); se...
1,285,607
4bcf236b9b603a3b3f0fa1bb99f28be0
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-167/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties::allProperties
function
function allProperties(ps) { if (discriminator) ps.push(discriminator); if (new Set(ps).size !== ps.length) { throw new Error("JTD: properties/optionalProperties/disciminator overlap"); } return ps; }
1,285,608
8d8a75845a1e668465d42b8653a9891b
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=208-219/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeRef
function
function serializeRef(cxt) { const { gen, self, data, definitions, schema, schemaEnv } = cxt; const { ref } = schema; const refSchema = definitions[ref]; if (!refSchema) throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`); if (!(0, ref_1.hasRef)(refSchema)) ...
1,285,609
35533415a6776d0647a1ac6caf3731f6
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=225-227/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeEmpty
function
function serializeEmpty({ gen, data }) { gen.add(names_1.default.json, (0, codegen_1._) `JSON.stringify(${data})`); }
1,285,610
ee0b49344d15556109f75f48595075f6
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-93/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeElements
function
function serializeElements(cxt) { const { gen, schema, data } = cxt; gen.add(names_1.default.json, (0, codegen_1.str) `[`); const first = gen.let("first", true); gen.forOf("el", data, (el) => { addComma(cxt, first); serializeCode({ ...cxt, schema: schema.elements, data: el }); }); ...
1,285,611
5cbba25765953541ebd5aa234947ed45
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-108/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeKeyValue
function
function serializeKeyValue(cxt, key, schema, first) { const { gen, data } = cxt; addComma(cxt, first); serializeString({ ...cxt, data: key }); gen.add(names_1.default.json, (0, codegen_1.str) `:`); const value = gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); se...
1,285,612
fc2152b693a9bbf6e202afb55c398931
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-129/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeProperties
function
function serializeProperties(cxt) { const { gen } = cxt; gen.add(names_1.default.json, (0, codegen_1.str) `{`); serializeSchemaProperties(cxt); gen.add(names_1.default.json, (0, codegen_1.str) `}`); }
1,285,613
1e5c223342d650ecd2919a972746e7cc
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-197/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeString
function
function serializeString({ gen, data }) { gen.add(names_1.default.json, (0, codegen_1._) `${(0, util_1.useFunc)(gen, quote_1.default)}(${data})`); }
1,285,614
b255ba8f1d96486d4dde2ca92fbeac2a
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=198-207/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeNumber
function
function serializeNumber({ gen, data, self }) { const condition = (0, codegen_1._) `${data} === Infinity || ${data} === -Infinity || ${data} !== ${data}`; if (self.opts.specialNumbers === undefined || self.opts.specialNumbers === "fast") { gen.add(names_1.default.json, (0, codegen_1._) `"" + ${data}`); ...
1,285,615
35915533c436d07cef9bba37684b6bb0
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=171-174/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties::serializeProperty
function
function serializeProperty(key, propSchema, value) { gen.add(names_1.default.json, (0, codegen_1.str) `${JSON.stringify(key)}:`); serializeCode({ ...cxt, schema: propSchema, data: value }); }
1,285,616
23840ebb8ad568d0ea2a6339803a6870
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=228-235/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
addComma
function
function addComma({ gen }, first) { if (first) { gen.if(first, () => gen.assign(first, false), () => gen.add(names_1.default.json, (0, codegen_1.str) `,`)); } else { gen.add(names_1.default.json, (0, codegen_1.str) `,`); } }
1,285,617
ffe925df60f81596a7fa0099c424b02a
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-77/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeCode
function
function serializeCode(cxt) { let form; for (const key of types_1.jtdForms) { if (key in cxt.schema) { form = key; break; } } serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty); }
1,285,618
5ff2de729efbddba3803866cde970611
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-178/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties
function
function serializeSchemaProperties(cxt, discriminator) { const { gen, schema, data } = cxt; const { properties, optionalProperties } = schema; const props = keys(properties); const optProps = keys(optionalProperties); const allProps = allProperties(props.concat(optProps)); let first = !discrimin...
1,285,619
18e0aef01802af236c59d8a0e4cececc
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=179-194/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeType
function
function serializeType(cxt) { const { gen, schema, data } = cxt; switch (schema.type) { case "boolean": gen.add(names_1.default.json, (0, codegen_1._) `${data} ? "true" : "false"`); break; case "string": serializeString(cxt); break; case "t...
1,285,620
b6cd723b63c22d3cf6c1847e9ddfca6e
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=220-224/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
getSerialize
function
function getSerialize(gen, sch) { return sch.serialize ? gen.scopeValue("serialize", { ref: sch.serialize }) : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.serialize`; }
1,285,621
a87e183eb41f9ab3d5bc7721e6e5def5
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-66/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
compileSerializer
function
function compileSerializer(sch, definitions) { const _sch = __1.getCompilingSchema.call(this, sch); if (_sch) return _sch; const { es5, lines } = this.opts.code; const { ownProperties } = this.opts; const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties }); const seria...
1,285,622
56fdd8c7aa54bd782ff30e138802c233
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-83/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeNullable
function
function serializeNullable(cxt, serializeForm) { const { gen, schema, data } = cxt; if (!schema.nullable) return serializeForm(cxt); gen.if((0, codegen_1._) `${data} === undefined || ${data} === null`, () => gen.add(names_1.default.json, (0, codegen_1._) `"null"`), () => serializeForm(cxt)); }
1,285,623
7fd2f0d3a532614562da1f2c2b2dd96a
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-100/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeValues
function
function serializeValues(cxt) { const { gen, schema, data } = cxt; gen.add(names_1.default.json, (0, codegen_1.str) `{`); const first = gen.let("first", true); gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first)); gen.add(names_1.default.json, (0, codegen_1.str) `}`); }
1,285,624
32ca90819030ddf95f296136a872b10c
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=157-159/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties::keys
function
function keys(ps) { return ps ? Object.keys(ps) : []; }
1,285,625
0fed79eaa2abfb373c187fa18a4aeb7e
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=175-177/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties::isAdditional
function
function isAdditional(key, ps) { return ps.length ? (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)) : true; }
1,285,626
2c5b2fdb8a120bee2df659514848ed13
swh:1:cnt:15be85ad8fdb1f91fb342858b25fe5a24c523075;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=168-170/
9c5f84de14b2438ecf8b1b84831651fdc616ab4d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/serialize.js
serializeSchemaProperties::keyValue
function
function keyValue(key) { return gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`); }
1,285,627
c6abae4e5da11f742f9b3c800af07a96
swh:1:cnt:678986f1bd93cdb821e40d3a0ffcb804df79e95b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=2-4/
432d9adc8e6b5a5cf6e29a8b3a174aef09d805b9
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/types.d.ts
SchemaObjectMap
type
type SchemaObjectMap = { [Ref in string]?: SchemaObject; };
1,285,628
6e5ea6792d8ae164e669dfae4136a4f5
swh:1:cnt:678986f1bd93cdb821e40d3a0ffcb804df79e95b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-6/
432d9adc8e6b5a5cf6e29a8b3a174aef09d805b9
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/jtd/types.d.ts
JTDForm
type
type JTDForm = (typeof jtdForms)[number];
1,285,629
f35e34d2bc3e5c1bfa7d1e193e0e9db3
swh:1:cnt:6187dbbeeebb3f9a1b3f74cba4b669685a6d49f0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-7/
8f4b63a8dd30100671b5bbc5683327cff3e0623b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/applicability.js
schemaHasRulesForType
function
function schemaHasRulesForType({ schema, self }, type) { const group = self.RULES.types[type]; return group && group !== true && shouldUseGroup(schema, group); }
1,285,630
2d134d5b9737b0c6710cd90ed4284523
swh:1:cnt:6187dbbeeebb3f9a1b3f74cba4b669685a6d49f0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-11/
8f4b63a8dd30100671b5bbc5683327cff3e0623b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/applicability.js
shouldUseGroup
function
function shouldUseGroup(schema, group) { return group.rules.some((rule) => shouldUseRule(schema, rule)); }
1,285,631
73ac967e8a27884b381bb0692649e5d1
swh:1:cnt:6187dbbeeebb3f9a1b3f74cba4b669685a6d49f0;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-17/
8f4b63a8dd30100671b5bbc5683327cff3e0623b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/applicability.js
shouldUseRule
function
function shouldUseRule(schema, rule) { var _a; return (schema[rule.keyword] !== undefined || ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema[kwd] !== undefined))); }
1,285,632
608c50c3a5742e5e5f7f934034bb59ff
swh:1:cnt:8eeb7b5eee3d137c0f85b4a9405bca8181e60f19;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-22/
8dad58e96d56d47d489360d6c5d3ab818fd75f7d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/boolSchema.js
topBoolOrEmptySchema
function
function topBoolOrEmptySchema(it) { const { gen, schema, validateName } = it; if (schema === false) { falseSchemaError(it, false); } else if (typeof schema == "object" && schema.$async === true) { gen.return(names_1.default.data); } else { gen.assign((0, codegen_1._) `${v...
1,285,633
acb009d39621af86e72641c8b3cedf43
swh:1:cnt:8eeb7b5eee3d137c0f85b4a9405bca8181e60f19;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-49/
8dad58e96d56d47d489360d6c5d3ab818fd75f7d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/boolSchema.js
falseSchemaError
function
function falseSchemaError(it, overrideAllErrors) { const { gen, data } = it; // TODO maybe some other interface should be used for non-keyword validation errors... const cxt = { gen, keyword: "false schema", data, schema: false, schemaCode: false, schemaValue:...
1,285,634
89283c16281678f29d2e7830369522b5
swh:1:cnt:8eeb7b5eee3d137c0f85b4a9405bca8181e60f19;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-33/
8dad58e96d56d47d489360d6c5d3ab818fd75f7d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/boolSchema.js
boolOrEmptySchema
function
function boolOrEmptySchema(it, valid) { const { gen, schema } = it; if (schema === false) { gen.var(valid, false); // TODO var falseSchemaError(it); } else { gen.var(valid, true); // TODO var } }
1,285,635
3b4b505402ce29d29fed92eb5d71989f
swh:1:cnt:91a6194aef45b42620afd5af492f3461e23f9613;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-8/
6bfec6ca3b39117a3e64437bb9691bd1cc8dada2
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.d.ts
DataType
type
enum DataType { Correct = 0, Wrong = 1 }
1,285,636
51a319e3d2333613caf3b498ad74ade6
swh:1:cnt:91a6194aef45b42620afd5af492f3461e23f9613;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-16/
6bfec6ca3b39117a3e64437bb9691bd1cc8dada2
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.d.ts
TypeError
type
type TypeError = ErrorObject<"type", { type: string; }>;
1,285,637
259656063ae1ee24d7b62587b0bb24de
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-29/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
getSchemaTypes
function
function getSchemaTypes(schema) { const types = getJSONTypes(schema.type); const hasNull = types.includes("null"); if (hasNull) { if (schema.nullable === false) throw new Error("type: null contradicts nullable: false"); } else { if (!types.length && schema.nullable !== un...
1,285,638
e1346b4ee12d69a3a83b6789c840c8c7
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-54/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
coerceAndCheckDataType
function
function coerceAndCheckDataType(it, types) { const { gen, data, opts } = it; const coerceTo = coerceToTypes(types, opts.coerceTypes); const checkTypes = types.length > 0 && !(coerceTo.length === 0 && types.length === 1 && (0, applicability_1.schemaHasRulesForType)(it, types[0])); if (checkTypes)...
1,285,639
f68cfb77b3fcad5c8a41ca199fe3991f
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-61/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
coerceToTypes
function
function coerceToTypes(types, coerceTypes) { return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === "array" && t === "array")) : []; }
1,285,640
26e4fdff975b4d059c5ce5712842a557
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-124/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
coerceData
function
function coerceData(it, types, coerceTo) { const { gen, data, opts } = it; const dataType = gen.let("dataType", (0, codegen_1._) `typeof ${data}`); const coerced = gen.let("coerced", (0, codegen_1._) `undefined`); if (opts.coerceTypes === "array") { gen.if((0, codegen_1._) `${dataType} == 'objec...
1,285,641
da5f86eda54f0ee9836a496ab293ea63
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-37/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
getJSONTypes
function
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents function getJSONTypes(ts) { const types = Array.isArray(ts) ? ts : ts ? [ts] : []; if (types.every(rules_1.isJSONType)) return types; throw new Error("type must be JSONType or JSONType[]: " + types.join(",")); }
1,285,642
a074f42129a3df97b746bc5734836bf7
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=85-123/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
coerceData::coerceSpecificType
function
function coerceSpecificType(t) { switch (t) { case "string": gen .elseIf((0, codegen_1._) `${dataType} == "number" || ${dataType} == "boolean"`) .assign(coerced, (0, codegen_1._) `"" + ${data}`) .elseIf((0, codegen_1._) `${d...
1,285,643
1f335a293bc44b633fe75f218c11e88c
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=125-128/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
assignParentData
function
function assignParentData({ gen, parentData, parentDataProperty }, expr) { // TODO use gen.property gen.if((0, codegen_1._) `${parentData} !== undefined`, () => gen.assign((0, codegen_1._) `${parentData}[${parentDataProperty}]`, expr)); }
1,285,644
e3a973b94c0122a7c8eb2c84cb7381a7
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-154/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
checkDataType
function
function checkDataType(dataType, data, strictNums, correct = DataType.Correct) { const EQ = correct === DataType.Correct ? codegen_1.operators.EQ : codegen_1.operators.NEQ; let cond; switch (dataType) { case "null": return (0, codegen_1._) `${data} ${EQ} null`; case "array": ...
1,285,645
f7522879a3ef28b8ae5493c7e2c84c05
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=151-153/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
checkDataType::numCond
function
function numCond(_cond = codegen_1.nil) { return (0, codegen_1.and)((0, codegen_1._) `typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._) `isFinite(${data})` : codegen_1.nil); }
1,285,646
9eee8c5639a6e9161eef18434aac3df2
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=156-177/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
checkDataTypes
function
function checkDataTypes(dataTypes, data, strictNums, correct) { if (dataTypes.length === 1) { return checkDataType(dataTypes[0], data, strictNums, correct); } let cond; const types = (0, util_1.toHash)(dataTypes); if (types.array && types.object) { const notObj = (0, codegen_1._) `ty...
1,285,647
6374a3e9262b91f2c543ee7b4c2822b4
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=183-186/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
reportTypeError
function
function reportTypeError(it) { const cxt = getTypeErrorContext(it); (0, errors_1.reportError)(cxt, typeError); }
1,285,648
88fd9e716cfc42c533fb2a5dca08be70
swh:1:cnt:6d03e0dc0ee4b009c075f037940dbe7b41004c90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=188-202/
c6ecb9617b155618f03ae5a7ce42b3b626ebbcc3
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/dataType.js
getTypeErrorContext
function
function getTypeErrorContext(it) { const { gen, data, schema } = it; const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type"); return { gen, keyword: "type", data, schema: schema.type, schemaCode, schemaValue: schemaCode, parentSchema: schema,...
1,285,649
5e7af35f8e363e988aca8b1d2221436b
swh:1:cnt:cd9c42d9aa4a49adda2c844d2e1f9386e626399e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-16/
2e08b58e9f0aaa947e93460d3a6c94dcb48da859
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/defaults.js
assignDefaults
function
function assignDefaults(it, ty) { const { properties, items } = it.schema; if (ty === "object" && properties) { for (const key in properties) { assignDefault(it, key, properties[key].default); } } else if (ty === "array" && Array.isArray(items)) { items.forEach((sch, ...
1,285,650
db92bd32ba009caec2d828cbcd0d140f
swh:1:cnt:cd9c42d9aa4a49adda2c844d2e1f9386e626399e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-34/
2e08b58e9f0aaa947e93460d3a6c94dcb48da859
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/defaults.js
assignDefault
function
function assignDefault(it, prop, defaultValue) { const { gen, compositeRule, data, opts } = it; if (defaultValue === undefined) return; const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`; if (compositeRule) { (0, util_1.checkStrictMode)(it, `default is ignore...
1,285,651
68d771f54ecea0944c3be1a9b7f83163
swh:1:cnt:6c533ed72eb333790a7809b58d6ace1081f96fd3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-41/
5871714ce3a0f47460561fc0b312cc4cdc10a3a2
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.d.ts
KeywordCxt
type
class KeywordCxt implements KeywordErrorCxt { readonly gen: CodeGen; readonly allErrors?: boolean; readonly keyword: string; readonly data: Name; readonly $data?: string | false; schema: any; readonly schemaValue: Code | number | boolean; readonly schemaCode: Code | number | boolean; ...
1,285,652
c052142fea50856bdf4143fbc5f601d9
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-26/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
validateFunctionCode
function
// schema compilation - generates validation function, subschemaCode (below) is used for subschemas function validateFunctionCode(it) { if (isSchemaObj(it)) { checkKeywords(it); if (schemaCxtHasRules(it)) { topSchemaObjCode(it); return; } } validateFunction(it...
1,285,653
9f43d19c8992040d5e48fd9f3bc9b533
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-39/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
validateFunction
function
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) { if (opts.code.es5) { gen.func(validateName, (0, codegen_1._) `${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => { gen.code((0, codegen_1._) `"use strict"; ${funcSourceUrl(schema, opts)}`)...
1,285,654
64302051e7715df583c96a6c0fa8371c
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-42/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
destructureValCxt
function
function destructureValCxt(opts) { return (0, codegen_1._) `{${names_1.default.instancePath}="", ${names_1.default.parentData}, ${names_1.default.parentDataProperty}, ${names_1.default.rootData}=${names_1.default.data}${opts.dynamicRef ? (0, codegen_1._) `, ${names_1.default.dynamicAnchors}={}` : codegen_1.nil}}={}...
1,285,655
fb3fe249aba6af6ad2a0c990345f0358
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-81/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
resetEvaluated
function
function resetEvaluated(it) { // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated const { gen, validateName } = it; it.evaluated = gen.const("evaluated", (0, codegen_1._) `${validateName}.evaluated`); gen.if((0, codegen_1._) `${it.evaluated}.dyna...
1,285,656
3423dcb9d8d42bd18818086f4218d388
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-85/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
funcSourceUrl
function
function funcSourceUrl(schema, opts) { const schId = typeof schema == "object" && schema[opts.schemaId]; return schId && (opts.code.source || opts.code.process) ? (0, codegen_1._) `/*# sourceURL=${schId} */` : codegen_1.nil; }
1,285,657
bc3cc8474cbd93e187a32d0664949566
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-104/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
schemaCxtHasRules
function
function schemaCxtHasRules({ schema, self }) { if (typeof schema == "boolean") return !schema; for (const key in schema) if (self.RULES.all[key]) return true; return false; }
1,285,658
3f780d58738587df774b10afdb9ada7e
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=108-118/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
subSchemaObjCode
function
function subSchemaObjCode(it, valid) { const { schema, gen, opts } = it; if (opts.$comment && schema.$comment) commentKeyword(it); updateContext(it); checkAsyncSchema(it); const errsCount = gen.const("_errs", names_1.default.errors); typeAndKeywords(it, errsCount); // TODO var ge...
1,285,659
2bbe9670de67710c4b069194f42f4a72
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=142-146/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
updateContext
function
function updateContext(it) { const schId = it.schema[it.opts.schemaId]; if (schId) it.baseId = (0, resolve_1.resolveUrl)(it.opts.uriResolver, it.baseId, schId); }
1,285,660
d1fe80ac52db96574da16aa1c27769ad
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=162-174/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
returnResults
function
function returnResults(it) { const { gen, schemaEnv, validateName, ValidationError, opts } = it; if (schemaEnv.$async) { // TODO assign unevaluated gen.if((0, codegen_1._) `${names_1.default.errors} === 0`, () => gen.return(names_1.default.data), () => gen.throw((0, codegen_1._) `new ${Validatio...
1,285,661
dbdaee3d658d471a75a4176f875c3fc0
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-122/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkKeywords
function
function checkKeywords(it) { (0, util_1.checkUnknownRules)(it); checkRefsAndKeywords(it); }
1,285,662
8e3cb739bcba6c9b75359292aac64273
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=175-180/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
assignEvaluated
function
function assignEvaluated({ gen, evaluated, props, items }) { if (props instanceof codegen_1.Name) gen.assign((0, codegen_1._) `${evaluated}.props`, props); if (items instanceof codegen_1.Name) gen.assign((0, codegen_1._) `${evaluated}.items`, items); }
1,285,663
99a160fed907504a7d8e42bbdf13a60b
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=360-368/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::error
function
error(append, errorParams, errorPaths) { if (errorParams) { this.setParams(errorParams); this._error(append, errorPaths); this.setParams({}); return; } this._error(append, errorPaths); }
1,285,664
3dc8718919b1ffa6cbb2666e44c69821
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=441-451/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::mergeEvaluated
function
mergeEvaluated(schemaCxt, toName) { const { it, gen } = this; if (!it.opts.unevaluated) return; if (it.props !== true && schemaCxt.props !== undefined) { it.props = util_1.mergeEvaluated.props(gen, schemaCxt.props, it.props, toName); } if (it.items !== tru...
1,285,665
7b1c210b2379bfd09c3b0fa81ce79054
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-59/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
destructureValCxtES5
function
function destructureValCxtES5(gen, opts) { gen.if(names_1.default.valCxt, () => { gen.var(names_1.default.instancePath, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.instancePath}`); gen.var(names_1.default.parentData, (0, codegen_1._) `${names_1.default.valCxt}.${names_1.default.par...
1,285,666
136a68edad14169b3031ca90c5572636
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-96/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
subschemaCode
function
// schema compilation - this function is used recursively to generate code for sub-schemas function subschemaCode(it, valid) { if (isSchemaObj(it)) { checkKeywords(it); if (schemaCxtHasRules(it)) { subSchemaObjCode(it, valid); return; } } (0, boolSchema_1.bool...
1,285,667
166704f9b019fd613b5831886a7620f9
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-135/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkRefsAndKeywords
function
function checkRefsAndKeywords(it) { const { schema, errSchemaPath, opts, self } = it; if (schema.$ref && opts.ignoreKeywordsWithRef && (0, util_1.schemaHasRulesButRef)(schema, self.RULES)) { self.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`); } }
1,285,668
deb24fe450f27e8a6f5b62df0c34a3ba
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=151-161/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
commentKeyword
function
function commentKeyword({ gen, schemaEnv, schema, errSchemaPath, opts }) { const msg = schema.$comment; if (opts.$comment === true) { gen.code((0, codegen_1._) `${names_1.default.self}.logger.log(${msg})`); } else if (typeof opts.$comment == "function") { const schemaPath = (0, codegen_1...
1,285,669
0115b1aeea04cb0acecab0127ac31f71
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=282-286/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
strictTypesError
function
function strictTypesError(it, msg) { const schemaPath = it.schemaEnv.baseId + it.errSchemaPath; msg += ` at "${schemaPath}" (strictTypes)`; (0, util_1.checkStrictMode)(it, msg, it.opts.strictTypes); }
1,285,670
3b85b72631e49a24a2c34c502988d9de
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=373-375/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::$dataError
function
$dataError() { (0, errors_1.reportError)(this, this.def.$dataError || errors_1.keyword$DataError); }
1,285,671
7d33ba4a5956a024e04e57f5bedba0f6
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=381-384/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::ok
function
ok(cond) { if (!this.allErrors) this.gen.if(cond); }
1,285,672
c1f3cf89df58cb71403b66d518ac0bb9
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=391-396/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::block$data
function
block$data(valid, codeBlock, $dataValid = codegen_1.nil) { this.gen.block(() => { this.check$data(valid, $dataValid); codeBlock(); }); }
1,285,673
054a7ea9e0a40c4a9ee5cf3b7905bf44
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=397-411/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::check$data
function
check$data(valid = codegen_1.nil, $dataValid = codegen_1.nil) { if (!this.$data) return; const { gen, schemaCode, schemaType, def } = this; gen.if((0, codegen_1.or)((0, codegen_1._) `${schemaCode} === undefined`, $dataValid)); if (valid !== codegen_1.nil) gen.assi...
1,285,674
71c4a26871a32cd3f5f01070fd02990c
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=235-248/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkContextTypes
function
function checkContextTypes(it, types) { if (!types.length) return; if (!it.dataTypes.length) { it.dataTypes = types; return; } types.forEach((t) => { if (!includesType(it.dataTypes, t)) { strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes...
1,285,675
c1e9720724393b5b4a3ab3e4ba0fca60
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=385-390/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::setParams
function
setParams(obj, assign) { if (assign) Object.assign(this.params, obj); else this.params = obj; }
1,285,676
8fdf906a162f53d1f635f672d5ba5ab9
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=452-458/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::mergeValidEvaluated
function
mergeValidEvaluated(schemaCxt, valid) { const { it, gen } = this; if (it.opts.unevaluated && (it.props !== true || it.items !== true)) { gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1.Name)); return true; } }
1,285,677
c318e27b0f118f6f9401f912ace7d488
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=318-336/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::failResult
function
failResult(condition, successAction, failAction) { this.gen.if(condition); if (failAction) failAction(); else this.error(); if (successAction) { this.gen.else(); successAction(); if (this.allErrors) this.gen.endI...
1,285,678
ba7fa44cef5e26b7c249f31dbad57ce7
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=412-432/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::invalid$data
function
invalid$data() { const { gen, schemaCode, schemaType, def, it } = this; return (0, codegen_1.or)(wrong$DataType(), invalid$DataSchema()); function wrong$DataType() { if (schemaType.length) { /* istanbul ignore if */ if (!(schemaCode instanceof codegen_...
1,285,679
280a4313c4f32e8ca67425619de8deec
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=272-281/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
narrowSchemaTypes
function
function narrowSchemaTypes(it, withTypes) { const ts = []; for (const t of it.dataTypes) { if (includesType(withTypes, t)) ts.push(t); else if (withTypes.includes("integer") && t === "number") ts.push("integer"); } it.dataTypes = ts; }
1,285,680
920abd1088a3e0d433299b18367864f9
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=105-107/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
isSchemaObj
function
function isSchemaObj(it) { return typeof it.schema != "boolean"; }
1,285,681
7f05840c6076498f9f425756f802572a
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=147-150/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkAsyncSchema
function
function checkAsyncSchema(it) { if (it.schema.$async && !it.schemaEnv.$async) throw new Error("async schema in sync schema"); }
1,285,682
9f442971d43e371bc59e9b471915d395
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=123-129/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
typeAndKeywords
function
function typeAndKeywords(it, errsCount) { if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount); const types = (0, dataType_1.getSchemaTypes)(it.schema); const checkedTypes = (0, dataType_1.coerceAndCheckDataType)(it, types); schemaKeywords(it, types, !checkedTypes, errsCount); }
1,285,683
40287df34f454249126e7a8b3637517f
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-213/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
schemaKeywords::groupKeywords
function
function groupKeywords(group) { if (!(0, applicability_1.shouldUseGroup)(schema, group)) return; if (group.type) { gen.if((0, dataType_2.checkDataType)(group.type, data, opts.strictNumbers)); iterateKeywords(it, group); if (types.length === 1 && types[0] =...
1,285,684
8b98088a9b55fecbac8b1f8386777f22
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-234/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkStrictTypes
function
function checkStrictTypes(it, types) { if (it.schemaEnv.meta || !it.opts.strictTypes) return; checkContextTypes(it, types); if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types); checkKeywordTypes(it, it.dataTypes); }
1,285,685
10d240dea4d1c5cf8daf4f75a65374a7
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=340-353/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::fail
function
fail(condition) { if (condition === undefined) { this.error(); if (!this.allErrors) this.gen.if(false); // this branch will be removed by gen.optimize return; } this.gen.if(condition); this.error(); if (this.allErrors) ...
1,285,686
aac85f6311a4928e3441649183c2f3e1
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=376-380/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::reset
function
reset() { if (this.errsCount === undefined) throw new Error('add "trackErrors" to keyword definition'); (0, errors_1.resetErrorsCount)(this.gen, this.errsCount); }
1,285,687
51db2e23b55b62930fb9cbe42916f758
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=425-431/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::invalid$data::invalid$DataSchema
function
function invalid$DataSchema() { if (def.validateSchema) { const validateSchemaRef = gen.scopeValue("validate$data", { ref: def.validateSchema }); // TODO value.code for standalone return (0, codegen_1._) `!${validateSchemaRef}(${schemaCode})`; } return...
1,285,688
7f7564eac2edd45c72ce6fe44e31e21d
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=515-517/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
getData::errorMsg
function
function errorMsg(pointerType, up) { return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`; }
1,285,689
abf5ec1af5d41c8b3b8e3e06422edbef
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=415-424/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::invalid$data::wrong$DataType
function
function wrong$DataType() { if (schemaType.length) { /* istanbul ignore if */ if (!(schemaCode instanceof codegen_1.Name)) throw new Error("ajv implementation error"); const st = Array.isArray(schemaType) ? schemaType : [schemaType]; ...
1,285,690
f2c6e1903eb808a7f6d90227b97a887e
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-74/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
topSchemaObjCode
function
function topSchemaObjCode(it) { const { schema, opts, gen } = it; validateFunction(it, () => { if (opts.$comment && schema.$comment) commentKeyword(it); checkNoDefault(it); gen.let(names_1.default.vErrors, null); gen.let(names_1.default.errors, 0); if (opts.un...
1,285,691
e288ec42858a1e8c94be47782a8e3176
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=136-141/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkNoDefault
function
function checkNoDefault(it) { const { schema, opts } = it; if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) { (0, util_1.checkStrictMode)(it, "default is ignored in the schema root"); } }
1,285,692
43bca66757de1fce2cb6e8758f5ade70
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-214/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
schemaKeywords
function
function schemaKeywords(it, types, typeErrors, errsCount) { const { gen, schema, data, allErrors, opts, self } = it; const { RULES } = self; if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) { gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.d...
1,285,693
0011e9169b0fd76a5a236bf2a745281e
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=215-226/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
iterateKeywords
function
function iterateKeywords(it, group) { const { gen, schema, opts: { useDefaults }, } = it; if (useDefaults) (0, defaults_1.assignDefaults)(it, group.type); gen.block(() => { for (const rule of group.rules) { if ((0, applicability_1.shouldUseRule)(schema, rule)) { k...
1,285,694
57a46f22abc2d37fa0c7bf0ff4f1feeb
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=249-253/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
checkMultipleTypes
function
function checkMultipleTypes(it, ts) { if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) { strictTypesError(it, "use allowUnionTypes to allow union type keyword"); } }
1,285,695
e38a593053c1eb78e0e12eee0e6430c1
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=266-268/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
hasApplicableType
function
function hasApplicableType(schTs, kwdT) { return schTs.includes(kwdT) || (kwdT === "number" && schTs.includes("integer")); }
1,285,696
00bf3d075853dc3733775b559e0db64b
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=269-271/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
includesType
function
function includesType(ts, t) { return ts.includes(t) || (t === "integer" && ts.includes("number")); }
1,285,697
a18ce58d34bcca5671ac36ed76aafea2
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=288-314/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::constructor
function
constructor(it, def, keyword) { (0, keyword_1.validateKeywordUsage)(it, def, keyword); this.gen = it.gen; this.allErrors = it.allErrors; this.keyword = keyword; this.data = it.data; this.schema = it.schema[keyword]; this.$data = def.$data && it.opts.$data && this....
1,285,698
f3dae678568c0eba31b837d2f493fdfe
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=315-317/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::result
function
result(condition, successAction, failAction) { this.failResult((0, codegen_1.not)(condition), successAction, failAction); }
1,285,699
c95995f652133d2fc2e59e522ffcb609
swh:1:cnt:0d683322abf18fc5b418bf776dc53f00a49e00ed;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=337-339/
d1517bcab135f95b3137cb61fb19a4dcffddefd4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/dist/compile/validate/index.js
KeywordCxt::pass
function
pass(condition, failAction) { this.failResult((0, codegen_1.not)(condition), undefined, failAction); }