@next-core/brick-utils 2.43.5 → 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.bundle.js +9 -9
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -22261,7 +22261,7 @@
|
|
|
22261
22261
|
}
|
|
22262
22262
|
|
|
22263
22263
|
if (context.status !== LexicalStatus.Initial) {
|
|
22264
|
-
throw new Error("
|
|
22264
|
+
throw new Error("Expected a placeholder end '}' at the end");
|
|
22265
22265
|
}
|
|
22266
22266
|
|
|
22267
22267
|
return context.tokens;
|
|
@@ -22280,7 +22280,7 @@
|
|
|
22280
22280
|
if (subCursor > 0) {
|
|
22281
22281
|
context.tokens.push({
|
|
22282
22282
|
type: TokenType.Raw,
|
|
22283
|
-
value: subRaw.
|
|
22283
|
+
value: subRaw.substring(0, subCursor)
|
|
22284
22284
|
});
|
|
22285
22285
|
}
|
|
22286
22286
|
|
|
@@ -22290,7 +22290,7 @@
|
|
|
22290
22290
|
start: nextCursor,
|
|
22291
22291
|
end: nextCursor + matchedPlaceholder.length
|
|
22292
22292
|
},
|
|
22293
|
-
value: matchedPlaceholder.
|
|
22293
|
+
value: matchedPlaceholder.substring(0, matchedPlaceholder.length - 1)
|
|
22294
22294
|
});
|
|
22295
22295
|
context.cursor += subCursor + matchedPlaceholder.length;
|
|
22296
22296
|
context.status = LexicalStatus.ExpectField;
|
|
@@ -22350,7 +22350,7 @@
|
|
|
22350
22350
|
var matches = getSubRaw(context).match(/^[a-zA-Z]\w*/);
|
|
22351
22351
|
|
|
22352
22352
|
if (!matches) {
|
|
22353
|
-
throw new Error("Expected a pipe identifier at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.
|
|
22353
|
+
throw new Error("Expected a pipe identifier at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
|
|
22354
22354
|
}
|
|
22355
22355
|
|
|
22356
22356
|
var value = matches[0];
|
|
@@ -22390,7 +22390,7 @@
|
|
|
22390
22390
|
context.cursor += 1;
|
|
22391
22391
|
context.status = LexicalStatus.Initial;
|
|
22392
22392
|
} else {
|
|
22393
|
-
throw new Error("Expected a placeholder end '}' at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.
|
|
22393
|
+
throw new Error("Expected a placeholder end '}' at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
|
|
22394
22394
|
}
|
|
22395
22395
|
}
|
|
22396
22396
|
|
|
@@ -22399,7 +22399,7 @@
|
|
|
22399
22399
|
function eatJsonValueOrLiteralString(context, nextStatus) {
|
|
22400
22400
|
var subRaw = getSubRaw(context);
|
|
22401
22401
|
|
|
22402
|
-
if (/[0-9[{"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.
|
|
22402
|
+
if (/[0-9[{"]/.test(subRaw.charAt(0)) || /-[0-9]/.test(subRaw.substring(0, 2))) {
|
|
22403
22403
|
eatJsonValue(context, nextStatus);
|
|
22404
22404
|
} else {
|
|
22405
22405
|
// Accept any characters except controls and whitespace.
|
|
@@ -22499,19 +22499,19 @@
|
|
|
22499
22499
|
}
|
|
22500
22500
|
|
|
22501
22501
|
if (!matched) {
|
|
22502
|
-
throw new Error("Failed to match a JSON value at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.
|
|
22502
|
+
throw new Error("Failed to match a JSON value at index ".concat(context.cursor, " near: ").concat(JSON.stringify(context.raw.substring(context.cursor))));
|
|
22503
22503
|
}
|
|
22504
22504
|
|
|
22505
22505
|
context.tokens.push({
|
|
22506
22506
|
type: TokenType.JsonValue,
|
|
22507
|
-
value: JSON.parse(subRaw.
|
|
22507
|
+
value: JSON.parse(subRaw.substring(0, subCursor))
|
|
22508
22508
|
});
|
|
22509
22509
|
context.cursor += subCursor;
|
|
22510
22510
|
context.status = nextStatus;
|
|
22511
22511
|
}
|
|
22512
22512
|
|
|
22513
22513
|
function getSubRaw(context) {
|
|
22514
|
-
return context.raw.
|
|
22514
|
+
return context.raw.substring(context.cursor);
|
|
22515
22515
|
}
|
|
22516
22516
|
|
|
22517
22517
|
function parseInjectableString(raw, symbols) {
|