@squiz/db-lib 1.33.1-alpha.5 → 1.33.1-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
  0 verbose cli /usr/local/bin/node /usr/local/bin/npm
2
2
  1 info using npm@9.5.0
3
3
  2 info using node@v18.15.0
4
- 3 timing npm:load:whichnode Completed in 2ms
5
- 4 timing config:load:defaults Completed in 2ms
6
- 5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
4
+ 3 timing npm:load:whichnode Completed in 1ms
5
+ 4 timing config:load:defaults Completed in 7ms
6
+ 5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
7
7
  6 timing config:load:builtin Completed in 1ms
8
8
  7 timing config:load:cli Completed in 2ms
9
9
  8 timing config:load:env Completed in 1ms
@@ -15,23 +15,23 @@
15
15
  14 timing config:load:file:/usr/local/etc/npmrc Completed in 1ms
16
16
  15 timing config:load:global Completed in 1ms
17
17
  16 timing config:load:setEnvs Completed in 1ms
18
- 17 timing config:load Completed in 29ms
19
- 18 timing npm:load:configload Completed in 29ms
18
+ 17 timing config:load Completed in 35ms
19
+ 18 timing npm:load:configload Completed in 35ms
20
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 1ms
25
- 24 timing config:load:flatten Completed in 5ms
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-12T05_00_35_928Z-
28
- 27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-12T05_00_35_928Z-debug-0.log
25
+ 24 timing config:load:flatten Completed in 4ms
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-15T06_52_11_133Z-
28
+ 27 verbose logfile /builds/developer-experience/cmp/packages/db-lib/.npm/_logs/2023-05-15T06_52_11_133Z-debug-0.log
29
29
  28 timing npm:load:logFile Completed in 3ms
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 43ms
32
+ 31 timing npm:load Completed in 47ms
33
33
  32 silly logfile done cleaning log files
34
- 33 timing command:run Completed in 3778ms
34
+ 33 timing command:run Completed in 3490ms
35
35
  34 verbose exit 0
36
- 35 timing npm Completed in 3834ms
36
+ 35 timing npm Completed in 3552ms
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;