phonegap-build
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -14,3 +14,9 @@ # How to Contribute | ||
### Mac and Linux | ||
$ npm test | ||
### Windows | ||
$ ./node_modules/.bin/jasmine-node --verbose --color spec | ||
@@ -45,7 +45,12 @@ /* | ||
// shell out to zip for now. | ||
// for windows support, either detect the OS or find a zip library, | ||
// such as node-native-zip. NPM has built-in tarballing that may | ||
// also be a starting point. | ||
var cmd = 'zip -r ' + zipPath + ' ' + wwwPath; | ||
// shell out to zip. For windows, use native script. | ||
var cmd; | ||
if(process.env.OS == "Windows_NT") { | ||
cmd = 'wscript '+ path.join(__dirname, 'win-zip.vbs') + ' ' + zipPath + ' ' + wwwPath; | ||
} | ||
else { | ||
cmd = 'zip -r ' + zipPath + ' ' + wwwPath; | ||
} | ||
var out = shell.exec(cmd, { silent: true }); | ||
@@ -52,0 +57,0 @@ |
{ | ||
"name": "phonegap-build", | ||
"description": "PhoneGap Build command-line interface and node.js library.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "http://github.com/mwbrooks/phonegap-build-cli", | ||
@@ -47,4 +47,5 @@ "repository": { | ||
"name": "Benn Mapes", | ||
"email": "benn.mapes@gmail.com", | ||
"url": "http://github.com/bennmapes" | ||
}] | ||
} |
@@ -32,3 +32,3 @@ /* | ||
expect(fs.exists).toHaveBeenCalled(); | ||
expect(fs.exists.mostRecentCall.args[0]).toMatch( | ||
expect(fs.exists.mostRecentCall.args[0]).toEqual( | ||
path.join(config.global.path, 'config.json') | ||
@@ -49,3 +49,3 @@ ); | ||
expect(fs.readFile).toHaveBeenCalled(); | ||
expect(fs.readFile.mostRecentCall.args[0]).toMatch( | ||
expect(fs.readFile.mostRecentCall.args[0]).toEqual( | ||
path.join(config.global.path, 'config.json') | ||
@@ -52,0 +52,0 @@ ); |
@@ -7,3 +7,4 @@ /* | ||
shell = require('shelljs'), | ||
fs = require('fs'); | ||
fs = require('fs'), | ||
p = require('path'); | ||
@@ -82,3 +83,3 @@ /* | ||
zip.compress('./www', './build', function(e, path) { | ||
expect(path).toEqual('build/www.zip'); | ||
expect(path).toEqual(p.join('build', 'www.zip')); | ||
done(); | ||
@@ -85,0 +86,0 @@ }); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1527026
102
6593
13