Comparing version 1.2.0 to 1.2.1
@@ -63,3 +63,3 @@ | ||
var rv = function(err) { | ||
var rv = function(err, val) { | ||
@@ -77,3 +77,3 @@ if (onComplete && typeof onComplete === 'function') { | ||
} else { | ||
deferred.resolve(); | ||
deferred.resolve(val); | ||
} | ||
@@ -80,0 +80,0 @@ |
{ | ||
"name": "fireproof", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Promises for Firebase objects.", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"mocha": "^1.21.4", | ||
"firebase-admin": "^1.0.7", | ||
"firebase-admin": "^2.0.1", | ||
"chai-as-promised": "^4.1.1", | ||
@@ -23,0 +23,0 @@ "jsdoc": "^3.3.0-alpha9", |
@@ -21,8 +21,6 @@ | ||
} else { | ||
} else if (process.env.FIREBASE_ADMIN_TOKEN) { | ||
require('firebase-admin').bootstrapInstance( | ||
process.env.FIREBASE_USER, | ||
process.env.FIREBASE_PASS | ||
) | ||
require('firebase-admin') | ||
.bootstrapInstance(process.env.FIREBASE_ADMIN_TOKEN) | ||
.delay(1000) | ||
@@ -42,2 +40,4 @@ .then(function(instance) { | ||
} else { | ||
throw new Error('no way to run tests'); | ||
} | ||
@@ -44,0 +44,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
40496
0