@squiz/db-lib 1.33.1-alpha.6 → 1.34.0
Sign up to get free protection for your applications and to get access to all the features.
package/.npm/_logs/{2023-05-15T01_10_19_239Z-debug-0.log → 2023-05-16T05_34_29_785Z-debug-0.log}
RENAMED
@@ -4,34 +4,34 @@
|
|
4
4
|
3 timing npm:load:whichnode Completed in 1ms
|
5
5
|
4 timing config:load:defaults Completed in 2ms
|
6
6
|
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
|
7
|
-
6 timing config:load:builtin Completed in
|
8
|
-
7 timing config:load:cli Completed in
|
9
|
-
8 timing config:load:env Completed in
|
7
|
+
6 timing config:load:builtin Completed in 1ms
|
8
|
+
7 timing config:load:cli Completed in 2ms
|
9
|
+
8 timing config:load:env Completed in 1ms
|
10
10
|
9 info found workspace root at /builds/developer-experience/cmp
|
11
|
-
10 timing config:load:file:/builds/developer-experience/cmp/.npmrc Completed in
|
12
|
-
11 timing config:load:project Completed in
|
13
|
-
12 timing config:load:file:/root/.npmrc Completed in
|
14
|
-
13 timing config:load:user Completed in
|
11
|
+
10 timing config:load:file:/builds/developer-experience/cmp/.npmrc Completed in 0ms
|
12
|
+
11 timing config:load:project Completed in 20ms
|
13
|
+
12 timing config:load:file:/root/.npmrc Completed in 0ms
|
14
|
+
13 timing config:load:user Completed in 2ms
|
15
15
|
14 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
|
16
16
|
15 timing config:load:global Completed in 0ms
|
17
17
|
16 timing config:load:setEnvs Completed in 1ms
|
18
|
-
17 timing config:load Completed in
|
19
|
-
18 timing npm:load:configload Completed in
|
20
|
-
19 timing npm:load:mkdirpcache Completed in
|
18
|
+
17 timing config:load Completed in 30ms
|
19
|
+
18 timing npm:load:configload Completed in 30ms
|
20
|
+
19 timing npm:load:mkdirpcache Completed in 1ms
|
21
21
|
20 timing npm:load:mkdirplogs Completed in 0ms
|
22
22
|
21 verbose title npm run compile
|
23
23
|
22 verbose argv "run" "compile" "--"
|
24
|
-
23 timing npm:load:setTitle Completed in
|
24
|
+
23 timing npm:load:setTitle Completed in 1ms
|
25
25
|
24 timing config:load:flatten Completed in 4ms
|
26
|
-
25 timing npm:load:display Completed in
|
27
|
-
26 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-
|
28
|
-
27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-
|
29
|
-
28 timing npm:load:logFile Completed in
|
26
|
+
25 timing npm:load:display Completed in 6ms
|
27
|
+
26 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-16T05_34_29_785Z-
|
28
|
+
27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-16T05_34_29_785Z-debug-0.log
|
29
|
+
28 timing npm:load:logFile Completed in 5ms
|
30
30
|
29 timing npm:load:timers Completed in 0ms
|
31
31
|
30 timing npm:load:configScope Completed in 0ms
|
32
|
-
31 timing npm:load Completed in
|
32
|
+
31 timing npm:load Completed in 45ms
|
33
33
|
32 silly logfile done cleaning log files
|
34
|
-
33 timing command:run Completed in
|
34
|
+
33 timing command:run Completed in 3897ms
|
35
35
|
34 verbose exit 0
|
36
|
-
35 timing npm Completed in
|
36
|
+
35 timing npm Completed in 3955ms
|
37
37
|
36 info ok
|
package/lib/index.js
CHANGED
@@ -56312,28 +56312,30 @@ var require_getValidationDataForMatrixUri = __commonJS({
|
|
56312
56312
|
const assetId = assetIdArray.join("/");
|
56313
56313
|
const identifierRegex = /^[a-zA-Z0-9.-]+$/;
|
56314
56314
|
if (identifierRegex.test(identifier) === false) {
|
56315
|
+
const validationData = {
|
56316
|
+
message: "Matrix Identifier has invalid format, must match /^[a-zA-Z0-9.-]+$/",
|
56317
|
+
data: {
|
56318
|
+
expected: /^[a-zA-Z0-9.-]+$/,
|
56319
|
+
received: identifier
|
56320
|
+
}
|
56321
|
+
};
|
56315
56322
|
validationDataMap = {
|
56316
56323
|
...validationDataMap,
|
56317
|
-
identifier:
|
56318
|
-
message: "Matrix Identifier has invalid format, must match /^[a-zA-Z0-9.-]+$/",
|
56319
|
-
data: {
|
56320
|
-
expected: /^[a-zA-Z0-9.-]+$/,
|
56321
|
-
received: identifier
|
56322
|
-
}
|
56323
|
-
}
|
56324
|
+
identifier: validationData
|
56324
56325
|
};
|
56325
56326
|
}
|
56326
56327
|
const assetIdRegex = /^\d+(?::.+)?$/;
|
56327
56328
|
if (assetIdRegex.test(assetId) === false) {
|
56329
|
+
const validationData = {
|
56330
|
+
message: "Matrix Asset Id has invalid format, must match /^d+(?::.+)?$/",
|
56331
|
+
data: {
|
56332
|
+
expected: /^\d+(?::.+)?$/,
|
56333
|
+
received: assetId
|
56334
|
+
}
|
56335
|
+
};
|
56328
56336
|
validationDataMap = {
|
56329
56337
|
...validationDataMap,
|
56330
|
-
assetId:
|
56331
|
-
message: "Matrix Asset Id has invalid format, must match /^d+(?::.+)?$/",
|
56332
|
-
data: {
|
56333
|
-
expected: /^\d+(?::.+)?$/,
|
56334
|
-
received: assetId
|
56335
|
-
}
|
56336
|
-
}
|
56338
|
+
assetId: validationData
|
56337
56339
|
};
|
56338
56340
|
}
|
56339
56341
|
return Object.keys(validationDataMap).length > 0 ? validationDataMap : void 0;
|
@@ -56352,11 +56354,11 @@ var require_customFormatValidators = __commonJS({
|
|
56352
56354
|
var matrixAssetValidator_1 = require_matrixAssetValidator();
|
56353
56355
|
var getValidationDataForMatrixUri_1 = require_getValidationDataForMatrixUri();
|
56354
56356
|
exports2.customFormatValidators = {
|
56355
|
-
"matrix-asset-uri": (core, schema, value) => {
|
56357
|
+
"matrix-asset-uri": (core, schema, value, pointer) => {
|
56356
56358
|
if ((0, matrixAssetValidator_1.isMatrixAssetUri)(value) === false) {
|
56357
56359
|
if (typeof value !== "string")
|
56358
56360
|
throw new SchemaValidationError_1.SchemaValidationError(`matrix asset uri "${value}" isn't a string`);
|
56359
|
-
const validationData = (0, getValidationDataForMatrixUri_1.getValidationDataForMatrixUri)(value);
|
56361
|
+
const validationData = { [pointer]: (0, getValidationDataForMatrixUri_1.getValidationDataForMatrixUri)(value) };
|
56360
56362
|
throw new SchemaValidationError_1.SchemaValidationError(`matrix asset uri "${value}" isn't a valid matrix asset uri`, void 0, validationData);
|
56361
56363
|
}
|
56362
56364
|
return;
|