cordova-fetch
Advanced tools
Comparing version 1.0.2 to 1.1.0
11
index.js
@@ -54,5 +54,4 @@ /** | ||
if (path.basename(dest) !== 'node_modules') { | ||
dest = path.resolve(path.join(dest, 'node_modules')); | ||
dest = path.resolve(path.join(dest, 'node_modules')); | ||
} | ||
//create dest if it doesn't exist | ||
@@ -62,3 +61,2 @@ if(!fs.existsSync(dest)) { | ||
} | ||
} else return Q.reject(new CordovaError('Need to supply a target and destination')); | ||
@@ -75,3 +73,2 @@ | ||
//Grab json object of installed modules before npm install | ||
@@ -146,3 +143,2 @@ return depls(dest); | ||
var parts; | ||
//If GITURL, set target to repo name | ||
@@ -158,2 +154,7 @@ if (isUrl(target)) { | ||
} | ||
//If local path exists, set target to final directory | ||
if (fs.existsSync(target)) { | ||
target = path.basename(target); | ||
} | ||
@@ -160,0 +161,0 @@ //strip away everything after '@' |
{ | ||
"name": "cordova-fetch", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Apache Cordova fetch module. Fetches from git and npm.", | ||
@@ -24,4 +24,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"cordova-common": "2.0.0", | ||
"dependency-ls": "^1.0.0", | ||
"cordova-common": "2.0.3", | ||
"dependency-ls": "^1.1.0", | ||
"is-url": "^1.2.1", | ||
@@ -41,5 +41,5 @@ "q": "^1.4.1", | ||
"engines": { | ||
"node": ">= 0.12.0", | ||
"node": ">=4.0.0", | ||
"npm": ">= 2.5.1" | ||
} | ||
} |
@@ -23,4 +23,8 @@ <!-- | ||
### 1.1.0 (May 02, 2017) | ||
* [CB-12665](https://issues.apache.org/jira/browse/CB-12665): removed `enginestrict` since it is deprecated | ||
* added support for dealing with local path targets | ||
### 1.0.2 (Jan 17, 2017) | ||
* [CB-12358](https://issues.apache.org/jira/browse/CB-12358) updated cordova-common dep for cordova-fetch to 2.0.0 | ||
* [CB-12358](https://issues.apache.org/jira/browse/cb-12358) updated cordova-common dep for cordova-fetch to 2.0.0 | ||
@@ -27,0 +31,0 @@ ### 1.0.0 (May 12, 2016) |
@@ -149,3 +149,3 @@ /** | ||
.fin(done); | ||
}, 70000); | ||
}, 100000); | ||
}); | ||
@@ -152,0 +152,0 @@ |
26825
551
+ Addedcordova-common@2.0.3(transitive)
+ Addedelementtree@0.1.6(transitive)
+ Addedsax@0.3.5(transitive)
- Removedcordova-common@2.0.0(transitive)
- Removedelementtree@0.1.7(transitive)
- Removedsax@1.1.4(transitive)
Updatedcordova-common@2.0.3
Updateddependency-ls@^1.1.0