Socket
Socket
Sign inDemoInstall

@firebase/database

Package Overview
Dependencies
Maintainers
3
Versions
3317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/database - npm Package Compare versions

Comparing version 0.1.11-canary.3d6289d to 0.1.11-canary.7681d03

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 @@ /**

@@ -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 @@ /**

{
"name": "@firebase/database",
"version": "0.1.11-canary.3d6289d",
"version": "0.1.11-canary.7681d03",
"description": "",

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

"peerDependencies": {
"@firebase/app": "0.1.10-canary.3d6289d",
"@firebase/app-types": "0.1.2-canary.3d6289d"
"@firebase/app": "0.1.10-canary.7681d03",
"@firebase/app-types": "0.1.2-canary.7681d03"
},
"dependencies": {
"@firebase/database-types": "0.1.2-canary.3d6289d",
"@firebase/logger": "0.1.0-canary.3d6289d",
"@firebase/util": "0.1.10-canary.3d6289d",
"@firebase/database-types": "0.1.2-canary.7681d03",
"@firebase/logger": "0.1.0-canary.7681d03",
"@firebase/util": "0.1.10-canary.7681d03",
"faye-websocket": "0.11.1",

@@ -27,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

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