Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-hotpushes

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-hotpushes - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

2

package.json
{
"name": "cordova-plugin-hotpushes",
"version": "0.4.3",
"version": "0.4.4",
"cordova": {

@@ -5,0 +5,0 @@ "id": "cordova-plugin-hotpushes",

@@ -10,10 +10,23 @@ /* global cordova:false */

var HOTPUSH_TYPE = {
'MERGE': 'merge',
'REPLACE': 'replace'
'MERGE': 'merge',
'REPLACE': 'replace'
};
var HOTPUSH_CHECK_TYPE = {
'VERSION': 'version',
'TIMESTAMP': 'timestamp'
'VERSION': 'version',
'TIMESTAMP': 'timestamp'
};
var PROGRESS_STATE: {
0: 'STOPPED',
1: 'DOWNLOADING',
2: 'EXTRACTING',
3: 'COMPLETE'
};
var ERROR_STATE = {
1: 'INVALID_URL_ERR',
2: 'CONNECTION_ERR',
3: 'UNZIP_ERR'
};
/**

@@ -232,3 +245,3 @@ * HotPush constructor.

this._syncs[0].on('progress', function(data) {
this.debug('progress: ' + data);
this.debug('progress: ' + PROGRESS_STATE(data.status) + ' - ' data.progress);
this.emit('progress', data);

@@ -247,3 +260,3 @@ }.bind(this));

this._syncs[0].on('error', function(err) {
this.debug(err, 'error');
this.debug(ERROR_STATE[err], 'error');
this.emit('error', err);

@@ -441,19 +454,7 @@ }.bind(this));

/**
* PROGRESS_STATE enumeration.
*
* Maps to the `progress` event's `status` object.
* The plugin user can customize the enumeration's mapped string
* to a value that's appropriate for their app.
*/
PROGRESS_STATE: PROGRESS_STATE,
ERROR_STATE: ERROR_STATE,
PROGRESS_STATE: {
0: 'STOPPED',
1: 'DOWNLOADING',
2: 'EXTRACTING',
3: 'COMPLETE'
},
HOTPUSH_TYPE: HOTPUSH_TYPE,
HOTPUSH_CHECK_TYPE: HOTPUSH_CHECK_TYPE
};

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