cordova-serve
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "cordova-serve", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Apache Cordova server support for cordova-lib and cordova-browser.", | ||
@@ -13,3 +13,3 @@ "main": "src/main.js", | ||
"type": "git", | ||
"url": "https://github.com/apache/cordova-lib" | ||
"url": "https://github.com/apache/cordova-serve" | ||
}, | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"express": "^4.13.3", | ||
"open": "0.0.5", | ||
"opn": "^5.3.0", | ||
"shelljs": "^0.5.3" | ||
@@ -34,0 +34,0 @@ }, |
@@ -23,2 +23,8 @@ <!-- | ||
### 2.0.1 (Jun 06, 2018) | ||
* Use `opn` module instead of deprecated `open` | ||
* [CB-14054](https://issues.apache.org/jira/browse/CB-14054) (android) fixing `cordova-android` directory restructuring. | ||
* [CB-14092](https://issues.apache.org/jira/browse/CB-14092) Fixing repository url | ||
* [CB-13501](https://issues.apache.org/jira/browse/CB-13501) added support for node 8 | ||
### 2.0.0 (Aug 24, 2017) | ||
@@ -25,0 +31,0 @@ * [CB-13188](https://issues.apache.org/jira/browse/CB-13188) set serve to use default system browser if none is provided. |
@@ -24,3 +24,3 @@ /** | ||
var fs = require('fs'); | ||
var open = require('open'); | ||
var open = require('opn'); | ||
var exec = require('./exec'); | ||
@@ -27,0 +27,0 @@ |
@@ -28,11 +28,11 @@ /** | ||
var platforms = { | ||
amazon_fireos: {www_dir: 'assets/www'}, | ||
android: {www_dir: 'assets/www'}, | ||
blackberry10: {www_dir: 'www'}, | ||
browser: {www_dir: 'www'}, | ||
firefoxos: {www_dir: 'www'}, | ||
ios: {www_dir: 'www'}, | ||
ubuntu: {www_dir: 'www'}, | ||
windows: {www_dir: 'www'}, | ||
wp8: {www_dir: 'www'} | ||
amazon_fireos: { www_dir: 'assets/www' }, | ||
android: { www_dir: 'assets/www' }, | ||
blackberry10: { www_dir: 'www' }, | ||
browser: { www_dir: 'www' }, | ||
firefoxos: { www_dir: 'www' }, | ||
ios: { www_dir: 'www' }, | ||
ubuntu: { www_dir: 'www' }, | ||
windows: { www_dir: 'www' }, | ||
wp8: { www_dir: 'www' } | ||
}; | ||
@@ -80,3 +80,10 @@ | ||
} | ||
return path.join(cordovaProjectRoot, 'platforms', platformName, platform.www_dir); | ||
try { | ||
var Api = require(path.join(cordovaProjectRoot, 'platforms', platformName, 'cordova/api')); | ||
return new Api().locations.www; | ||
} catch (e) { | ||
// Fallback on hardcoded paths if platform api not found | ||
return path.join(cordovaProjectRoot, 'platforms', platformName, platform.www_dir); | ||
} | ||
} | ||
@@ -83,0 +90,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
52345
696
5
+ Addedopn@^5.3.0
+ Addedis-wsl@1.1.0(transitive)
+ Addedopn@5.5.0(transitive)
- Removedopen@0.0.5
- Removedopen@0.0.5(transitive)