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

cordova-plugin-ionic

Package Overview
Dependencies
Maintainers
2
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-ionic - npm Package Compare versions

Comparing version 5.0.10-0 to 5.0.10

10

dist/common.js

@@ -50,3 +50,3 @@ "use strict";

this.SNAPSHOT_CACHE = 'ionic_built_snapshots';
this.PLUGIN_VERSION = '5.0.10-0';
this.PLUGIN_VERSION = '5.0.10';
this.appInfo = appInfo;

@@ -74,2 +74,3 @@ this._savedPreferences = preferences;

catch (e) {
console.warn(e);
console.warn('Sync failed. Defaulting to last available version.');

@@ -91,2 +92,3 @@ }

catch (e) {
console.warn(e);
console.warn('Background sync failed. Unable to check for new updates.');

@@ -158,3 +160,6 @@ }

};
const resp = yield fetch(endpoint, {
const timeout = new Promise((resolve, reject) => {
setTimeout(reject, 5000, 'Request timed out. The device maybe offline.');
});
const request = fetch(endpoint, {
method: 'POST',

@@ -166,2 +171,3 @@ headers: new Headers({

});
const resp = yield Promise.race([timeout, request]);
let jsonResp;

@@ -168,0 +174,0 @@ if (resp.status < 500) {

2

package.json
{
"name": "cordova-plugin-ionic",
"version": "5.0.10-0",
"version": "5.0.10",
"cordova": {

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

@@ -61,3 +61,3 @@ /// <reference path="../types/IonicCordova.d.ts" />

public SNAPSHOT_CACHE = 'ionic_built_snapshots';
public PLUGIN_VERSION = '5.0.10-0';
public PLUGIN_VERSION = '5.0.10';

@@ -87,2 +87,3 @@ constructor(appInfo: IAppInfo, preferences: ISavedPreferences) {

} catch (e) {
console.warn(e);
console.warn('Sync failed. Defaulting to last available version.');

@@ -103,2 +104,3 @@ }

} catch (e) {
console.warn(e);
console.warn('Background sync failed. Unable to check for new updates.');

@@ -171,3 +173,6 @@ }

const resp = await fetch(endpoint, {
const timeout = new Promise( (resolve, reject) => {
setTimeout(reject, 5000, 'Request timed out. The device maybe offline.');
});
const request = fetch(endpoint, {
method: 'POST',

@@ -180,2 +185,4 @@ headers: new Headers({

const resp = await (Promise.race([timeout, request]) as Promise<Response>);
let jsonResp;

@@ -182,0 +189,0 @@ if (resp.status < 500) {

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