error-shelter
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,3 +6,3 @@ // errorShelter.js - Extends the native Error method and stores errors into localStorage obj | ||
(function () { | ||
var config = { | ||
@@ -26,2 +26,5 @@ nameSpace : 'errorShelter',//can be changed to fit app needs | ||
// invoke the Error | ||
var e = nativeError.apply(window,arguments); | ||
setErrorInStorage({ | ||
@@ -34,5 +37,7 @@ 'arguments' : arguments, | ||
'location' : location.origin + '' + location.pathname | ||
} | ||
}, | ||
'stack' : e.stack | ||
}); | ||
return nativeError.apply(window,arguments); | ||
return e; | ||
}; | ||
@@ -64,2 +69,1 @@ | ||
})(); | ||
{ | ||
"name": "error-shelter", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "frontend error catch and storage utility for JS apps.", | ||
@@ -5,0 +5,0 @@ "main": "errorShelter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4901
66