Socket
Socket
Sign inDemoInstall

firebase-admin

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-admin - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

29

account.js

@@ -47,2 +47,3 @@

this.ready = deferred.promise;
}

@@ -181,2 +182,30 @@

/**
* Promises to create a new Firebase instance under the account
* with the specified username and password. A convenience method.
* @param {String} email The email address associated with the account.
* @param {String} password The password for the account.
* @returns {external:Promise} A promise that resolves with a
* {@link FirebaseInstance} if successful and rejects with an Error if
* there's an error.
* @example
* FirebaseAccount.bootstrapInstance('me@foo.com', 'foobar')
* .then(function(db) {
* // get a Firebase reference to the new instance
* var fb = new Firebase(db.toString());
* fb.child('spam/spam/spam/spam').set('wonderful');
* }, function(err) {
* console.error('Error while creating new instance:', err);
* });
*/
FirebaseAccount.bootstrapInstance = function(email, password) {
return new FirebaseAccount(email, password).ready.then(function(acct) {
return acct.createDatabase(Math.random().toString(36).slice(2));
});
};
module.exports = FirebaseAccount;

2

package.json
{
"name": "firebase-admin",
"version": "1.0.6",
"version": "1.0.7",
"description": "Programmatically instantiate and modify Firebase instances.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -108,3 +108,13 @@

describe('bootstrapInstance', function() {
it('promises to create a new database with a random name immediately', function() {
return (expect( FirebaseAccount.bootstrapInstance(fbUser, fbPass) )).to.be.fulfilled;
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc