New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-firebase-with-upstream-messaging

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-firebase-with-upstream-messaging - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

src/android/FirebasePluginInstanceIDService.java

17

docs/API.md

@@ -255,2 +255,8 @@ # API

});
// or, specify a namespace for the config value
window.FirebasePlugin.getValue("key", "namespace", function(value) {
console.log(value);
}, function(error) {
console.error(error);
});
```

@@ -270,2 +276,11 @@

});
// or, specify a namespace for the byte array
window.FirebasePlugin.getByteArray("key", "namespace", function(bytes) {
// a Base64 encoded string that represents the value for "key"
console.log(bytes.base64);
// a numeric array containing the values of the byte array (i.e. [0xFF, 0x00])
console.log(bytes.array);
}, function(error) {
console.error(error);
});
```

@@ -322,2 +337,4 @@

window.FirebasePlugin.setDefaults(defaults);
// or, specify a namespace
window.FirebasePlugin.setDefaults(defaults, "namespace");
```

@@ -324,0 +341,0 @@

2

package.json

@@ -8,3 +8,3 @@ {

"name": "cordova-plugin-firebase-with-upstream-messaging",
"version": "2.1.1",
"version": "2.1.2",
"description": "Cordova plugin for Google Firebase with upstream messaging",

@@ -11,0 +11,0 @@ "cordova": {

@@ -14,3 +14,3 @@ # cordova-plugin-firebase-with-upstream-messaging

```
<plugin name="cordova-plugin-firebase-with-upstream-messaging" spec="^2.1.1" />
<plugin name="cordova-plugin-firebase-with-upstream-messaging" spec="^2.1.2" />
```

@@ -17,0 +17,0 @@ or by running:

@@ -107,3 +107,3 @@ exports.getVerificationID = function (number, success, error) {

exports.getByteArray = function (key, success, error) {
exports.getByteArray = function (key, namespace, success, error) {
if (typeof success === 'function') {

@@ -114,3 +114,3 @@ success();

exports.getValue = function (key, success, error) {
exports.getValue = function (key, namespace, success, error) {
if (typeof success === 'function') {

@@ -133,3 +133,3 @@ success();

exports.setDefaults = function (defaults, success, error) {
exports.setDefaults = function (defaults, namespace, success, error) {
if (typeof success === 'function') {

@@ -136,0 +136,0 @@ success();

@@ -94,8 +94,22 @@ var exec = require('cordova/exec');

exports.getByteArray = function (key, success, error) {
exec(success, error, "FirebasePlugin", "getByteArray", [key]);
exports.getByteArray = function (key, namespace, success, error) {
var args = [key];
if (typeof namespace === 'string') {
args.push(namespace);
} else {
error = success;
success = namespace;
}
exec(success, error, "FirebasePlugin", "getByteArray", args);
};
exports.getValue = function (key, success, error) {
exec(success, error, "FirebasePlugin", "getValue", [key]);
exports.getValue = function (key, namespace, success, error) {
var args = [key];
if (typeof namespace === 'string') {
args.push(namespace);
} else {
error = success;
success = namespace;
}
exec(success, error, "FirebasePlugin", "getValue", args);
};

@@ -111,4 +125,11 @@

exports.setDefaults = function (defaults, success, error) {
exec(success, error, "FirebasePlugin", "setDefaults", [defaults]);
exports.setDefaults = function (defaults, namespace, success, error) {
var args = [defaults];
if (typeof namespace === 'string') {
args.push(namespace);
} else {
error = success;
success = namespace;
}
exec(success, error, "FirebasePlugin", "setDefaults", args);
};

@@ -115,0 +136,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