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 0.1.2 to 0.1.3

11

index.js

@@ -164,12 +164,5 @@

var promise = pinkySwear();
return this.once('value', function() {})
.then(ok || null, fail || null);
this._ref.once('value', function(snap) {
promise(true, snap);
}, function(err) {
promise(false, err);
});
return promise;
};

@@ -176,0 +169,0 @@

2

package.json
{
"name": "fireproof",
"version": "0.1.2",
"version": "0.1.3",
"description": "Promises for Firebase objects.",

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

@@ -38,2 +38,21 @@

describe('#then', function() {
before(function() {
return fireproof.child('thentest').set(true);
});
it('hands back a snapshot of the ref by default', function(done) {
fireproof.child('thentest').then(function(snap) {
console.log('got the result!');
expect(snap.val()).to.equal(true);
done();
}, function() {
console.log('got an error!');
done();
});
});
});
describe('#child', function() {

@@ -40,0 +59,0 @@

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