abstracted-firebase
Advanced tools
Comparing version 0.15.11 to 0.15.12
@@ -176,9 +176,8 @@ "use strict"; | ||
catch (e) { | ||
e.name = | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/set" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("path specified exceeds the maximum depth that can be written") !== -1) { | ||
console.log("FILE DEPTH EXCEEDED"); | ||
throw new FileDepthExceeded_1.FileDepthExceeded(e); | ||
} | ||
if (e.name === "Error") { | ||
e.name = "AbstractedFirebaseSetError"; | ||
} | ||
if (e.message.indexOf("First argument includes undefined in property") !== -1) { | ||
@@ -287,3 +286,3 @@ e.name = "FirebaseUndefinedValueAssignment"; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/update"; | ||
e.code = "abstracted-firebase/update" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("First argument path specified exceeds the maximum depth") !== | ||
@@ -305,3 +304,3 @@ -1) { | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/remove"; | ||
e.code = "abstracted-firebase/remove" + e.code ? `/${e.code}` : ""; | ||
if (ignoreMissing && e.message.indexOf("key is not defined") !== -1) { | ||
@@ -324,3 +323,3 @@ return; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getSnapshot"; | ||
e.code = "abstracted-firebase/getSnapshot" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -338,3 +337,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getValue"; | ||
e.code = "abstracted-firebase/getValue" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -360,3 +359,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getRecord"; | ||
e.code = "abstracted-firebase/getRecord" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -379,3 +378,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getList"; | ||
e.code = "abstracted-firebase/getList" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -411,3 +410,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/push"; | ||
e.code = "abstracted-firebase/push" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -414,0 +413,0 @@ } |
@@ -174,9 +174,8 @@ // tslint:disable:no-implicit-dependencies | ||
catch (e) { | ||
e.name = | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/set" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("path specified exceeds the maximum depth that can be written") !== -1) { | ||
console.log("FILE DEPTH EXCEEDED"); | ||
throw new FileDepthExceeded(e); | ||
} | ||
if (e.name === "Error") { | ||
e.name = "AbstractedFirebaseSetError"; | ||
} | ||
if (e.message.indexOf("First argument includes undefined in property") !== -1) { | ||
@@ -285,3 +284,3 @@ e.name = "FirebaseUndefinedValueAssignment"; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/update"; | ||
e.code = "abstracted-firebase/update" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("First argument path specified exceeds the maximum depth") !== | ||
@@ -303,3 +302,3 @@ -1) { | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/remove"; | ||
e.code = "abstracted-firebase/remove" + e.code ? `/${e.code}` : ""; | ||
if (ignoreMissing && e.message.indexOf("key is not defined") !== -1) { | ||
@@ -322,3 +321,3 @@ return; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getSnapshot"; | ||
e.code = "abstracted-firebase/getSnapshot" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -336,3 +335,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getValue"; | ||
e.code = "abstracted-firebase/getValue" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -358,3 +357,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getRecord"; | ||
e.code = "abstracted-firebase/getRecord" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -377,3 +376,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getList"; | ||
e.code = "abstracted-firebase/getList" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -409,3 +408,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/push"; | ||
e.code = "abstracted-firebase/push" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -412,0 +411,0 @@ } |
@@ -186,9 +186,8 @@ (function (factory) { | ||
catch (e) { | ||
e.name = | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/set" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("path specified exceeds the maximum depth that can be written") !== -1) { | ||
console.log("FILE DEPTH EXCEEDED"); | ||
throw new FileDepthExceeded_1.FileDepthExceeded(e); | ||
} | ||
if (e.name === "Error") { | ||
e.name = "AbstractedFirebaseSetError"; | ||
} | ||
if (e.message.indexOf("First argument includes undefined in property") !== -1) { | ||
@@ -297,3 +296,3 @@ e.name = "FirebaseUndefinedValueAssignment"; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/update"; | ||
e.code = "abstracted-firebase/update" + e.code ? `/${e.code}` : ""; | ||
if (e.message.indexOf("First argument path specified exceeds the maximum depth") !== | ||
@@ -315,3 +314,3 @@ -1) { | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/remove"; | ||
e.code = "abstracted-firebase/remove" + e.code ? `/${e.code}` : ""; | ||
if (ignoreMissing && e.message.indexOf("key is not defined") !== -1) { | ||
@@ -334,3 +333,3 @@ return; | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getSnapshot"; | ||
e.code = "abstracted-firebase/getSnapshot" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -348,3 +347,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getValue"; | ||
e.code = "abstracted-firebase/getValue" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -370,3 +369,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getRecord"; | ||
e.code = "abstracted-firebase/getRecord" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -389,3 +388,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/getList"; | ||
e.code = "abstracted-firebase/getList" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -421,3 +420,3 @@ } | ||
!e.code || e.code.includes("abstracted-firebase") ? "AbstractedFirebase" : e.code; | ||
e.code = "abstracted-firebase/push"; | ||
e.code = "abstracted-firebase/push" + e.code ? `/${e.code}` : ""; | ||
throw e; | ||
@@ -424,0 +423,0 @@ } |
{ | ||
"name": "abstracted-firebase", | ||
"version": "0.15.11", | ||
"version": "0.15.12", | ||
"description": "Core functional library supporting 'abstracted-admin' and 'abstracted-client'", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
97916
2262