nativescript-plugin-firebase
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -280,2 +280,14 @@ var appModule = require("application"); | ||
firebase.update = function (path, val) { | ||
return new Promise(function (resolve, reject) { | ||
try { | ||
instance.child(path).updateChildren(firebase.toHashMap(val)); | ||
resolve(); | ||
} catch (ex) { | ||
console.log("Error in firebase.update: " + ex); | ||
reject(ex); | ||
} | ||
}); | ||
}; | ||
firebase.query = function (updateCallback, path, options) { | ||
@@ -282,0 +294,0 @@ return new Promise(function (resolve, reject) { |
@@ -119,2 +119,3 @@ /// <reference path="firebase-common.d.ts"/> | ||
export function setValue(path: string, value: any): Promise<any>; | ||
export function update(path: string, value: any): Promise<any>; | ||
export function remove(path: string): Promise<any>; | ||
@@ -121,0 +122,0 @@ export function query(onValueEvent: (data: FBData) => void, path: string, options: QueryOptions): Promise<any>; |
{ | ||
"name": "nativescript-plugin-firebase", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description" : "Fire. Base. Firebase!", | ||
@@ -5,0 +5,0 @@ "main" : "firebase.js", |
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
2701832
853