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

firebase-unchained

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-unchained - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

13

lib/index.js

@@ -76,2 +76,13 @@ 'use strict';

function psetWithPriority(db) {
return function (path, value, priority) {
var ref = path.setWithPriority ? path : db.child(path);
return new Promise(function (resolve, reject) {
ref.setWithPriority(value, priority, function (err) {
return err ? reject(err) : resolve();
});
});
};
}
function pupdate(db) {

@@ -99,3 +110,3 @@ return function (path, value) {

function promisifyFirebase(db) {
[pauthWithCustomToken, pget, pval, ppush, pset, pupdate, premove].forEach(function (fn) {
[pauthWithCustomToken, pget, pval, ppush, pset, psetWithPriority, pupdate, premove].forEach(function (fn) {
return db[fn.name] = fn(db);

@@ -102,0 +113,0 @@ });

2

package.json
{
"name": "firebase-unchained",
"version": "1.0.0",
"version": "1.1.0",
"description": "Promise version of Firebase API without chaining",

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

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