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
4
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.7.3 to 1.7.4

.paramedic.config.js

35

DEVELOPMENT.md
# `cordova-plugin-meteor-webapp` Development
## Setup
## Running iOS Tests

@@ -19,26 +19,5 @@ 1) Start with a cloned copy of the `cordova-plugin-meteor-webapp` repo:

## Running npm Tests
3) Create a new test Cordova app:
1) Install dependencies
```
npm install
```
2) Install devDependencies from package.json globally one by one
```
npm install -g xxx
```
Filipe: I'm not sure why it's only working when installed globally
3) Run the tests
```
npm test
```
## Running iOS Tests
1) Create a new test Cordova app:
```
cd ~

@@ -48,3 +27,3 @@ cordova create test-app

2) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins:
4) Add the `cordova-plugin-meteor-webapp`, `cordova-plugin-meteor-webapp-tests`, and `cordova-plugin-test-framework` plugins:

@@ -58,3 +37,3 @@ ```

3) Add the `ios` platform:
5) Add the `ios` platform:

@@ -65,3 +44,3 @@ ```

4) Add a [`build.json`](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson) file to the root of your `test-app`, that includes your Apple Developer Team ID:
6) Add a [`build.json`](https://cordova.apache.org/docs/en/latest/guide/platforms/ios/#using-buildjson) file to the root of your `test-app`, that includes your Apple Developer Team ID:

@@ -83,3 +62,3 @@ ```json

5) Update the `test-app`'s `config.xml` to point to the test runner:
7) Update the `test-app`'s `config.xml` to point to the test runner:

@@ -98,3 +77,3 @@ Change

6) Run the tests on a device or using the iOS emulator:
8) Run the tests on a device or using the iOS emulator:

@@ -101,0 +80,0 @@ ```

{
"name": "cordova-plugin-meteor-webapp",
"version": "1.7.3",
"version": "1.7.4",
"description": "Cordova plugin that serves a Meteor web app through a local server and implements hot code push",

@@ -26,14 +26,11 @@ "cordova": {

"scripts": {
"pretest": "ios-sim start --devicetypeid=iPhone-11-Pro-Max",
"test": "cordova-paramedic --plugin . --platform ios --target 'iPhone-11-Pro-Max' --args=--buildFlag='-UseModernBuildSystem=0' --verbose"
"pretest": "ios-sim start --devicetypeid=iPhone-XS",
"test": "cordova-paramedic --config ./.paramedic.config.js"
},
"dependencies": {
"xcode": "^2.0.0"
},
"devDependencies": {
"cordova": "^9.0.0",
"cordova": "^8.0.0",
"cordova-paramedic": "github:meteor/cordova-paramedic#40df66c3efc2f0db4d66b8c172174a68c031c114",
"ios-deploy": "^1.10.0-beta.3",
"ios-sim": "^8.0.2"
"ios-deploy": "^1.9.4",
"ios-sim": "^8.0.0"
}
}

4

scripts/iosAddBridgingHeader.js
module.exports = function(context) {
var fs = require('fs');
var path = require('path');
var fs = context.requireCordovaModule('fs');
var path = context.requireCordovaModule('path');
var cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util.js');

@@ -5,0 +5,0 @@ var ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser;

module.exports = function(context) {
var fs = require('fs');
var path = require('path');
var xcode = require('xcode');
var fs = context.requireCordovaModule('fs');
var path = context.requireCordovaModule('path');
var xcode = context.requireCordovaModule('xcode');
var cordova_util = context.requireCordovaModule('cordova-lib/src/cordova/util.js');

@@ -6,0 +6,0 @@ var ConfigParser = context.requireCordovaModule('cordova-common').ConfigParser;

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

xit("should set application/woff for a .woff file", function(done) {
fetchFromLocalServer("/some-font.woff").then(function(response) {
expect(response.headers.get("Content-Type")).toEqual("application/woff");
done();
});
});
it("should set application/octet-stream for files without an extension", function(done) {

@@ -235,3 +242,3 @@ pendingOnAndroid();

it("should only serve the new version after a page reload", function(done) {
it("should only serve the new verson after a page reload", function(done) {
WebAppLocalServer.onNewVersionReady(function() {

@@ -238,0 +245,0 @@ expectVersionServedToEqual("version1", function() {

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