@digipair/skill-imap 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 +106 -56
- package/package.json +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/skill-imap.d.ts +0 -35
- package/dist/src/lib/skill-imap.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImapFlow } from 'imapflow';
|
|
2
2
|
import { JSDOM } from 'jsdom';
|
|
3
3
|
|
|
4
|
-
function _mergeNamespaces(n, m) {
|
|
4
|
+
function _mergeNamespaces$1(n, m) {
|
|
5
5
|
m.forEach(function(e) {
|
|
6
6
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
7
7
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -21,7 +21,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
21
21
|
function getDefaultExportFromCjs(x) {
|
|
22
22
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
23
23
|
}
|
|
24
|
-
var handlebars_min
|
|
24
|
+
var handlebars_min = {
|
|
25
25
|
exports: {}
|
|
26
26
|
};
|
|
27
27
|
/**!
|
|
@@ -49,7 +49,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
49
49
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
50
50
|
THE SOFTWARE.
|
|
51
51
|
|
|
52
|
-
*/ handlebars_min
|
|
52
|
+
*/ handlebars_min.exports;
|
|
53
53
|
(function(module1, exports1) {
|
|
54
54
|
function _instanceof(left, right) {
|
|
55
55
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8130,12 +8130,12 @@ THE SOFTWARE.
|
|
|
8130
8130
|
}
|
|
8131
8131
|
]);
|
|
8132
8132
|
});
|
|
8133
|
-
})(handlebars_min
|
|
8134
|
-
var handlebars_minExports = handlebars_min
|
|
8135
|
-
var
|
|
8136
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8133
|
+
})(handlebars_min, handlebars_min.exports);
|
|
8134
|
+
var handlebars_minExports = handlebars_min.exports;
|
|
8135
|
+
var handlebars_min_default = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8136
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces$1({
|
|
8137
8137
|
__proto__: null,
|
|
8138
|
-
default:
|
|
8138
|
+
default: handlebars_min_default
|
|
8139
8139
|
}, [
|
|
8140
8140
|
handlebars_minExports
|
|
8141
8141
|
]);
|
|
@@ -17298,6 +17298,7 @@ class represent prop names.
|
|
|
17298
17298
|
this.deserialize = config.deserialize || function() {
|
|
17299
17299
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17300
17300
|
};
|
|
17301
|
+
this.combine = config.combine || null;
|
|
17301
17302
|
}
|
|
17302
17303
|
_create_class$u(NodeProp, [
|
|
17303
17304
|
{
|
|
@@ -17410,10 +17411,16 @@ represented by another tree.
|
|
|
17410
17411
|
*/ overlay, /**
|
|
17411
17412
|
The parser used to create this subtree.
|
|
17412
17413
|
*/ parser) {
|
|
17414
|
+
var /**
|
|
17415
|
+
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17416
|
+
content is delineated with some kind
|
|
17417
|
+
of bracket token.
|
|
17418
|
+
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17413
17419
|
_class_call_check$z(this, MountedTree);
|
|
17414
17420
|
this.tree = tree;
|
|
17415
17421
|
this.overlay = overlay;
|
|
17416
17422
|
this.parser = parser;
|
|
17423
|
+
this.bracketed = bracketed;
|
|
17417
17424
|
}
|
|
17418
17425
|
_create_class$u(MountedTree, null, [
|
|
17419
17426
|
{
|
|
@@ -17629,7 +17636,9 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17629
17636
|
var add = source(type);
|
|
17630
17637
|
if (add) {
|
|
17631
17638
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17632
|
-
|
|
17639
|
+
var value = add[1], prop = add[0];
|
|
17640
|
+
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17641
|
+
newProps[prop.id] = value;
|
|
17633
17642
|
}
|
|
17634
17643
|
}
|
|
17635
17644
|
} catch (err) {
|
|
@@ -17695,6 +17704,12 @@ operator to enable multiple ones.
|
|
|
17695
17704
|
library to not enter mounted overlays if one covers the given
|
|
17696
17705
|
position.
|
|
17697
17706
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17707
|
+
/**
|
|
17708
|
+
When set, positions on the boundary of a mounted overlay tree
|
|
17709
|
+
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17710
|
+
set will enter that tree regardless of side. Only supported in
|
|
17711
|
+
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17712
|
+
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17698
17713
|
})(IterMode || (IterMode = {}));
|
|
17699
17714
|
/**
|
|
17700
17715
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18253,17 +18268,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18253
18268
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18254
18269
|
for(var parent = this;;){
|
|
18255
18270
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18256
|
-
var next = children[i], start = positions[i] + parent.from;
|
|
18257
|
-
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18271
|
+
var next = children[i], start = positions[i] + parent.from, mounted = void 0;
|
|
18272
|
+
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;
|
|
18258
18273
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18259
18274
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18260
18275
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18261
18276
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18262
18277
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18263
|
-
var
|
|
18264
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18278
|
+
var mounted1 = void 0;
|
|
18279
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
|
|
18265
18280
|
var inner = new TreeNode(next, start, i, parent);
|
|
18266
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18281
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
|
|
18267
18282
|
}
|
|
18268
18283
|
}
|
|
18269
18284
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18298,18 +18313,24 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18298
18313
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18299
18314
|
}
|
|
18300
18315
|
},
|
|
18316
|
+
{
|
|
18317
|
+
key: "prop",
|
|
18318
|
+
value: function prop(prop) {
|
|
18319
|
+
return this._tree.prop(prop);
|
|
18320
|
+
}
|
|
18321
|
+
},
|
|
18301
18322
|
{
|
|
18302
18323
|
key: "enter",
|
|
18303
18324
|
value: function enter(pos, side) {
|
|
18304
18325
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18305
18326
|
var mounted;
|
|
18306
18327
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18307
|
-
var rPos = pos - this.from;
|
|
18328
|
+
var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
|
|
18308
18329
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18309
18330
|
try {
|
|
18310
18331
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18311
18332
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18312
|
-
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);
|
|
18333
|
+
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);
|
|
18313
18334
|
}
|
|
18314
18335
|
} catch (err) {
|
|
18315
18336
|
_didIteratorError = true;
|
|
@@ -18473,6 +18494,12 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18473
18494
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18474
18495
|
}
|
|
18475
18496
|
},
|
|
18497
|
+
{
|
|
18498
|
+
key: "prop",
|
|
18499
|
+
value: function prop(prop) {
|
|
18500
|
+
return this.type.prop(prop);
|
|
18501
|
+
}
|
|
18502
|
+
},
|
|
18476
18503
|
{
|
|
18477
18504
|
key: "enter",
|
|
18478
18505
|
value: function enter(pos, side) {
|
|
@@ -18603,11 +18630,8 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18603
18630
|
allows you to move to adjacent nodes.
|
|
18604
18631
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18605
18632
|
function TreeCursor(node) {
|
|
18606
|
-
var
|
|
18607
|
-
@internal
|
|
18608
|
-
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18633
|
+
var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18609
18634
|
_class_call_check$z(this, TreeCursor);
|
|
18610
|
-
this.mode = mode;
|
|
18611
18635
|
/**
|
|
18612
18636
|
@internal
|
|
18613
18637
|
*/ this.buffer = null;
|
|
@@ -18616,6 +18640,7 @@ allows you to move to adjacent nodes.
|
|
|
18616
18640
|
@internal
|
|
18617
18641
|
*/ this.index = 0;
|
|
18618
18642
|
this.bufferNode = null;
|
|
18643
|
+
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18619
18644
|
if (_instanceof$i(node, TreeNode)) {
|
|
18620
18645
|
this.yieldNode(node);
|
|
18621
18646
|
} else {
|
|
@@ -18959,7 +18984,7 @@ function buildTree(data) {
|
|
|
18959
18984
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18960
18985
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18961
18986
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18962
|
-
|
|
18987
|
+
if (size < 0) {
|
|
18963
18988
|
cursor.next();
|
|
18964
18989
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18965
18990
|
var node = reused[id];
|
|
@@ -19126,7 +19151,7 @@ function buildTree(data) {
|
|
|
19126
19151
|
fork.next();
|
|
19127
19152
|
while(fork.pos > startPos){
|
|
19128
19153
|
if (fork.size < 0) {
|
|
19129
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19154
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
|
|
19130
19155
|
else break scan;
|
|
19131
19156
|
} else if (fork.id >= minRepeatType) {
|
|
19132
19157
|
localSkipped += 4;
|
|
@@ -19565,11 +19590,11 @@ about the parse state.
|
|
|
19565
19590
|
var _a;
|
|
19566
19591
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19567
19592
|
var parser = this.p.parser;
|
|
19568
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19569
|
-
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19593
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
|
|
19570
19594
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19571
19595
|
if (dPrec) this.score += dPrec;
|
|
19572
19596
|
if (depth == 0) {
|
|
19597
|
+
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19573
19598
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19574
19599
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19575
19600
|
// the stack without popping anything off.
|
|
@@ -19583,7 +19608,9 @@ about the parse state.
|
|
|
19583
19608
|
// expression and the state that we'll be staying in, which should
|
|
19584
19609
|
// be moved to `this.state`).
|
|
19585
19610
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19586
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from
|
|
19611
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19612
|
+
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19613
|
+
var size = this.reducePos - start;
|
|
19587
19614
|
// This is a kludge to try and detect overly deep left-associative
|
|
19588
19615
|
// trees, which will not increase the parse stack depth and thus
|
|
19589
19616
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19622,15 +19649,11 @@ about the parse state.
|
|
|
19622
19649
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19623
19650
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19624
19651
|
// Try to omit/merge adjacent error nodes
|
|
19625
|
-
var
|
|
19626
|
-
if (top == 0 &&
|
|
19627
|
-
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19628
|
-
cur = cur.parent;
|
|
19629
|
-
}
|
|
19630
|
-
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19652
|
+
var top = this.buffer.length;
|
|
19653
|
+
if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
|
|
19631
19654
|
if (start == end) return;
|
|
19632
|
-
if (
|
|
19633
|
-
|
|
19655
|
+
if (this.buffer[top - 2] >= start) {
|
|
19656
|
+
this.buffer[top - 2] = end;
|
|
19634
19657
|
return;
|
|
19635
19658
|
}
|
|
19636
19659
|
}
|
|
@@ -19639,7 +19662,7 @@ about the parse state.
|
|
|
19639
19662
|
this.buffer.push(term, start, end, size);
|
|
19640
19663
|
} else {
|
|
19641
19664
|
var index = this.buffer.length;
|
|
19642
|
-
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19665
|
+
if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
|
|
19643
19666
|
var mustMove = false;
|
|
19644
19667
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19645
19668
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19674,11 +19697,11 @@ about the parse state.
|
|
|
19674
19697
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19675
19698
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19676
19699
|
var nextState = action, parser = this.p.parser;
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
this.pushState(nextState, start);
|
|
19700
|
+
this.pos = end;
|
|
19701
|
+
var skipped = parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ );
|
|
19702
|
+
// Skipped or zero-length non-tree tokens don't move reducePos
|
|
19703
|
+
if (!skipped && (end > start || type <= parser.maxNode)) this.reducePos = end;
|
|
19704
|
+
this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
|
|
19682
19705
|
this.shiftContext(type, start);
|
|
19683
19706
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19684
19707
|
} else {
|
|
@@ -19726,6 +19749,9 @@ about the parse state.
|
|
|
19726
19749
|
value: function split() {
|
|
19727
19750
|
var parent = this;
|
|
19728
19751
|
var off = parent.buffer.length;
|
|
19752
|
+
// Leave off top error node, if there, because that might be
|
|
19753
|
+
// merged with other nodes.
|
|
19754
|
+
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19729
19755
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19730
19756
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19731
19757
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -19969,10 +19995,10 @@ about the parse state.
|
|
|
19969
19995
|
@internal
|
|
19970
19996
|
*/ key: "setLookAhead",
|
|
19971
19997
|
value: function setLookAhead(lookAhead) {
|
|
19972
|
-
if (lookAhead
|
|
19973
|
-
|
|
19974
|
-
|
|
19975
|
-
|
|
19998
|
+
if (lookAhead <= this.lookAhead) return false;
|
|
19999
|
+
this.emitLookAhead();
|
|
20000
|
+
this.lookAhead = lookAhead;
|
|
20001
|
+
return true;
|
|
19976
20002
|
}
|
|
19977
20003
|
},
|
|
19978
20004
|
{
|
|
@@ -20865,7 +20891,12 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20865
20891
|
}
|
|
20866
20892
|
}
|
|
20867
20893
|
}
|
|
20868
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20894
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) {
|
|
20895
|
+
newStacks.sort(function(a, b) {
|
|
20896
|
+
return b.score - a.score;
|
|
20897
|
+
});
|
|
20898
|
+
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20899
|
+
}
|
|
20869
20900
|
}
|
|
20870
20901
|
this.minStackPos = newStacks[0].pos;
|
|
20871
20902
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20960,7 +20991,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20960
20991
|
if (done) continue;
|
|
20961
20992
|
}
|
|
20962
20993
|
var force = stack.split(), forceBase = base;
|
|
20963
|
-
for(var j = 0;
|
|
20994
|
+
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
|
|
20964
20995
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
20965
20996
|
var done1 = this.advanceFully(force, newStacks);
|
|
20966
20997
|
if (done1) break;
|
|
@@ -20995,8 +21026,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20995
21026
|
stack.recoverByDelete(token, tokenEnd);
|
|
20996
21027
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
20997
21028
|
pushStackDedup(stack, newStacks);
|
|
20998
|
-
} else if (!finished || finished.score <
|
|
20999
|
-
finished =
|
|
21029
|
+
} else if (!finished || finished.score < force.score) {
|
|
21030
|
+
finished = force;
|
|
21000
21031
|
}
|
|
21001
21032
|
}
|
|
21002
21033
|
return finished;
|
|
@@ -21845,7 +21876,7 @@ must be quoted as JSON strings.
|
|
|
21845
21876
|
For example:
|
|
21846
21877
|
|
|
21847
21878
|
```javascript
|
|
21848
|
-
parser.
|
|
21879
|
+
parser.configure({props: [
|
|
21849
21880
|
styleTags({
|
|
21850
21881
|
// Style Number and BigNumber nodes
|
|
21851
21882
|
"Number BigNumber": tags.number,
|
|
@@ -21860,7 +21891,7 @@ parser.withProps(
|
|
|
21860
21891
|
// Style the node named "/" as punctuation
|
|
21861
21892
|
'"/"': tags.punctuation
|
|
21862
21893
|
})
|
|
21863
|
-
)
|
|
21894
|
+
]})
|
|
21864
21895
|
```
|
|
21865
21896
|
*/ function styleTags(spec) {
|
|
21866
21897
|
var byName = Object.create(null);
|
|
@@ -21916,7 +21947,26 @@ parser.withProps(
|
|
|
21916
21947
|
}
|
|
21917
21948
|
return ruleNodeProp.add(byName);
|
|
21918
21949
|
}
|
|
21919
|
-
var ruleNodeProp = new NodeProp(
|
|
21950
|
+
var ruleNodeProp = new NodeProp({
|
|
21951
|
+
combine: function combine(a, b) {
|
|
21952
|
+
var cur, root, take;
|
|
21953
|
+
while(a || b){
|
|
21954
|
+
if (!a || b && a.depth >= b.depth) {
|
|
21955
|
+
take = b;
|
|
21956
|
+
b = b.next;
|
|
21957
|
+
} else {
|
|
21958
|
+
take = a;
|
|
21959
|
+
a = a.next;
|
|
21960
|
+
}
|
|
21961
|
+
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21962
|
+
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21963
|
+
if (cur) cur.next = copy;
|
|
21964
|
+
else root = copy;
|
|
21965
|
+
cur = copy;
|
|
21966
|
+
}
|
|
21967
|
+
return root;
|
|
21968
|
+
}
|
|
21969
|
+
});
|
|
21920
21970
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21921
21971
|
function Rule(tags, mode, context, next) {
|
|
21922
21972
|
_class_call_check$x(this, Rule);
|
|
@@ -22841,14 +22891,14 @@ function indent(str, spaces) {
|
|
|
22841
22891
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22842
22892
|
// match is required
|
|
22843
22893
|
if (!match) {
|
|
22844
|
-
return
|
|
22894
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
22845
22895
|
v: nextMatch1
|
|
22846
22896
|
};
|
|
22847
22897
|
}
|
|
22848
22898
|
var token = match.token, offset = match.offset;
|
|
22849
22899
|
i1 += offset;
|
|
22850
22900
|
if (token === ' ') {
|
|
22851
|
-
return
|
|
22901
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22852
22902
|
}
|
|
22853
22903
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22854
22904
|
token
|
|
@@ -22867,7 +22917,7 @@ function indent(str, spaces) {
|
|
|
22867
22917
|
if (contextKeys.some(function(el) {
|
|
22868
22918
|
return el.startsWith(name);
|
|
22869
22919
|
})) {
|
|
22870
|
-
return
|
|
22920
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22871
22921
|
}
|
|
22872
22922
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22873
22923
|
return el === name;
|
|
@@ -22886,9 +22936,9 @@ function indent(str, spaces) {
|
|
|
22886
22936
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22887
22937
|
return el.startsWith(name);
|
|
22888
22938
|
})) {
|
|
22889
|
-
return
|
|
22939
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22890
22940
|
}
|
|
22891
|
-
return
|
|
22941
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
22892
22942
|
v: nextMatch1
|
|
22893
22943
|
};
|
|
22894
22944
|
};
|
|
@@ -44392,7 +44442,7 @@ function _object_spread_props(target, source) {
|
|
|
44392
44442
|
prefix: '_'
|
|
44393
44443
|
})).join('').toLowerCase();
|
|
44394
44444
|
}
|
|
44395
|
-
const Handlebars =
|
|
44445
|
+
const Handlebars = handlebars_min_default || HandlebarsNamespace;
|
|
44396
44446
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44397
44447
|
return JSON.stringify(value);
|
|
44398
44448
|
});
|
package/package.json
CHANGED
package/dist/src/index.d.ts
DELETED
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PinsSettings } from '@digipair/engine';
|
|
2
|
-
export declare const connect: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
|
-
export declare const search: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
|
-
export declare const getMailboxLock: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
|
-
export declare const getQuota: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
6
|
-
export declare const idle: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
7
|
-
export declare const list: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
8
|
-
export declare const listTree: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
9
|
-
export declare const logout: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
10
|
-
export declare const mailboxClose: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
11
|
-
export declare const mailboxCreate: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
12
|
-
export declare const mailboxDelete: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
13
|
-
export declare const mailboxOpen: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
14
|
-
export declare const mailboxRename: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
15
|
-
export declare const mailboxSubscribe: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
16
|
-
export declare const mailboxUnsubscribe: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
17
|
-
export declare const messageCopy: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
18
|
-
export declare const messageDelete: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
19
|
-
export declare const messageFlagsAdd: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
20
|
-
export declare const messageFlagsRemove: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
21
|
-
export declare const messageFlagsSet: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
22
|
-
export declare const messageMove: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
23
|
-
export declare const noop: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
24
|
-
export declare const setFlagColor: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
25
|
-
export declare const status: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
26
|
-
export declare const append: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
27
|
-
export declare const close: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
28
|
-
export declare const download: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
29
|
-
export declare const downloadMany: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
30
|
-
export declare const fetch: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
31
|
-
export declare const fetchAll: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
32
|
-
export declare const fetchOne: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
33
|
-
export declare const parseAll: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
34
|
-
export declare const parseOne: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
35
|
-
//# sourceMappingURL=skill-imap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill-imap.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-imap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA4YjE,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAE/D,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAE9D,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAEtE,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAE5D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAE5D,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAE9D,eAAO,MAAM,YAAY,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACrB,CAAC;AAEpE,eAAO,MAAM,a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