@digipair/skill-imap 0.56.3 → 0.57.0

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 CHANGED
@@ -125,7 +125,7 @@ let IMapService = class IMapService {
125
125
  return client;
126
126
  }
127
127
  async search(params, _pinsSettingsList, context) {
128
- const { client = context.imap, query, attachments = 'FULL' } = params;
128
+ const { client = context.imap, query, attachments = 'NONE' } = params;
129
129
  let messages;
130
130
  const list = await client.search(query);
131
131
  const results = await client.fetchAll(list, {
@@ -194,7 +194,7 @@ let IMapService = class IMapService {
194
194
  return client.mailboxDelete(path);
195
195
  }
196
196
  async mailboxOpen(params, _pinsSettingsList, context) {
197
- const { client = context.imap, path, options = {} } = params;
197
+ const { client = context.imap, path = 'INBOX', options = {} } = params;
198
198
  return client.mailboxOpen(path, options);
199
199
  }
200
200
  async mailboxRename(params, _pinsSettingsList, context) {
package/index.esm.js CHANGED
@@ -23901,14 +23901,14 @@ function indent(str, spaces) {
23901
23901
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23902
23902
  // match is required
23903
23903
  if (!match) {
23904
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23904
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23905
23905
  v: nextMatch1
23906
23906
  };
23907
23907
  }
23908
23908
  var token = match.token, offset = match.offset;
23909
23909
  i1 += offset;
23910
23910
  if (token === " ") {
23911
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23911
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23912
23912
  }
23913
23913
  tokens1 = _to_consumable_array$1(tokens1).concat([
23914
23914
  token
@@ -23927,7 +23927,7 @@ function indent(str, spaces) {
23927
23927
  if (contextKeys.some(function(el) {
23928
23928
  return el.startsWith(name);
23929
23929
  })) {
23930
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23930
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23931
23931
  }
23932
23932
  if (dateTimeIdentifiers.some(function(el) {
23933
23933
  return el === name;
@@ -23946,9 +23946,9 @@ function indent(str, spaces) {
23946
23946
  if (dateTimeIdentifiers.some(function(el) {
23947
23947
  return el.startsWith(name);
23948
23948
  })) {
23949
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23949
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23950
23950
  }
23951
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23951
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23952
23952
  v: nextMatch1
23953
23953
  };
23954
23954
  };
@@ -28064,7 +28064,7 @@ let IMapService = class IMapService {
28064
28064
  return client;
28065
28065
  }
28066
28066
  async search(params, _pinsSettingsList, context) {
28067
- const { client = context.imap, query, attachments = 'FULL' } = params;
28067
+ const { client = context.imap, query, attachments = 'NONE' } = params;
28068
28068
  let messages;
28069
28069
  const list = await client.search(query);
28070
28070
  const results = await client.fetchAll(list, {
@@ -28133,7 +28133,7 @@ let IMapService = class IMapService {
28133
28133
  return client.mailboxDelete(path);
28134
28134
  }
28135
28135
  async mailboxOpen(params, _pinsSettingsList, context) {
28136
- const { client = context.imap, path, options = {} } = params;
28136
+ const { client = context.imap, path = 'INBOX', options = {} } = params;
28137
28137
  return client.mailboxOpen(path, options);
28138
28138
  }
28139
28139
  async mailboxRename(params, _pinsSettingsList, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-imap",
3
- "version": "0.56.3",
3
+ "version": "0.57.0",
4
4
  "dependencies": {
5
5
  "imapflow": "^1.0.171"
6
6
  },
package/schema.fr.json CHANGED
@@ -412,7 +412,7 @@
412
412
  {
413
413
  "name": "path",
414
414
  "summary": "Chemin",
415
- "required": true,
415
+ "required": false,
416
416
  "description": "Chemin de la boîte",
417
417
  "schema": {
418
418
  "type": "string"