@digipair/skill-sse 0.136.0 → 0.136.3

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
@@ -1493,7 +1493,7 @@ var createChannel = function() {
1493
1493
  return _construct$7(Channel, _to_consumable_array$7(args));
1494
1494
  };
1495
1495
 
1496
- function _mergeNamespaces(n, m) {
1496
+ function _mergeNamespaces$1(n, m) {
1497
1497
  m.forEach(function(e) {
1498
1498
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
1499
1499
  if (k !== 'default' && !(k in n)) {
@@ -1513,7 +1513,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
1513
1513
  function getDefaultExportFromCjs(x) {
1514
1514
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1515
1515
  }
1516
- var handlebars_min$1 = {
1516
+ var handlebars_min = {
1517
1517
  exports: {}
1518
1518
  };
1519
1519
  /**!
@@ -1541,7 +1541,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1541
1541
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1542
1542
  THE SOFTWARE.
1543
1543
 
1544
- */ handlebars_min$1.exports;
1544
+ */ handlebars_min.exports;
1545
1545
  (function(module1, exports1) {
1546
1546
  function _instanceof(left, right) {
1547
1547
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
@@ -9622,12 +9622,12 @@ THE SOFTWARE.
9622
9622
  }
9623
9623
  ]);
9624
9624
  });
9625
- })(handlebars_min$1, handlebars_min$1.exports);
9626
- var handlebars_minExports = handlebars_min$1.exports;
9627
- var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
9628
- var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
9625
+ })(handlebars_min, handlebars_min.exports);
9626
+ var handlebars_minExports = handlebars_min.exports;
9627
+ var handlebars_min_default = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
9628
+ var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces$1({
9629
9629
  __proto__: null,
9630
- default: handlebars_min
9630
+ default: handlebars_min_default
9631
9631
  }, [
9632
9632
  handlebars_minExports
9633
9633
  ]);
@@ -18790,6 +18790,7 @@ class represent prop names.
18790
18790
  this.deserialize = config.deserialize || function() {
18791
18791
  throw new Error("This node type doesn't define a deserialize function");
18792
18792
  };
18793
+ this.combine = config.combine || null;
18793
18794
  }
18794
18795
  _create_class$u(NodeProp, [
18795
18796
  {
@@ -18902,10 +18903,16 @@ represented by another tree.
18902
18903
  */ overlay, /**
18903
18904
  The parser used to create this subtree.
18904
18905
  */ parser) {
18906
+ var /**
18907
+ [Indicates](#common.IterMode.EnterBracketed) that the nested
18908
+ content is delineated with some kind
18909
+ of bracket token.
18910
+ */ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
18905
18911
  _class_call_check$z(this, MountedTree);
18906
18912
  this.tree = tree;
18907
18913
  this.overlay = overlay;
18908
18914
  this.parser = parser;
18915
+ this.bracketed = bracketed;
18909
18916
  }
18910
18917
  _create_class$u(MountedTree, null, [
18911
18918
  {
@@ -19121,7 +19128,9 @@ types in it, so that the ids fit into 16-bit typed array slots.
19121
19128
  var add = source(type);
19122
19129
  if (add) {
19123
19130
  if (!newProps) newProps = Object.assign({}, type.props);
19124
- newProps[add[0].id] = add[1];
19131
+ var value = add[1], prop = add[0];
19132
+ if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
19133
+ newProps[prop.id] = value;
19125
19134
  }
19126
19135
  }
19127
19136
  } catch (err) {
@@ -19187,6 +19196,12 @@ operator to enable multiple ones.
19187
19196
  library to not enter mounted overlays if one covers the given
19188
19197
  position.
19189
19198
  */ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
19199
+ /**
19200
+ When set, positions on the boundary of a mounted overlay tree
19201
+ that has its [`bracketed`](#common.NestedParse.bracketed) flag
19202
+ set will enter that tree regardless of side. Only supported in
19203
+ [`enter`](#common.SyntaxNode.enter), not in cursors.
19204
+ */ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
19190
19205
  })(IterMode || (IterMode = {}));
19191
19206
  /**
19192
19207
  A piece of syntax tree. There are two ways to approach these
@@ -19745,17 +19760,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
19745
19760
  var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
19746
19761
  for(var parent = this;;){
19747
19762
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
19748
- var next = children[i], start = positions[i] + parent.from;
19749
- if (!checkSide(side, pos, start, start + next.length)) continue;
19763
+ var next = children[i], start = positions[i] + parent.from, mounted = void 0;
19764
+ if (!(mode & IterMode.EnterBracketed && _instanceof$i(next, Tree) && (mounted = MountedTree.get(next)) && !mounted.overlay && mounted.bracketed && pos >= start && pos <= start + next.length) && !checkSide(side, pos, start, start + next.length)) continue;
19750
19765
  if (_instanceof$i(next, TreeBuffer)) {
19751
19766
  if (mode & IterMode.ExcludeBuffers) continue;
19752
19767
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
19753
19768
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
19754
19769
  } else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
19755
- var mounted = void 0;
19756
- if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
19770
+ var mounted1 = void 0;
19771
+ if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
19757
19772
  var inner = new TreeNode(next, start, i, parent);
19758
- return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
19773
+ return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
19759
19774
  }
19760
19775
  }
19761
19776
  if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
@@ -19790,18 +19805,24 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
19790
19805
  return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
19791
19806
  }
19792
19807
  },
19808
+ {
19809
+ key: "prop",
19810
+ value: function prop(prop) {
19811
+ return this._tree.prop(prop);
19812
+ }
19813
+ },
19793
19814
  {
19794
19815
  key: "enter",
19795
19816
  value: function enter(pos, side) {
19796
19817
  var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
19797
19818
  var mounted;
19798
19819
  if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
19799
- var rPos = pos - this.from;
19820
+ var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
19800
19821
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
19801
19822
  try {
19802
19823
  for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
19803
19824
  var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
19804
- if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
19825
+ if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
19805
19826
  }
19806
19827
  } catch (err) {
19807
19828
  _didIteratorError = true;
@@ -19965,6 +19986,12 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
19965
19986
  return this.child(-1, pos, -2 /* Side.Before */ );
19966
19987
  }
19967
19988
  },
19989
+ {
19990
+ key: "prop",
19991
+ value: function prop(prop) {
19992
+ return this.type.prop(prop);
19993
+ }
19994
+ },
19968
19995
  {
19969
19996
  key: "enter",
19970
19997
  value: function enter(pos, side) {
@@ -20095,11 +20122,8 @@ A tree cursor object focuses on a given node in a syntax tree, and
20095
20122
  allows you to move to adjacent nodes.
20096
20123
  */ var TreeCursor = /*#__PURE__*/ function() {
20097
20124
  function TreeCursor(node) {
20098
- var /**
20099
- @internal
20100
- */ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
20125
+ var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
20101
20126
  _class_call_check$z(this, TreeCursor);
20102
- this.mode = mode;
20103
20127
  /**
20104
20128
  @internal
20105
20129
  */ this.buffer = null;
@@ -20108,6 +20132,7 @@ allows you to move to adjacent nodes.
20108
20132
  @internal
20109
20133
  */ this.index = 0;
20110
20134
  this.bufferNode = null;
20135
+ this.mode = mode & ~IterMode.EnterBracketed;
20111
20136
  if (_instanceof$i(node, TreeNode)) {
20112
20137
  this.yieldNode(node);
20113
20138
  } else {
@@ -20451,7 +20476,7 @@ function buildTree(data) {
20451
20476
  function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
20452
20477
  var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
20453
20478
  var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
20454
- while(size < 0){
20479
+ if (size < 0) {
20455
20480
  cursor.next();
20456
20481
  if (size == -1 /* SpecialRecord.Reuse */ ) {
20457
20482
  var node = reused[id];
@@ -20618,7 +20643,7 @@ function buildTree(data) {
20618
20643
  fork.next();
20619
20644
  while(fork.pos > startPos){
20620
20645
  if (fork.size < 0) {
20621
- if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
20646
+ if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
20622
20647
  else break scan;
20623
20648
  } else if (fork.id >= minRepeatType) {
20624
20649
  localSkipped += 4;
@@ -21057,11 +21082,11 @@ about the parse state.
21057
21082
  var _a;
21058
21083
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
21059
21084
  var parser = this.p.parser;
21060
- var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
21061
- if (lookaheadRecord) this.setLookAhead(this.pos);
21085
+ var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
21062
21086
  var dPrec = parser.dynamicPrecedence(type);
21063
21087
  if (dPrec) this.score += dPrec;
21064
21088
  if (depth == 0) {
21089
+ if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
21065
21090
  this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
21066
21091
  // Zero-depth reductions are a special case—they add stuff to
21067
21092
  // the stack without popping anything off.
@@ -21075,7 +21100,9 @@ about the parse state.
21075
21100
  // expression and the state that we'll be staying in, which should
21076
21101
  // be moved to `this.state`).
21077
21102
  var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
21078
- var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
21103
+ var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
21104
+ if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
21105
+ var size = this.reducePos - start;
21079
21106
  // This is a kludge to try and detect overly deep left-associative
21080
21107
  // trees, which will not increase the parse stack depth and thus
21081
21108
  // won't be caught by the regular stack-depth limit check.
@@ -21114,15 +21141,11 @@ about the parse state.
21114
21141
  var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
21115
21142
  if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
21116
21143
  // Try to omit/merge adjacent error nodes
21117
- var cur = this, top = this.buffer.length;
21118
- if (top == 0 && cur.parent) {
21119
- top = cur.bufferBase - cur.parent.bufferBase;
21120
- cur = cur.parent;
21121
- }
21122
- if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
21144
+ var top = this.buffer.length;
21145
+ if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
21123
21146
  if (start == end) return;
21124
- if (cur.buffer[top - 2] >= start) {
21125
- cur.buffer[top - 2] = end;
21147
+ if (this.buffer[top - 2] >= start) {
21148
+ this.buffer[top - 2] = end;
21126
21149
  return;
21127
21150
  }
21128
21151
  }
@@ -21131,7 +21154,7 @@ about the parse state.
21131
21154
  this.buffer.push(term, start, end, size);
21132
21155
  } else {
21133
21156
  var index = this.buffer.length;
21134
- if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
21157
+ if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
21135
21158
  var mustMove = false;
21136
21159
  for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
21137
21160
  if (this.buffer[scan - 1] >= 0) {
@@ -21166,11 +21189,11 @@ about the parse state.
21166
21189
  this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
21167
21190
  } else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
21168
21191
  var nextState = action, parser = this.p.parser;
21169
- if (end > this.pos || type <= parser.maxNode) {
21170
- this.pos = end;
21171
- if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
21172
- }
21173
- this.pushState(nextState, start);
21192
+ this.pos = end;
21193
+ var skipped = parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ );
21194
+ // Skipped or zero-length non-tree tokens don't move reducePos
21195
+ if (!skipped && (end > start || type <= parser.maxNode)) this.reducePos = end;
21196
+ this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
21174
21197
  this.shiftContext(type, start);
21175
21198
  if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
21176
21199
  } else {
@@ -21218,6 +21241,9 @@ about the parse state.
21218
21241
  value: function split() {
21219
21242
  var parent = this;
21220
21243
  var off = parent.buffer.length;
21244
+ // Leave off top error node, if there, because that might be
21245
+ // merged with other nodes.
21246
+ if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
21221
21247
  // Because the top of the buffer (after this.pos) may be mutated
21222
21248
  // to reorder reductions and skipped tokens, and shared buffers
21223
21249
  // should be immutable, this copies any outstanding skipped tokens
@@ -21461,10 +21487,10 @@ about the parse state.
21461
21487
  @internal
21462
21488
  */ key: "setLookAhead",
21463
21489
  value: function setLookAhead(lookAhead) {
21464
- if (lookAhead > this.lookAhead) {
21465
- this.emitLookAhead();
21466
- this.lookAhead = lookAhead;
21467
- }
21490
+ if (lookAhead <= this.lookAhead) return false;
21491
+ this.emitLookAhead();
21492
+ this.lookAhead = lookAhead;
21493
+ return true;
21468
21494
  }
21469
21495
  },
21470
21496
  {
@@ -22357,7 +22383,12 @@ var Parse = /*#__PURE__*/ function() {
22357
22383
  }
22358
22384
  }
22359
22385
  }
22360
- if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
22386
+ if (newStacks.length > 12 /* Rec.MaxStackCount */ ) {
22387
+ newStacks.sort(function(a, b) {
22388
+ return b.score - a.score;
22389
+ });
22390
+ newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
22391
+ }
22361
22392
  }
22362
22393
  this.minStackPos = newStacks[0].pos;
22363
22394
  for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
@@ -22452,7 +22483,7 @@ var Parse = /*#__PURE__*/ function() {
22452
22483
  if (done) continue;
22453
22484
  }
22454
22485
  var force = stack.split(), forceBase = base;
22455
- for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
22486
+ for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
22456
22487
  if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
22457
22488
  var done1 = this.advanceFully(force, newStacks);
22458
22489
  if (done1) break;
@@ -22487,8 +22518,8 @@ var Parse = /*#__PURE__*/ function() {
22487
22518
  stack.recoverByDelete(token, tokenEnd);
22488
22519
  if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
22489
22520
  pushStackDedup(stack, newStacks);
22490
- } else if (!finished || finished.score < stack.score) {
22491
- finished = stack;
22521
+ } else if (!finished || finished.score < force.score) {
22522
+ finished = force;
22492
22523
  }
22493
22524
  }
22494
22525
  return finished;
@@ -23337,7 +23368,7 @@ must be quoted as JSON strings.
23337
23368
  For example:
23338
23369
 
23339
23370
  ```javascript
23340
- parser.withProps(
23371
+ parser.configure({props: [
23341
23372
  styleTags({
23342
23373
  // Style Number and BigNumber nodes
23343
23374
  "Number BigNumber": tags.number,
@@ -23352,7 +23383,7 @@ parser.withProps(
23352
23383
  // Style the node named "/" as punctuation
23353
23384
  '"/"': tags.punctuation
23354
23385
  })
23355
- )
23386
+ ]})
23356
23387
  ```
23357
23388
  */ function styleTags(spec) {
23358
23389
  var byName = Object.create(null);
@@ -23408,7 +23439,26 @@ parser.withProps(
23408
23439
  }
23409
23440
  return ruleNodeProp.add(byName);
23410
23441
  }
23411
- var ruleNodeProp = new NodeProp();
23442
+ var ruleNodeProp = new NodeProp({
23443
+ combine: function combine(a, b) {
23444
+ var cur, root, take;
23445
+ while(a || b){
23446
+ if (!a || b && a.depth >= b.depth) {
23447
+ take = b;
23448
+ b = b.next;
23449
+ } else {
23450
+ take = a;
23451
+ a = a.next;
23452
+ }
23453
+ if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
23454
+ var copy = new Rule$1(take.tags, take.mode, take.context);
23455
+ if (cur) cur.next = copy;
23456
+ else root = copy;
23457
+ cur = copy;
23458
+ }
23459
+ return root;
23460
+ }
23461
+ });
23412
23462
  var Rule$1 = /*#__PURE__*/ function() {
23413
23463
  function Rule(tags, mode, context, next) {
23414
23464
  _class_call_check$x(this, Rule);
@@ -24333,14 +24383,14 @@ function indent(str, spaces) {
24333
24383
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
24334
24384
  // match is required
24335
24385
  if (!match) {
24336
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
24386
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
24337
24387
  v: nextMatch1
24338
24388
  };
24339
24389
  }
24340
24390
  var token = match.token, offset = match.offset;
24341
24391
  i1 += offset;
24342
24392
  if (token === ' ') {
24343
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
24393
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24344
24394
  }
24345
24395
  tokens1 = _to_consumable_array$4(tokens1).concat([
24346
24396
  token
@@ -24359,7 +24409,7 @@ function indent(str, spaces) {
24359
24409
  if (contextKeys.some(function(el) {
24360
24410
  return el.startsWith(name);
24361
24411
  })) {
24362
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
24412
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24363
24413
  }
24364
24414
  if (dateTimeIdentifiers.some(function(el) {
24365
24415
  return el === name;
@@ -24378,9 +24428,9 @@ function indent(str, spaces) {
24378
24428
  if (dateTimeIdentifiers.some(function(el) {
24379
24429
  return el.startsWith(name);
24380
24430
  })) {
24381
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
24431
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24382
24432
  }
24383
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
24433
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
24384
24434
  v: nextMatch1
24385
24435
  };
24386
24436
  };
@@ -45884,7 +45934,7 @@ function _object_spread_props(target, source) {
45884
45934
  prefix: '_'
45885
45935
  })).join('').toLowerCase();
45886
45936
  }
45887
- const Handlebars = handlebars_min || HandlebarsNamespace;
45937
+ const Handlebars = handlebars_min_default || HandlebarsNamespace;
45888
45938
  Handlebars.registerHelper('JSONstringify', function(value) {
45889
45939
  return JSON.stringify(value);
45890
45940
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sse",
3
- "version": "0.136.0",
3
+ "version": "0.136.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- export * from './lib/skill-sse';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { PinsSettings } from '@digipair/engine';
2
- export declare const registerSession: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
- export declare const registerChannel: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
- export declare const push: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
5
- export declare const broadcast: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
6
- //# sourceMappingURL=skill-sse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-sse.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-sse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgFjE,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAElD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC"}