@firebase/database
Advanced tools
Comparing version 0.1.11-canary.3d6289d to 0.1.11-canary.7681d03
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3773587
45644
+ Added@firebase/app@0.1.10-canary.7681d03(transitive)
+ Added@firebase/app-types@0.1.2-canary.7681d03(transitive)
+ Added@firebase/database-types@0.1.2-canary.7681d03(transitive)
+ Added@firebase/logger@0.1.0-canary.7681d03(transitive)
+ Added@firebase/util@0.1.10-canary.7681d03(transitive)
- Removed@firebase/app@0.1.10-canary.3d6289d(transitive)
- Removed@firebase/app-types@0.1.2-canary.3d6289d(transitive)
- Removed@firebase/database-types@0.1.2-canary.3d6289d(transitive)
- Removed@firebase/util@0.1.10-canary.3d6289d(transitive)