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,800
e84b47258fe98ae0930400343d00addc
swh:1:cnt:e64945077647a81d99a6460ae6e86b5394c250c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-54/
9d5c4f61f7f8878fd493a22f2a37b3194ce6a1c9
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/jtd/values.ts
code::validateMap
function
function validateMap(): Name | boolean { const _valid = gen.name("valid") if (it.allErrors) { const validMap = gen.let("valid", true) validateValues(() => gen.assign(validMap, false)) return validMap } gen.var(_valid, true) validateValues(() => gen.break()) re...
1,286,801
b7ff8f68a3326fcab461d2d526c3f2cc
swh:1:cnt:50bf0e7c17873ad2f435a92105745d4aa8ed9d26;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-11/
674947d411e6d7d1017c29dd20f9df6501a03e9c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts
UnevaluatedItemsError
type
type UnevaluatedItemsError = ErrorObject<"unevaluatedItems", {limit: number}, AnySchema>
1,286,802
76f0350d623ff09663d0fcee1f0061ba
swh:1:cnt:50bf0e7c17873ad2f435a92105745d4aa8ed9d26;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-44/
674947d411e6d7d1017c29dd20f9df6501a03e9c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts
code
function
code(cxt: KeywordCxt) { const {gen, schema, data, it} = cxt const items = it.items || 0 if (items === true) return const len = gen.const("len", _`${data}.length`) if (schema === false) { cxt.setParams({len: items}) cxt.fail(_`${len} > ${items}`) } else if (typeof schema == "object" &...
1,286,803
98aedc03ec6b17f99b645a13a18d63ff
swh:1:cnt:50bf0e7c17873ad2f435a92105745d4aa8ed9d26;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-43/
674947d411e6d7d1017c29dd20f9df6501a03e9c
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts
code::validateItems
function
function validateItems(valid: Name, from: Name | number): void { gen.forRange("i", from, len, (i) => { cxt.subschema({keyword: "unevaluatedItems", dataProp: i, dataPropType: Type.Num}, valid) if (!it.allErrors) gen.if(not(valid), () => gen.break()) }) }
1,286,804
f632a3db148cdf3d6dc5d74fdda45248
swh:1:cnt:0e6868fa326dab80317a39e135a4b4deb1d0f2f4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-15/
a230778154efc8da1d6c6ec3f4d2afe477514307
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts
UnevaluatedPropertiesError
type
type UnevaluatedPropertiesError = ErrorObject< "unevaluatedProperties", {unevaluatedProperty: string}, AnySchema >
1,286,805
3a86f67e4714dc550090390d904c9aad
swh:1:cnt:0e6868fa326dab80317a39e135a4b4deb1d0f2f4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-82/
a230778154efc8da1d6c6ec3f4d2afe477514307
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts
code
function
code(cxt) { const {gen, schema, data, errsCount, it} = cxt /* istanbul ignore if */ if (!errsCount) throw new Error("ajv implementation error") const {allErrors, props} = it if (props instanceof Name) { gen.if(_`${props} !== true`, () => gen.forIn("key", data, (key: Name) => ...
1,286,806
09e75ee860a854d61662f87ed38445f7
swh:1:cnt:0e6868fa326dab80317a39e135a4b4deb1d0f2f4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-81/
a230778154efc8da1d6c6ec3f4d2afe477514307
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts
code::unevaluatedStatic
function
function unevaluatedStatic(evaluatedProps: {[K in string]?: true}, key: Name): Code { const ps: Code[] = [] for (const p in evaluatedProps) { if (evaluatedProps[p] === true) ps.push(_`${key} !== ${p}`) } return and(...ps) }
1,286,807
10d7ee96f50c6b36ce035bf952bfee3a
swh:1:cnt:0e6868fa326dab80317a39e135a4b4deb1d0f2f4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-69/
a230778154efc8da1d6c6ec3f4d2afe477514307
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts
code::unevaluatedPropCode
function
function unevaluatedPropCode(key: Name): void { if (schema === false) { cxt.setParams({unevaluatedProperty: key}) cxt.error() if (!allErrors) gen.break() return } if (!alwaysValidSchema(it, schema)) { const valid = gen.name("valid") cxt.subschema( ...
1,286,808
6f66b2f320a26efc7b254a65f19e4a01
swh:1:cnt:0e6868fa326dab80317a39e135a4b4deb1d0f2f4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=71-73/
a230778154efc8da1d6c6ec3f4d2afe477514307
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts
code::unevaluatedDynamic
function
function unevaluatedDynamic(evaluatedProps: Name, key: Name): Code { return _`!${evaluatedProps} || !${evaluatedProps}[${key}]` }
1,286,809
f5f41a9cc06d574c5f24d4123e7506bd
swh:1:cnt:a3b94a5dcd3d0ad993a83088694b9375089f735d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-7/
927028c13f763eae923f755cbbcf0e005e391f47
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/const.ts
ConstError
type
type ConstError = ErrorObject<"const", {allowedValue: any}>
1,286,810
8d4960f5a722d5361af8645da66b029d
swh:1:cnt:a3b94a5dcd3d0ad993a83088694b9375089f735d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-25/
927028c13f763eae923f755cbbcf0e005e391f47
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/const.ts
code
function
code(cxt: KeywordCxt) { const {gen, data, $data, schemaCode, schema} = cxt if ($data || (schema && typeof schema == "object")) { cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`) } else { cxt.fail(_`${schema} !== ${data}`) } }
1,286,811
cf412a56192f8edfee32dcf38d86a15b
swh:1:cnt:4c616cfa9ac79fabdd5e4d2ff19840adec61f813;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-13/
1d1de3aac72c6b612dfd958e8bdc35de575c3944
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts
DependentRequiredError
type
type DependentRequiredError = ErrorObject< "dependentRequired", DependenciesErrorParams, PropertyDependencies >
1,286,812
5527b526d79e5da9337611ed23fe1a6e
swh:1:cnt:76377fb02e6a9e8843ba08b2e858a19a067b787b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-7/
9453a8985d3074d16fc7b9dcd96b045338129c96
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/enum.ts
EnumError
type
type EnumError = ErrorObject<"enum", {allowedValues: any[]}, any[] | {$data: string}>
1,286,813
6542865ddc9e6ffd33f11905ee3921dc
swh:1:cnt:76377fb02e6a9e8843ba08b2e858a19a067b787b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-51/
9453a8985d3074d16fc7b9dcd96b045338129c96
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/enum.ts
code
function
code(cxt: KeywordCxt) { const {gen, data, $data, schema, schemaCode, it} = cxt if (!$data && schema.length === 0) throw new Error("enum must have non-empty array") const useLoop = schema.length >= it.opts.loopEnum let eql: Name | undefined const getEql = (): Name => (eql ??= useFunc(gen, equal)) ...
1,286,814
5ad2da161f43ea443e512efc6cb447f7
swh:1:cnt:76377fb02e6a9e8843ba08b2e858a19a067b787b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-43/
9453a8985d3074d16fc7b9dcd96b045338129c96
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/enum.ts
code::loopEnum
function
function loopEnum(): void { gen.assign(valid, false) gen.forOf("v", schemaCode as Code, (v) => gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()) ) }
1,286,815
a25f9ba194454743e044088b0bee4e00
swh:1:cnt:76377fb02e6a9e8843ba08b2e858a19a067b787b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=45-50/
9453a8985d3074d16fc7b9dcd96b045338129c96
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/enum.ts
code::equalCode
function
function equalCode(vSchema: Name, i: number): Code { const sch = schema[i] return typeof sch === "object" && sch !== null ? _`${getEql()}(${data}, ${vSchema}[${i}])` : _`${data} === ${sch}` }
1,286,816
dbd80e4aec66b35f7732c44682c8af5e
swh:1:cnt:3531b19628b7dfb2526a81cd38d6c93ee1a54dbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-39/
a11289b1f585da1df989de87862f858901bb0b49
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/index.ts
LimitError
type
type LimitError = ErrorObject< "maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", {limit: number}, number | {$data: string} >
1,286,817
670c1f6f4217ad229c823f2d30aebf89
swh:1:cnt:3531b19628b7dfb2526a81cd38d6c93ee1a54dbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-49/
a11289b1f585da1df989de87862f858901bb0b49
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/index.ts
ValidationKeywordError
type
type ValidationKeywordError = | LimitError | LimitNumberError | MultipleOfError | PatternError | RequiredError | UniqueItemsError | ConstError | EnumError
1,286,818
876c74b3a1dd342e404a698316079d04
swh:1:cnt:8bb43c1a4a66f1d8781181cbd07f06edb76aea02;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-13/
7d01bea77d6bfc670e9c64ee09182a2fe7fd7d6a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitContains.ts
code
function
code({keyword, parentSchema, it}: KeywordCxt) { if (parentSchema.contains === undefined) { checkStrictMode(it, `"${keyword}" without "contains" is ignored`) } }
1,286,819
a8b032ed051d476746bdb474445bbc9b
swh:1:cnt:566de8588b3be2fcccdeff56f26338be0dc6fcb4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-9/
bc8ca2c1fa893bebffb8515daef3ddca1b3e72e5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitItems.ts
message
function
message({keyword, schemaCode}) { const comp = keyword === "maxItems" ? "more" : "fewer" return str`must NOT have ${comp} than ${schemaCode} items` }
1,286,820
45c27b0da7eb418f5fc7fab1ff539779
swh:1:cnt:566de8588b3be2fcccdeff56f26338be0dc6fcb4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-23/
bc8ca2c1fa893bebffb8515daef3ddca1b3e72e5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitItems.ts
code
function
code(cxt: KeywordCxt) { const {keyword, data, schemaCode} = cxt const op = keyword === "maxItems" ? operators.GT : operators.LT cxt.fail$data(_`${data}.length ${op} ${schemaCode}`) }
1,286,821
c7be55689d9b50de422d12910bff41f1
swh:1:cnt:f4f947259549ad3d0e9fe992e5a92a83696e1177;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-11/
4f3824ebca0214ee7c56119edc353de41830de50
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitLength.ts
message
function
message({keyword, schemaCode}) { const comp = keyword === "maxLength" ? "more" : "fewer" return str`must NOT have ${comp} than ${schemaCode} characters` }
1,286,822
e0156a1b0bf98eba4013df5dca3ec85f
swh:1:cnt:f4f947259549ad3d0e9fe992e5a92a83696e1177;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-27/
4f3824ebca0214ee7c56119edc353de41830de50
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitLength.ts
code
function
code(cxt: KeywordCxt) { const {keyword, data, schemaCode, it} = cxt const op = keyword === "maxLength" ? operators.GT : operators.LT const len = it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})` cxt.fail$data(_`${len} ${op} ${schemaCode}`) }
1,286,823
f4454d27a21d0a1f4ad19720243774da
swh:1:cnt:5499202efbfec965a9acd8c71e145e79110923d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-7/
a43c51baf971cf088896951e4ad16a248fd1661d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts
Kwd
type
type Kwd = "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"
1,286,824
8518cee338235ace5ffbe8ec00f6438f
swh:1:cnt:5499202efbfec965a9acd8c71e145e79110923d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-9/
a43c51baf971cf088896951e4ad16a248fd1661d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts
Comparison
type
type Comparison = "<=" | ">=" | "<" | ">"
1,286,825
a54bbecbcb27d327c6ae1b62b6d7400a
swh:1:cnt:5499202efbfec965a9acd8c71e145e79110923d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-22/
a43c51baf971cf088896951e4ad16a248fd1661d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts
LimitNumberError
type
type LimitNumberError = ErrorObject< Kwd, {limit: number; comparison: Comparison}, number | {$data: string} >
1,286,826
b580264686e60d8a01c90290e09c9f7d
swh:1:cnt:5499202efbfec965a9acd8c71e145e79110923d9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-39/
a43c51baf971cf088896951e4ad16a248fd1661d
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts
code
function
code(cxt: KeywordCxt) { const {keyword, data, schemaCode} = cxt cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`) }
1,286,827
c0562e8e5b3351c9e0339d7414c2fb07
swh:1:cnt:07fffa8b39a03798262a94da5c55ac6e3e7ce200;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-9/
b3fcfce63c4230173b597ba63a16fd8c4f7ca5f7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts
message
function
message({keyword, schemaCode}) { const comp = keyword === "maxProperties" ? "more" : "fewer" return str`must NOT have ${comp} than ${schemaCode} properties` }
1,286,828
22e503ddc07622d9a6b40710826631be
swh:1:cnt:07fffa8b39a03798262a94da5c55ac6e3e7ce200;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-23/
b3fcfce63c4230173b597ba63a16fd8c4f7ca5f7
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts
code
function
code(cxt: KeywordCxt) { const {keyword, data, schemaCode} = cxt const op = keyword === "maxProperties" ? operators.GT : operators.LT cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`) }
1,286,829
516d61ffa86fc9b6fa4dbe11ccb6d186
swh:1:cnt:1fd79abbd91c41d872ec775441f48b69550e8655;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-9/
89b818a36b6033b4d27759503ebc42f2ebb52457
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts
MultipleOfError
type
type MultipleOfError = ErrorObject< "multipleOf", {multipleOf: number}, number | {$data: string} >
1,286,830
9d89af8f76ad5f87a98b48ce2776f250
swh:1:cnt:1fd79abbd91c41d872ec775441f48b69550e8655;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-31/
89b818a36b6033b4d27759503ebc42f2ebb52457
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts
code
function
code(cxt: KeywordCxt) { const {gen, data, schemaCode, it} = cxt // const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data) const prec = it.opts.multipleOfPrecision const res = gen.let("res") const invalid = prec ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : _`${re...
1,286,831
2dfab22c090d87e99fdbcfaba51c742e
swh:1:cnt:bb0203b88794d72d91717f1091009766ea0bc548;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-7/
afcf53e0cd38c5b9d7de119dacf69866be493476
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/pattern.ts
PatternError
type
type PatternError = ErrorObject<"pattern", {pattern: string}, string | {$data: string}>
1,286,832
6e6af18afe0d193dc553adf578c6b629
swh:1:cnt:bb0203b88794d72d91717f1091009766ea0bc548;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-36/
afcf53e0cd38c5b9d7de119dacf69866be493476
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/pattern.ts
code
function
code(cxt: KeywordCxt) { const {gen, data, $data, schema, schemaCode, it} = cxt const u = it.opts.unicodeRegExp ? "u" : "" if ($data) { const {regExp} = it.opts.code const regExpCode = regExp.code === "new RegExp" ? _`new RegExp` : useFunc(gen, regExp) const valid = gen.let("valid") g...
1,286,833
2b6b6d9d56c27171c51a5b597702d2c3
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-17/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
RequiredError
type
type RequiredError = ErrorObject< "required", {missingProperty: string}, string[] | {$data: string} >
1,286,834
2f6ef98e23f71a49ec16fc974e5492ba
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-94/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
code::loopUntilMissing
function
function loopUntilMissing(missing: Name, valid: Name): void { cxt.setParams({missingProperty: missing}) gen.forOf( missing, schemaCode as Code, () => { gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties)) gen.if(not(valid), () => { ...
1,286,835
1aa79f67fd9eaf2b25ccdb90978568a8
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-78/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
code::loopAllRequired
function
function loopAllRequired(): void { gen.forOf("prop", schemaCode as Code, (prop) => { cxt.setParams({missingProperty: prop}) gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error()) }) }
1,286,836
0503fa16db2323602a01f80e6a91aeae
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-71/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
code::exitOnErrorMode
function
function exitOnErrorMode(): void { const missing = gen.let("missing") if (useLoop || $data) { const valid = gen.let("valid", true) cxt.block$data(valid, () => loopUntilMissing(missing, valid)) cxt.ok(valid) } else { gen.if(checkMissingProp(cxt, schema, missing)) ...
1,286,837
66863286c12e5f5565ba828417cbb3ce
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-58/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
code::allErrorsMode
function
function allErrorsMode(): void { if (useLoop || $data) { cxt.block$data(nil, loopAllRequired) } else { for (const prop of schema) { checkReportMissingProp(cxt, prop) } } }
1,286,838
f361e205f0b25e5be3ebae18a43e11e8
swh:1:cnt:fea7367ed7b8f0cfeee2a73a1cecaca7f8c0c115;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-95/
11cd445ef8098a33b262ee93710021df22e941ed
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/required.ts
code
function
code(cxt: KeywordCxt) { const {gen, schema, schemaCode, data, $data, it} = cxt const {opts} = it if (!$data && schema.length === 0) return const useLoop = schema.length >= opts.loopRequired if (it.allErrors) allErrorsMode() else exitOnErrorMode() if (opts.strictRequired) { const props...
1,286,839
4aced3931a604f1bebebdb86af4cf98f
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-12/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
UniqueItemsError
type
type UniqueItemsError = ErrorObject< "uniqueItems", {i: number; j: number}, boolean | {$data: string} >
1,286,840
a7ce91faf4ac869813bbe86fdc6940c2
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-40/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
code::validateUniqueItems
function
function validateUniqueItems(): void { const i = gen.let("i", _`${data}.length`) const j = gen.let("j") cxt.setParams({i, j}) gen.assign(valid, true) gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j)) }
1,286,841
0898fe72e0e7d5b8459888b979ff5e8f
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-44/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
code::canOptimize
function
function canOptimize(): boolean { return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array") }
1,286,842
31506f9ab9b2f41d2d9013e365631bea
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-75/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
code::loopN2
function
function loopN2(i: Name, j: Name): void { const eql = useFunc(gen, equal) const outer = gen.name("outer") gen.label(outer).for(_`;${i}--;`, () => gen.for(_`${j} = ${i}; ${j}--;`, () => gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => { cxt.error() gen.ass...
1,286,843
1fec57532ee6fc52f4e5a485a4c77e55
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-62/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
code::loopN
function
function loopN(i: Name, j: Name): void { const item = gen.name("item") const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong) const indices = gen.const("indices", _`{}`) gen.for(_`;${i}--;`, () => { gen.let(item, _`${data}[${i}]`) gen.if(wrongTyp...
1,286,844
c458b5fb417ad6a7d72ec8d3fea846f9
swh:1:cnt:765c4d04fc2472b774838d06fe13c15a98b58a9b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-76/
b0c94b4b30cedab9c7e255df79792128f045b5fc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts
code
function
code(cxt: KeywordCxt) { const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt if (!$data && !schema) return const valid = gen.let("valid") const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : [] cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === fals...
1,286,845
fcdc5f837bbe6358066e7648cc974730
swh:1:cnt:d9468e699c118aa316bb2bca78a95ef2ed4e44a8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-25/
ec539605e59795a028269489577df8a16ed9eb39
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/index.js
get
function
get () { return fs.promises }
1,286,846
cca3225ceee956252973bab712334f5f
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-100/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copyFile
function
function copyFile (srcStat, src, dest, opts, cb) { fs.copyFile(src, dest, err => { if (err) return cb(err) if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb) return setDestMode(dest, srcStat.mode, cb) }) }
1,286,847
700cb0b0df7877567391d7fb1af70db1
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-113/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
handleTimestampsAndMode
function
function handleTimestampsAndMode (srcMode, src, dest, cb) { // Make sure the file is writable before setting the timestamp // otherwise open fails with EPERM when invoked with 'r+' // (through utimes call) if (fileIsNotWritable(srcMode)) { return makeFileWritable(dest, srcMode, err => { if (err) retur...
1,286,848
a9a54a62e9eca5b6d6b9f7938441cfef
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=175-186/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copyDirItem
function
function copyDirItem (items, item, src, dest, opts, cb) { const srcItem = path.join(src, item) const destItem = path.join(dest, item) stat.checkPaths(srcItem, destItem, 'copy', (err, stats) => { if (err) return cb(err) const { destStat } = stats startCopy(destStat, srcItem, destItem, opts, err => { ...
1,286,849
fa8d9d40ea7ee43d43c1341a9d76ea9e
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=188-223/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
onLink
function
function onLink (destStat, src, dest, opts, cb) { fs.readlink(src, (err, resolvedSrc) => { if (err) return cb(err) if (opts.dereference) { resolvedSrc = path.resolve(process.cwd(), resolvedSrc) } if (!destStat) { return fs.symlink(resolvedSrc, dest, cb) } else { fs.readlink(dest...
1,286,850
890875feffc8ecef10060e0a300f189b
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-76/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
getStats
function
function getStats (destStat, src, dest, opts, cb) { const stat = opts.dereference ? fs.stat : fs.lstat stat(src, (err, srcStat) => { if (err) return cb(err) if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb) else if (srcStat.isFile() || srcStat.isCharacterDevic...
1,286,851
b14ed904ffa01418901f6c46cd310473
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-51/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
checkParentDir
function
function checkParentDir (destStat, src, dest, opts, cb) { const destParent = path.dirname(dest) pathExists(destParent, (err, dirExists) => { if (err) return cb(err) if (dirExists) return startCopy(destStat, src, dest, opts, cb) mkdirs(destParent, err => { if (err) return cb(err) return start...
1,286,852
b30f58dbfadd3f50e2f8c69819bccf22
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-58/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
handleFilter
function
function handleFilter (onInclude, destStat, src, dest, opts, cb) { Promise.resolve(opts.filter(src, dest)).then(include => { if (include) return onInclude(destStat, src, dest, opts, cb) return cb() }, error => cb(error)) }
1,286,853
e36ee130f3bfe51b59b1120de63159a5
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=83-92/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
mayCopyFile
function
function mayCopyFile (srcStat, src, dest, opts, cb) { if (opts.overwrite) { fs.unlink(dest, err => { if (err) return cb(err) return copyFile(srcStat, src, dest, opts, cb) }) } else if (opts.errorOnExist) { return cb(new Error(`'${dest}' already exists`)) } else return cb() }
1,286,854
b72805a079f721507576826123ecb38b
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-117/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
fileIsNotWritable
function
function fileIsNotWritable (srcMode) { return (srcMode & 0o200) === 0 }
1,286,855
5a95acb36ca31be18e302613b2199e14
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=123-128/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
setDestTimestampsAndMode
function
function setDestTimestampsAndMode (srcMode, src, dest, cb) { setDestTimestamps(src, dest, err => { if (err) return cb(err) return setDestMode(dest, srcMode, cb) }) }
1,286,856
d22c87620c05c33e4b35fefcb07fd012
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=169-173/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copyDirItems
function
function copyDirItems (items, src, dest, opts, cb) { const item = items.pop() if (!item) return cb() return copyDirItem(items, item, src, dest, opts, cb) }
1,286,857
80835c808c2f7ad41df8e69c0fdd9dfa
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-142/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
setDestTimestamps
function
function setDestTimestamps (src, dest, cb) { // The initial srcStat.atime cannot be trusted // because it is modified by the read(2) system call // (See https://nodejs.org/api/fs.html#fs_stat_time_values) fs.stat(src, (err, updatedSrcStat) => { if (err) return cb(err) return utimesMillis(dest, updatedSr...
1,286,858
b530409006e3090526623695d67e47a8
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-150/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
onDir
function
function onDir (srcStat, destStat, src, dest, opts, cb) { if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb) if (destStat && !destStat.isDirectory()) { return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)) } return copyDir(src, dest, opts, cb) }
1,286,859
2928f495ff231e5fb9aa11601ac821fc
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=60-63/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
startCopy
function
function startCopy (destStat, src, dest, opts, cb) { if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb) return getStats(destStat, src, dest, opts, cb) }
1,286,860
aa4eefe612f3f54298dd7c8adf860b70
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-160/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
mkDirAndCopy
function
function mkDirAndCopy (srcMode, src, dest, opts, cb) { fs.mkdir(dest, err => { if (err) return cb(err) copyDir(src, dest, opts, err => { if (err) return cb(err) return setDestMode(dest, srcMode, cb) }) }) }
1,286,861
68aa21fd2097b6538e3655e14b24b607
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-132/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
setDestMode
function
function setDestMode (dest, srcMode, cb) { return fs.chmod(dest, srcMode, cb) }
1,286,862
4c7e8eca0906046dca67fffb8a463675
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-39/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copy
function
function copy (src, dest, opts, cb) { if (typeof opts === 'function' && !cb) { cb = opts opts = {} } else if (typeof opts === 'function') { opts = { filter: opts } } cb = cb || function () {} opts = opts || {} opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now ...
1,286,863
726af8cf8b6eaff7e1b4a846d47b8888
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-81/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
onFile
function
function onFile (srcStat, destStat, src, dest, opts, cb) { if (!destStat) return copyFile(srcStat, src, dest, opts, cb) return mayCopyFile(srcStat, src, dest, opts, cb) }
1,286,864
c165941d5965efde850862e752ab5050
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=162-167/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copyDir
function
function copyDir (src, dest, opts, cb) { fs.readdir(src, (err, items) => { if (err) return cb(err) return copyDirItems(items, src, dest, opts, cb) }) }
1,286,865
b552ee577c70fb61a3fc069ea5ea0766
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-121/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
makeFileWritable
function
function makeFileWritable (dest, srcMode, cb) { return setDestMode(dest, srcMode | 0o200, cb) }
1,286,866
9e382a1cb42d533028eb422205f36171
swh:1:cnt:328f1025f9b5054a0e727c3a462a0797433d7b0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=225-230/
f9a65884056bc54e818b77e34264706416c8f0ab
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy/copy.js
copyLink
function
function copyLink (resolvedSrc, dest, cb) { fs.unlink(dest, err => { if (err) return cb(err) return fs.symlink(resolvedSrc, dest, cb) }) }
1,286,867
393f2f79e9af70b43d32da776504e863
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-27/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
copySync
function
function copySync (src, dest, opts) { if (typeof opts === 'function') { opts = { filter: opts } } opts = opts || {} opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber...
1,286,868
6938d70d2f26297dce01877d04090bc6
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-55/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
onFile
function
function onFile (srcStat, destStat, src, dest, opts) { if (!destStat) return copyFile(srcStat, src, dest, opts) return mayCopyFile(srcStat, src, dest, opts) }
1,286,869
f287535acdb24d9ee923463c4b8dc8ec
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-39/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
startCopy
function
function startCopy (destStat, src, dest, opts) { if (opts.filter && !opts.filter(src, dest)) return return getStats(destStat, src, dest, opts) }
1,286,870
8b8f5c14f46e172719a7c13d4ccd227c
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-34/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
handleFilterAndCopy
function
function handleFilterAndCopy (destStat, src, dest, opts) { if (opts.filter && !opts.filter(src, dest)) return const destParent = path.dirname(dest) if (!fs.existsSync(destParent)) mkdirsSync(destParent) return startCopy(destStat, src, dest, opts) }
1,286,871
3c223120fdc3e15fb0b75c3554e92cb8
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-50/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
getStats
function
function getStats (destStat, src, dest, opts) { const statSync = opts.dereference ? fs.statSync : fs.lstatSync const srcStat = statSync(src) if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts) else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBl...
1,286,872
9e8819082e94772ec85fb73e4936a37d
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-64/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
mayCopyFile
function
function mayCopyFile (srcStat, src, dest, opts) { if (opts.overwrite) { fs.unlinkSync(dest) return copyFile(srcStat, src, dest, opts) } else if (opts.errorOnExist) { throw new Error(`'${dest}' already exists`) } }
1,286,873
0f748feb0f0daf9804b39a3b17dbc8f9
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-70/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
copyFile
function
function copyFile (srcStat, src, dest, opts) { fs.copyFileSync(src, dest) if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest) return setDestMode(dest, srcStat.mode) }
1,286,874
ec68e142a153fcb8bcfadffdc19e824e
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-78/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
handleTimestamps
function
function handleTimestamps (srcMode, src, dest) { // Make sure the file is writable before setting the timestamp // otherwise open fails with EPERM when invoked with 'r+' // (through utimes call) if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode) return setDestTimestamps(src, dest) }
1,286,875
b72805a079f721507576826123ecb38b
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-82/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
fileIsNotWritable
function
function fileIsNotWritable (srcMode) { return (srcMode & 0o200) === 0 }
1,286,876
0c10692dc770d31a5f6315bd74ddeda2
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-86/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
makeFileWritable
function
function makeFileWritable (dest, srcMode) { return setDestMode(dest, srcMode | 0o200) }
1,286,877
b185ec3ae839a0f5f057327da2085d3d
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=108-112/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
mkDirAndCopy
function
function mkDirAndCopy (srcMode, src, dest, opts) { fs.mkdirSync(dest) copyDir(src, dest, opts) return setDestMode(dest, srcMode) }
1,286,878
12cfbe746f1b45727d4a55f573d9f1dd
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=114-116/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
copyDir
function
function copyDir (src, dest, opts) { fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts)) }
1,286,879
d206c251876e2e76ae74797e6c57cb60
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=161-164/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
copyLink
function
function copyLink (resolvedSrc, dest) { fs.unlinkSync(dest) return fs.symlinkSync(resolvedSrc, dest) }
1,286,880
9cbcaf836d66a0943e9670706fa5fcbd
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=125-159/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
onLink
function
function onLink (destStat, src, dest, opts) { let resolvedSrc = fs.readlinkSync(src) if (opts.dereference) { resolvedSrc = path.resolve(process.cwd(), resolvedSrc) } if (!destStat) { return fs.symlinkSync(resolvedSrc, dest) } else { let resolvedDest try { resolvedDest = fs.readlinkSync(...
1,286,881
43ce1ed175e11a430aa5d826cb7fa2ed
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-123/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
copyDirItem
function
function copyDirItem (item, src, dest, opts) { const srcItem = path.join(src, item) const destItem = path.join(dest, item) const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy') return startCopy(destStat, srcItem, destItem, opts) }
1,286,882
e9a32c2c1776e106123f9865ad7cf22e
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-98/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
setDestTimestamps
function
function setDestTimestamps (src, dest) { // The initial srcStat.atime cannot be trusted // because it is modified by the read(2) system call // (See https://nodejs.org/api/fs.html#fs_stat_time_values) const updatedSrcStat = fs.statSync(src) return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mt...
1,286,883
e3354b564055ce2fb132fccd6e04124b
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-90/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
setDestMode
function
function setDestMode (dest, srcMode) { return fs.chmodSync(dest, srcMode) }
1,286,884
bad01f6c0996880c88b586c0eb5a70f8
swh:1:cnt:31f06e4419d91c8b78e2c7210605173939a3ba93;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-106/
927865fc85a4b1fb3bbafe29f7aa78994efcac97
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/copy-sync/copy-sync.js
onDir
function
function onDir (srcStat, destStat, src, dest, opts) { if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts) if (destStat && !destStat.isDirectory()) { throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`) } return copyDir(src, dest, opts) }
1,286,885
4424c3d0ea608c6f960d34b0a39b43e4
swh:1:cnt:90fb46991e8fded0a31ccee5f3ce5d36f1f7476a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-25/
12fc7afbcadb76e53cb06acc1597af3c6a615ebe
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/empty/index.js
deleteItem
function
function deleteItem () { const item = items.pop() if (!item) return callback() remove.remove(item, err => { if (err) return callback(err) deleteItem() }) }
1,286,886
be8e39da91d4c2afa27034853cf7afe4
swh:1:cnt:90fb46991e8fded0a31ccee5f3ce5d36f1f7476a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-41/
12fc7afbcadb76e53cb06acc1597af3c6a615ebe
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/empty/index.js
emptyDirSync
function
function emptyDirSync (dir) { let items try { items = fs.readdirSync(dir) } catch { return mkdir.mkdirsSync(dir) } items.forEach(item => { item = path.join(dir, item) remove.removeSync(item) }) }
1,286,887
85089b25c0238d914992323b46fe6ef8
swh:1:cnt:15cc473c8a74fbe6e832712cf6015fd06f830415;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-41/
e29d1b9983d995220262089db123ca86b3163ecb
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/file.js
createFile
function
function createFile (file, callback) { function makeFile () { fs.writeFile(file, '', err => { if (err) return callback(err) callback() }) } fs.stat(file, (err, stats) => { // eslint-disable-line handle-callback-err if (!err && stats.isFile()) return callback() const dir = path.dirname...
1,286,888
e9f753d94ade55fd032ba184cc053eab
swh:1:cnt:15cc473c8a74fbe6e832712cf6015fd06f830415;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-14/
e29d1b9983d995220262089db123ca86b3163ecb
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/file.js
createFile::makeFile
function
function makeFile () { fs.writeFile(file, '', err => { if (err) return callback(err) callback() }) }
1,286,889
3592f2266bf014a816d8ac19219655f2
swh:1:cnt:15cc473c8a74fbe6e832712cf6015fd06f830415;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-64/
e29d1b9983d995220262089db123ca86b3163ecb
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/file.js
createFileSync
function
function createFileSync (file) { let stats try { stats = fs.statSync(file) } catch {} if (stats && stats.isFile()) return const dir = path.dirname(file) try { if (!fs.statSync(dir).isDirectory()) { // parent is not a directory // This is just to cause an internal ENOTDIR error to be thr...
1,286,890
f6c674efc490a50375934a73740d84ed
swh:1:cnt:2cd419626a6658ce2403689d541d11ab4d8aafe8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-37/
a3fe4c7657f71bf4d6f2e741c49d8b156b2e64a5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/link.js
createLink
function
function createLink (srcpath, dstpath, callback) { function makeLink (srcpath, dstpath) { fs.link(srcpath, dstpath, err => { if (err) return callback(err) callback(null) }) } pathExists(dstpath, (err, destinationExists) => { if (err) return callback(err) if (destinationExists) return ...
1,286,891
a2038cd0927e1cd8a0ff51d4e9199889
swh:1:cnt:2cd419626a6658ce2403689d541d11ab4d8aafe8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-15/
a3fe4c7657f71bf4d6f2e741c49d8b156b2e64a5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/link.js
createLink::makeLink
function
function makeLink (srcpath, dstpath) { fs.link(srcpath, dstpath, err => { if (err) return callback(err) callback(null) }) }
1,286,892
374d6bf41733534ef04117fe1cdf367c
swh:1:cnt:2cd419626a6658ce2403689d541d11ab4d8aafe8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-56/
a3fe4c7657f71bf4d6f2e741c49d8b156b2e64a5
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/link.js
createLinkSync
function
function createLinkSync (srcpath, dstpath) { const destinationExists = fs.existsSync(dstpath) if (destinationExists) return undefined try { fs.lstatSync(srcpath) } catch (err) { err.message = err.message.replace('lstat', 'ensureLink') throw err } const dir = path.dirname(dstpath) const dirEx...
1,286,893
0583467edf27bccaa7636659b3b1aeeb
swh:1:cnt:33cd76000e6bdcdbb0a87d096100c5771316b119;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-65/
09491a89b994b6ac9c7e0986fcdad6bbaea38ee8
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink-paths.js
symlinkPaths
function
/** * Function that returns two types of paths, one relative to symlink, and one * relative to the current working directory. Checks if path is absolute or * relative. If the path is relative, this function checks if the path is * relative to symlink or relative to current working directory. This is an * initiativ...
1,286,894
669b220c66295b5a55355c2dfa19120d
swh:1:cnt:33cd76000e6bdcdbb0a87d096100c5771316b119;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-94/
09491a89b994b6ac9c7e0986fcdad6bbaea38ee8
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink-paths.js
symlinkPathsSync
function
function symlinkPathsSync (srcpath, dstpath) { let exists if (path.isAbsolute(srcpath)) { exists = fs.existsSync(srcpath) if (!exists) throw new Error('absolute srcpath does not exist') return { toCwd: srcpath, toDst: srcpath } } else { const dstdir = path.dirname(dstpath) cons...
1,286,895
3fa2a93200215684937688759961078a
swh:1:cnt:42dc0ce753d641a72c453fb1a3cd09cbb1196e97;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-14/
f585a81c2ff3e3506758135ae266aa71852791dc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink-type.js
symlinkType
function
function symlinkType (srcpath, type, callback) { callback = (typeof type === 'function') ? type : callback type = (typeof type === 'function') ? false : type if (type) return callback(null, type) fs.lstat(srcpath, (err, stats) => { if (err) return callback(null, 'file') type = (stats && stats.isDirector...
1,286,896
336e074ee66a3c6b63e8a1c9d6291323
swh:1:cnt:42dc0ce753d641a72c453fb1a3cd09cbb1196e97;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-26/
f585a81c2ff3e3506758135ae266aa71852791dc
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink-type.js
symlinkTypeSync
function
function symlinkTypeSync (srcpath, type) { let stats if (type) return type try { stats = fs.lstatSync(srcpath) } catch { return 'file' } return (stats && stats.isDirectory()) ? 'dir' : 'file' }
1,286,897
72496701a51eb5465c6ddfa587f69b73
swh:1:cnt:fe68b799787243921c6acd712d438c708a392e02;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-44/
7ca77e91f563e9da1f71d245ab25aa7d5fd4d49a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink.js
createSymlink
function
function createSymlink (srcpath, dstpath, type, callback) { callback = (typeof type === 'function') ? type : callback type = (typeof type === 'function') ? false : type pathExists(dstpath, (err, destinationExists) => { if (err) return callback(err) if (destinationExists) return callback(null) symlink...
1,286,898
dbed3e50d2832161e39db55a6a9935ba
swh:1:cnt:fe68b799787243921c6acd712d438c708a392e02;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-58/
7ca77e91f563e9da1f71d245ab25aa7d5fd4d49a
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/ensure/symlink.js
createSymlinkSync
function
function createSymlinkSync (srcpath, dstpath, type) { const destinationExists = fs.existsSync(dstpath) if (destinationExists) return undefined const relative = symlinkPathsSync(srcpath, dstpath) srcpath = relative.toDst type = symlinkTypeSync(relative.toCwd, type) const dir = path.dirname(dstpath) const ...
1,286,899
4335c5fda2b367ca6f33987b5a3b5499
swh:1:cnt:f76b4744ce5e2dd57653a0228b07a8bbbad44367;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-10/
068d186e0970a0c193cbf6b05e7c31030524754b
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/fs-extra/lib/json/output-json-sync.js
outputJsonSync
function
function outputJsonSync (file, data, options) { const str = stringify(data, options) outputFileSync(file, str, options) }