Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phonegap

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonegap - npm Package Compare versions

Comparing version 2.8.0-0.10.4 to 2.8.0-0.10.6

2

lib/phonegap/build.js

@@ -74,3 +74,3 @@ /*!

cordova.platform.supports(platform.local, function(e) {
cordova.platform.supports('.', platform.local, function(e) {
// invoke local or remote build

@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local';

@@ -74,3 +74,3 @@ /*!

cordova.platform.supports(platform.local, function(e) {
cordova.platform.supports('.', platform.local, function(e) {
// invoke local or remote build

@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local';

@@ -12,4 +12,3 @@ /*!

util = require('util'),
fs = require('fs'),
_platform;
fs = require('fs');

@@ -85,5 +84,2 @@ /*!

// workaround
_platform = platform;
// validate parameters

@@ -178,6 +174,4 @@ if (options.platforms.length < 1) {

cordova.on('after_prepare', function(data, done) {
var projectPath = path.join('.', 'platforms', _platform.local),
parser = new cordova.platform[_platform.local].parser(projectPath),
cordovaFile = path.join(parser.www_dir(), 'cordova.js'),
phonegapFile = path.join(parser.www_dir(), 'phonegap.js');
var cordovaFile = path.join(data.paths[0], 'cordova.js'),
phonegapFile = path.join(data.paths[0], 'phonegap.js');

@@ -184,0 +178,0 @@ // create phonegap.js

@@ -74,3 +74,3 @@ /*!

cordova.platform.supports(platform.local, function(e) {
cordova.platform.supports('.', platform.local, function(e) {
// invoke local or remote build

@@ -77,0 +77,0 @@ var env = (e) ? 'remote' : 'local';

{
"name": "phonegap",
"description": "PhoneGap command-line interface and node.js library.",
"version": "2.8.0-0.10.4",
"version": "2.8.0-0.10.6",
"homepage": "http://github.com/mwbrooks/phonegap-cli",

@@ -30,3 +30,3 @@ "repository": {

"colors": "0.6.x",
"cordova": "2.8.17",
"cordova": "2.8.20",
"node-static": "0.6.x",

@@ -33,0 +33,0 @@ "optimist": "0.3.x",

@@ -61,3 +61,3 @@ /*

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(null);

@@ -76,3 +76,3 @@ });

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(new Error('could not find sdk'));

@@ -79,0 +79,0 @@ });

@@ -61,3 +61,3 @@ /*

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(null);

@@ -76,3 +76,3 @@ });

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(new Error('could not find sdk'));

@@ -79,0 +79,0 @@ });

@@ -101,12 +101,8 @@ /*

spyOn(shell, 'cp');
spyOn(cordova.platform.android, 'parser').andReturn({
www_dir: function() {
return 'platforms/android/assets/www';
}
});
cordova.emit('after_prepare', {}, function() {
expect(cordova.platform.android.parser).toHaveBeenCalled();
var prepareData = { paths: [ '/platforms/android/assets/www' ] };
cordova.emit('after_prepare', prepareData, function() {
expect(shell.cp).toHaveBeenCalledWith(
'platforms/android/assets/www/cordova.js',
'platforms/android/assets/www/phonegap.js'
'/platforms/android/assets/www/cordova.js',
'/platforms/android/assets/www/phonegap.js'
);

@@ -113,0 +109,0 @@ done();

@@ -61,3 +61,3 @@ /*

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(null);

@@ -76,3 +76,3 @@ });

beforeEach(function() {
cordova.platform.supports.andCallFake(function(platform, callback) {
cordova.platform.supports.andCallFake(function(path, platform, callback) {
callback(new Error('could not find sdk'));

@@ -79,0 +79,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