crash-js 0.1.55 → 0.1.56

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 +18 -14
  2. package/package.json +1 -1
package/crash-js/utils CHANGED
@@ -106,21 +106,25 @@ function
106
106
  _yargs,
107
107
  _yargs_module,
108
108
  _yargs_object;
109
- _yargs_module =
110
- require(
111
- "yargs");
112
- _yargs =
113
- _yargs_module.yargs;
114
- _yargs_helpers_module =
109
+ if ( typeof window === 'undefined' &&
110
+ ( typeof global !== 'undefined' && global.global === global ) &&
111
+ typeof __webpack_require__ === 'function' ) {
112
+ _yargs_module =
115
113
  require(
116
- "yargs/helpers");
117
- _hide_bin =
118
- _yargs_helpers_module.hideBin;
119
- _yargs_object =
120
- _yargs(
121
- _hide_bin(
122
- process.argv));
123
- return _yargs_object.parse();
114
+ "yargs");
115
+ _yargs =
116
+ _yargs_module.yargs;
117
+ _yargs_helpers_module =
118
+ require(
119
+ "yargs/helpers");
120
+ _hide_bin =
121
+ _yargs_helpers_module.hideBin;
122
+ _yargs_object =
123
+ _yargs(
124
+ _hide_bin(
125
+ process.argv));
126
+ return _yargs_object.parse();
127
+ }
124
128
  }
125
129
 
126
130
  function
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.55",
5
+ "0.1.56",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":