crash-js 0.1.77 → 0.1.78
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 +11 -1
- package/crash-js/utils +1 -1
- package/package.json +1 -1
package/crash-js/crash-js
CHANGED
|
@@ -112,6 +112,9 @@ function
|
|
|
112
112
|
let
|
|
113
113
|
_template,
|
|
114
114
|
_out;
|
|
115
|
+
_exit =
|
|
116
|
+
String(
|
|
117
|
+
_exit);
|
|
115
118
|
_template =
|
|
116
119
|
_msg_template(
|
|
117
120
|
app_name,
|
|
@@ -122,7 +125,8 @@ function
|
|
|
122
125
|
_msg);
|
|
123
126
|
console.error(
|
|
124
127
|
_out);
|
|
125
|
-
if ( _exit
|
|
128
|
+
if ( _exit === "1" ) {
|
|
129
|
+
console.log(_process_exit);
|
|
126
130
|
_process_exit(
|
|
127
131
|
1);
|
|
128
132
|
}
|
|
@@ -194,6 +198,12 @@ function
|
|
|
194
198
|
_program =
|
|
195
199
|
_argv[
|
|
196
200
|
1];
|
|
201
|
+
if ( typeof(
|
|
202
|
+
_program) === 'undefined' ) {
|
|
203
|
+
_program =
|
|
204
|
+
_argv[
|
|
205
|
+
"$0"];
|
|
206
|
+
}
|
|
197
207
|
_program_name =
|
|
198
208
|
_basename(
|
|
199
209
|
_program);
|
package/crash-js/utils
CHANGED
|
@@ -133,7 +133,7 @@ function
|
|
|
133
133
|
_process_exit;
|
|
134
134
|
if ( typeof window === 'undefined' &&
|
|
135
135
|
( typeof global !== 'undefined' && global.global === global ) &&
|
|
136
|
-
typeof __webpack_require__
|
|
136
|
+
typeof __webpack_require__ !== 'function' ) {
|
|
137
137
|
_process_exit =
|
|
138
138
|
process.exit;
|
|
139
139
|
}
|