crash-js 0.1.88 → 0.1.89
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 +28 -1
- package/package.json +1 -1
package/crash-js/crash-js
CHANGED
|
@@ -94,7 +94,7 @@ function
|
|
|
94
94
|
if ( quiet == "n" ) {
|
|
95
95
|
_template =
|
|
96
96
|
_msg_template(
|
|
97
|
-
|
|
97
|
+
app_name,
|
|
98
98
|
'INFO');
|
|
99
99
|
_out =
|
|
100
100
|
_template.replaceAll(
|
|
@@ -218,6 +218,31 @@ function
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
function
|
|
222
|
+
_get_date_human() {
|
|
223
|
+
let
|
|
224
|
+
_date,
|
|
225
|
+
_return,
|
|
226
|
+
_year,
|
|
227
|
+
_month,
|
|
228
|
+
_day,
|
|
229
|
+
_time,
|
|
230
|
+
_zone;
|
|
231
|
+
_date =
|
|
232
|
+
new Date();
|
|
233
|
+
_year =
|
|
234
|
+
_date.getFullYear();
|
|
235
|
+
_month =
|
|
236
|
+
_date.getMonth();
|
|
237
|
+
_day =
|
|
238
|
+
_date.getDay();
|
|
239
|
+
_time =
|
|
240
|
+
`${_date.getHours()}:${_date.getMinutes()}`;
|
|
241
|
+
// Assume UTC
|
|
242
|
+
_return =
|
|
243
|
+
`${_year}-${_month}-${_day}T${_time}+0000`;
|
|
244
|
+
}
|
|
245
|
+
|
|
221
246
|
// This function is actually not a format
|
|
222
247
|
// print, but just how the author of this
|
|
223
248
|
// library calls a display function which
|
|
@@ -353,6 +378,8 @@ module.exports = {
|
|
|
353
378
|
_fs_utils._fs_worker_new,
|
|
354
379
|
_fs_worker_start:
|
|
355
380
|
_fs_utils._fs_worker_start,
|
|
381
|
+
_get_time_human:
|
|
382
|
+
_get_time_human,
|
|
356
383
|
_json_display:
|
|
357
384
|
_fs_utils._json_display,
|
|
358
385
|
_json_read:
|