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,100
517126b0271dbaebc331cc2a2a7061c3
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=779-784/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
addInitialSchemas
function
function addInitialSchemas(this: Ajv): void { const optsSchemas = this.opts.schemas if (!optsSchemas) return if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas) else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key) }
1,286,101
804cd169fd893a0e68c288c5339de1d6
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=809-813/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
getMetaSchemaOptions
function
function getMetaSchemaOptions(this: Ajv): InstanceOptions { const metaOpts = {...this.opts} for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt] return metaOpts }
1,286,102
502323fa071c9145724d2542fc115e25
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=838-867/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
addRule
function
function addRule( this: Ajv, keyword: string, definition?: AddedKeywordDefinition, dataType?: JSONType ): void { const post = definition?.post if (dataType && post) throw new Error('keyword with "post" flag cannot have "type"') const {RULES} = this let ruleGroup = post ? RULES.post : RULES.rules.find(({...
1,286,103
05170b1193189b54010b51b2e5b02ccd
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=730-734/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
Ajv::_checkUnique
function
private _checkUnique(id: string): void { if (this.schemas[id] || this.refs[id]) { throw new Error(`schema with key or id "${id}" already exists`) } }
1,286,104
91724b5eaf2a3ca2a329c7e50c57d130
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=890-892/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
schemaOrData
function
function schemaOrData(schema: AnySchema): AnySchemaObject { return {anyOf: [schema, $dataRef]} }
1,286,105
5313e7c06357dd7c1a2abc088fa9ab1f
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=869-877/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
addBeforeRule
function
function addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void { const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before) if (i >= 0) { ruleGroup.rules.splice(i, 0, rule) } else { ruleGroup.rules.push(rule) this.logger.warn(`rule ${before} is not defined`) ...
1,286,106
56e7fda4d954816372e18e02596df858
swh:1:cnt:6ceedf541994711fdc794b23e2773f0a6dfd7dcb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=817-822/
be123ba4074f36e4460613394c6e1748d1d690e6
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/core.ts
getLogger
function
function getLogger(logger?: Partial<Logger> | false): Logger { if (logger === false) return noLogs if (logger === undefined) return console if (logger.log && logger.warn && logger.error) return logger as Logger throw new Error("logger must implement log, warn and error methods") }
1,286,107
3c7600df51ac294a70a87dc77d4e05b9
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-36/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
JTDOptions
type
type JTDOptions = CurrentOptions & { // strict mode options not supported with JTD: strict?: never allowMatchingProperties?: never allowUnionTypes?: never validateFormats?: never // validation and reporting options not supported with JTD: $data?: never verbose?: boolean $comment?: never formats?: ne...
1,286,108
c1a6fd9c20ad87e74abdf1f320e91800
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-93/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv
type
class Ajv extends AjvCore { constructor(opts: JTDOptions = {}) { super({ ...opts, jtd: true, }) } _addVocabularies(): void { super._addVocabularies() this.addVocabulary(jtdVocabulary) } _addDefaultMetaSchema(): void { super._addDefaultMetaSchema() if (!this.opts.meta) ret...
1,286,109
b913533ef754f4477855932a88d04c9f
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-44/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::constructor
function
constructor(opts: JTDOptions = {}) { super({ ...opts, jtd: true, }) }
1,286,110
d94b97329d8f0be5d3ddc17877bd0c47
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-69/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::compileSerializer
function
compileSerializer<T = unknown>(schema: SchemaObject): (data: T) => string { const sch = this._addSchema(schema) return sch.serialize || this._compileSerializer(sch) }
1,286,111
558869825649aa2090f848050fd8de36
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-60/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::defaultMeta
function
defaultMeta(): string | AnySchemaObject | undefined { return (this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined)) }
1,286,112
3e68e7286824edd281b73a89dd406e70
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-55/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::_addDefaultMetaSchema
function
_addDefaultMetaSchema(): void { super._addDefaultMetaSchema() if (!this.opts.meta) return this.addMetaSchema(jtdMetaSchema, META_SCHEMA_ID, false) }
1,286,113
78ec447e2a534d5c00b5e5add945e7c7
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-49/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::_addVocabularies
function
_addVocabularies(): void { super._addVocabularies() this.addVocabulary(jtdVocabulary) }
1,286,114
9e9e6ee49e40c7f0da1847e27249172b
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-78/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::compileParser
function
compileParser<T = unknown>(schema: SchemaObject): JTDParser<T> { const sch = this._addSchema(schema) return (sch.parse || this._compileParser(sch)) as JTDParser<T> }
1,286,115
c6e4c2562d7a9729310ab6a1c7bf16b2
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-85/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::_compileSerializer
function
private _compileSerializer<T>(sch: SchemaEnv): (data: T) => string { compileSerializer.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) /* istanbul ignore if */ if (!sch.serialize) throw new Error("ajv implementation error") return sch.serialize }
1,286,116
6fadbaa7bc1b10c42d7a39a477d6756e
swh:1:cnt:a7e7bce3ba39a6339b9377cee40429daba39af72;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-92/
0aeccfb4ef05371ee82cbe7fb3c15a93296aa39b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/jtd.ts
Ajv::_compileParser
function
private _compileParser(sch: SchemaEnv): JTDParser { compileParser.call(this, sch, (sch.schema as AnySchemaObject).definitions || {}) /* istanbul ignore if */ if (!sch.parse) throw new Error("ajv implementation error") return sch.parse }
1,286,117
bb4ac46a0a371972e93424e9c5badd04
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-23/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
ErrorPaths
type
interface ErrorPaths { instancePath?: Code schemaPath?: string parentSchema?: boolean }
1,286,118
943997c9f3bdc963a8154a9c482e1f2a
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-39/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
reportError
function
function reportError( cxt: KeywordErrorCxt, error: KeywordErrorDefinition = keywordError, errorPaths?: ErrorPaths, overrideAllErrors?: boolean ): void { const {it} = cxt const {gen, compositeRule, allErrors} = it const errObj = errorObjectCode(cxt, error, errorPaths) if (overrideAllErrors ?? (compositeR...
1,286,119
4b56df17e8b1b93982ad1c174275799d
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-98/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
addError
function
function addError(gen: CodeGen, errObj: Code): void { const err = gen.const("err", errObj) gen.if( _`${N.vErrors} === null`, () => gen.assign(N.vErrors, _`[${err}]`), _`${N.vErrors}.push(${err})` ) gen.code(_`${N.errors}++`) }
1,286,120
56028210ee3f18a5539c165dbd521c4d
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=55-64/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
resetErrorsCount
function
function resetErrorsCount(gen: CodeGen, errsCount: Name): void { gen.assign(N.errors, errsCount) gen.if(_`${N.vErrors} !== null`, () => gen.if( errsCount, () => gen.assign(_`${N.vErrors}.length`, errsCount), () => gen.assign(N.vErrors, null) ) ) }
1,286,121
2ea73f377f40b8d29b965def17a20f7d
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-88/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
extendErrors
function
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }: KeywordErrorCxt): void { /* istanbul ignore if */ if (errsCount === undefined) throw new Error("ajv implementation error") const err = gen.name("err") gen.forRange("i", errsCount, N.errors, (i) => { gen.const(err, _`${N.v...
1,286,122
15df433311896fae1a6b654dea5c0a2c
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-53/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
reportExtraError
function
function reportExtraError( cxt: KeywordErrorCxt, error: KeywordErrorDefinition = keywordError, errorPaths?: ErrorPaths ): void { const {it} = cxt const {gen, compositeRule, allErrors} = it const errObj = errorObjectCode(cxt, error, errorPaths) addError(gen, errObj) if (!(compositeRule || allErrors)) { ...
1,286,123
5e82c8186b6c91ee1dfbeb9e6a944b53
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-108/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
returnErrors
function
function returnErrors(it: SchemaCxt, errs: Code): void { const {gen, validateName, schemaEnv} = it if (schemaEnv.$async) { gen.throw(_`new ${it.ValidationError as Name}(${errs})`) } else { gen.assign(_`${validateName}.errors`, errs) gen.return(false) } }
1,286,124
67ba15dc8c2c375fdcb30ea94c20a105
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-128/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
errorObjectCode
function
function errorObjectCode( cxt: KeywordErrorCxt, error: KeywordErrorDefinition, errorPaths?: ErrorPaths ): Code { const {createErrors} = cxt.it if (createErrors === false) return _`{}` return errorObject(cxt, error, errorPaths) }
1,286,125
ca417a18496fa8244d3959ce60eb7ebb
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-142/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
errorObject
function
function errorObject( cxt: KeywordErrorCxt, error: KeywordErrorDefinition, errorPaths: ErrorPaths = {} ): Code { const {gen, it} = cxt const keyValues: [Name, SafeExpr | string][] = [ errorInstancePath(it, errorPaths), errorSchemaPath(cxt, errorPaths), ] extraErrorProps(cxt, error, keyValues) re...
1,286,126
04789d5bf58816bdac2e46d819fbe0ac
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-149/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
errorInstancePath
function
function errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] { const instPath = instancePath ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}` : errorPath return [N.instancePath, strConcat(N.instancePath, instPath)] }
1,286,127
93d9f276b6e90db1c002fe7c8c2c82ba
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=151-160/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
errorSchemaPath
function
function errorSchemaPath( {keyword, it: {errSchemaPath}}: KeywordErrorCxt, {schemaPath, parentSchema}: ErrorPaths ): [Name, string | Code] { let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}` if (schemaPath) { schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}` } re...
1,286,128
752e12e619252677abff146b40ba9033
swh:1:cnt:18424a0fc62917fa720aee28e97280865f8bf1f5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=162-184/
f9f5b165b650ec6eca95268c28397f9df949c716
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/errors.ts
extraErrorProps
function
function extraErrorProps( cxt: KeywordErrorCxt, {params, message}: KeywordErrorDefinition, keyValues: [Name, SafeExpr | string][] ): void { const {keyword, data, schemaValue, it} = cxt const {opts, propertyName, topSchemaRef, schemaPath} = it keyValues.push( [E.keyword, keyword], [E.params, typeof p...
1,286,129
0e9897119216b05eb4e5df1f8cb6ad35
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-22/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaRefs
type
type SchemaRefs = { [Ref in string]?: SchemaEnv | AnySchema }
1,286,130
45fa07cfa027ec73a101218d6d441565
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-72/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaEnvArgs
type
interface SchemaEnvArgs { readonly schema: AnySchema readonly schemaId?: "$id" | "id" readonly root?: SchemaEnv readonly baseId?: string readonly schemaPath?: string readonly localRefs?: LocalRefs readonly meta?: boolean }
1,286,131
8b641d8654e38e9efd1dacbff30812d8
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-105/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaEnv
type
class SchemaEnv implements SchemaEnvArgs { readonly schema: AnySchema readonly schemaId?: "$id" | "id" readonly root: SchemaEnv baseId: string // TODO possibly, it should be readonly schemaPath?: string localRefs?: LocalRefs readonly meta?: boolean readonly $async?: boolean // true if the current schema...
1,286,132
f887a476596036b5b28b6fa535f364ad
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-59/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaCxt
type
interface SchemaCxt { readonly gen: CodeGen readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error readonly data: Name // Name with reference to the current part of data instance readonly parentData: Name // should be used in keywords modifying data readonly parentDa...
1,286,133
f7801c7a7467f4871035d007c78f5b4c
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-63/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaObjCxt
type
interface SchemaObjCxt extends SchemaCxt { readonly schema: AnySchemaObject }
1,286,134
9b4b0f5760ccc8ff41d21752587a3dff
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-104/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
SchemaEnv::constructor
function
constructor(env: SchemaEnvArgs) { let schema: AnySchemaObject | undefined if (typeof env.schema == "object") schema = env.schema this.schema = env.schema this.schemaId = env.schemaId this.root = env.root || this this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || "$id"]) this.sc...
1,286,135
050fba70a065c78c9271bce7587ea04c
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=205-224/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
resolveRef
function
function resolveRef( this: Ajv, root: SchemaEnv, baseId: string, ref: string ): AnySchema | SchemaEnv | undefined { ref = resolveUrl(this.opts.uriResolver, baseId, ref) const schOrFunc = root.refs[ref] if (schOrFunc) return schOrFunc let _sch = resolve.call(this, root, ref) if (_sch === undefined) { ...
1,286,136
a47e9080207538018b129b916955d32f
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=111-203/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
compileSchema
function
function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv { // TODO refactor - remove compilations const _sch = getCompilingSchema.call(this, sch) if (_sch) return _sch const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails const {es5, lines} = this....
1,286,137
823bec569e8eb16d047c6491c7d71dfd
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=226-229/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
inlineOrCompile
function
function inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv { if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema return sch.validate ? sch : compileSchema.call(this, sch) }
1,286,138
b8da6bf604276d123079290f60d8153c
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=232-236/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
getCompilingSchema
function
function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void { for (const sch of this._compilations) { if (sameSchemaEnv(sch, schEnv)) return sch } }
1,286,139
d2e3b4fe3f6a69f1ae97714c23090187
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=238-240/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
sameSchemaEnv
function
function sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean { return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId }
1,286,140
c2c15646e8602b9e59a23177e7737b29
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=242-252/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
resolve
function
// resolve and compile the references ($ref) // TODO returns AnySchemaObject (if the schema can be inlined) or validation function function resolve( this: Ajv, root: SchemaEnv, // information about the root schema for the current schema ref: string // reference to resolve ): SchemaEnv | undefined { let sch wh...
1,286,141
11bd4b7180445b5a0a2aeef42753812c
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=255-286/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
resolveSchema
function
function resolveSchema( this: Ajv, root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it ref: string // reference to resolve ): SchemaEnv | undefined { const p = this.opts.uriResolver.parse(ref) const refPath = _getFullPath(this.opts.uriResolver, p) let baseId =...
1,286,142
d20779cc0948ca09e5c9b818db08b756
swh:1:cnt:bfc39345526afe62f8c1d52eabf5b25b7959537f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=296-324/
4e65a92ce1ad5a12a5a4fd007eaab8cc137bc654
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/index.ts
getJsonPointer
function
function getJsonPointer( this: Ajv, parsedRef: URIComponent, {baseId, schema, root}: SchemaEnv ): SchemaEnv | undefined { if (parsedRef.fragment?.[0] !== "/") return for (const part of parsedRef.fragment.slice(1).split("/")) { if (typeof schema === "boolean") return const partSchema = schema[unescapeF...
1,286,143
7668c9b489698e5d06f24c9f4a379192
swh:1:cnt:386bf04995827ca2e6653fee7d4095049a753955;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-13/
ed9939eb3536a1fa989ddadb1fabc18514f4eb9b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/ref_error.ts
MissingRefError
type
class MissingRefError extends Error { readonly missingRef: string readonly missingSchema: string constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) { super(msg || `can't resolve reference ${ref} from id ${baseId}`) this.missingRef = resolveUrl(resolver, baseId, ref) this.mi...
1,286,144
dc993870ab0383442fa84852f9f89712
swh:1:cnt:386bf04995827ca2e6653fee7d4095049a753955;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/
ed9939eb3536a1fa989ddadb1fabc18514f4eb9b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/ref_error.ts
MissingRefError::constructor
function
constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) { super(msg || `can't resolve reference ${ref} from id ${baseId}`) this.missingRef = resolveUrl(resolver, baseId, ref) this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef)) }
1,286,145
5b5ebf7253bec0a41893f32294f067fa
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-9/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
LocalRefs
type
type LocalRefs = {[Ref in string]?: AnySchemaObject}
1,286,146
f77d8623bca48c1371379d7bbf6c8a36
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-36/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
inlineRef
function
function inlineRef(schema: AnySchema, limit: boolean | number = true): boolean { if (typeof schema == "boolean") return true if (limit === true) return !hasRef(schema) if (!limit) return false return countKeys(schema) <= limit }
1,286,147
aaef3d5205e432c46591d0269b618e88
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-68/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
countKeys
function
function countKeys(schema: AnySchemaObject): number { let count = 0 for (const key in schema) { if (key === "$ref") return Infinity count++ if (SIMPLE_INLINED.has(key)) continue if (typeof schema[key] == "object") { eachItem(schema[key], (sch) => (count += countKeys(sch))) } if (count ...
1,286,148
83aad5442c78f523bc6d2270d2933a7b
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-54/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
hasRef
function
function hasRef(schema: AnySchemaObject): boolean { for (const key in schema) { if (REF_KEYWORDS.has(key)) return true const sch = schema[key] if (Array.isArray(sch) && sch.some(hasRef)) return true if (typeof sch == "object" && hasRef(sch)) return true } return false }
1,286,149
8d0995632bcb4b5a7db86feec2b58284
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-74/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getFullPath
function
function getFullPath(resolver: UriResolver, id = "", normalize?: boolean): string { if (normalize !== false) id = normalizeId(id) const p = resolver.parse(id) return _getFullPath(resolver, p) }
1,286,150
5f848b877d7d402be973a404526dbacc
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-79/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
_getFullPath
function
function _getFullPath(resolver: UriResolver, p: URIComponent): string { const serialized = resolver.serialize(p) return serialized.split("#")[0] + "#" }
1,286,151
f873e941d9af86bd63044c6a8dbcab92
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-84/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
normalizeId
function
function normalizeId(id: string | undefined): string { return id ? id.replace(TRAILING_SLASH_HASH, "") : "" }
1,286,152
13177a85c7aafd1b72be601b986d2e4b
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-89/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
resolveUrl
function
function resolveUrl(resolver: UriResolver, baseId: string, id: string): string { id = normalizeId(id) return resolver.resolve(baseId, id) }
1,286,153
7d26bf6622031a715a4215202a4bbde8
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-149/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getSchemaRefs
function
function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs { if (typeof schema == "boolean") return {} const {schemaId, uriResolver} = this.opts const schId = normalizeId(schema[schemaId] || baseId) const baseIds: {[JsonPtr in string]?: string} = {"": schId} const pathPrefix = getFullPath...
1,286,154
9f7c20d8e51b00dd1d26e50c9e22c475
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=111-130/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getSchemaRefs::addRef
function
function addRef(this: Ajv, ref: string): string { // eslint-disable-next-line @typescript-eslint/unbound-method const _resolve = this.opts.uriResolver.resolve ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref) if (schemaRefs.has(ref)) throw ambiguos(ref) schemaRefs.add(ref) ...
1,286,155
b310a230d5ef4bfc2bc03172a4f5dbcb
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=132-137/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getSchemaRefs::addAnchor
function
function addAnchor(this: Ajv, anchor: unknown): void { if (typeof anchor == "string") { if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor "${anchor}"`) addRef.call(this, `#${anchor}`) } }
1,286,156
b8755267e252d293ccfabf5358260e45
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-148/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getSchemaRefs::ambiguos
function
function ambiguos(ref: string): Error { return new Error(`reference "${ref}" resolves to more than one schema`) }
1,286,157
49043d60d9813c7dacc24d30337b9149
swh:1:cnt:b8c4aca394a7a3f46f7977c2e66a7ab570213e80;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=142-144/
3b3968b528f1971d5971b621db2c70cc84bfcbf4
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/resolve.ts
getSchemaRefs::checkAmbiguosRef
function
function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void { if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref) }
1,286,158
9995402c3977680e975d6598cdee8de2
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-5/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
JSONType
type
type JSONType = (typeof _jsonTypes)[number]
1,286,159
2948cb9bc406420bb7d16451fdef927a
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-23/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
ValidationRules
type
interface ValidationRules { rules: RuleGroup[] post: RuleGroup all: {[Key in string]?: boolean | Rule} // rules that have to be validated keywords: {[Key in string]?: boolean} // all known keywords (superset of "all") types: ValidationTypes }
1,286,160
61d3c87f264f9b818feddd7a0eba20cc
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-28/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
RuleGroup
type
interface RuleGroup { type?: JSONType rules: Rule[] }
1,286,161
3f3163b6656c4793aa149b2e74898d19
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-15/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
ValidationTypes
type
type ValidationTypes = { [K in JSONType]: boolean | RuleGroup | undefined }
1,286,162
b4dfabefcbc130c4c54c6b2c0cd967f8
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-34/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
Rule
type
interface Rule { keyword: string definition: AddedKeywordDefinition }
1,286,163
67891682cd9a17dddfd06b8b9316cf95
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-11/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
isJSONType
function
function isJSONType(x: unknown): x is JSONType { return typeof x == "string" && jsonTypes.has(x) }
1,286,164
04fd169be335cb7b5db05ec3c140806f
swh:1:cnt:7dbf7ab9e08317ff4e893317d07962bb6df43327;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-50/
54b3ee73b4c46c3c813089e37d03a51c60c2bb2f
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/rules.ts
getRules
function
function getRules(): ValidationRules { const groups: Record<"number" | "string" | "array" | "object", RuleGroup> = { number: {type: "number", rules: []}, string: {type: "string", rules: []}, array: {type: "array", rules: []}, object: {type: "object", rules: []}, } return { types: {...groups, i...
1,286,165
e92f08e05238dcf8451809385d5e7815
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
toHash
function
function toHash<T extends string = string>(arr: T[]): {[K in T]?: true} { const hash: {[K in T]?: true} = {} for (const item of arr) hash[item] = true return hash }
1,286,166
73f839c3b46ba6798ec0b69437016c9f
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-19/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
alwaysValidSchema
function
function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void { if (typeof schema == "boolean") return schema if (Object.keys(schema).length === 0) return true checkUnknownRules(it, schema) return !schemaHasRules(schema, it.self.RULES.all) }
1,286,167
b1ead0cbe15cc1a1baff9266a8c3fd01
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-44/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
schemaHasRulesButRef
function
function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean { if (typeof schema == "boolean") return !schema for (const key in schema) if (key !== "$ref" && RULES.all[key]) return true return false }
1,286,168
9692aebcd55a7ca1dbe20fb1369ec70d
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-38/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
schemaHasRules
function
function schemaHasRules( schema: AnySchema, rules: {[Key in string]?: boolean | Rule} ): boolean { if (typeof schema == "boolean") return !schema for (const key in schema) if (rules[key]) return true return false }
1,286,169
901f0efc4cf159ff197c6d808f014a22
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-29/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
checkUnknownRules
function
function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void { const {opts, self} = it if (!opts.strictSchema) return if (typeof schema === "boolean") return const rules = self.RULES.keywords for (const key in schema) { if (!rules[key]) checkStrictMode(it, `unknown keyword: "${key}"`) ...
1,286,170
ab1d6cea274db9095ce2020aa2c1b02d
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-57/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
schemaRefOrVal
function
function schemaRefOrVal( {topSchemaRef, schemaPath}: SchemaObjCxt, schema: unknown, keyword: string, $data?: string | false ): Code | number | boolean { if (!$data) { if (typeof schema == "number" || typeof schema == "boolean") return schema if (typeof schema == "string") return _`${schema}` } ret...
1,286,171
4e0c5752cc3267613c72bc4be1fa631b
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-61/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
unescapeFragment
function
function unescapeFragment(str: string): string { return unescapeJsonPointer(decodeURIComponent(str)) }
1,286,172
6e162b903ae78319499ac530237f44d2
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-65/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
escapeFragment
function
function escapeFragment(str: string | number): string { return encodeURIComponent(escapeJsonPointer(str)) }
1,286,173
1d6e8a3bbbef1735c4b29a19e4adde27
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-70/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
escapeJsonPointer
function
function escapeJsonPointer(str: string | number): string { if (typeof str == "number") return `${str}` return str.replace(/~/g, "~0").replace(/\//g, "~1") }
1,286,174
ed84adee186c4dc036cd54a81501eba6
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-74/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
unescapeJsonPointer
function
function unescapeJsonPointer(str: string): string { return str.replace(/~1/g, "/").replace(/~0/g, "~") }
1,286,175
5e57d52006307f60014e2c23091df046
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=173-178/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
useFunc
function
function useFunc(gen: CodeGen, f: {code: string}): Name { return gen.scopeValue("func", { ref: f, code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)), }) }
1,286,176
41bc4f68dc18a9edb81eba7af67b267f
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=204-213/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
checkStrictMode
function
function checkStrictMode( it: SchemaCxt, msg: string, mode: boolean | "log" = it.opts.strictSchema ): void { if (!mode) return msg = `strict mode: ${msg}` if (mode === true) throw new Error(msg) it.self.logger.warn(msg) }
1,286,177
3a216db50b62f6238fc52884a83a6f65
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=167-169/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
setEvaluated
function
function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void { Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true)) }
1,286,178
2d7788504db9c4ab4f10f9b4aee1fdd9
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-82/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
eachItem
function
function eachItem<T>(xs: T | T[], f: (x: T) => void): void { if (Array.isArray(xs)) { for (const x of xs) f(x) } else { f(xs) } }
1,286,179
3dadc8c8f4c45a76ac0825d45502ec7d
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-165/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
evaluatedPropsToName
function
function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name { if (ps === true) return gen.var("props", true) const props = gen.var("props", _`{}`) if (ps !== undefined) setEvaluated(gen, props, ps) return props }
1,286,180
7415e16b738c9f926349e79236307cc6
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=185-202/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
getErrorPath
function
function getErrorPath( dataProp: Name | string | number, dataPropType?: Type, jsPropertySyntax?: boolean ): Code | string { // let path if (dataProp instanceof Name) { const isNumber = dataPropType === Type.Num return jsPropertySyntax ? isNumber ? _`"[" + ${dataProp} + "]"` : _`"...
1,286,181
7e4a4bf49f4c59a2b290088681e1e4ac
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-117/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
makeMergeEvaluated
function
function makeMergeEvaluated<T extends SomeEvaluated>({ mergeNames, mergeToName, mergeValues, resultToName, }: MakeMergeFuncArgs<T>): MergeEvaluatedFunc<T> { return (gen, from, to, toName) => { const res = to === undefined ? from : to instanceof Name ? (from instanceof Name ? ...
1,286,182
1845b1159575322bbb97435b9992fbcc
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-84/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
SomeEvaluated
type
type SomeEvaluated = EvaluatedProperties | EvaluatedItems
1,286,183
9de3793263ee8c6e9a2ed55b0c40def0
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-91/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
MergeEvaluatedFunc
type
type MergeEvaluatedFunc<T extends SomeEvaluated> = ( gen: CodeGen, from: Name | T, to: Name | Exclude<T, true> | undefined, toName?: typeof Name ) => Name | T
1,286,184
c83b1e0e8a4f3219fe8410109b401c20
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-98/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
MakeMergeFuncArgs
type
interface MakeMergeFuncArgs<T extends SomeEvaluated> { mergeNames: (gen: CodeGen, from: Name, to: Name) => void mergeToName: (gen: CodeGen, from: T, to: Name) => void mergeValues: (from: T, to: Exclude<T, true>) => T resultToName: (gen: CodeGen, res?: T) => Name }
1,286,185
774d1d491f094ea24b5a2ede469248ea
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-122/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
MergeEvaluated
type
interface MergeEvaluated { props: MergeEvaluatedFunc<EvaluatedProperties> items: MergeEvaluatedFunc<EvaluatedItems> }
1,286,186
eefc633b6e97fab9c53607b9799d6a8d
swh:1:cnt:cefae51c2bfcc01fed2b40bcbe3425c9d1c53d18;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=180-183/
9b6214c04fe02a0f68a6f543b01ab49f8991a642
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/util.ts
Type
type
enum Type { Num, Str, }
1,286,187
02f848df9df7811c00fef0e5077fe1d9
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-30/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Name
type
class Name extends _CodeOrName { readonly str: string constructor(s: string) { super() if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier") this.str = s } toString(): string { return this.str } emptyStr(): boolean { return false } get names(): UsedN...
1,286,188
3fdfaacc4fb4dbf05a0413254cafea48
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-62/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code
type
class _Code extends _CodeOrName { readonly _items: readonly CodeItem[] private _str?: string private _names?: UsedNames constructor(code: string | readonly CodeItem[]) { super() this._items = typeof code === "string" ? [code] : code } toString(): string { return this.str } emptyStr(): boo...
1,286,189
ae112185dc5ee7e70a0fb1cba2a8eedd
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-66/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
UsedNames
type
type UsedNames = Record<string, number | undefined>
1,286,190
8b765d4fd14ca24951cc6b546331a9f3
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-64/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
CodeItem
type
type CodeItem = Name | string | number | boolean | null
1,286,191
ebff8132272354bd9b8cdd26ff7b46af
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-68/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Code
type
type Code = _Code | Name
1,286,192
d52f835fcdf673b08fc6b85f3dcae89d
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-70/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
SafeExpr
type
type SafeExpr = Code | number | boolean | null
1,286,193
148a2a80365bedd0c0dde838ed4431a6
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-74/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
CodeArg
type
type CodeArg = SafeExpr | string | undefined
1,286,194
b78b44a861317192f1c5a9840dda8fd7
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-84/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_
function
function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code { const code: CodeItem[] = [strs[0]] let i = 0 while (i < args.length) { addCodeArg(code, args[i]) code.push(strs[++i]) } return new _Code(code) }
1,286,195
19d86cf72ff0a6eab2ada8a688dd0368
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=121-132/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
mergeExprItems
function
function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined { if (b === '""') return a if (a === '""') return b if (typeof a == "string") { if (b instanceof Name || a[a.length - 1] !== '"') return if (typeof b != "string") return `${a.slice(0, -1)}${b}"` if (b[0] === '"') return a.slice(0,...
1,286,196
6145b3cfebb04d2442ce4a9eabcc7b73
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-104/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
addCodeArg
function
function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void { if (arg instanceof _Code) code.push(...arg._items) else if (arg instanceof Name) code.push(arg) else code.push(interpolate(arg)) }
1,286,197
d251be95263e590fb49f6b39feb918ce
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=155-157/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
getProperty
function
function getProperty(key: Code | string | number): Code { return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]` }
1,286,198
f2209f1cf8fde3f7b2bfc8bac2921fdb
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=167-169/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
regexpCode
function
function regexpCode(rx: RegExp): Code { return new _Code(rx.toString()) }
1,286,199
14ed58e6bf7d392d9259224e056d674e
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-29/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Name::names
function
get names(): UsedNames { return {[this.str]: 1} }