cordova-plugin-meteor-webapp
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13791790
1127
23163