crash-js 0.1.51 → 0.1.53

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,6 +21,20 @@
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) {
@@ -96,6 +110,18 @@ function
96
110
  return _argv;
97
111
  }
98
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
+
99
125
  function
100
126
  _process_exit_get() {
101
127
  let
@@ -122,5 +148,7 @@ module.exports = {
122
148
  _argv_url_get:
123
149
  _argv_url_get,
124
150
  _process_exit_get:
125
- _process_exit_get
151
+ _process_exit_get,
152
+ _yargv_get:
153
+ _yargv_get
126
154
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.51",
5
+ "0.1.53",
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",