@digipair/skill-imap 0.57.6 → 0.57.8
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/index.cjs.js +6 -2
- package/index.esm.js +11 -7
- package/package.json +1 -1
- package/schema.fr.json +13 -1
- package/schema.json +12 -0
package/index.cjs.js
CHANGED
|
@@ -58,10 +58,14 @@ let IMapService = class IMapService {
|
|
|
58
58
|
}
|
|
59
59
|
async connect(params, pinsSettingsList, context) {
|
|
60
60
|
var _context_protected;
|
|
61
|
-
const { config, load = [], close = [], error = [], exists = [], expunge = [], flags = [], log = [], mailboxClose = [], mailboxOpen = [] } = params;
|
|
61
|
+
const { config, configExecute, load = [], close = [], error = [], exists = [], expunge = [], flags = [], log = [], mailboxClose = [], mailboxOpen = [] } = params;
|
|
62
|
+
let configuration = config;
|
|
63
|
+
if (configExecute && configExecute.length > 0) {
|
|
64
|
+
configuration = await engine.executePinsList(configExecute, _extends({}, context));
|
|
65
|
+
}
|
|
62
66
|
const client = this.imap = new imapflow.ImapFlow(_extends({
|
|
63
67
|
logger: false
|
|
64
|
-
},
|
|
68
|
+
}, configuration));
|
|
65
69
|
await client.connect();
|
|
66
70
|
(_context_protected = context.protected) == null ? void 0 : _context_protected.signal.addEventListener('abort', ()=>{
|
|
67
71
|
client.logout();
|
package/index.esm.js
CHANGED
|
@@ -23902,14 +23902,14 @@ function indent(str, spaces) {
|
|
|
23902
23902
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23903
23903
|
// match is required
|
|
23904
23904
|
if (!match) {
|
|
23905
|
-
return
|
|
23905
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23906
23906
|
v: nextMatch1
|
|
23907
23907
|
};
|
|
23908
23908
|
}
|
|
23909
23909
|
var token = match.token, offset = match.offset;
|
|
23910
23910
|
i1 += offset;
|
|
23911
23911
|
if (token === " ") {
|
|
23912
|
-
return
|
|
23912
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23913
23913
|
}
|
|
23914
23914
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23915
23915
|
token
|
|
@@ -23928,7 +23928,7 @@ function indent(str, spaces) {
|
|
|
23928
23928
|
if (contextKeys.some(function(el) {
|
|
23929
23929
|
return el.startsWith(name);
|
|
23930
23930
|
})) {
|
|
23931
|
-
return
|
|
23931
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23932
23932
|
}
|
|
23933
23933
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23934
23934
|
return el === name;
|
|
@@ -23947,9 +23947,9 @@ function indent(str, spaces) {
|
|
|
23947
23947
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23948
23948
|
return el.startsWith(name);
|
|
23949
23949
|
})) {
|
|
23950
|
-
return
|
|
23950
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23951
23951
|
}
|
|
23952
|
-
return
|
|
23952
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23953
23953
|
v: nextMatch1
|
|
23954
23954
|
};
|
|
23955
23955
|
};
|
|
@@ -27997,10 +27997,14 @@ let IMapService = class IMapService {
|
|
|
27997
27997
|
}
|
|
27998
27998
|
async connect(params, pinsSettingsList, context) {
|
|
27999
27999
|
var _context_protected;
|
|
28000
|
-
const { config, load = [], close = [], error = [], exists = [], expunge = [], flags = [], log = [], mailboxClose = [], mailboxOpen = [] } = params;
|
|
28000
|
+
const { config, configExecute, load = [], close = [], error = [], exists = [], expunge = [], flags = [], log = [], mailboxClose = [], mailboxOpen = [] } = params;
|
|
28001
|
+
let configuration = config;
|
|
28002
|
+
if (configExecute && configExecute.length > 0) {
|
|
28003
|
+
configuration = await executePinsList(configExecute, _extends({}, context));
|
|
28004
|
+
}
|
|
28001
28005
|
const client = this.imap = new ImapFlow(_extends({
|
|
28002
28006
|
logger: false
|
|
28003
|
-
},
|
|
28007
|
+
}, configuration));
|
|
28004
28008
|
await client.connect();
|
|
28005
28009
|
(_context_protected = context.protected) == null ? void 0 : _context_protected.signal.addEventListener('abort', ()=>{
|
|
28006
28010
|
client.logout();
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -91,12 +91,24 @@
|
|
|
91
91
|
{
|
|
92
92
|
"name": "config",
|
|
93
93
|
"summary": "Configuration",
|
|
94
|
-
"required":
|
|
94
|
+
"required": false,
|
|
95
95
|
"description": "Configuration du client IMAP",
|
|
96
96
|
"schema": {
|
|
97
97
|
"type": "object"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"name": "configExecute",
|
|
102
|
+
"summary": "Execute la configuration",
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "Execute la configuration",
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
100
112
|
{
|
|
101
113
|
"name": "load",
|
|
102
114
|
"summary": "Chargement",
|
package/schema.json
CHANGED
|
@@ -97,6 +97,18 @@
|
|
|
97
97
|
"type": "object"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"name": "configExecute",
|
|
102
|
+
"summary": "Configuration execute",
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "Configuration execute",
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
100
112
|
{
|
|
101
113
|
"name": "load",
|
|
102
114
|
"summary": "Loading",
|