puvox-library 1.0.52 → 1.0.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.
@@ -2593,8 +2593,6 @@ const puvox_library =
2593
2593
 
2594
2594
  youtubeImage(id, quality) { return 'http://img.youtube.com/vi/'+id+'/'+ (quality || "mqdefault") +'.jpg'; } ,
2595
2595
 
2596
-
2597
-
2598
2596
  // ============================= detect mobile device ============================= //
2599
2597
  IsMobileDevice(simpleORfull){
2600
2598
  var simpleORfull = simpleORfull || "simple";
@@ -3180,6 +3178,12 @@ const puvox_library =
3180
3178
  },
3181
3179
  },
3182
3180
 
3181
+ catchUnhandledExceptions (callback) {
3182
+ process.on('uncaughtException', (e) => { callback(e, "exc-uncaught"); });
3183
+ process.on('unhandledRejection', (e) => { callback(e, "uexc-nhandled"); });
3184
+ process.on('warning', e=>{ callback(e, "exc-warning"); });
3185
+ },
3186
+
3183
3187
 
3184
3188
 
3185
3189
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puvox-library",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "library-class-javascript",
5
5
  "main": "library_standard.js",
6
6
  "scripts": {