@trenskow/arguments-parser 0.3.116 → 0.3.118

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.
@@ -4,6 +4,5 @@
4
4
  "isvalid",
5
5
  "Kristian",
6
6
  "trenskow"
7
- ],
8
- "editor.formatOnSave": true
7
+ ]
9
8
  }
@@ -176,8 +176,8 @@ const argumentsParser = (output) => {
176
176
  }
177
177
 
178
178
  if (schemas[idx].type === String && !schemas[idx].autocomplete) {
179
- return buildIns.files(
180
- current)
179
+ return (await buildIns.files(
180
+ current))
181
181
  .filter((item) => key !== item && item.startsWith(current));
182
182
  }
183
183
 
@@ -231,7 +231,7 @@ const argumentsParser = (output) => {
231
231
  await complete(-1));
232
232
  }
233
233
 
234
- for (idx = 0 ; idx < args.length; idx++) {
234
+ for (idx = 0; idx < args.length; idx++) {
235
235
 
236
236
  if (!schemas[idx]) {
237
237
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.3.116",
3
+ "version": "0.3.118",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",