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