@squiz/db-lib 1.33.0 → 1.33.1-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
package/.npm/_logs/{2023-05-10T02_48_25_493Z-debug-0.log → 2023-05-10T03_32_54_790Z-debug-0.log}
RENAMED
@@ -2,36 +2,36 @@
|
|
2
2
|
1 info using npm@9.5.0
|
3
3
|
2 info using node@v18.15.0
|
4
4
|
3 timing npm:load:whichnode Completed in 2ms
|
5
|
-
4 timing config:load:defaults Completed in
|
5
|
+
4 timing config:load:defaults Completed in 3ms
|
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 0ms
|
8
|
+
7 timing config:load:cli Completed in 3ms
|
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
|
11
|
+
10 timing config:load:file:/builds/developer-experience/cmp/.npmrc Completed in 1ms
|
12
|
+
11 timing config:load:project Completed in 26ms
|
13
13
|
12 timing config:load:file:/root/.npmrc Completed in 1ms
|
14
14
|
13 timing config:load:user Completed in 1ms
|
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 35ms
|
19
|
+
18 timing npm:load:configload Completed in 36ms
|
20
|
+
19 timing npm:load:mkdirpcache Completed in 0ms
|
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
24
|
23 timing npm:load:setTitle Completed in 2ms
|
25
25
|
24 timing config:load:flatten Completed in 4ms
|
26
26
|
25 timing npm:load:display Completed in 5ms
|
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-
|
27
|
+
26 verbose logfile logs-max:10 dir:/builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-10T03_32_54_790Z-
|
28
|
+
27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-10T03_32_54_790Z-debug-0.log
|
29
29
|
28 timing npm:load:logFile Completed in 4ms
|
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 50ms
|
33
33
|
32 silly logfile done cleaning log files
|
34
|
-
33 timing command:run Completed in
|
34
|
+
33 timing command:run Completed in 3406ms
|
35
35
|
34 verbose exit 0
|
36
|
-
35 timing npm Completed in
|
36
|
+
35 timing npm Completed in 3473ms
|
37
37
|
36 info ok
|
package/lib/index.js
CHANGED
@@ -54293,10 +54293,11 @@ var require_SchemaValidationError = __commonJS({
|
|
54293
54293
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
54294
54294
|
exports2.SchemaValidationError = void 0;
|
54295
54295
|
var SchemaValidationError = class extends Error {
|
54296
|
-
constructor(message, error) {
|
54296
|
+
constructor(message, error, validationData) {
|
54297
54297
|
super(`failed validation: ${message}`);
|
54298
54298
|
this.stack = error === null || error === void 0 ? void 0 : error.stack;
|
54299
54299
|
this.name = "SchemaValidationError";
|
54300
|
+
this.validationData = validationData;
|
54300
54301
|
}
|
54301
54302
|
};
|
54302
54303
|
exports2.SchemaValidationError = SchemaValidationError;
|
@@ -56563,7 +56564,17 @@ ${potentialResolutionErrors.join("\n")}`);
|
|
56563
56564
|
}
|
56564
56565
|
processValidationResult(errors) {
|
56565
56566
|
if (errors.length > 0) {
|
56566
|
-
|
56567
|
+
const ValidationDataMap = errors.reduce((acc, error) => {
|
56568
|
+
var _a;
|
56569
|
+
const pointer = (_a = error === null || error === void 0 ? void 0 : error.data) === null || _a === void 0 ? void 0 : _a.pointer;
|
56570
|
+
const validationData = {
|
56571
|
+
message: error.message,
|
56572
|
+
data: error.data
|
56573
|
+
};
|
56574
|
+
Object.keys(acc).includes(pointer) && Array.isArray(acc[pointer]) ? acc[pointer].push(validationData) : acc[pointer] = [validationData];
|
56575
|
+
return acc;
|
56576
|
+
}, {});
|
56577
|
+
throw new SchemaValidationError_1.SchemaValidationError(errors.map((a) => a.message).join(",\n"), void 0, ValidationDataMap);
|
56567
56578
|
}
|
56568
56579
|
return true;
|
56569
56580
|
}
|