nativescript-plugin-firebase
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -234,2 +234,14 @@ var firebase = require("./firebase-common"); | ||
firebase.update = function (path, val) { | ||
return new Promise(function (resolve, reject) { | ||
try { | ||
instance.childByAppendingPath(path).updateChildValues(val); | ||
resolve(); | ||
} catch (ex) { | ||
console.log("Error in firebase.update: " + ex); | ||
reject(ex); | ||
} | ||
}); | ||
}; | ||
firebase.query = function (updateCallback, path, options) { | ||
@@ -236,0 +248,0 @@ return new Promise(function (resolve, reject) { |
{ | ||
"name": "nativescript-plugin-firebase", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description" : "Fire. Base. Firebase!", | ||
@@ -5,0 +5,0 @@ "main" : "firebase.js", |
@@ -147,2 +147,12 @@ # NativeScript Firebase plugin | ||
### update | ||
Changes the values of the keys specified in the dictionary without overwriting other keys at this location. | ||
```js | ||
firebase.update( | ||
'/companies', | ||
{'foo':'baz'} | ||
); | ||
``` | ||
### addChildEventListener | ||
@@ -149,0 +159,0 @@ To listen for changes in your database you can pass in a listener callback function. |
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
2701471
841
303