spec-controller 0.1.191 → 0.1.192

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.
@@ -339,7 +339,7 @@ SOFTWARE.
339
339
 
340
340
  ------------------------------------------------------------------------
341
341
 
342
- unbash@6.0.1 (ISC)
342
+ unbash@6.0.2 (ISC)
343
343
 
344
344
  ISC License
345
345
 
package/dist/cli.js CHANGED
@@ -12873,7 +12873,7 @@ var init_cucumber = __esm({
12873
12873
  }
12874
12874
  });
12875
12875
 
12876
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/traversal.js
12876
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/traversal.js
12877
12877
  function forEachChild(node, callback) {
12878
12878
  switch (node.type) {
12879
12879
  case "Script":
@@ -13087,11 +13087,11 @@ function forEachChild(node, callback) {
13087
13087
  }
13088
13088
  }
13089
13089
  var init_traversal = __esm({
13090
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/traversal.js"() {
13090
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/traversal.js"() {
13091
13091
  }
13092
13092
  });
13093
13093
 
13094
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/ansi-c.js
13094
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/ansi-c.js
13095
13095
  function isOctal(code) {
13096
13096
  return code >= 48 && code <= 55;
13097
13097
  }
@@ -13131,6 +13131,7 @@ function decodeAnsiCQuoted(source, start, limit) {
13131
13131
  let pos = start;
13132
13132
  let value = "";
13133
13133
  let bytes = [];
13134
+ let nul = -1;
13134
13135
  while (pos < limit && source.charCodeAt(pos) !== 39) {
13135
13136
  const escapeStart = pos;
13136
13137
  const byte = readByteEscape(source, pos, limit);
@@ -13144,6 +13145,8 @@ function decodeAnsiCQuoted(source, start, limit) {
13144
13145
  bytes = [];
13145
13146
  }
13146
13147
  if (byte) {
13148
+ if (byte.value === 0 && nul === -1)
13149
+ nul = value.length;
13147
13150
  value += String.fromCharCode(byte.value);
13148
13151
  pos = byte.end;
13149
13152
  continue;
@@ -13219,7 +13222,10 @@ function decodeAnsiCQuoted(source, start, limit) {
13219
13222
  }
13220
13223
  break;
13221
13224
  }
13222
- value += String.fromCharCode(code === 63 ? 127 : code & 31);
13225
+ const control = code === 63 ? 127 : code & 31;
13226
+ if (control === 0 && code < 128 && nul === -1)
13227
+ nul = value.length;
13228
+ value += String.fromCharCode(control);
13223
13229
  break;
13224
13230
  }
13225
13231
  case "u":
@@ -13233,7 +13239,10 @@ function decodeAnsiCQuoted(source, start, limit) {
13233
13239
  break;
13234
13240
  }
13235
13241
  const raw = source.slice(escapeStart, pos);
13236
- value += codePoint(Number.parseInt(source.slice(digitsStart, pos), 16), raw);
13242
+ const point = Number.parseInt(source.slice(digitsStart, pos), 16);
13243
+ if (point === 0 && nul === -1)
13244
+ nul = value.length;
13245
+ value += codePoint(point, raw);
13237
13246
  break;
13238
13247
  }
13239
13248
  default:
@@ -13243,6 +13252,8 @@ function decodeAnsiCQuoted(source, start, limit) {
13243
13252
  }
13244
13253
  if (bytes.length > 0)
13245
13254
  value += decodeBytes(bytes);
13255
+ if (nul !== -1)
13256
+ value = value.slice(0, nul);
13246
13257
  const closed = pos < limit;
13247
13258
  if (closed)
13248
13259
  pos++;
@@ -13250,15 +13261,15 @@ function decodeAnsiCQuoted(source, start, limit) {
13250
13261
  }
13251
13262
  var utf8;
13252
13263
  var init_ansi_c = __esm({
13253
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/ansi-c.js"() {
13264
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/ansi-c.js"() {
13254
13265
  utf8 = new TextDecoder("utf-8", { ignoreBOM: true });
13255
13266
  }
13256
13267
  });
13257
13268
 
13258
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/expansion.js
13269
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/expansion.js
13259
13270
  var ScriptExpansionImpl, ProcessSubstitutionImpl, ArithmeticExpansionImpl;
13260
13271
  var init_expansion = __esm({
13261
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/expansion.js"() {
13272
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/expansion.js"() {
13262
13273
  ScriptExpansionImpl = class _ScriptExpansionImpl {
13263
13274
  static _resolveScript;
13264
13275
  type;
@@ -13341,15 +13352,15 @@ var init_expansion = __esm({
13341
13352
  }
13342
13353
  });
13343
13354
 
13344
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/limits.js
13355
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/limits.js
13345
13356
  var MAX_SYNTAX_NESTING;
13346
13357
  var init_limits = __esm({
13347
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/limits.js"() {
13358
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/limits.js"() {
13348
13359
  MAX_SYNTAX_NESTING = 256;
13349
13360
  }
13350
13361
  });
13351
13362
 
13352
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/word-value.js
13363
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/word-value.js
13353
13364
  function dequoteValue(parts) {
13354
13365
  let s = "";
13355
13366
  for (const c of parts)
@@ -13412,14 +13423,14 @@ function wordPartsValue(parts) {
13412
13423
  return value;
13413
13424
  }
13414
13425
  var init_word_value = __esm({
13415
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/word-value.js"() {
13426
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/word-value.js"() {
13416
13427
  }
13417
13428
  });
13418
13429
 
13419
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/word.js
13430
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/word.js
13420
13431
  var WordImpl;
13421
13432
  var init_word = __esm({
13422
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/word.js"() {
13433
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/word.js"() {
13423
13434
  init_word_value();
13424
13435
  WordImpl = class {
13425
13436
  type = "Word";
@@ -13463,7 +13474,7 @@ var init_word = __esm({
13463
13474
  }
13464
13475
  });
13465
13476
 
13466
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/substitution-context.js
13477
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/substitution-context.js
13467
13478
  function createSubstitutionContext(parent) {
13468
13479
  const boundaries = parent === void 0 ? void 0 : substitutionBoundaries(parent);
13469
13480
  return { boundaries, wordParts: void 0, embeddedParts: void 0, arrayParts: void 0 };
@@ -13472,11 +13483,11 @@ function substitutionBoundaries(context) {
13472
13483
  return context.boundaries ?? (context.boundaries = /* @__PURE__ */ new Map());
13473
13484
  }
13474
13485
  var init_substitution_context = __esm({
13475
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/substitution-context.js"() {
13486
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/substitution-context.js"() {
13476
13487
  }
13477
13488
  });
13478
13489
 
13479
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/chars.js
13490
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/chars.js
13480
13491
  function skipLineContinuations(source, pos, end) {
13481
13492
  while (pos + 1 < end && source.charCodeAt(pos) === CH_BACKSLASH && source.charCodeAt(pos + 1) === CH_NL)
13482
13493
  pos += 2;
@@ -13484,7 +13495,7 @@ function skipLineContinuations(source, pos, end) {
13484
13495
  }
13485
13496
  var CH_TAB, CH_NL, CH_SPACE, CH_BANG, CH_DQUOTE, CH_HASH, CH_DOLLAR, CH_PERCENT, CH_AMP, CH_SQUOTE, CH_LPAREN, CH_RPAREN, CH_STAR, CH_PLUS, CH_COMMA, CH_DASH, CH_DOT, CH_SLASH, CH_0, CH_9, CH_COLON, CH_SEMI, CH_LT, CH_EQ, CH_GT, CH_QUESTION, CH_AT, CH_A, CH_Z, CH_LBRACKET, CH_BACKSLASH, CH_RBRACKET, CH_CARET, CH_UNDERSCORE, CH_BACKTICK, CH_a, CH_z, CH_LBRACE, CH_PIPE, CH_RBRACE, CH_TILDE;
13486
13497
  var init_chars = __esm({
13487
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/chars.js"() {
13498
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/chars.js"() {
13488
13499
  CH_TAB = 9;
13489
13500
  CH_NL = 10;
13490
13501
  CH_SPACE = 32;
@@ -13529,7 +13540,7 @@ var init_chars = __esm({
13529
13540
  }
13530
13541
  });
13531
13542
 
13532
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/glob.js
13543
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/glob.js
13533
13544
  function hasGlobCharacters(text) {
13534
13545
  return /[*?[]/.test(text);
13535
13546
  }
@@ -13763,7 +13774,7 @@ function parseGlobParts(source, start, end, parts, offset = 0) {
13763
13774
  }
13764
13775
  var bracketSyntax;
13765
13776
  var init_glob = __esm({
13766
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/glob.js"() {
13777
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/glob.js"() {
13767
13778
  init_word_value();
13768
13779
  init_chars();
13769
13780
  bracketSyntax = new Uint8Array(128);
@@ -13779,7 +13790,7 @@ var init_glob = __esm({
13779
13790
  }
13780
13791
  });
13781
13792
 
13782
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/lexer.js
13793
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/lexer.js
13783
13794
  function skipBlanks(source, pos, end) {
13784
13795
  while (pos < end) {
13785
13796
  const ch = source.charCodeAt(pos);
@@ -14018,9 +14029,12 @@ function matchReservedWord(src, start, len) {
14018
14029
  return void 0;
14019
14030
  }
14020
14031
  }
14032
+ function isBraceCommandOpener(after) {
14033
+ return after === CH_SPACE || after === CH_TAB || after === CH_NL || after === CH_PIPE;
14034
+ }
14021
14035
  var Token2, TokenValue, RESERVED_WORDS, charType, arithmeticWordDelimiter, isIdChar, extglobPrefix, extglobOp, ASSIGNMENT_INVALID, ASSIGNMENT_NAME_START, ASSIGNMENT_NAME, ASSIGNMENT_AFTER_INDEX, ASSIGNMENT_AFTER_PLUS, ASSIGNMENT_INDEX_BASE, LexContext, Lexer;
14022
14036
  var init_lexer = __esm({
14023
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/lexer.js"() {
14037
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/lexer.js"() {
14024
14038
  init_ansi_c();
14025
14039
  init_expansion();
14026
14040
  init_limits();
@@ -17371,7 +17385,7 @@ var init_lexer = __esm({
17371
17385
  const result = bt ? src.slice(start, this.pos) : "";
17372
17386
  this.pos++;
17373
17387
  return result;
17374
- } else if (c === CH_LPAREN || c === CH_BACKSLASH || c === CH_SQUOTE || c === CH_DQUOTE || c === CH_BACKTICK || c === CH_DOLLAR && (src.charCodeAt(this.pos + 1) === CH_SQUOTE || src.charCodeAt(this.pos + 1) === CH_DOLLAR)) {
17388
+ } else if (c === CH_LPAREN || c === CH_BACKSLASH || c === CH_SQUOTE || c === CH_DQUOTE || c === CH_BACKTICK || c === CH_DOLLAR && (src.charCodeAt(this.pos + 1) === CH_SQUOTE || src.charCodeAt(this.pos + 1) === CH_DOLLAR || src.charCodeAt(this.pos + 1) === CH_LBRACE)) {
17375
17389
  break;
17376
17390
  } else if (c === CH_LT && this.pos + 1 < len && src.charCodeAt(this.pos + 1) === CH_LT) {
17377
17391
  break;
@@ -17442,6 +17456,11 @@ var init_lexer = __esm({
17442
17456
  continue;
17443
17457
  } else if (ch === CH_DOLLAR) {
17444
17458
  const next = src.charCodeAt(this.pos + 1);
17459
+ if (next === CH_SQUOTE && quote.close === CH_RBRACE) {
17460
+ this.pos += 2;
17461
+ this.skipAnsiCQuoted();
17462
+ continue;
17463
+ }
17445
17464
  if (next === CH_LBRACE) {
17446
17465
  quotes.push({ close: CH_RBRACE, depth });
17447
17466
  parameterDepth++;
@@ -17591,6 +17610,10 @@ var init_lexer = __esm({
17591
17610
  this.skipAnsiCQuoted();
17592
17611
  } else if (next === CH_DOLLAR) {
17593
17612
  this.pos++;
17613
+ } else if (next === CH_LBRACE && !isBraceCommandOpener(src.charCodeAt(this.pos + 1))) {
17614
+ quotes.push({ close: CH_RBRACE, depth });
17615
+ parameterDepth++;
17616
+ this.pos++;
17594
17617
  }
17595
17618
  wordStart = false;
17596
17619
  } else if (ch === CH_SQUOTE) {
@@ -17679,7 +17702,7 @@ var init_lexer = __esm({
17679
17702
  }
17680
17703
  });
17681
17704
 
17682
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/arithmetic.js
17705
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/arithmetic.js
17683
17706
  function opPrec(op) {
17684
17707
  switch (op) {
17685
17708
  case ",":
@@ -18235,14 +18258,14 @@ function parseArithmeticExpression(src, offset = 0, collector, nestingDepth = 0)
18235
18258
  return result;
18236
18259
  }
18237
18260
  var init_arithmetic = __esm({
18238
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/arithmetic.js"() {
18261
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/arithmetic.js"() {
18239
18262
  init_expansion();
18240
18263
  init_limits();
18241
18264
  init_chars();
18242
18265
  }
18243
18266
  });
18244
18267
 
18245
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/parts.js
18268
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/parts.js
18246
18269
  function wordPartsResolver(context) {
18247
18270
  return context.wordParts ?? (context.wordParts = (source, word, depth) => computeWordParts(source, word, depth, context));
18248
18271
  }
@@ -18280,7 +18303,7 @@ function computeHereDocBodyParts(source, word, depth = 0, context) {
18280
18303
  }
18281
18304
  var computeBareWordParts;
18282
18305
  var init_parts = __esm({
18283
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/parts.js"() {
18306
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/parts.js"() {
18284
18307
  init_lexer();
18285
18308
  init_substitution_context();
18286
18309
  init_glob();
@@ -18288,7 +18311,7 @@ var init_parts = __esm({
18288
18311
  }
18289
18312
  });
18290
18313
 
18291
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/arithmetic-parts.js
18314
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/arithmetic-parts.js
18292
18315
  function parseArithmeticWithParts(body, offset, source, depth, context, embeddedDepth = depth) {
18293
18316
  if (!hasEmbeddedWordStructure(source, offset, offset + body.length)) {
18294
18317
  return parseArithmeticExpression(body, offset, void 0, depth) ?? void 0;
@@ -18319,7 +18342,7 @@ function parseArithmeticWithParts(body, offset, source, depth, context, embedded
18319
18342
  return expression;
18320
18343
  }
18321
18344
  var init_arithmetic_parts = __esm({
18322
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/arithmetic-parts.js"() {
18345
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/arithmetic-parts.js"() {
18323
18346
  init_arithmetic();
18324
18347
  init_lexer();
18325
18348
  init_parts();
@@ -18328,10 +18351,10 @@ var init_arithmetic_parts = __esm({
18328
18351
  }
18329
18352
  });
18330
18353
 
18331
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/assignment.js
18354
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/assignment.js
18332
18355
  var ArrayValueImpl, AssignmentImpl;
18333
18356
  var init_assignment = __esm({
18334
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/assignment.js"() {
18357
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/assignment.js"() {
18335
18358
  init_lexer();
18336
18359
  init_chars();
18337
18360
  init_parts();
@@ -18457,10 +18480,10 @@ var init_assignment = __esm({
18457
18480
  }
18458
18481
  });
18459
18482
 
18460
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/command.js
18483
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/command.js
18461
18484
  var isArgument, CommandImpl;
18462
18485
  var init_command = __esm({
18463
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/command.js"() {
18486
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/command.js"() {
18464
18487
  isArgument = (item) => item.type === "Word" || item.type === "Assignment";
18465
18488
  CommandImpl = class {
18466
18489
  type = "Command";
@@ -18505,10 +18528,10 @@ var init_command = __esm({
18505
18528
  }
18506
18529
  });
18507
18530
 
18508
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/heredoc.js
18531
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/heredoc.js
18509
18532
  var HereDocBodyImpl;
18510
18533
  var init_heredoc = __esm({
18511
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/heredoc.js"() {
18534
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/heredoc.js"() {
18512
18535
  init_parts();
18513
18536
  HereDocBodyImpl = class {
18514
18537
  type = "HereDocBody";
@@ -18539,7 +18562,7 @@ var init_heredoc = __esm({
18539
18562
  }
18540
18563
  });
18541
18564
 
18542
- // ../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/parser.js
18565
+ // ../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/parser.js
18543
18566
  function isDeclarationCommand(name) {
18544
18567
  switch (name.length) {
18545
18568
  case 5:
@@ -18582,7 +18605,7 @@ function findSubstitutionEnd(source, start, end, depth, context) {
18582
18605
  }
18583
18606
  var ArithmeticCommandImpl, ArithmeticForImpl, CASE_TERMINATORS, REDIRECT_OPS, listTerminators, compoundClosers, commandStarts, UNARY_TEST_OPS, BINARY_TEST_OPS, EMPTY_REDIRECTS, EMPTY_PREFIXES, EMPTY_ELIFS, SubstitutionLexer, Parser2;
18584
18607
  var init_parser = __esm({
18585
- "../../node_modules/.pnpm/unbash@6.0.1/node_modules/unbash/dist/parser.js"() {
18608
+ "../../node_modules/.pnpm/unbash@6.0.2/node_modules/unbash/dist/parser.js"() {
18586
18609
  init_traversal();
18587
18610
  init_lexer();
18588
18611
  init_limits();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-controller",
3
- "version": "0.1.191",
3
+ "version": "0.1.192",
4
4
  "description": "Reconcile the behaviour your scenarios name against the evidence that actually ran — the deterministic `balance` CLI.",
5
5
  "keywords": [
6
6
  "reconciliation",
@@ -26,7 +26,7 @@
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "ts-json-schema-generator": "^2.9.0",
28
28
  "yaml": "^2.9.0",
29
- "@3f-consulting/spec-controller-core": "0.1.191"
29
+ "@3f-consulting/spec-controller-core": "0.1.192"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"