@clerc/parser 1.0.0-beta.22 → 1.0.0-beta.24

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -328,8 +328,8 @@ function createParser(options = {}) {
328
328
  setValueByType(result.flags, key, chars.slice(j + 1), config);
329
329
  break;
330
330
  } else {
331
- const nextValue = eat();
332
- if (nextValue && !shouldProcessAsFlag(nextValue)) setValueByType(result.flags, key, nextValue, config);
331
+ const value = hasNext && !shouldProcessAsFlag(next) ? eat() ?? "" : "";
332
+ setValueByType(result.flags, key, value, config);
333
333
  }
334
334
  }
335
335
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/parser",
3
- "version": "1.0.0-beta.22",
3
+ "version": "1.0.0-beta.24",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc parser",
@@ -56,6 +56,6 @@
56
56
  "nopt": "^9.0.0",
57
57
  "type-flag": "^4.0.3",
58
58
  "yargs-parser": "^22.0.0",
59
- "@clerc/utils": "1.0.0-beta.22"
59
+ "@clerc/utils": "1.0.0-beta.24"
60
60
  }
61
61
  }