@digipair/skill-kafka 0.136.3 → 0.136.4
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
|
@@ -6,7 +6,7 @@ import require$$6 from 'assert';
|
|
|
6
6
|
import require$$0$4 from 'net';
|
|
7
7
|
import require$$1$1 from 'tls';
|
|
8
8
|
|
|
9
|
-
function _mergeNamespaces
|
|
9
|
+
function _mergeNamespaces(n, m) {
|
|
10
10
|
m.forEach(function(e) {
|
|
11
11
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
12
12
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -26,7 +26,7 @@ var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof w
|
|
|
26
26
|
function getDefaultExportFromCjs(x) {
|
|
27
27
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
28
28
|
}
|
|
29
|
-
var handlebars_min = {
|
|
29
|
+
var handlebars_min$1 = {
|
|
30
30
|
exports: {}
|
|
31
31
|
};
|
|
32
32
|
/**!
|
|
@@ -54,7 +54,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
54
54
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
55
55
|
THE SOFTWARE.
|
|
56
56
|
|
|
57
|
-
*/ handlebars_min.exports;
|
|
57
|
+
*/ handlebars_min$1.exports;
|
|
58
58
|
(function(module1, exports1) {
|
|
59
59
|
function _instanceof(left, right) {
|
|
60
60
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8135,12 +8135,12 @@ THE SOFTWARE.
|
|
|
8135
8135
|
}
|
|
8136
8136
|
]);
|
|
8137
8137
|
});
|
|
8138
|
-
})(handlebars_min, handlebars_min.exports);
|
|
8139
|
-
var handlebars_minExports = handlebars_min.exports;
|
|
8140
|
-
var
|
|
8141
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces
|
|
8138
|
+
})(handlebars_min$1, handlebars_min$1.exports);
|
|
8139
|
+
var handlebars_minExports = handlebars_min$1.exports;
|
|
8140
|
+
var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8141
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8142
8142
|
__proto__: null,
|
|
8143
|
-
default:
|
|
8143
|
+
default: handlebars_min
|
|
8144
8144
|
}, [
|
|
8145
8145
|
handlebars_minExports
|
|
8146
8146
|
]);
|
|
@@ -17303,7 +17303,6 @@ class represent prop names.
|
|
|
17303
17303
|
this.deserialize = config.deserialize || function() {
|
|
17304
17304
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17305
17305
|
};
|
|
17306
|
-
this.combine = config.combine || null;
|
|
17307
17306
|
}
|
|
17308
17307
|
_create_class$u(NodeProp, [
|
|
17309
17308
|
{
|
|
@@ -17416,16 +17415,10 @@ represented by another tree.
|
|
|
17416
17415
|
*/ overlay, /**
|
|
17417
17416
|
The parser used to create this subtree.
|
|
17418
17417
|
*/ parser) {
|
|
17419
|
-
var /**
|
|
17420
|
-
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17421
|
-
content is delineated with some kind
|
|
17422
|
-
of bracket token.
|
|
17423
|
-
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17424
17418
|
_class_call_check$z(this, MountedTree);
|
|
17425
17419
|
this.tree = tree;
|
|
17426
17420
|
this.overlay = overlay;
|
|
17427
17421
|
this.parser = parser;
|
|
17428
|
-
this.bracketed = bracketed;
|
|
17429
17422
|
}
|
|
17430
17423
|
_create_class$u(MountedTree, null, [
|
|
17431
17424
|
{
|
|
@@ -17641,9 +17634,7 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17641
17634
|
var add = source(type);
|
|
17642
17635
|
if (add) {
|
|
17643
17636
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17644
|
-
|
|
17645
|
-
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17646
|
-
newProps[prop.id] = value;
|
|
17637
|
+
newProps[add[0].id] = add[1];
|
|
17647
17638
|
}
|
|
17648
17639
|
}
|
|
17649
17640
|
} catch (err) {
|
|
@@ -17709,12 +17700,6 @@ operator to enable multiple ones.
|
|
|
17709
17700
|
library to not enter mounted overlays if one covers the given
|
|
17710
17701
|
position.
|
|
17711
17702
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17712
|
-
/**
|
|
17713
|
-
When set, positions on the boundary of a mounted overlay tree
|
|
17714
|
-
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17715
|
-
set will enter that tree regardless of side. Only supported in
|
|
17716
|
-
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17717
|
-
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17718
17703
|
})(IterMode || (IterMode = {}));
|
|
17719
17704
|
/**
|
|
17720
17705
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18273,17 +18258,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18273
18258
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18274
18259
|
for(var parent = this;;){
|
|
18275
18260
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18276
|
-
var next = children[i], start = positions[i] + parent.from
|
|
18277
|
-
if (!
|
|
18261
|
+
var next = children[i], start = positions[i] + parent.from;
|
|
18262
|
+
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18278
18263
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18279
18264
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18280
18265
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18281
18266
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18282
18267
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18283
|
-
var
|
|
18284
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18268
|
+
var mounted = void 0;
|
|
18269
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
|
|
18285
18270
|
var inner = new TreeNode(next, start, i, parent);
|
|
18286
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side
|
|
18271
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18287
18272
|
}
|
|
18288
18273
|
}
|
|
18289
18274
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18318,24 +18303,18 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18318
18303
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18319
18304
|
}
|
|
18320
18305
|
},
|
|
18321
|
-
{
|
|
18322
|
-
key: "prop",
|
|
18323
|
-
value: function prop(prop) {
|
|
18324
|
-
return this._tree.prop(prop);
|
|
18325
|
-
}
|
|
18326
|
-
},
|
|
18327
18306
|
{
|
|
18328
18307
|
key: "enter",
|
|
18329
18308
|
value: function enter(pos, side) {
|
|
18330
18309
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18331
18310
|
var mounted;
|
|
18332
18311
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18333
|
-
var rPos = pos - this.from
|
|
18312
|
+
var rPos = pos - this.from;
|
|
18334
18313
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18335
18314
|
try {
|
|
18336
18315
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18337
18316
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18338
|
-
if ((side > 0
|
|
18317
|
+
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);
|
|
18339
18318
|
}
|
|
18340
18319
|
} catch (err) {
|
|
18341
18320
|
_didIteratorError = true;
|
|
@@ -18499,12 +18478,6 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18499
18478
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18500
18479
|
}
|
|
18501
18480
|
},
|
|
18502
|
-
{
|
|
18503
|
-
key: "prop",
|
|
18504
|
-
value: function prop(prop) {
|
|
18505
|
-
return this.type.prop(prop);
|
|
18506
|
-
}
|
|
18507
|
-
},
|
|
18508
18481
|
{
|
|
18509
18482
|
key: "enter",
|
|
18510
18483
|
value: function enter(pos, side) {
|
|
@@ -18635,8 +18608,11 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18635
18608
|
allows you to move to adjacent nodes.
|
|
18636
18609
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18637
18610
|
function TreeCursor(node) {
|
|
18638
|
-
var
|
|
18611
|
+
var /**
|
|
18612
|
+
@internal
|
|
18613
|
+
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18639
18614
|
_class_call_check$z(this, TreeCursor);
|
|
18615
|
+
this.mode = mode;
|
|
18640
18616
|
/**
|
|
18641
18617
|
@internal
|
|
18642
18618
|
*/ this.buffer = null;
|
|
@@ -18645,7 +18621,6 @@ allows you to move to adjacent nodes.
|
|
|
18645
18621
|
@internal
|
|
18646
18622
|
*/ this.index = 0;
|
|
18647
18623
|
this.bufferNode = null;
|
|
18648
|
-
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18649
18624
|
if (_instanceof$i(node, TreeNode)) {
|
|
18650
18625
|
this.yieldNode(node);
|
|
18651
18626
|
} else {
|
|
@@ -18989,7 +18964,7 @@ function buildTree(data) {
|
|
|
18989
18964
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18990
18965
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18991
18966
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18992
|
-
|
|
18967
|
+
while(size < 0){
|
|
18993
18968
|
cursor.next();
|
|
18994
18969
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18995
18970
|
var node = reused[id];
|
|
@@ -19156,7 +19131,7 @@ function buildTree(data) {
|
|
|
19156
19131
|
fork.next();
|
|
19157
19132
|
while(fork.pos > startPos){
|
|
19158
19133
|
if (fork.size < 0) {
|
|
19159
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */
|
|
19134
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19160
19135
|
else break scan;
|
|
19161
19136
|
} else if (fork.id >= minRepeatType) {
|
|
19162
19137
|
localSkipped += 4;
|
|
@@ -19595,11 +19570,11 @@ about the parse state.
|
|
|
19595
19570
|
var _a;
|
|
19596
19571
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19597
19572
|
var parser = this.p.parser;
|
|
19598
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */
|
|
19573
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19574
|
+
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19599
19575
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19600
19576
|
if (dPrec) this.score += dPrec;
|
|
19601
19577
|
if (depth == 0) {
|
|
19602
|
-
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19603
19578
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19604
19579
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19605
19580
|
// the stack without popping anything off.
|
|
@@ -19613,9 +19588,7 @@ about the parse state.
|
|
|
19613
19588
|
// expression and the state that we'll be staying in, which should
|
|
19614
19589
|
// be moved to `this.state`).
|
|
19615
19590
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19616
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19617
|
-
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19618
|
-
var size = this.reducePos - start;
|
|
19591
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
|
|
19619
19592
|
// This is a kludge to try and detect overly deep left-associative
|
|
19620
19593
|
// trees, which will not increase the parse stack depth and thus
|
|
19621
19594
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19654,11 +19627,15 @@ about the parse state.
|
|
|
19654
19627
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19655
19628
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19656
19629
|
// Try to omit/merge adjacent error nodes
|
|
19657
|
-
var top = this.buffer.length;
|
|
19658
|
-
if (top
|
|
19630
|
+
var cur = this, top = this.buffer.length;
|
|
19631
|
+
if (top == 0 && cur.parent) {
|
|
19632
|
+
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19633
|
+
cur = cur.parent;
|
|
19634
|
+
}
|
|
19635
|
+
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19659
19636
|
if (start == end) return;
|
|
19660
|
-
if (
|
|
19661
|
-
|
|
19637
|
+
if (cur.buffer[top - 2] >= start) {
|
|
19638
|
+
cur.buffer[top - 2] = end;
|
|
19662
19639
|
return;
|
|
19663
19640
|
}
|
|
19664
19641
|
}
|
|
@@ -19667,7 +19644,7 @@ about the parse state.
|
|
|
19667
19644
|
this.buffer.push(term, start, end, size);
|
|
19668
19645
|
} else {
|
|
19669
19646
|
var index = this.buffer.length;
|
|
19670
|
-
if (index > 0 &&
|
|
19647
|
+
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19671
19648
|
var mustMove = false;
|
|
19672
19649
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19673
19650
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19702,11 +19679,11 @@ about the parse state.
|
|
|
19702
19679
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19703
19680
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19704
19681
|
var nextState = action, parser = this.p.parser;
|
|
19705
|
-
this.pos
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
this.pushState(nextState,
|
|
19682
|
+
if (end > this.pos || type <= parser.maxNode) {
|
|
19683
|
+
this.pos = end;
|
|
19684
|
+
if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
|
|
19685
|
+
}
|
|
19686
|
+
this.pushState(nextState, start);
|
|
19710
19687
|
this.shiftContext(type, start);
|
|
19711
19688
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19712
19689
|
} else {
|
|
@@ -19754,9 +19731,6 @@ about the parse state.
|
|
|
19754
19731
|
value: function split() {
|
|
19755
19732
|
var parent = this;
|
|
19756
19733
|
var off = parent.buffer.length;
|
|
19757
|
-
// Leave off top error node, if there, because that might be
|
|
19758
|
-
// merged with other nodes.
|
|
19759
|
-
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19760
19734
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19761
19735
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19762
19736
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -20000,10 +19974,10 @@ about the parse state.
|
|
|
20000
19974
|
@internal
|
|
20001
19975
|
*/ key: "setLookAhead",
|
|
20002
19976
|
value: function setLookAhead(lookAhead) {
|
|
20003
|
-
if (lookAhead
|
|
20004
|
-
|
|
20005
|
-
|
|
20006
|
-
|
|
19977
|
+
if (lookAhead > this.lookAhead) {
|
|
19978
|
+
this.emitLookAhead();
|
|
19979
|
+
this.lookAhead = lookAhead;
|
|
19980
|
+
}
|
|
20007
19981
|
}
|
|
20008
19982
|
},
|
|
20009
19983
|
{
|
|
@@ -20896,12 +20870,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20896
20870
|
}
|
|
20897
20871
|
}
|
|
20898
20872
|
}
|
|
20899
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20900
|
-
newStacks.sort(function(a, b) {
|
|
20901
|
-
return b.score - a.score;
|
|
20902
|
-
});
|
|
20903
|
-
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20904
|
-
}
|
|
20873
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20905
20874
|
}
|
|
20906
20875
|
this.minStackPos = newStacks[0].pos;
|
|
20907
20876
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20996,7 +20965,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20996
20965
|
if (done) continue;
|
|
20997
20966
|
}
|
|
20998
20967
|
var force = stack.split(), forceBase = base;
|
|
20999
|
-
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */
|
|
20968
|
+
for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
|
|
21000
20969
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
21001
20970
|
var done1 = this.advanceFully(force, newStacks);
|
|
21002
20971
|
if (done1) break;
|
|
@@ -21031,8 +21000,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
21031
21000
|
stack.recoverByDelete(token, tokenEnd);
|
|
21032
21001
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
21033
21002
|
pushStackDedup(stack, newStacks);
|
|
21034
|
-
} else if (!finished || finished.score <
|
|
21035
|
-
finished =
|
|
21003
|
+
} else if (!finished || finished.score < stack.score) {
|
|
21004
|
+
finished = stack;
|
|
21036
21005
|
}
|
|
21037
21006
|
}
|
|
21038
21007
|
return finished;
|
|
@@ -21881,7 +21850,7 @@ must be quoted as JSON strings.
|
|
|
21881
21850
|
For example:
|
|
21882
21851
|
|
|
21883
21852
|
```javascript
|
|
21884
|
-
parser.
|
|
21853
|
+
parser.withProps(
|
|
21885
21854
|
styleTags({
|
|
21886
21855
|
// Style Number and BigNumber nodes
|
|
21887
21856
|
"Number BigNumber": tags.number,
|
|
@@ -21896,7 +21865,7 @@ parser.configure({props: [
|
|
|
21896
21865
|
// Style the node named "/" as punctuation
|
|
21897
21866
|
'"/"': tags.punctuation
|
|
21898
21867
|
})
|
|
21899
|
-
|
|
21868
|
+
)
|
|
21900
21869
|
```
|
|
21901
21870
|
*/ function styleTags(spec) {
|
|
21902
21871
|
var byName = Object.create(null);
|
|
@@ -21952,26 +21921,7 @@ parser.configure({props: [
|
|
|
21952
21921
|
}
|
|
21953
21922
|
return ruleNodeProp.add(byName);
|
|
21954
21923
|
}
|
|
21955
|
-
var ruleNodeProp = new NodeProp(
|
|
21956
|
-
combine: function combine(a, b) {
|
|
21957
|
-
var cur, root, take;
|
|
21958
|
-
while(a || b){
|
|
21959
|
-
if (!a || b && a.depth >= b.depth) {
|
|
21960
|
-
take = b;
|
|
21961
|
-
b = b.next;
|
|
21962
|
-
} else {
|
|
21963
|
-
take = a;
|
|
21964
|
-
a = a.next;
|
|
21965
|
-
}
|
|
21966
|
-
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21967
|
-
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21968
|
-
if (cur) cur.next = copy;
|
|
21969
|
-
else root = copy;
|
|
21970
|
-
cur = copy;
|
|
21971
|
-
}
|
|
21972
|
-
return root;
|
|
21973
|
-
}
|
|
21974
|
-
});
|
|
21924
|
+
var ruleNodeProp = new NodeProp();
|
|
21975
21925
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21976
21926
|
function Rule(tags, mode, context, next) {
|
|
21977
21927
|
_class_call_check$x(this, Rule);
|
|
@@ -22896,14 +22846,14 @@ function indent(str, spaces) {
|
|
|
22896
22846
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22897
22847
|
// match is required
|
|
22898
22848
|
if (!match) {
|
|
22899
|
-
return
|
|
22849
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22900
22850
|
v: nextMatch1
|
|
22901
22851
|
};
|
|
22902
22852
|
}
|
|
22903
22853
|
var token = match.token, offset = match.offset;
|
|
22904
22854
|
i1 += offset;
|
|
22905
22855
|
if (token === ' ') {
|
|
22906
|
-
return
|
|
22856
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22907
22857
|
}
|
|
22908
22858
|
tokens1 = _to_consumable_array$4$1(tokens1).concat([
|
|
22909
22859
|
token
|
|
@@ -22922,7 +22872,7 @@ function indent(str, spaces) {
|
|
|
22922
22872
|
if (contextKeys.some(function(el) {
|
|
22923
22873
|
return el.startsWith(name);
|
|
22924
22874
|
})) {
|
|
22925
|
-
return
|
|
22875
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22926
22876
|
}
|
|
22927
22877
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22928
22878
|
return el === name;
|
|
@@ -22941,9 +22891,9 @@ function indent(str, spaces) {
|
|
|
22941
22891
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22942
22892
|
return el.startsWith(name);
|
|
22943
22893
|
})) {
|
|
22944
|
-
return
|
|
22894
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22945
22895
|
}
|
|
22946
|
-
return
|
|
22896
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22947
22897
|
v: nextMatch1
|
|
22948
22898
|
};
|
|
22949
22899
|
};
|
|
@@ -44447,7 +44397,7 @@ function _object_spread_props$a(target, source) {
|
|
|
44447
44397
|
prefix: '_'
|
|
44448
44398
|
})).join('').toLowerCase();
|
|
44449
44399
|
}
|
|
44450
|
-
const Handlebars =
|
|
44400
|
+
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44451
44401
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44452
44402
|
return JSON.stringify(value);
|
|
44453
44403
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PinsSettings } from '@digipair/engine';
|
|
2
|
+
import { Kafka } from 'kafkajs';
|
|
3
|
+
export declare const kafka: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<Kafka>;
|
|
4
|
+
export declare const produce: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
|
+
export declare const consume: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
6
|
+
export declare const consumerDisconnect: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
|
|
7
|
+
//# sourceMappingURL=skill-kafka.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-kafka.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-kafka.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAsDhC,eAAO,MAAM,KAAK,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,mBACpB,CAAC;AAE9D,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACpB,CAAC;AAEhE,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACpB,CAAC;AAEhE,eAAO,MAAM,kBAAkB,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,kBACpB,CAAC"}
|