Comparing version 0.0.4 to 0.0.5
@@ -47,3 +47,7 @@ "use strict"; | ||
return functions.get(content, ...db.split(".")); | ||
try { | ||
return functions.get(content, ...db.split(".")); | ||
} catch(err) { | ||
return undefined; | ||
} | ||
@@ -60,3 +64,7 @@ } | ||
return functions.get(content, ...db.split(".")); | ||
try { | ||
return functions.get(content, ...db.split(".")); | ||
} catch(err) { | ||
return undefined; | ||
} | ||
@@ -73,3 +81,7 @@ } | ||
return functions.get(content, ...db.split(".")) ? true : false; | ||
try { | ||
return functions.get(content, ...db.split(".")) ? true : false; | ||
} catch(err) { | ||
return false; | ||
} | ||
@@ -140,3 +152,3 @@ } | ||
if(this.get(db)-number <= 1) { | ||
if(this.get(db)-number < 1) { | ||
this.delete(db); | ||
@@ -152,3 +164,2 @@ return (this.get(db) || 0); | ||
this.set(db, this.get(db) ? (this.get(db)-Number(number) <= 1 ? 1 : (isNaN(this.get(db)) ? 1 : this.get(db)-Number(number)) || 1) : 1); | ||
return this.get(db); | ||
@@ -155,0 +166,0 @@ |
@@ -48,3 +48,7 @@ "use strict"; | ||
return functions.get(content, ...db.split(".")); | ||
try { | ||
return functions.get(content, ...db.split(".")); | ||
} catch(err) { | ||
return undefined; | ||
} | ||
@@ -61,3 +65,7 @@ } | ||
return functions.get(content, ...db.split(".")); | ||
try { | ||
return functions.get(content, ...db.split(".")); | ||
} catch(err) { | ||
return undefined; | ||
} | ||
@@ -74,3 +82,7 @@ } | ||
return functions.get(content, ...db.split(".")) ? true : false; | ||
try { | ||
return functions.get(content, ...db.split(".")) ? true : false; | ||
} catch(err) { | ||
return false; | ||
} | ||
@@ -133,3 +145,3 @@ } | ||
if(this.get(db)-number <= 1) { | ||
if(this.get(db)-number < 1) { | ||
this.delete(db); | ||
@@ -136,0 +148,0 @@ return (this.get(db) || 0); |
@@ -36,3 +36,3 @@ { | ||
}, | ||
"version": "0.0.4" | ||
"version": "0.0.5" | ||
} |
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
36184
1002