id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,286,500 | d63c2a63050c2743fe8d2a7128a3fa38 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=579-581/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | getData::errorMsg | function | function errorMsg(pointerType: string, up: number): string {
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`
} |
1,286,501 | 2d550da475dafe03ce15b97de05e2ec2 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=198-212/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | returnResults | function | function returnResults(it: SchemaCxt): void {
const {gen, schemaEnv, validateName, ValidationError, opts} = it
if (schemaEnv.$async) {
// TODO assign unevaluated
gen.if(
_`${N.errors} === 0`,
() => gen.return(N.data),
() => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`)
)
... |
1,286,502 | 27ab25a5ac44f637565b48374740da57 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-196/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | commentKeyword | function | function commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void {
const msg = schema.$comment
if (opts.$comment === true) {
gen.code(_`${N.self}.logger.log(${msg})`)
} else if (typeof opts.$comment == "function") {
const schemaPath = str`${errSchemaPath}/$comment`
const root... |
1,286,503 | 98489b126ba810b26c19180794b2b23a | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=384-396/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::failResult | function | failResult(condition: Code, successAction?: () => void, failAction?: () => void): void {
this.gen.if(condition)
if (failAction) failAction()
else this.error()
if (successAction) {
this.gen.else()
successAction()
if (this.allErrors) this.gen.endIf()
} else {
if (this.allErrors... |
1,286,504 | 557aa60d5081a6b4b88c4c206518e871 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=420-428/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::error | function | error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void {
if (errorParams) {
this.setParams(errorParams)
this._error(append, errorPaths)
this.setParams({})
return
}
this._error(append, errorPaths)
} |
1,286,505 | 9573f5cd236cc62a6477bcc406b0b0fd | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=434-436/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::$dataError | function | $dataError(): void {
reportError(this, this.def.$dataError || keyword$DataError)
} |
1,286,506 | 77129212947ddf9b7c106741c83ec50c | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=380-382/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::result | function | result(condition: Code, successAction?: () => void, failAction?: () => void): void {
this.failResult(not(condition), successAction, failAction)
} |
1,286,507 | 6c87848fab29b508216721256d09504d | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=438-441/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::reset | function | reset(): void {
if (this.errsCount === undefined) throw new Error('add "trackErrors" to keyword definition')
resetErrorsCount(this.gen, this.errsCount)
} |
1,286,508 | a334a78a8d81e8a2263da113d02b64cb | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=443-445/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::ok | function | ok(cond: Code | boolean): void {
if (!this.allErrors) this.gen.if(cond)
} |
1,286,509 | 33c122ab190ecf2e5783df72105254b0 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=472-493/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::invalid$data | function | invalid$data(): Code {
const {gen, schemaCode, schemaType, def, it} = this
return or(wrong$DataType(), invalid$DataSchema())
function wrong$DataType(): Code {
if (schemaType.length) {
/* istanbul ignore if */
if (!(schemaCode instanceof Name)) throw new Error("ajv implementation error... |
1,286,510 | dbf578f56b6bd1e49db2d478327e23c0 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=476-484/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::invalid$data::wrong$DataType | function | function wrong$DataType(): Code {
if (schemaType.length) {
/* istanbul ignore if */
if (!(schemaCode instanceof Name)) throw new Error("ajv implementation error")
const st = Array.isArray(schemaType) ? schemaType : [schemaType]
return _`${checkDataTypes(st, schemaCode, it.opts.stri... |
1,286,511 | b9e4f24cc0c9a68f92d4476c509a52a2 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=495-502/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::subschema | function | subschema(appl: SubschemaArgs, valid: Name): SchemaCxt {
const subschema = getSubschema(this.it, appl)
extendSubschemaData(subschema, this.it, appl)
extendSubschemaMode(subschema, appl)
const nextContext = {...this.it, ...subschema, items: undefined, props: undefined}
subschemaCode(nextContext, vali... |
1,286,512 | 85b720799f1acbae68394087bfd3949f | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=515-521/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt::mergeValidEvaluated | function | mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void {
const {it, gen} = this
if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {
gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name))
return true
}
} |
1,286,513 | e278ea58ff37979e8df67b12d4042a5c | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=524-540/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | keywordCode | function | function keywordCode(
it: SchemaObjCxt,
keyword: string,
def: AddedKeywordDefinition,
ruleType?: JSONType
): void {
const cxt = new KeywordCxt(it, def, keyword)
if ("code" in def) {
def.code(cxt, ruleType)
} else if (cxt.$data && def.validate) {
funcKeywordCode(cxt, def)
} else if ("macro" in de... |
1,286,514 | 0ed17cc086f252568972b6dad77caa8c | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=319-326/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | narrowSchemaTypes | function | function narrowSchemaTypes(it: SchemaObjCxt, withTypes: JSONType[]): void {
const ts: JSONType[] = []
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,286,515 | c4adcf0a816b66f415f798c59a2e6ef0 | swh:1:cnt:15ecabd85169e3f19b56b7547982643383068552;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=334-522/ | b19a1c8fefc9d676f89f81e4165e2fdb15d290b6 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/index.ts | KeywordCxt | type | class KeywordCxt implements KeywordErrorCxt {
readonly gen: CodeGen
readonly allErrors?: boolean
readonly keyword: string
readonly data: Name // Name referencing the current level of the data instance
readonly $data?: string | false
schema: any // keyword value in the schema
readonly schemaValue: Code | n... |
1,286,516 | 177041e40bc14e333b6233d5ed35e7b2 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-17/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | KeywordCompilationResult | type | type KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction |
1,286,517 | 364886bbb1c99b701609d3d8b0e1a4e7 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-37/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | macroKeywordCode | function | function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void {
const {gen, keyword, schema, parentSchema, it} = cxt
const macroSchema = def.macro.call(it.self, schema, parentSchema, it)
const schemaRef = useKeyword(gen, keyword, macroSchema)
if (it.opts.validateSchema !== false) it.self.validat... |
1,286,518 | b3ab5a74569f24085095ea6ae5f4bacf | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-95/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode | function | function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void {
const {gen, keyword, schema, parentSchema, $data, it} = cxt
checkAsyncKeyword(it, def)
const validate =
!$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate
const validateRef = useKeyword(gen,... |
1,286,519 | 4276e168ab0dbde274725bd09e9ec59d | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-59/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode::validateKeyword | function | function validateKeyword(): void {
if (def.errors === false) {
assignValid()
if (def.modifying) modifyData(cxt)
reportErrs(() => cxt.error())
} else {
const ruleErrs = def.async ? validateAsync() : validateSync()
if (def.modifying) modifyData(cxt)
reportErrs(() => addErrs(cxt... |
1,286,520 | 0ae700f62bd51036b8bb12bca7c9b81d | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-73/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode::validateAsync | function | function validateAsync(): Name {
const ruleErrs = gen.let("ruleErrs", null)
gen.try(
() => assignValid(_`await `),
(e) =>
gen.assign(valid, false).if(
_`${e} instanceof ${it.ValidationError as Name}`,
() => gen.assign(ruleErrs, _`${e}.errors`),
() => gen.throw(e... |
1,286,521 | 4b529bb0015b1278899f2e1510232e8f | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-80/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode::validateSync | function | function validateSync(): Code {
const validateErrs = _`${validateRef}.errors`
gen.assign(validateErrs, null)
assignValid(nil)
return validateErrs
} |
1,286,522 | 4206c86a14f2f99ce949e4d707ef3d43 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-90/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode::assignValid | function | function assignValid(_await: Code = def.async ? _`await ` : nil): void {
const passCxt = it.opts.passContext ? N.this : N.self
const passSchema = !(("compile" in def && !$data) || def.schema === false)
gen.assign(
valid,
_`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`,
... |
1,286,523 | 695d482e1e819a57566a2fa61cbf28c8 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-94/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | funcKeywordCode::reportErrs | function | function reportErrs(errors: () => void): void {
gen.if(not(def.valid ?? valid), errors)
} |
1,286,524 | d26b5fa2555c075927a5b4433407b9aa | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-100/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | modifyData | function | function modifyData(cxt: KeywordCxt): void {
const {gen, data, it} = cxt
gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`))
} |
1,286,525 | 3a2b545f8b2530077d3739af8cf6067f | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-114/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | addErrs | function | function addErrs(cxt: KeywordCxt, errs: Code): void {
const {gen} = cxt
gen.if(
_`Array.isArray(${errs})`,
() => {
gen
.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`)
.assign(N.errors, _`${N.vErrors}.length`)
extendErrors(cxt)
},
() =... |
1,286,526 | b0eb9356223d15f02569505b8c2fac15 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=116-118/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | checkAsyncKeyword | function | function checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void {
if (def.async && !schemaEnv.$async) throw new Error("async keyword in sync schema")
} |
1,286,527 | e0f3eabc6a5a54c81be619d8d9d043d9 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-126/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | useKeyword | function | function useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name {
if (result === undefined) throw new Error(`keyword "${keyword}" failed to compile`)
return gen.scopeValue(
"keyword",
typeof result == "function" ? {ref: result} : {ref: result, code: stringify(result)}
)
} |
1,286,528 | ff7ca85dd61e458ccbab8b322be0545e | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-171/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | validateKeywordUsage | function | function validateKeywordUsage(
{schema, opts, self, errSchemaPath}: SchemaObjCxt,
def: AddedKeywordDefinition,
keyword: string
): void {
/* istanbul ignore if */
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
throw new Error("ajv implementation error")
}
... |
1,286,529 | 4614ff37c3c3a0674990e9aa43800463 | swh:1:cnt:f854aa71083ca28c01f8064fdca177a847e6f308;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=128-144/ | e3533804b1ab100a8932fa82edf7602d55729309 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/keyword.ts | validSchemaType | function | function validSchemaType(
schema: unknown,
schemaType: JSONType[],
allowUndefined = false
): boolean {
// TODO add tests
return (
!schemaType.length ||
schemaType.some((st) =>
st === "array"
? Array.isArray(schema)
: st === "object"
? schema && typeof schema == "object" &... |
1,286,530 | 7d1037b7a56a7e5de358cffa3ff2f32e | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-27/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | SubschemaContext | type | interface SubschemaContext {
// TODO use Optional? align with SchemCxt property types
schema: AnySchema
schemaPath: Code
errSchemaPath: string
topSchemaRef?: Code
errorPath?: Code
dataLevel?: number
dataTypes?: JSONType[]
data?: Name
parentData?: Name
parentDataProperty?: Code | number
dataNames... |
1,286,531 | 1f49f14c7241fb2eb8fb76b6f897fa74 | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-47/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | SubschemaArgs | type | type SubschemaArgs = Partial<{
keyword: string
schemaProp: string | number
schema: AnySchema
schemaPath: Code
errSchemaPath: string
topSchemaRef: Code
data: Name | Code
dataProp: Code | string | number
dataTypes: JSONType[]
definedProperties: Set<string>
propertyName: Name
dataPropType: Type
j... |
1,286,532 | ed13a19e2ed66fdf2cb73531f3c7f1cc | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-85/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | getSubschema | function | function getSubschema(
it: SchemaObjCxt,
{keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs
): SubschemaContext {
if (keyword !== undefined && schema !== undefined) {
throw new Error('both "keyword" and "schema" passed, only one allowed')
}
if (keyword !== undefined) {
... |
1,286,533 | b95cf06d0451846ce240c6dd5ef19283 | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=116-123/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | extendSubschemaData::dataContextProps | function | function dataContextProps(_nextData: Name): void {
subschema.data = _nextData
subschema.dataLevel = it.dataLevel + 1
subschema.dataTypes = []
it.definedProperties = new Set<string>()
subschema.parentData = it.data
subschema.dataNames = [...it.dataNames, _nextData]
} |
1,286,534 | e2faa335be775960c828f671bc90c7ec | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=126-135/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | extendSubschemaMode | function | function extendSubschemaMode(
subschema: SubschemaContext,
{jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs
): void {
if (compositeRule !== undefined) subschema.compositeRule = compositeRule
if (createErrors !== undefined) subschema.createErrors = createErrors
if (allErro... |
1,286,535 | 29b83c47922f53233f1abc418c3bdda3 | swh:1:cnt:9072ed7743decf23950a40033cb2c2f6ec1845e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-124/ | 55bc64a111b664ed457fedd35a6335fe633cd201 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/compile/validate/subschema.ts | extendSubschemaData | function | function extendSubschemaData(
subschema: SubschemaContext,
it: SchemaObjCxt,
{dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs
): void {
if (data !== undefined && dataProp !== undefined) {
throw new Error('both "data" and "dataProp" passed, only one allowed')
}
const {gen} ... |
1,286,536 | 4c24a41f84175ef43700b2c47c545802 | swh:1:cnt:c0198128985137b24b13e40e6f41431f37b86647;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-3/ | 6a74a740389f256f46eb83c6bf328c5eb70ec18b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/refs/jtd-schema.ts | MetaSchema | type | type MetaSchema = (root: boolean) => SchemaObject |
1,286,537 | af108effee21a3f9f1e18d148d763f70 | swh:1:cnt:b6ea7195f019ef1b91c45517db08f42daa2f0673;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-28/ | a85c424a53f7d8f4d3bc433660b8789ccd81f286 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts | addMetaSchema2019 | function | function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv {
;[
metaSchema,
applicator,
content,
core,
with$data(this, format),
metadata,
with$data(this, validation),
].forEach((sch) => this.addMetaSchema(sch, undefined, false))
return this
function with$data(ajv: Ajv, sch: AnySche... |
1,286,538 | 6096f0bc12977f3877bd7655326c33e8 | swh:1:cnt:b6ea7195f019ef1b91c45517db08f42daa2f0673;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-27/ | a85c424a53f7d8f4d3bc433660b8789ccd81f286 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts | addMetaSchema2019::with$data | function | function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {
return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch
} |
1,286,539 | 7a0054444c0c8ff074141aa016ca41a1 | swh:1:cnt:8e850d08b5cdc8ec9f41ff69581c11844c9c60af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-30/ | a7743d1eeb8802a592300e21924f46c6a4088872 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts | addMetaSchema2020 | function | function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv {
;[
metaSchema,
applicator,
unevaluated,
content,
core,
with$data(this, format),
metadata,
with$data(this, validation),
].forEach((sch) => this.addMetaSchema(sch, undefined, false))
return this
function with$data(ajv: ... |
1,286,540 | 6096f0bc12977f3877bd7655326c33e8 | swh:1:cnt:8e850d08b5cdc8ec9f41ff69581c11844c9c60af;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-29/ | a7743d1eeb8802a592300e21924f46c6a4088872 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts | addMetaSchema2020::with$data | function | function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {
return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch
} |
1,286,541 | f145aa16f7179dbb653a33e249f3d198 | swh:1:cnt:3cb00631a2363720e822255d0911a54439512c3c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-5/ | 370f799e2a02108e381667b44dcaf8a68c5d38cf | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/equal.ts | Equal | type | type Equal = typeof equal & {code: string}
; |
1,286,542 | 39682e4a5cbf4500fcfa18ea32def5ec | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-28/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJson | function | function parseJson(s: string, pos: number): unknown {
let endPos: number | undefined
parseJson.message = undefined
let matches: RegExpExecArray | null
if (pos) s = s.slice(pos)
try {
parseJson.position = pos + s.length
return JSON.parse(s)
} catch (e) {
matches = rxParseJson.exec((e as Error).me... |
1,286,543 | 6304f194548324e8ed3969ed822178e3 | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-86/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJsonNumber::parseDigits | function | function parseDigits(maxLen?: number): boolean {
let digit = false
while (((c = s[pos]), c >= "0" && c <= "9" && (maxLen === undefined || maxLen-- > 0))) {
digit = true
numStr += c
pos++
}
return digit
} |
1,286,544 | ca98939d78c1bf0e455e30bbd2fd4863 | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=112-173/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJsonString | function | function parseJsonString(s: string, pos: number): string | undefined {
let str = ""
let c: string | undefined
parseJsonString.message = undefined
// eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition
while (true) {
c = s[pos++]
if (c === '"') break
if (c ==... |
1,286,545 | e10fdcaad5b84257aa9032eceddca3e9 | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-91/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJsonNumber::errorMessage | function | function errorMessage(): void {
parseJsonNumber.position = pos
parseJsonNumber.message = pos < s.length ? `unexpected token ${s[pos]}` : "unexpected end"
} |
1,286,546 | 0e585f651eb40ff01f1135a1e215ba5c | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-92/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJsonNumber | function | function parseJsonNumber(s: string, pos: number, maxDigits?: number): number | undefined {
let numStr = ""
let c: string
parseJsonNumber.message = undefined
if (s[pos] === "-") {
numStr += "-"
pos++
}
if (s[pos] === "0") {
numStr += "0"
pos++
} else {
if (!parseDigits(maxDigits)) {
... |
1,286,547 | 837fee6252cc840c6b59933cbb2090a3 | swh:1:cnt:472e5e50786f2cff1092ac1353508ac0fcebce9e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=169-172/ | da68a2f06e181c42b26118b1a38de79cc59d87f2 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/parseJson.ts | parseJsonString::errorMessage | function | function errorMessage(msg: string): void {
parseJsonString.position = pos
parseJsonString.message = msg
} |
1,286,548 | 06aeaee15464573bf6790f727ec1e46b | swh:1:cnt:1160e6a23807cf7fc0f4d036ddc45bd962562275;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-29/ | 7361da6aff63cd856a8dfff2eb34e4f6b3b3040a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/quote.ts | quote | function | function quote(s: string): string {
rxEscapable.lastIndex = 0
return (
'"' +
(rxEscapable.test(s)
? s.replace(rxEscapable, (a) => {
const c = escaped[a]
return typeof c === "string"
? c
: "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4)
})
... |
1,286,549 | 7501630f2cb5aef5400896efbe0928c9 | swh:1:cnt:0c769bc7aefc5aa1924e2be877d39bc59670ab3f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-4/ | ad7a94c28011fd81149a608ad8c0a35b8a4d22d1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/re2.ts | Re2 | type | type Re2 = typeof re2 & {code: string}
; |
1,286,550 | f9ebe723c813a5a95d9c60e118ca4c73 | swh:1:cnt:1625f9a40f4443fde14743a6a8ecb6c1dc8fb819;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-13/ | 003c82118ce0e8e0a341413b54e837a3b11fb0df | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/timestamp.ts | validTimestamp | function | function validTimestamp(str: string, allowDate: boolean): boolean {
// http://tools.ietf.org/html/rfc3339#section-5.6
const dt: string[] = str.split(DT_SEPARATOR)
return (
(dt.length === 2 && validDate(dt[0]) && validTime(dt[1])) ||
(allowDate && dt.length === 1 && validDate(dt[0]))
)
} |
1,286,551 | 35dfeb4ce96f2cf6c9404a98dc4c0494 | swh:1:cnt:1625f9a40f4443fde14743a6a8ecb6c1dc8fb819;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-44/ | 003c82118ce0e8e0a341413b54e837a3b11fb0df | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/timestamp.ts | validTime | function | function validTime(str: string): boolean {
const matches: string[] | null = TIME.exec(str)
if (!matches) return false
const hr: number = +matches[1]
const min: number = +matches[2]
const sec: number = +matches[3]
const tzH: number = +(matches[4] || 0)
const tzM: number = +(matches[5] || 0)
return (
... |
1,286,552 | 0a65d3ca3d447d20cb896e30ca0ed9e2 | swh:1:cnt:1625f9a40f4443fde14743a6a8ecb6c1dc8fb819;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-29/ | 003c82118ce0e8e0a341413b54e837a3b11fb0df | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/timestamp.ts | validDate | function | function validDate(str: string): boolean {
const matches: string[] | null = DATE.exec(str)
if (!matches) return false
const y: number = +matches[1]
const m: number = +matches[2]
const d: number = +matches[3]
return (
m >= 1 &&
m <= 12 &&
d >= 1 &&
(d <= DAYS[m] ||
// leap year: https:/... |
1,286,553 | b07392a1acb234e176614116502b5310 | swh:1:cnt:47d8292b83fde4619bdbf28b89e6720824a97164;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-18/ | 674f4c9f399bf3d02e2644c16e48ed5f94e864d8 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/ucs2length.ts | ucs2length | function | function ucs2length(str: string): number {
const len = str.length
let length = 0
let pos = 0
let value: number
while (pos < len) {
length++
value = str.charCodeAt(pos++)
if (value >= 0xd800 && value <= 0xdbff && pos < len) {
// high surrogate, and there is a next character
value = str.... |
1,286,554 | 434e3202782a1ec84089e41a522e1420 | swh:1:cnt:5450549cd5a3968f163460d3c0fb1aeb7ffc2b2c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-4/ | 431becdb9bba4431badc6b64677a17fec47b4dc4 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/uri.ts | URI | type | type URI = typeof uri & {code: string}
; |
1,286,555 | 8076a1ce94a3f4258bbe789688e6f6ef | swh:1:cnt:2d19a46a2245c667f479d7ee51d1d9558cd9ae90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-13/ | ad5bcf9d2fbec0db58449dfb74992f8b681792c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/validation_error.ts | ValidationError | type | class ValidationError extends Error {
readonly errors: Partial<ErrorObject>[]
readonly ajv: true
readonly validation: true
constructor(errors: Partial<ErrorObject>[]) {
super("validation failed")
this.errors = errors
this.ajv = this.validation = true
}
} |
1,286,556 | f8231f4ea18a082daf0f61cf22189372 | swh:1:cnt:2d19a46a2245c667f479d7ee51d1d9558cd9ae90;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/ | ad5bcf9d2fbec0db58449dfb74992f8b681792c1 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/runtime/validation_error.ts | ValidationError::constructor | function | constructor(errors: Partial<ErrorObject>[]) {
super("validation failed")
this.errors = errors
this.ajv = this.validation = true
} |
1,286,557 | baf66977ce15f60ac865fcffc20550cb | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-95/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode | function | function standaloneCode(
ajv: AjvCore,
refsOrFunc?: {[K in string]?: string} | AnyValidateFunction
): string {
if (!ajv.opts.code.source) {
throw new Error("moduleCode: ajv instance must have code.source option")
}
const {_n} = ajv.scope.opts
return typeof refsOrFunc == "function"
? funcExportCode(r... |
1,286,558 | b8290d073c03b8d1bb743d58b7cdcdc8 | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-57/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::multiExportsCode | function | function multiExportsCode<T extends SchemaEnv | string>(
schemas: {[K in string]?: T},
getValidateFunc: (schOrId: T) => AnyValidateFunction | undefined
): string {
const usedValues: UsedScopeValues = {}
let code = _`"use strict";`
for (const name in schemas) {
const v = getValidateFunc(schem... |
1,286,559 | 979fe7817b2bb6ccf013d47817c5a17f | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-94/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::validateCode | function | function validateCode(usedValues: UsedScopeValues, s?: SourceCode): Code {
if (!s) throw new Error('moduleCode: function does not have "source" property')
if (usedState(s.validateName) === UsedValueState.Completed) return nil
setUsedState(s.validateName, UsedValueState.Started)
const scopeCode = ajv.sc... |
1,286,560 | 668f35400ac0ba74ef3115ed411bc675 | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-27/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::getValidate | function | function getValidate(id: string): AnyValidateFunction {
const v = ajv.getSchema(id)
if (!v) throw new Error(`moduleCode: no schema with id ${id}`)
return v
} |
1,286,561 | c0c74cb0d0d7be0c597f47b8d8a4c538 | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-38/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::funcExportCode | function | function funcExportCode(source?: SourceCode): string {
const usedValues: UsedScopeValues = {}
const n = source?.validateName
const vCode = validateCode(usedValues, source)
if (ajv.opts.code.esm) {
// Always do named export as `validate` rather than the variable `n` which is `validateXX` for known ... |
1,286,562 | ff209a29feadad01684be2076f10aee4 | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-83/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::validateCode::refValidateCode | function | function refValidateCode(n: ValueScopeName): Code | undefined {
const vRef = n.value?.ref
if (n.prefix === "validate" && typeof vRef == "function") {
const v = vRef as AnyValidateFunction
return validateCode(usedValues, v.source)
} else if ((n.prefix === "root" || n.prefix === "wrapper... |
1,286,563 | dc6e294e18659d03defe21a37e4a9b0c | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=85-87/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::validateCode::usedState | function | function usedState(name: ValueScopeName): UsedValueState | undefined {
return usedValues[name.prefix]?.get(name)
} |
1,286,564 | 65bfc98a8995d0d131df53f30bf5f706 | swh:1:cnt:b6129ce9e5ebab51fe4f53ffa86dbacd12878ed9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=89-93/ | b5363188e5f59ed89c7c33f730dcee5306cf016b | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/index.ts | standaloneCode::validateCode::setUsedState | function | function setUsedState(name: ValueScopeName, state: UsedValueState): void {
const {prefix} = name
const names = (usedValues[prefix] = usedValues[prefix] || new Map())
names.set(name, state)
} |
1,286,565 | 46a0e3a4a92d8da13e22ef3424e122d0 | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-36/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack | type | class AjvPack {
errors?: ErrorObject[] | null // errors from the last validation
constructor(readonly ajv: Ajv) {}
validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown> {
return Ajv.prototype.validate.call(this, schemaKeyRef, data)
}
compile<T = unknown>(schema: AnySchema... |
1,286,566 | 265a50e789211ddc3f6a183beedae757 | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-7/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::constructor | function | // errors from the last validation
constructor(readonly ajv: Ajv) {} |
1,286,567 | 2cbc74170bcc9b9d727d6fe5114ad78d | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-21/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::getSchema | function | getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined {
const v = this.ajv.getSchema<T>(keyRef)
if (!v) return undefined
return this.getStandalone(v)
} |
1,286,568 | ea4dc4e396a5bc032aa62beb9f8b5b22 | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-15/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::compile | function | compile<T = unknown>(schema: AnySchema, meta?: boolean): AnyValidateFunction<T> {
return this.getStandalone(this.ajv.compile<T>(schema, meta))
} |
1,286,569 | ec117e15becb1851b7a67e5ca70b455e | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-11/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::validate | function | validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown> {
return Ajv.prototype.validate.call(this, schemaKeyRef, data)
} |
1,286,570 | 2061a89607ca8a1356e296e46ec20d61 | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-25/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::getStandalone | function | private getStandalone<T = unknown>(v: AnyValidateFunction<T>): AnyValidateFunction<T> {
return requireFromString(standaloneCode(this.ajv, v)) as AnyValidateFunction<T>
} |
1,286,571 | 0737b279df7e633a37c6a5eb49aab00d | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-30/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::addSchema | function | addSchema(...args: Parameters<typeof Ajv.prototype.addSchema>): AjvPack {
this.ajv.addSchema.call(this.ajv, ...args)
return this
} |
1,286,572 | 445695eda4e5cc3c98869940ceffcf81 | swh:1:cnt:c4b2c30b58f0ebc89b4c8e1010e5976216c0042f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-35/ | 6e424fbba0127bf631df84a42a0ee58705bae63a | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/standalone/instance.ts | AjvPack::addKeyword | function | addKeyword(...args: Parameters<typeof Ajv.prototype.addKeyword>): AjvPack {
this.ajv.addKeyword.call(this.ajv, ...args)
return this
} |
1,286,573 | 41c15ad197121d86e5a118201f23fa78 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-33/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | SchemaMap | type | type SchemaMap = {[Key in string]?: AnySchema} |
1,286,574 | f6fa5ddfbcc6fa0c0882434c01e939fd | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-99/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | ErrorObject | type | interface ErrorObject<K extends string = string, P = Record<string, any>, S = unknown> {
keyword: K
instancePath: string
schemaPath: string
params: P
// Added to validation errors of "propertyNames" keyword schema
propertyName?: string
// Excluded if option `messages` set to false.
message?: string
//... |
1,286,575 | 86377f96226b5b5b07f4557888fab6c4 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-77/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | Evaluated | type | interface Evaluated {
// determined at compile time if staticProps/Items is true
props?: EvaluatedProperties
items?: EvaluatedItems
// whether props/items determined at compile time
dynamicProps: boolean
dynamicItems: boolean
} |
1,286,576 | 9576e5de43c21b8d3265ca66b4b3e6e2 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-128/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | MacroKeywordFunc | type | type MacroKeywordFunc = (
schema: any,
parentSchema: AnySchemaObject,
it: SchemaCxt
) => AnySchema |
1,286,577 | 3386a99121d0216442808ba924362d42 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=136-139/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | DataValidateFunction | type | interface DataValidateFunction {
(...args: Parameters<ValidateFunction>): boolean | Promise<any>
errors?: Partial<ErrorObject>[]
} |
1,286,578 | 4ce112e72ba3308e50fcba1bc85c5557 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-179/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | KeywordErrorDefinition | type | interface KeywordErrorDefinition {
message: string | Code | ((cxt: KeywordErrorCxt) => string | Code)
params?: Code | ((cxt: KeywordErrorCxt) => Code)
} |
1,286,579 | e8cf5f9997e15f5f535a13603a91ddf2 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=229-229/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | Format | type | type Format = AddedFormat | string |
1,286,580 | 4aefdcdb677afd03608c6f17fd15296f | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=231-234/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | RegExpEngine | type | interface RegExpEngine {
(pattern: string, u: string): RegExpLike
code: string
} |
1,286,581 | e32f992589417babf6d4bc501e3a0cd4 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=236-238/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | RegExpLike | type | interface RegExpLike {
test: (s: string) => boolean
} |
1,286,582 | 58f56cfada9a9e44054c61d7a400b401 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-27/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AnySchemaObject | type | type AnySchemaObject = SchemaObject | AsyncSchema |
1,286,583 | 63bd8cec35e32025529dabf17064904b | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-21/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | SchemaObject | type | interface SchemaObject extends _SchemaObject {
id?: string
$id?: string
$schema?: string
$async?: false
[x: string]: any // TODO
} |
1,286,584 | ff1955e7032d5e56ccd58b0d1d51827a | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-31/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AnySchema | type | type AnySchema = Schema | AsyncSchema |
1,286,585 | f5fae0dac0fbd861b8696f69544fcb14 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-40/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | SourceCode | type | interface SourceCode {
validateName: ValueScopeName
validateCode: string
scopeValues: ScopeValueSets
evaluated?: Code
} |
1,286,586 | bbbbb5c58a4054b22e993fe707417483 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-64/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | JTDParser | type | interface JTDParser<T = unknown> {
(json: string): T | undefined
message?: string
position?: number
} |
1,286,587 | fae0ccfc1d4e6e501eea4b10d731a36c | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-84/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AnyValidateFunction | type | type AnyValidateFunction<T = any> = ValidateFunction<T> | AsyncValidateFunction<T> |
1,286,588 | 1970a5df843f16f0cb4d9a734f761023 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-101/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | ErrorNoParams | type | type ErrorNoParams<K extends string, S = unknown> = ErrorObject<K, Record<string, never>, S> |
1,286,589 | 63e79bf1a8be376943756e9529994226 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=103-117/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | _KeywordDef | type | interface _KeywordDef {
keyword: string | string[]
type?: JSONType | JSONType[] // data types that keyword applies to
schemaType?: JSONType | JSONType[] // allowed type(s) of keyword value in the schema
allowUndefined?: boolean // used for keywords that can be invoked by other keywords, not being present in the... |
1,286,590 | 1ca9bd0c2e4aa84ac41a006b6f9217ea | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-134/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | CompileKeywordFunc | type | type CompileKeywordFunc = (
schema: any,
parentSchema: AnySchemaObject,
it: SchemaObjCxt
) => DataValidateFunction |
1,286,591 | 6de46885bb08efd245c71f9ad74bab6d | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=183-196/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | KeywordErrorCxt | type | interface KeywordErrorCxt {
gen: CodeGen
keyword: string
data: Name
$data?: string | false
schema: any // TODO
parentSchema?: AnySchemaObject
schemaCode: Code | number | boolean
schemaValue: Code | number | boolean
schemaType?: JSONType[]
errsCount?: Name
params: KeywordCxtParams
it: SchemaCxt
} |
1,286,592 | 920ab26b46f4d46f5619c32d323e2e5e | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=213-218/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AsyncFormatDefinition | type | interface AsyncFormatDefinition<T extends string | number> {
type?: T extends string ? "string" | undefined : "number"
validate: AsyncFormatValidator<T>
async: true
compare?: FormatCompare<T>
} |
1,286,593 | 06c8a6d035a53f01d0335574e3011472 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-25/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AsyncSchema | type | interface AsyncSchema extends _SchemaObject {
$async: true
} |
1,286,594 | 2259c0358e4144aa9d5416f1f2d3e199 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-48/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | DataValidationCxt | type | interface DataValidationCxt<T extends string | number = string | number> {
instancePath: string
parentData: {[K in T]: any} // object or array
parentDataProperty: T // string or number
rootData: Record<string, any> | any[]
dynamicAnchors: {[Ref in string]?: ValidateFunction}
} |
1,286,595 | 92aea15e1765e27ed2b54e1136922d49 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=79-82/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AsyncValidateFunction | type | interface AsyncValidateFunction<T = unknown> extends ValidateFunction<T> {
(...args: Parameters<ValidateFunction<T>>): Promise<T>
$async: true
} |
1,286,596 | 11f8eb30969538d8b886b004c16bc8f3 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-68/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | EvaluatedItems | type | type EvaluatedItems = number | true |
1,286,597 | be2c5f449c4a3464cdf06efc3ec7e4b1 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=162-164/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | MacroKeywordDefinition | type | interface MacroKeywordDefinition extends FuncKeywordDefinition {
macro: MacroKeywordFunc
} |
1,286,598 | f33a9377e2e4790a0704d9fbaf85e127 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=171-174/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | AddedKeywordDefinition | type | type AddedKeywordDefinition = KeywordDefinition & {
type: JSONType[]
schemaType: JSONType[]
} |
1,286,599 | 3259a6ce41eefcef1d7fee25476082e5 | swh:1:cnt:39bc51b0b99d79b09e3e5f0e2d0d48e7bf37c069;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-181/ | d23c08cf579155f7a06d91eb4e04ad096bca9eee | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/lib/types/index.ts | Vocabulary | type | type Vocabulary = (KeywordDefinition | string)[] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.