crash-js 0.1.106 → 0.1.108

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/crash-js/utils +40 -18
  2. package/package.json +11 -1
package/crash-js/utils CHANGED
@@ -108,14 +108,20 @@ function
108
108
  _yargv_get(
109
109
  _args) {
110
110
  let
111
- _boolean,
112
- _yargs_object;
111
+ _boolean;
112
+ const
113
+ _yargs_opts =
114
+ {};
115
+ const
116
+ _parser_opts =
117
+ {};
113
118
  if ( typeof(
114
119
  _args) == "undefined" ||
115
120
  _args == {} ||
116
121
  _args == "" ) {
117
122
  _args = {
118
- "booleans": []
123
+ "booleans": [],
124
+ "string": true
119
125
  };
120
126
  }
121
127
  const
@@ -134,11 +140,24 @@ function
134
140
  const
135
141
  _hide_bin =
136
142
  _yargs_helpers_module.hideBin;
137
-
143
+ if ( "string" in _args &&
144
+ _args[
145
+ "string"] ) {
146
+ _yargs_opts[
147
+ "_"] = {
148
+ "type":
149
+ "string",
150
+ "string":
151
+ true
152
+ };
153
+ _parser_opts[
154
+ "parse-numbers"] =
155
+ false;
156
+ _parser_opts[
157
+ "parse-positional-numbers"] =
158
+ false;
159
+ }
138
160
  if ( _booleans.length > 0 ) {
139
- const
140
- _yargs_opts =
141
- {};
142
161
  for ( _boolean of _booleans) {
143
162
  _yargs_opts[
144
163
  _boolean] = {
@@ -150,19 +169,22 @@ function
150
169
  "boolean",
151
170
  };
152
171
  }
153
- _yargs_object =
154
- _yargs(
155
- _hide_bin(
156
- process.argv)).options(
157
- _yargs_opts);
158
172
  }
159
- else if ( _booleans.length == 0 ) {
160
- _yargs_object =
161
- _yargs(
162
- _hide_bin(
163
- process.argv));
173
+ if ( 0 < _booleans.length ||
174
+ _args[
175
+ "string"] ) {
176
+ return _yargs(
177
+ _hide_bin(
178
+ process.argv)).parserConfiguration(
179
+ _parser_opts).options(
180
+ _yargs_opts).string(
181
+ "_").parse();
182
+ }
183
+ else {
184
+ return _yargs(
185
+ _hide_bin(
186
+ process.argv));
164
187
  }
165
- return _yargs_object.parse();
166
188
  }
167
189
  }
168
190
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.106",
5
+ "0.1.108",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":
@@ -27,9 +27,13 @@
27
27
  "./man/libcrash-js.1",
28
28
  "keywords": [
29
29
  "crash-bash",
30
+ "crash-javascript",
30
31
  "dogeos",
32
+ "evmfs",
33
+ "hip",
31
34
  "opfs",
32
35
  "fs",
36
+ "tmcfs",
33
37
  "themartiancompany",
34
38
  "ur"
35
39
  ],
@@ -73,6 +77,12 @@
73
77
  "yargs":
74
78
  "18.0.0"
75
79
  },
80
+ "yargs": {
81
+ "parse-numbers":
82
+ false,
83
+ "parse-positionalnumbers":
84
+ false
85
+ },
76
86
  "type":
77
87
  "commonjs",
78
88
  "main":