New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phonegap-build

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonegap-build - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

lib/phonegap-build/create/win-zip.vbs

6

CONTRIBUTING.md

@@ -14,3 +14,9 @@ # How to Contribute

### Mac and Linux
$ npm test
### Windows
$ ./node_modules/.bin/jasmine-node --verbose --color spec

15

lib/phonegap-build/create/zip.js

@@ -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 @@ });

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