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