Socket
Socket
Sign inDemoInstall

@firebase/database

Package Overview
Dependencies
7
Maintainers
3
Versions
3256
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.11-canary.9cda9c9 to 0.1.11-canary.dbed689

14

dist/cjs/src/api/Database.d.ts

@@ -25,7 +25,13 @@ import { Reference } from './Reference';

/**
* Returns a reference to the root or the path specified in opt_pathString.
* @param {string=} pathString
* Returns a reference to the root or to the path specified in the provided
* argument.
* @param {string|Reference=} path The relative string path or an existing
* Reference to a database location.
* @throws If a Reference is provided, throws if it does not belong to the
* same project.
* @return {!Reference} Firebase reference.
*/
ref(pathString?: string): Reference;
**/
ref(path?: string): Reference;
ref(path?: Reference): Reference;
/**

@@ -32,0 +38,0 @@ * Returns a reference to the root or the path specified in url.

@@ -52,11 +52,9 @@ "use strict";

});
/**
* Returns a reference to the root or the path specified in opt_pathString.
* @param {string=} pathString
* @return {!Reference} Firebase reference.
*/
Database.prototype.ref = function (pathString) {
Database.prototype.ref = function (path) {
this.checkDeleted_('ref');
util_2.validateArgCount('database.ref', 0, 1, arguments.length);
return pathString !== undefined ? this.root_.child(pathString) : this.root_;
if (path instanceof Reference_1.Reference) {
return this.refFromURL(path.toString());
}
return path !== undefined ? this.root_.child(path) : this.root_;
};

@@ -63,0 +61,0 @@ /**

@@ -731,3 +731,3 @@ "use strict";

else {
if ('msg' in body && typeof console !== 'undefined') {
if ('msg' in body) {
console.log('FIREBASE: ' + body['msg'].replace('\n', '\nFIREBASE: '));

@@ -734,0 +734,0 @@ }

@@ -26,2 +26,4 @@ "use strict";

var util_7 = require("@firebase/util");
var logger_1 = require("@firebase/logger");
var logClient = new logger_1.Logger('@firebase/database');
/**

@@ -96,13 +98,3 @@ * Returns a locally-unique ID (generated by just incrementing up from 0 each time its called).

if (logger_ === true) {
if (typeof console !== 'undefined') {
if (typeof console.log === 'function') {
exports.logger = console.log.bind(console);
}
else if (typeof console.log === 'object') {
// IE does this.
exports.logger = function (message) {
console.log(message);
};
}
}
exports.logger = logClient.log.bind(logClient);
if (persistent)

@@ -159,11 +151,4 @@ storage_1.SessionStorage.set('logging_enabled', true);

}
if (typeof console !== 'undefined') {
var message = 'FIREBASE INTERNAL ERROR: ' + buildLogMessage_.apply(void 0, var_args);
if (typeof console.error !== 'undefined') {
console.error(message);
}
else {
console.log(message);
}
}
var message = 'FIREBASE INTERNAL ERROR: ' + buildLogMessage_.apply(void 0, var_args);
logClient.error(message);
};

@@ -178,4 +163,5 @@ /**

}
var message = buildLogMessage_.apply(void 0, var_args);
throw new Error('FIREBASE FATAL ERROR: ' + message);
var message = "FIREBASE FATAL ERROR: " + buildLogMessage_.apply(void 0, var_args);
logClient.error(message);
throw new Error(message);
};

@@ -190,11 +176,4 @@ /**

}
if (typeof console !== 'undefined') {
var message = 'FIREBASE WARNING: ' + buildLogMessage_.apply(void 0, var_args);
if (typeof console.warn !== 'undefined') {
console.warn(message);
}
else {
console.log(message);
}
}
var message = 'FIREBASE WARNING: ' + buildLogMessage_.apply(void 0, var_args);
logClient.warn(message);
};

@@ -201,0 +180,0 @@ /**

@@ -25,7 +25,13 @@ import { Reference } from './Reference';

/**
* Returns a reference to the root or the path specified in opt_pathString.
* @param {string=} pathString
* Returns a reference to the root or to the path specified in the provided
* argument.
* @param {string|Reference=} path The relative string path or an existing
* Reference to a database location.
* @throws If a Reference is provided, throws if it does not belong to the
* same project.
* @return {!Reference} Firebase reference.
*/
ref(pathString?: string): Reference;
**/
ref(path?: string): Reference;
ref(path?: Reference): Reference;
/**

@@ -32,0 +38,0 @@ * Returns a reference to the root or the path specified in url.

@@ -50,11 +50,9 @@ /**

});
/**
* Returns a reference to the root or the path specified in opt_pathString.
* @param {string=} pathString
* @return {!Reference} Firebase reference.
*/
Database.prototype.ref = function (pathString) {
Database.prototype.ref = function (path) {
this.checkDeleted_('ref');
validateArgCount('database.ref', 0, 1, arguments.length);
return pathString !== undefined ? this.root_.child(pathString) : this.root_;
if (path instanceof Reference) {
return this.refFromURL(path.toString());
}
return path !== undefined ? this.root_.child(path) : this.root_;
};

@@ -61,0 +59,0 @@ /**

@@ -729,3 +729,3 @@ /**

else {
if ('msg' in body && typeof console !== 'undefined') {
if ('msg' in body) {
console.log('FIREBASE: ' + body['msg'].replace('\n', '\nFIREBASE: '));

@@ -732,0 +732,0 @@ }

@@ -24,2 +24,4 @@ /**

import { isNodeSdk } from '@firebase/util';
import { Logger } from '@firebase/logger';
var logClient = new Logger('@firebase/database');
/**

@@ -94,13 +96,3 @@ * Returns a locally-unique ID (generated by just incrementing up from 0 each time its called).

if (logger_ === true) {
if (typeof console !== 'undefined') {
if (typeof console.log === 'function') {
logger = console.log.bind(console);
}
else if (typeof console.log === 'object') {
// IE does this.
logger = function (message) {
console.log(message);
};
}
}
logger = logClient.log.bind(logClient);
if (persistent)

@@ -157,11 +149,4 @@ SessionStorage.set('logging_enabled', true);

}
if (typeof console !== 'undefined') {
var message = 'FIREBASE INTERNAL ERROR: ' + buildLogMessage_.apply(void 0, var_args);
if (typeof console.error !== 'undefined') {
console.error(message);
}
else {
console.log(message);
}
}
var message = 'FIREBASE INTERNAL ERROR: ' + buildLogMessage_.apply(void 0, var_args);
logClient.error(message);
};

@@ -176,4 +161,5 @@ /**

}
var message = buildLogMessage_.apply(void 0, var_args);
throw new Error('FIREBASE FATAL ERROR: ' + message);
var message = "FIREBASE FATAL ERROR: " + buildLogMessage_.apply(void 0, var_args);
logClient.error(message);
throw new Error(message);
};

@@ -188,11 +174,4 @@ /**

}
if (typeof console !== 'undefined') {
var message = 'FIREBASE WARNING: ' + buildLogMessage_.apply(void 0, var_args);
if (typeof console.warn !== 'undefined') {
console.warn(message);
}
else {
console.log(message);
}
}
var message = 'FIREBASE WARNING: ' + buildLogMessage_.apply(void 0, var_args);
logClient.warn(message);
};

@@ -199,0 +178,0 @@ /**

{
"name": "@firebase/database",
"version": "0.1.11-canary.9cda9c9",
"version": "0.1.11-canary.dbed689",
"description": "",

@@ -18,8 +18,9 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"peerDependencies": {
"@firebase/app": "0.1.10-canary.9cda9c9",
"@firebase/app-types": "0.1.2-canary.9cda9c9"
"@firebase/app": "0.1.10-canary.dbed689",
"@firebase/app-types": "0.1.2-canary.dbed689"
},
"dependencies": {
"@firebase/database-types": "0.1.2-canary.9cda9c9",
"@firebase/util": "0.1.10-canary.9cda9c9",
"@firebase/database-types": "0.1.2-canary.dbed689",
"@firebase/logger": "0.1.0-canary.dbed689",
"@firebase/util": "0.1.10-canary.dbed689",
"faye-websocket": "0.11.1",

@@ -26,0 +27,0 @@ "tslib": "^1.9.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc