cordova-plugin-firebase
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,3 +11,3 @@ { | ||
"name": "cordova-plugin-firebase", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Cordova plugin for Google Firebase", | ||
@@ -14,0 +14,0 @@ "cordova": { |
@@ -147,4 +147,12 @@ var exec = require('cordova/exec'); | ||
exports.verifyPhoneNumber = function (number, success, error) { | ||
exec(success, error, "FirebasePlugin", "verifyPhoneNumber", [number]); | ||
exports.verifyPhoneNumber = function (number, timeOutDuration, success, error) { | ||
if (typeof timeOutDuration === 'function') { | ||
// method being called with old signature: function(number, success, error) | ||
// timeOutDuration is the success callback, success is the error callback | ||
exec(timeOutDuration, success, "FirebasePlugin", "verifyPhoneNumber", [number]); | ||
} else { | ||
// method being called with new signature: function(number, timeOutDuration, success, error) | ||
// callbacks are correctly named | ||
exec(success, error, "FirebasePlugin", "verifyPhoneNumber", [number, timeOutDuration]); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
304024020
374
0