You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
1.5.0

15

lib/api.js

@@ -18,2 +18,3 @@ 'use strict';

exports.generateId = generateId;
exports.query = query;
function pauthWithCustomToken(db) {

@@ -148,3 +149,3 @@ return function (token, options) {

return function () {
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/';
var path = arguments.length <= 0 || arguments[0] === undefined ? '/' : arguments[0];

@@ -154,2 +155,14 @@ var ref = path.push ? path : db.child(path);

};
}
function query(db) {
return function (path) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var ref = path.child ? path : db.child(path);
return Object.keys(options).reduce(function (query, option) {
var value = options[option];
return query[option].call(query, value);
}, ref);
};
}

2

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

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