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

cordova-plugin-meteor-webapp

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-meteor-webapp - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

tests/fixtures/downloadable_versions/different_cordova_compatibility_version/index.html

2

package.json
{
"name": "cordova-plugin-meteor-webapp",
"version": "1.1.1",
"version": "1.2.0",
"description": "Cordova plugin that serves a Meteor web app through a local server and implements hot code push",

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

{
"format": "web-program-pre1",
"version": "version1",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "127.0.0.1_root_url",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": []
}
{
"format": "web-program-pre1",
"version": "missing_app_id",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": []
}
{
"format": "web-program-pre1",
"version": "missing_root_url",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": []
}
{
"format": "web-program-pre1",
"version": "version1",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "version2",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "version2",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "version2",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "version2",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "version3",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

{
"format": "web-program-pre1",
"version": "wrong_app_id",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": []
}
{
"format": "web-program-pre1",
"version": "wrong_root_url",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": []
}
{
"format": "web-program-pre1",
"version": "version2",
"cordovaCompatibilityVersions": {
"android": "4017747ca6b4f460f33b121e439b7a11a070205a",
"ios": "0abe549f2adbcf6cd295428aefea628ebe69666a"
},
"manifest": [

@@ -5,0 +9,0 @@ {

@@ -705,2 +705,65 @@ var _ = require("cordova-plugin-meteor-webapp-tests.underscore");

describe("when downloading a version with a missing cordovaCompatibilityVersion", function() {
beforeEach(function(done) {
WebAppMockRemoteServer.serveVersion("missing_cordova_compatibility_version", done);
});
afterEach(function(done) {
WebAppLocalServer.resetToInitialState(done);
});
it("should invoke the onError callback with an error", function(done) {
WebAppLocalServer.onError(function(error) {
expect(error.message).toEqual("Asset manifest does not have a cordovaCompatibilityVersion");
done();
});
WebAppLocalServer.checkForUpdates();
});
it("should not invoke the onNewVersionReady callback", function(done) {
WebAppLocalServer.onNewVersionReady(function() {
fail();
done();
});
// Wait 500ms for the test to fail
waitForTestToFail(500, done);
WebAppLocalServer.checkForUpdates();
});
});
describe("when downloading a version with a different cordovaCompatibilityVersion", function() {
beforeEach(function(done) {
WebAppMockRemoteServer.serveVersion("different_cordova_compatibility_version", done);
});
afterEach(function(done) {
WebAppLocalServer.resetToInitialState(done);
});
it("should invoke the onError callback with an error", function(done) {
WebAppLocalServer.onError(function(error) {
expect(error.message).toEqual("Skipping downloading new version because \
the Cordova platform version or plugin versions have changed and are potentially incompatible");
done();
});
WebAppLocalServer.checkForUpdates();
});
it("should not invoke the onNewVersionReady callback", function(done) {
WebAppLocalServer.onNewVersionReady(function() {
fail();
done();
});
// Wait 500ms for the test to fail
waitForTestToFail(500, done);
WebAppLocalServer.checkForUpdates();
});
});
describe("when resuming a partial download with the same version", function() {

@@ -707,0 +770,0 @@ beforeEach(function(done) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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