crash-js 0.1.50 → 0.1.52

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/crash-js/crash-js CHANGED
@@ -33,6 +33,8 @@ _process_exit_get =
33
33
  _utils._process_exit_get;
34
34
  _process_exit =
35
35
  _process_exit_get();
36
+ _yargv_get =
37
+ _utils._yargv_get;
36
38
  const
37
39
  _fs_utils =
38
40
  require(
@@ -290,5 +292,7 @@ module.exports = {
290
292
  _printf:
291
293
  _printf,
292
294
  _sleep:
293
- _sleep
295
+ _sleep,
296
+ _yargv_get:
297
+ _yargv_get
294
298
  };
package/crash-js/utils CHANGED
@@ -21,23 +21,38 @@
21
21
  // You should have received a copy of the GNU Affero General Public License
22
22
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
23
23
 
24
+ const
25
+ _yargs_module =
26
+ require(
27
+ "yargs");
28
+ _yargs =
29
+ _yargs_module.yargs;
30
+ const
31
+ _yargs_helpers_module =
32
+ require(
33
+ "yargs/helpers");
34
+ _hide_bin =
35
+ _yargs_helpers_module.hideBin;
36
+
37
+
24
38
  function
25
39
  _argv_url_get(
26
40
  _key_name) {
27
41
  let
42
+ _argv,
28
43
  _assignment,
29
44
  _assignments,
30
45
  _key,
31
- _key_name_type,
32
46
  _key_value,
33
47
  _location,
34
- _argv,
48
+ _msg,
35
49
  _url,
36
50
  _value;
37
- _key_name_type =
38
- typeof
39
- _keyname;
40
- if ( _key_name_type === 'undefined' ) {
51
+ if ( typeof _key_name === 'undefined' ) {
52
+ _msg =
53
+ "Getting all values."
54
+ _msg_info(
55
+ _msg);
41
56
  _key_name =
42
57
  "";
43
58
  }
@@ -95,6 +110,18 @@ function
95
110
  return _argv;
96
111
  }
97
112
 
113
+ function
114
+ _yargv_get() {
115
+ let
116
+ _argv,
117
+ _yargs_object;
118
+ _yargs_object =
119
+ _yargs(
120
+ _hide_bin(
121
+ process.argv));
122
+ return _yargs_object.parse();
123
+ }
124
+
98
125
  function
99
126
  _process_exit_get() {
100
127
  let
@@ -121,5 +148,7 @@ module.exports = {
121
148
  _argv_url_get:
122
149
  _argv_url_get,
123
150
  _process_exit_get:
124
- _process_exit_get
151
+ _process_exit_get,
152
+ _yargv_get:
153
+ _yargv_get
125
154
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.50",
5
+ "0.1.52",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":
@@ -61,7 +61,9 @@
61
61
  "happy-opfs":
62
62
  "npm:@themartiancompany/happy-opfs@^1.8.10",
63
63
  "stream-browserify":
64
- "^3.0.0"
64
+ "^3.0.0",
65
+ "yargs":
66
+ "18.0.0"
65
67
  },
66
68
  "type":
67
69
  "commonjs",