Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fireproof

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireproof - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

lib/auth.js

3

index.js

@@ -10,4 +10,5 @@

require('./lib/on-disconnect')(Fireproof);
require('./lib/fireproof-simple-login')(Fireproof);
require('./lib/auth')(Fireproof);
require('./lib/user')(Fireproof);
module.exports = Fireproof;
{
"name": "fireproof",
"version": "1.3.0",
"version": "1.4.0",
"description": "Promises for Firebase objects.",

@@ -17,5 +17,5 @@ "main": "index.js",

"devDependencies": {
"firebase": "^1.0.19",
"chai": "^1.9.1",
"mocha": "^1.21.4",
"firebase": "^1.2.0-beta.2",
"chai": "^1.9.2",
"mocha": "^1.21.5",
"firebase-admin": "^2.0.1",

@@ -22,0 +22,0 @@ "chai-as-promised": "^4.1.1",

@@ -18,21 +18,7 @@

describe('#auth', function() {
it('resolves on successful Firebase#auth', function() {
return expect(fireproof.auth(firebaseAuthSecret)).to.be.fulfilled;
});
it('rejects with error on unsuccessful Firebase#auth', function() {
return expect(fireproof.auth('invalid')).to.be.rejected;
});
});
// #unauth is untestable -- it just calls out to Firebase
describe('#then', function() {
before(function() {
fireproof = new Fireproof(firebase);
return fireproof.child('thentest').set(true);

@@ -96,3 +82,3 @@ });

it('hands back the original Firebase reference', function() {
expect(fireproof.toFirebase().constructor.name).to.equal('D');
expect(fireproof.toFirebase().constructor.name).to.equal('F');
});

@@ -99,0 +85,0 @@

@@ -84,10 +84,8 @@

didPush = (err === null);
})
.then(function(obj) {
console.log(obj);
});
expect(newProof.constructor.name).to.equal('Fireproof');
var testPromise = Q.resolve()
.then(function() {
return newProof;
})
var testPromise = Q.resolve(newProof)
.delay(50)

@@ -94,0 +92,0 @@ .then(function() {

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