@next-core/brick-utils 2.43.4 → 2.43.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -621,7 +621,7 @@ function scanStoryboard(storyboard) {
621
621
  };
622
622
  var collection = [];
623
623
  collectBricksInRouteConfs(storyboard.routes, collection);
624
- var selfDefined = new Set();
624
+ var selfDefined = new Set(["form-renderer.form-renderer"]);
625
625
 
626
626
  if (ignoreBricksInUnusedCustomTemplates) {
627
627
  var _storyboard$meta;
@@ -22256,7 +22256,7 @@ function tokenize(raw, symbols) {
22256
22256
  }
22257
22257
 
22258
22258
  if (context.status !== LexicalStatus.Initial) {
22259
- throw new Error("Unexpected final status: ".concat(context.status));
22259
+ throw new Error("Expected a placeholder end '}' at the end");
22260
22260
  }
22261
22261
 
22262
22262
  return context.tokens;
@@ -22275,7 +22275,7 @@ function eatOptionalRawAndOptionalPlaceholderBegin(context) {
22275
22275
  if (subCursor > 0) {
22276
22276
  context.tokens.push({
22277
22277
  type: TokenType.Raw,
22278
- value: subRaw.substr(0, subCursor)
22278
+ value: subRaw.substring(0, subCursor)
22279
22279
  });
22280
22280
  }
22281
22281
 
@@ -22285,7 +22285,7 @@ function eatOptionalRawAndOptionalPlaceholderBegin(context) {
22285
22285
  start: nextCursor,
22286
22286
  end: nextCursor + matchedPlaceholder.length
22287
22287
  },
22288
- value: matchedPlaceholder.substr(0, matchedPlaceholder.length - 1)
22288
+ value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)
22289
22289
  });
22290
22290
  context.cursor += subCursor + matchedPlaceholder.length;
22291
22291
  context.status = LexicalStatus.ExpectField;
@@ -22345,7 +22345,7 @@ function eatPipeIdentifier(context) {
22345
22345
  var matches = getSubRaw(context).match(/^[a-zA-Z]\w*/);
22346
22346
 
22347
22347
  if (!matches) {
22348
- throw new Error("Expected a pipe identifier at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substr(context.cursor))));
22348
+ throw new Error("Expected a pipe identifier at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
22349
22349
  }
22350
22350
 
22351
22351
  var value = matches[0];
@@ -22385,7 +22385,7 @@ function eatPlaceholderEnd(context) {
22385
22385
  context.cursor += 1;
22386
22386
  context.status = LexicalStatus.Initial;
22387
22387
  } else {
22388
- throw new Error("Expected a placeholder end '}' at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substr(context.cursor))));
22388
+ throw new Error("Expected a placeholder end '}' at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
22389
22389
  }
22390
22390
  }
22391
22391
 
@@ -22394,7 +22394,7 @@ var jsonLiteralMap = new Map([["false", false], ["null", null], ["true", true]])
22394
22394
  function eatJsonValueOrLiteralString(context, nextStatus) {
22395
22395
  var subRaw = getSubRaw(context);
22396
22396
 
22397
- if (/[0-9[{"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substr(0, 2))) {
22397
+ if (/[0-9[{"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {
22398
22398
  eatJsonValue(context, nextStatus);
22399
22399
  } else {
22400
22400
  // Accept any characters except controls and whitespace.
@@ -22494,19 +22494,19 @@ function eatJsonValue(context, nextStatus) {
22494
22494
  }
22495
22495
 
22496
22496
  if (!matched) {
22497
- throw new Error("Failed to match a JSON value at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substr(context.cursor))));
22497
+ throw new Error("Failed to match a JSON value at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
22498
22498
  }
22499
22499
 
22500
22500
  context.tokens.push({
22501
22501
  type: TokenType.JsonValue,
22502
- value: JSON.parse(subRaw.substr(0, subCursor))
22502
+ value: JSON.parse(subRaw.substring(0, subCursor))
22503
22503
  });
22504
22504
  context.cursor += subCursor;
22505
22505
  context.status = nextStatus;
22506
22506
  }
22507
22507
 
22508
22508
  function getSubRaw(context) {
22509
- return context.raw.substr(context.cursor);
22509
+ return context.raw.substring(context.cursor);
22510
22510
  }
22511
22511
 
22512
22512
  function parseInjectableString(raw, symbols) {