crash-js 0.1.54 → 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.
- package/crash-js/utils +22 -17
- package/package.json +1 -1
package/crash-js/utils
CHANGED
|
@@ -21,18 +21,6 @@
|
|
|
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
24
|
|
|
37
25
|
|
|
38
26
|
function
|
|
@@ -114,12 +102,29 @@ function
|
|
|
114
102
|
_yargv_get() {
|
|
115
103
|
let
|
|
116
104
|
_argv,
|
|
105
|
+
_hide_bin,
|
|
106
|
+
_yargs,
|
|
107
|
+
_yargs_module,
|
|
117
108
|
_yargs_object;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
109
|
+
if ( typeof window === 'undefined' &&
|
|
110
|
+
( typeof global !== 'undefined' && global.global === global ) &&
|
|
111
|
+
typeof __webpack_require__ === 'function' ) {
|
|
112
|
+
_yargs_module =
|
|
113
|
+
require(
|
|
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
|
+
}
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
function
|