args-tokens 0.10.0 → 0.10.1
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/lib/resolver.js +1 -1
- package/package.json +2 -2
package/lib/resolver.js
CHANGED
|
@@ -8,7 +8,6 @@ import { hasLongOptionPrefix, isShortOption } from './parser.js';
|
|
|
8
8
|
* @returns An object that contains the values of the arguments, positional arguments, and {@link AggregateError | validation errors}.
|
|
9
9
|
*/
|
|
10
10
|
export function resolveArgs(options, tokens) {
|
|
11
|
-
const values = {};
|
|
12
11
|
const positionals = [];
|
|
13
12
|
const longOptionTokens = [];
|
|
14
13
|
const shortOptionTokens = [];
|
|
@@ -109,6 +108,7 @@ export function resolveArgs(options, tokens) {
|
|
|
109
108
|
/**
|
|
110
109
|
* resolve values
|
|
111
110
|
*/
|
|
111
|
+
const values = Object.create(null);
|
|
112
112
|
const errors = [];
|
|
113
113
|
for (const [option, schema] of Object.entries(options)) {
|
|
114
114
|
if (schema.required) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "args-tokens",
|
|
3
3
|
"description": "parseArgs tokens compatibility and more high-performance parser",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"knip": "^5.44.4",
|
|
84
84
|
"lint-staged": "^15.4.3",
|
|
85
85
|
"mitata": "^1.0.34",
|
|
86
|
-
"pkg-pr-new": "^0.0.
|
|
86
|
+
"pkg-pr-new": "^0.0.40",
|
|
87
87
|
"prettier": "^3.5.2",
|
|
88
88
|
"typescript": "^5.7.3",
|
|
89
89
|
"typescript-eslint": "^8.24.1",
|