CB-11138 Bump cordova-common to 1.2.0

This commit is contained in:
Vladimir Kotikov 2016-04-22 15:56:02 +03:00
parent 914e2fa35f
commit dc6384d063
32 changed files with 760 additions and 340 deletions

16
node_modules/.bin/semver generated vendored
View File

@ -1 +1,15 @@
../semver/bin/semver
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

7
node_modules/.bin/semver.cmd generated vendored Normal file
View File

@ -0,0 +1,7 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\semver\bin\semver" %*
)

26
node_modules/ansi/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"ansi@^0.3.1",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "ansi@>=0.3.1 <0.4.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
"_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
"_shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
"_shrinkwrap": null,
"_spec": "ansi@^0.3.1",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "nathan@tootallnate.net",
"name": "Nathan Rajlich",
@ -47,30 +47,30 @@
"directories": {},
"dist": {
"shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
"tarball": "http://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz"
"tarball": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz"
},
"gitHead": "4d0d4af94e0bdaa648bd7262acd3bde4b98d5246",
"homepage": "https://github.com/TooTallNate/ansi.js#readme",
"keywords": [
"256",
"ansi",
"color",
"cursor",
"formatting",
"cursor",
"color",
"terminal",
"rgb",
"stream",
"terminal"
"256",
"stream"
],
"license": "MIT",
"main": "./lib/ansi.js",
"maintainers": [
{
"name": "TooTallNate",
"email": "nathan@tootallnate.net"
"email": "nathan@tootallnate.net",
"name": "TooTallNate"
},
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
"email": "nathan@tootallnate.net",
"name": "tootallnate"
}
],
"name": "ansi",

22
node_modules/base64-js/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"base64-js@0.0.8",
"/Users/steveng/repo/cordova/cordova-android/node_modules/plist"
"d:\\cordova\\cordova-android\\node_modules\\plist"
]
],
"_from": "base64-js@0.0.8",
@ -28,11 +28,11 @@
"_requiredBy": [
"/plist"
],
"_resolved": "http://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz",
"_resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz",
"_shasum": "1101e9544f4a76b1bc3b26d452ca96d7a35e7978",
"_shrinkwrap": null,
"_spec": "base64-js@0.0.8",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/plist",
"_where": "d:\\cordova\\cordova-android\\node_modules\\plist",
"author": {
"email": "t.jameson.little@gmail.com",
"name": "T. Jameson Little"
@ -59,12 +59,12 @@
"main": "lib/b64.js",
"maintainers": [
{
"name": "beatgammit",
"email": "t.jameson.little@gmail.com"
"email": "t.jameson.little@gmail.com",
"name": "beatgammit"
},
{
"name": "feross",
"email": "feross@feross.org"
"email": "feross@feross.org",
"name": "feross"
}
],
"name": "base64-js",
@ -79,13 +79,13 @@
},
"testling": {
"browsers": [
"ie/6..latest",
"chrome/4..latest",
"firefox/3..latest",
"ie/6..latest",
"ipad/6",
"iphone/6",
"safari/5.1..latest",
"opera/11.0..latest",
"safari/5.1..latest"
"iphone/6",
"ipad/6"
],
"files": "test/*.js"
},

View File

@ -7,17 +7,25 @@ var bigInt = (function (undefined) {
MAX_INT_ARR = smallToArray(MAX_INT),
LOG_MAX_INT = Math.log(MAX_INT);
function Integer(v, radix) {
if (typeof v === "undefined") return Integer[0];
if (typeof radix !== "undefined") return +radix === 10 ? parseValue(v) : parseBase(v, radix);
return parseValue(v);
}
function BigInteger(value, sign) {
this.value = value;
this.sign = sign;
this.isSmall = false;
}
BigInteger.prototype = Object.create(Integer.prototype);
function SmallInteger(value) {
this.value = value;
this.sign = value < 0;
this.isSmall = true;
}
SmallInteger.prototype = Object.create(Integer.prototype);
function isPrecise(n) {
return -MAX_INT < n && n < MAX_INT;
@ -323,7 +331,7 @@ var bigInt = (function (undefined) {
sign = this.sign !== n.sign,
abs;
if (n.isSmall) {
if (b === 0) return CACHE[0];
if (b === 0) return Integer[0];
if (b === 1) return this;
if (b === -1) return this.negate();
abs = Math.abs(b);
@ -345,20 +353,20 @@ var bigInt = (function (undefined) {
}
return new BigInteger(multiplyLong(b, smallToArray(a)), sign);
}
SmallInteger.prototype["_multiplyBySmall"] = function (a) {
SmallInteger.prototype._multiplyBySmall = function (a) {
if (isPrecise(a.value * this.value)) {
return new SmallInteger(a.value * this.value);
}
return multiplySmallAndArray(Math.abs(a.value), smallToArray(Math.abs(this.value)), this.sign !== a.sign);
};
BigInteger.prototype["_multiplyBySmall"] = function (a) {
if (a.value === 0) return CACHE[0];
BigInteger.prototype._multiplyBySmall = function (a) {
if (a.value === 0) return Integer[0];
if (a.value === 1) return this;
if (a.value === -1) return this.negate();
return multiplySmallAndArray(Math.abs(a.value), this.value, this.sign !== a.sign);
};
SmallInteger.prototype.multiply = function (v) {
return parseValue(v)["_multiplyBySmall"](this);
return parseValue(v)._multiplyBySmall(this);
};
SmallInteger.prototype.times = SmallInteger.prototype.multiply;
@ -506,11 +514,11 @@ var bigInt = (function (undefined) {
if (n.isSmall) {
return [new SmallInteger(truncate(a / b)), new SmallInteger(a % b)];
}
return [CACHE[0], self];
return [Integer[0], self];
}
if (n.isSmall) {
if (b === 1) return [self, CACHE[0]];
if (b == -1) return [self.negate(), CACHE[0]];
if (b === 1) return [self, Integer[0]];
if (b == -1) return [self.negate(), Integer[0]];
var abs = Math.abs(b);
if (abs < BASE) {
value = divModSmall(a, abs);
@ -526,8 +534,8 @@ var bigInt = (function (undefined) {
b = smallToArray(abs);
}
var comparison = compareAbs(a, b);
if (comparison === -1) return [CACHE[0], self];
if (comparison === 0) return [CACHE[self.sign === n.sign ? 1 : -1], CACHE[0]];
if (comparison === -1) return [Integer[0], self];
if (comparison === 0) return [Integer[self.sign === n.sign ? 1 : -1], Integer[0]];
// divMod1 is faster on smaller input sizes
if (a.length + b.length <= 200)
@ -573,12 +581,12 @@ var bigInt = (function (undefined) {
a = this.value,
b = n.value,
value, x, y;
if (b === 0) return CACHE[1];
if (a === 0) return CACHE[0];
if (a === 1) return CACHE[1];
if (a === -1) return n.isEven() ? CACHE[1] : CACHE[-1];
if (b === 0) return Integer[1];
if (a === 0) return Integer[0];
if (a === 1) return Integer[1];
if (a === -1) return n.isEven() ? Integer[1] : Integer[-1];
if (n.sign) {
return CACHE[0];
return Integer[0];
}
if (!n.isSmall) throw new Error("The exponent " + n.toString() + " is too large.");
if (this.isSmall) {
@ -586,7 +594,7 @@ var bigInt = (function (undefined) {
return new SmallInteger(truncate(value));
}
x = this;
y = CACHE[1];
y = Integer[1];
while (true) {
if (b & 1 === 1) {
y = y.times(x);
@ -604,10 +612,10 @@ var bigInt = (function (undefined) {
exp = parseValue(exp);
mod = parseValue(mod);
if (mod.isZero()) throw new Error("Cannot take modPow with modulus 0");
var r = CACHE[1],
var r = Integer[1],
base = this.mod(mod);
while (exp.isPositive()) {
if (base.isZero()) return CACHE[0];
if (base.isZero()) return Integer[0];
if (exp.isOdd()) r = r.multiply(base).mod(mod);
exp = exp.divide(2);
base = base.square().mod(mod);
@ -765,7 +773,7 @@ var bigInt = (function (undefined) {
if (value === 0) return false;
if (value === 1) return true;
if (value === 2) return this.isEven();
return this.mod(n).equals(CACHE[0]);
return this.mod(n).equals(Integer[0]);
};
SmallInteger.prototype.isDivisibleBy = BigInteger.prototype.isDivisibleBy;
@ -776,7 +784,7 @@ var bigInt = (function (undefined) {
if (n.isEven() || n.isDivisibleBy(3) || n.isDivisibleBy(5)) return false;
if (n.lesser(25)) return true;
// we don't know if it's prime: let the other functions figure it out
};
}
BigInteger.prototype.isPrime = function () {
var isPrime = isBasicPrime(this);
@ -789,7 +797,7 @@ var bigInt = (function (undefined) {
while (b.isEven()) b = b.divide(2);
for (i = 0; i < a.length; i++) {
x = bigInt(a[i]).modPow(b, n);
if (x.equals(CACHE[1]) || x.equals(nPrev)) continue;
if (x.equals(Integer[1]) || x.equals(nPrev)) continue;
for (t = true, d = b; t && d.lesser(nPrev) ; d = d.multiply(2)) {
x = x.square().mod(n);
if (x.equals(nPrev)) t = false;
@ -961,7 +969,7 @@ var bigInt = (function (undefined) {
if (a.equals(b)) return a;
if (a.isZero()) return b;
if (b.isZero()) return a;
var c = CACHE[1], d, t;
var c = Integer[1], d, t;
while (a.isEven() && b.isEven()) {
d = Math.min(roughLOB(a), roughLOB(b));
a = a.divide(d);
@ -1005,7 +1013,7 @@ var bigInt = (function (undefined) {
return low.add(typeof result === "number" ? new SmallInteger(result) : new BigInteger(result, false));
}
var parseBase = function (text, base) {
var val = CACHE[0], pow = CACHE[1],
var val = Integer[0], pow = Integer[1],
length = text.length;
if (2 <= base && base <= 36) {
if (length <= LOG_MAX_INT / Math.log(base)) {
@ -1117,7 +1125,7 @@ var bigInt = (function (undefined) {
var sign = v[0] === "-";
if (sign) v = v.slice(1);
var split = v.split(/e/i);
if (split.length > 2) throw new Error("Invalid integer: " + text.join("e"));
if (split.length > 2) throw new Error("Invalid integer: " + split.join("e"));
if (split.length === 2) {
var exp = split[1];
if (exp[0] === "+") exp = exp.slice(1);
@ -1147,8 +1155,11 @@ var bigInt = (function (undefined) {
}
function parseNumberValue(v) {
if (isPrecise(v)) return new SmallInteger(v);
return parseStringValue(v.toString());
if (isPrecise(v)) {
if (v !== truncate(v)) throw new Error(v + " is not an integer.");
return new SmallInteger(v);
}
return parseStringValue(v.toString());
}
function parseValue(v) {
@ -1161,26 +1172,21 @@ var bigInt = (function (undefined) {
return v;
}
// Pre-define numbers in range [-999,999]
var CACHE = function (v, radix) {
if (typeof v === "undefined") return CACHE[0];
if (typeof radix !== "undefined") return +radix === 10 ? parseValue(v) : parseBase(v, radix);
return parseValue(v);
};
for (var i = 0; i < 1000; i++) {
CACHE[i] = new SmallInteger(i);
if (i > 0) CACHE[-i] = new SmallInteger(-i);
Integer[i] = new SmallInteger(i);
if (i > 0) Integer[-i] = new SmallInteger(-i);
}
// Backwards compatibility
CACHE.one = CACHE[1];
CACHE.zero = CACHE[0];
CACHE.minusOne = CACHE[-1];
CACHE.max = max;
CACHE.min = min;
CACHE.gcd = gcd;
CACHE.lcm = lcm;
CACHE.isInstance = function (x) { return x instanceof BigInteger || x instanceof SmallInteger; };
CACHE.randBetween = randBetween;
return CACHE;
Integer.one = Integer[1];
Integer.zero = Integer[0];
Integer.minusOne = Integer[-1];
Integer.max = max;
Integer.min = min;
Integer.gcd = gcd;
Integer.lcm = lcm;
Integer.isInstance = function (x) { return x instanceof BigInteger || x instanceof SmallInteger; };
Integer.randBetween = randBetween;
return Integer;
})();
// Node.js check

File diff suppressed because one or more lines are too long

24
node_modules/big-integer/LICENSE generated vendored Normal file
View File

@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://unlicense.org>

View File

@ -2,18 +2,18 @@
"_args": [
[
"big-integer@^1.6.7",
"/Users/steveng/repo/cordova/cordova-android/node_modules/bplist-parser"
"d:\\cordova\\cordova-android\\node_modules\\bplist-parser"
]
],
"_from": "big-integer@>=1.6.7 <2.0.0",
"_id": "big-integer@1.6.12",
"_id": "big-integer@1.6.15",
"_inCache": true,
"_installable": true,
"_location": "/big-integer",
"_nodeVersion": "0.12.3",
"_npmOperationalInternal": {
"host": "packages-6-west.internal.npmjs.com",
"tmp": "tmp/big-integer-1.6.12.tgz_1455702804335_0.11810904298909009"
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/big-integer-1.6.15.tgz_1460079231162_0.7087579960934818"
},
"_npmUser": {
"email": "peter.e.c.olson+npm@gmail.com",
@ -32,11 +32,11 @@
"_requiredBy": [
"/bplist-parser"
],
"_resolved": "http://registry.npmjs.org/big-integer/-/big-integer-1.6.12.tgz",
"_shasum": "39afcddafcd5c4480864efb757337d508938bb26",
"_resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.15.tgz",
"_shasum": "33d27d3b7388dfcc4b86d3130c10740cec01fb9e",
"_shrinkwrap": null,
"_spec": "big-integer@^1.6.7",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/bplist-parser",
"_where": "d:\\cordova\\cordova-android\\node_modules\\bplist-parser",
"author": {
"email": "peter.e.c.olson+npm@gmail.com",
"name": "Peter Olson"
@ -59,31 +59,31 @@
},
"directories": {},
"dist": {
"shasum": "39afcddafcd5c4480864efb757337d508938bb26",
"tarball": "http://registry.npmjs.org/big-integer/-/big-integer-1.6.12.tgz"
"shasum": "33d27d3b7388dfcc4b86d3130c10740cec01fb9e",
"tarball": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.15.tgz"
},
"engines": {
"node": ">=0.6"
},
"gitHead": "56f449108e31542f939e701f1fe562a46e6c1fab",
"gitHead": "cda5bcce74c3a4eb34951201d50c1b8776a56eca",
"homepage": "https://github.com/peterolson/BigInteger.js#readme",
"keywords": [
"arbitrary",
"arithmetic",
"math",
"big",
"bignum",
"bigint",
"biginteger",
"bignum",
"integer",
"math",
"precision"
"arbitrary",
"precision",
"arithmetic"
],
"license": "Unlicense",
"main": "./BigInteger",
"maintainers": [
{
"name": "peterolson",
"email": "peter.e.c.olson+npm@gmail.com"
"email": "peter.e.c.olson+npm@gmail.com",
"name": "peterolson"
}
],
"name": "big-integer",
@ -96,5 +96,5 @@
"scripts": {
"test": "karma start my.conf.js"
},
"version": "1.6.12"
"version": "1.6.15"
}

View File

@ -2,7 +2,7 @@
"_args": [
[
"bplist-parser@^0.1.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "bplist-parser@>=0.1.0 <0.2.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.1.tgz",
"_resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.1.1.tgz",
"_shasum": "d60d5dcc20cba6dc7e1f299b35d3e1f95dafbae6",
"_shrinkwrap": null,
"_spec": "bplist-parser@^0.1.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "joe.ferner@nearinfinity.com",
"name": "Joe Ferner"
@ -56,15 +56,15 @@
"homepage": "https://github.com/nearinfinity/node-bplist-parser#readme",
"keywords": [
"bplist",
"parser",
"plist"
"plist",
"parser"
],
"license": "MIT",
"main": "bplistParser.js",
"maintainers": [
{
"name": "joeferner",
"email": "joe@fernsroth.com"
"email": "joe@fernsroth.com",
"name": "joeferner"
}
],
"name": "bplist-parser",

View File

@ -20,6 +20,22 @@
-->
# Cordova-common Release Notes
### 1.2.0 (Apr 18, 2016)
* CB-11022 Save modulesMetadata to both www and platform_www when necessary
* CB-10833 Deduplicate common logic for plugin installation/uninstallation
* CB-10822 Manage plugins/modules metadata using PlatformJson
* CB-10940 Can't add Android platform from path
* CB-10965 xml helper allows multiple instances to be merge in config.xml
### 1.1.1 (Mar 18, 2016)
* CB-10694 Update test to reflect merging of CB-9264 fix
* CB-10694 Platform-specific configuration preferences don't override global settings
* CB-9264 Duplicate entries in `config.xml`
* CB-10791 Add `adjustLoggerLevel` to `cordova-common.CordovaLogger`
* CB-10662 Add tests for `ConfigParser.getStaticResources`
* CB-10622 fix target attribute being ignored for images in `config.xml`.
* CB-10583 Protect plugin preferences from adding extra Array properties.
### 1.1.0 (Feb 16, 2016)
* CB-10482 Remove references to windows8 from cordova-lib/cli
* CB-10430 Adds forwardEvents method to easily connect two EventEmitters

View File

@ -17,9 +17,6 @@
under the License.
*/
/* jshint node:true */
// For now expose plugman and cordova just as they were in the old repos
exports = module.exports = {
events: require('./src/events'),
superspawn: require('./src/superspawn'),
@ -33,6 +30,8 @@ exports = module.exports = {
PluginInfo: require('./src/PluginInfo/PluginInfo.js'),
PluginInfoProvider: require('./src/PluginInfo/PluginInfoProvider.js'),
PluginManager: require('./src/PluginManager'),
ConfigChanges: require('./src/ConfigChanges/ConfigChanges.js'),
ConfigKeeper: require('./src/ConfigChanges/ConfigKeeper.js'),

View File

@ -1,42 +1,42 @@
{
"_args": [
[
"cordova-common@^1.1.0",
"/Users/steveng/repo/cordova/cordova-android"
"cordova-common@1.2.0",
"d:\\cordova\\cordova-android"
]
],
"_from": "cordova-common@>=1.1.0 <2.0.0",
"_id": "cordova-common@1.1.0",
"_from": "cordova-common@1.2.0",
"_id": "cordova-common@1.2.0",
"_inCache": true,
"_installable": true,
"_location": "/cordova-common",
"_nodeVersion": "4.2.3",
"_nodeVersion": "5.9.1",
"_npmOperationalInternal": {
"host": "packages-5-east.internal.npmjs.com",
"tmp": "tmp/cordova-common-1.1.0.tgz_1455781889491_0.6937742941081524"
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/cordova-common-1.2.0.tgz_1461227352417_0.14771279646083713"
},
"_npmUser": {
"email": "kotikov.vladimir@gmail.com",
"name": "kotikov.vladimir"
},
"_npmVersion": "2.14.7",
"_npmVersion": "3.8.5",
"_phantomChildren": {},
"_requested": {
"name": "cordova-common",
"raw": "cordova-common@^1.1.0",
"rawSpec": "^1.1.0",
"raw": "cordova-common@1.2.0",
"rawSpec": "1.2.0",
"scope": null,
"spec": ">=1.1.0 <2.0.0",
"type": "range"
"spec": "1.2.0",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "http://registry.npmjs.org/cordova-common/-/cordova-common-1.1.0.tgz",
"_shasum": "8682721466ee354747ec6241f34f412b7e0ef636",
"_resolved": "file:cordova-dist\\tools\\cordova-common-1.2.0.tgz",
"_shasum": "474b7f77c6c89d3f995c947d96046edf2e8c404d",
"_shrinkwrap": null,
"_spec": "cordova-common@^1.1.0",
"_where": "/Users/steveng/repo/cordova/cordova-android",
"_spec": "cordova-common@1.2.0",
"_where": "d:\\cordova\\cordova-android",
"author": {
"name": "Apache Software Foundation"
},
@ -55,7 +55,7 @@
"plist": "^1.2.0",
"q": "^1.4.1",
"semver": "^5.0.1",
"shelljs": "^0.5.1",
"shelljs": "^0.5.3",
"underscore": "^1.8.3",
"unorm": "^1.3.3"
},
@ -63,12 +63,14 @@
"devDependencies": {
"istanbul": "^0.3.17",
"jasmine-node": "^1.14.5",
"jshint": "^2.8.0"
"jshint": "^2.8.0",
"promise-matchers": "^0.9.6",
"rewire": "^2.5.1"
},
"directories": {},
"dist": {
"shasum": "8682721466ee354747ec6241f34f412b7e0ef636",
"tarball": "http://registry.npmjs.org/cordova-common/-/cordova-common-1.1.0.tgz"
"shasum": "474b7f77c6c89d3f995c947d96046edf2e8c404d",
"tarball": "https://registry.npmjs.org/cordova-common/-/cordova-common-1.2.0.tgz"
},
"engineStrict": true,
"engines": {
@ -78,28 +80,28 @@
"main": "cordova-common.js",
"maintainers": [
{
"name": "bowserj",
"email": "bowserj@apache.org"
"email": "bowserj@apache.org",
"name": "bowserj"
},
{
"name": "kotikov.vladimir",
"email": "kotikov.vladimir@gmail.com"
"email": "kotikov.vladimir@gmail.com",
"name": "kotikov.vladimir"
},
{
"name": "purplecabbage",
"email": "purplecabbage@gmail.com"
"email": "purplecabbage@gmail.com",
"name": "purplecabbage"
},
{
"name": "shazron",
"email": "shazron@gmail.com"
"email": "shazron@gmail.com",
"name": "shazron"
},
{
"name": "stevegill",
"email": "stevengill97@gmail.com"
"email": "stevengill97@gmail.com",
"name": "stevegill"
},
{
"name": "timbarham",
"email": "npmjs@barhams.info"
"email": "npmjs@barhams.info",
"name": "timbarham"
}
],
"name": "cordova-common",
@ -115,5 +117,5 @@
"jshint": "node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint spec",
"test": "npm run jshint && npm run jasmine"
},
"version": "1.1.0"
"version": "1.2.0"
}

View File

@ -186,6 +186,7 @@ ConfigParser.prototype = {
staticResources.forEach(function (elt) {
var res = {};
res.src = elt.attrib.src;
res.target = elt.attrib.target || undefined;
res.density = elt.attrib['density'] || elt.attrib[that.cdvNamespacePrefix+':density'] || elt.attrib['gap:density'];
res.platform = elt.platform || null; // null means icon represents default icon (shared between platforms)
res.width = +elt.attrib.width || undefined;

View File

@ -152,6 +152,23 @@ CordovaLogger.prototype.setLevel = function (logLevel) {
return this;
};
/**
* Adjusts the current logger level according to the passed options.
*
* @param {Object|Array} opts An object or args array with options
*
* @return {CordovaLogger} Current instance, to allow calls chaining.
*/
CordovaLogger.prototype.adjustLevel = function (opts) {
if (opts.verbose || (Array.isArray(opts) && opts.indexOf('--verbose') !== -1)) {
this.setLevel('verbose');
} else if (opts.silent || (Array.isArray(opts) && opts.indexOf('--silent') !== -1)) {
this.setLevel('error');
}
return this;
};
/**
* Attaches logger to EventEmitter instance provided.
*

View File

@ -91,6 +91,38 @@ PlatformJson.prototype.addPlugin = function(pluginId, variables, isTopLevel) {
return this;
};
/**
* @chaining
* Generates and adds metadata for provided plugin into associated <platform>.json file
*
* @param {PluginInfo} pluginInfo A pluginInfo instance to add metadata from
* @returns {this} Current PlatformJson instance to allow calls chaining
*/
PlatformJson.prototype.addPluginMetadata = function (pluginInfo) {
var installedModules = this.root.modules || [];
var installedPaths = installedModules.map(function (installedModule) {
return installedModule.file;
});
var modulesToInstall = pluginInfo.getJsModules(this.platform)
.map(function (module) {
return new ModuleMetadata(pluginInfo.id, module);
})
.filter(function (metadata) {
// Filter out modules which are already added to metadata
return installedPaths.indexOf(metadata.file) === -1;
});
this.root.modules = installedModules.concat(modulesToInstall);
this.root.plugin_metadata = this.root.plugin_metadata || {};
this.root.plugin_metadata[pluginInfo.id] = pluginInfo.version;
return this;
};
PlatformJson.prototype.removePlugin = function(pluginId, isTopLevel) {
var pluginsList = isTopLevel ?
this.root.installed_plugins :
@ -101,6 +133,35 @@ PlatformJson.prototype.removePlugin = function(pluginId, isTopLevel) {
return this;
};
/**
* @chaining
* Removes metadata for provided plugin from associated file
*
* @param {PluginInfo} pluginInfo A PluginInfo instance to which modules' metadata
* we need to remove
*
* @returns {this} Current PlatformJson instance to allow calls chaining
*/
PlatformJson.prototype.removePluginMetadata = function (pluginInfo) {
var modulesToRemove = pluginInfo.getJsModules(this.platform)
.map(function (jsModule) {
return ['plugins', pluginInfo.id, jsModule.src].join('/');
});
var installedModules = this.root.modules || [];
this.root.modules = installedModules
.filter(function (installedModule) {
// Leave only those metadatas which 'file' is not in removed modules
return (modulesToRemove.indexOf(installedModule.file) === -1);
});
if (this.root.plugin_metadata) {
delete this.root.plugin_metadata[pluginInfo.id];
}
return this;
};
PlatformJson.prototype.addInstalledPluginToPrepareQueue = function(pluginDirName, vars, is_top_level) {
this.root.prepare_queue.installed.push({'plugin':pluginDirName, 'vars':vars, 'topLevel':is_top_level});
};
@ -125,6 +186,39 @@ PlatformJson.prototype.makeTopLevel = function(pluginId) {
return this;
};
/**
* Generates a metadata for all installed plugins and js modules. The resultant
* string is ready to be written to 'cordova_plugins.js'
*
* @returns {String} cordova_plugins.js contents
*/
PlatformJson.prototype.generateMetadata = function () {
return [
'cordova.define(\'cordova/plugin_list\', function(require, exports, module) {',
'module.exports = ' + JSON.stringify(this.root.modules, null, 4) + ';',
'module.exports.metadata = ',
'// TOP OF METADATA',
JSON.stringify(this.root.plugin_metadata, null, 4) + ';',
'// BOTTOM OF METADATA',
'});' // Close cordova.define.
].join('\n');
};
/**
* @chaining
* Generates and then saves metadata to specified file. Doesn't check if file exists.
*
* @param {String} destination File metadata will be written to
* @return {PlatformJson} PlatformJson instance
*/
PlatformJson.prototype.generateAndSaveMetadata = function (destination) {
var meta = this.generateMetadata();
shelljs.mkdir('-p', path.dirname(destination));
fs.writeFileSync(destination, meta, 'utf-8');
return this;
};
// convert a munge from the old format ([file][parent][xml] = count) to the current one
function fix_munge(root) {
root.prepare_queue = root.prepare_queue || {installed:[], uninstalled:[]};
@ -151,5 +245,35 @@ function fix_munge(root) {
return root;
}
/**
* @constructor
* @class ModuleMetadata
*
* Creates a ModuleMetadata object that represents module entry in 'cordova_plugins.js'
* file at run time
*
* @param {String} pluginId Plugin id where this module installed from
* @param (JsModule|Object) jsModule A js-module entry from PluginInfo class to generate metadata for
*/
function ModuleMetadata (pluginId, jsModule) {
if (!pluginId) throw new TypeError('pluginId argument must be a valid plugin id');
if (!jsModule.src && !jsModule.name) throw new TypeError('jsModule argument must contain src or/and name properties');
this.id = pluginId + '.' + ( jsModule.name || jsModule.src.match(/([^\/]+)\.js/)[1] );
this.file = ['plugins', pluginId, jsModule.src].join('/');
this.pluginId = pluginId;
if (jsModule.clobbers && jsModule.clobbers.length > 0) {
this.clobbers = jsModule.clobbers.map(function(o) { return o.target; });
}
if (jsModule.merges && jsModule.merges.length > 0) {
this.merges = jsModule.merges.map(function(o) { return o.target; });
}
if (jsModule.runs) {
this.runs = true;
}
}
module.exports = PlatformJson;

View File

@ -43,18 +43,14 @@ function PluginInfo(dirname) {
// <preference> tag
// Example: <preference name="API_KEY" />
// Used to require a variable to be specified via --variable when installing the plugin.
// returns { key : default | null}
self.getPreferences = getPreferences;
function getPreferences(platform) {
var arprefs = _getTags(self._et, 'preference', platform, _parsePreference);
var prefs= {};
for(var i in arprefs)
{
var pref=arprefs[i];
prefs[pref.preference]=pref.default;
}
// returns { key : default | null}
return prefs;
return _getTags(self._et, 'preference', platform, _parsePreference)
.reduce(function (preferences, pref) {
preferences[pref.preference] = pref.default;
return preferences;
}, {});
}
function _parsePreference(prefTag) {

152
node_modules/cordova-common/src/PluginManager.js generated vendored Normal file
View File

@ -0,0 +1,152 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
var Q = require('q');
var fs = require('fs');
var path = require('path');
var ActionStack = require('./ActionStack');
var PlatformJson = require('./PlatformJson');
var CordovaError = require('./CordovaError/CordovaError');
var PlatformMunger = require('./ConfigChanges/ConfigChanges').PlatformMunger;
var PluginInfoProvider = require('./PluginInfo/PluginInfoProvider');
/**
* @constructor
* @class PluginManager
* Represents an entity for adding/removing plugins for platforms
*
* @param {String} platform Platform name
* @param {Object} locations - Platform files and directories
* @param {IDEProject} ideProject The IDE project to add/remove plugin changes to/from
*/
function PluginManager(platform, locations, ideProject) {
this.platform = platform;
this.locations = locations;
this.project = ideProject;
var platformJson = PlatformJson.load(locations.root, platform);
this.munger = new PlatformMunger(platform, locations.root, platformJson, new PluginInfoProvider());
}
/**
* @constructs PluginManager
* A convenience shortcut to new PluginManager(...)
*
* @param {String} platform Platform name
* @param {Object} locations - Platform files and directories
* @param {IDEProject} ideProject The IDE project to add/remove plugin changes to/from
* @returns new PluginManager instance
*/
PluginManager.get = function(platform, locations, ideProject) {
return new PluginManager(platform, locations, ideProject);
};
PluginManager.INSTALL = 'install';
PluginManager.UNINSTALL = 'uninstall';
module.exports = PluginManager;
/**
* Describes and implements common plugin installation/uninstallation routine. The flow is the following:
* * Validate and set defaults for options. Note that options are empty by default. Everything
* needed for platform IDE project must be passed from outside. Plugin variables (which
* are the part of the options) also must be already populated with 'PACKAGE_NAME' variable.
* * Collect all plugin's native and web files, get installers/uninstallers and process
* all these via ActionStack.
* * Save the IDE project, so the changes made by installers are persisted.
* * Generate config changes munge for plugin and apply it to all required files
* * Generate metadata for plugin and plugin modules and save it to 'cordova_plugins.js'
*
* @param {PluginInfo} plugin A PluginInfo structure representing plugin to install
* @param {Object} [options={}] An installation options. It is expected but is not necessary
* that options would contain 'variables' inner object with 'PACKAGE_NAME' field set by caller.
*
* @returns {Promise} Returns a Q promise, either resolved in case of success, rejected otherwise.
*/
PluginManager.prototype.doOperation = function (operation, plugin, options) {
if (operation !== PluginManager.INSTALL && operation !== PluginManager.UNINSTALL)
return Q.reject(new CordovaError('The parameter is incorrect. The opeation must be either "add" or "remove"'));
if (!plugin || plugin.constructor.name !== 'PluginInfo')
return Q.reject(new CordovaError('The parameter is incorrect. The first parameter should be a PluginInfo instance'));
// Set default to empty object to play safe when accesing properties
options = options || {};
var self = this;
var actions = new ActionStack();
// gather all files need to be handled during operation ...
plugin.getFilesAndFrameworks(this.platform)
.concat(plugin.getAssets(this.platform))
.concat(plugin.getJsModules(this.platform))
// ... put them into stack ...
.forEach(function(item) {
var installer = self.project.getInstaller(item.itemType);
var uninstaller = self.project.getUninstaller(item.itemType);
var actionArgs = [item, plugin, self.project, options];
var action;
if (operation === PluginManager.INSTALL) {
action = actions.createAction.apply(actions, [installer, actionArgs, uninstaller, actionArgs]);
} else /* op === PluginManager.UNINSTALL */{
action = actions.createAction.apply(actions, [uninstaller, actionArgs, installer, actionArgs]);
}
actions.push(action);
});
// ... and run through the action stack
return actions.process(this.platform)
.then(function () {
if (self.project.write) {
self.project.write();
}
if (operation === PluginManager.INSTALL) {
// Ignore passed `is_top_level` option since platform itself doesn't know
// anything about managing dependencies - it's responsibility of caller.
self.munger.add_plugin_changes(plugin, options.variables, /*is_top_level=*/true, /*should_increment=*/true);
self.munger.platformJson.addPluginMetadata(plugin);
} else {
self.munger.remove_plugin_changes(plugin, /*is_top_level=*/true);
self.munger.platformJson.removePluginMetadata(plugin);
}
// Save everything (munge and plugin/modules metadata)
self.munger.save_all();
var metadata = self.munger.platformJson.generateMetadata();
fs.writeFileSync(path.join(self.locations.www, 'cordova_plugins.js'), metadata, 'utf-8');
// CB-11022 save plugin metadata to both www and platform_www if options.usePlatformWww is specified
if (options.usePlatformWww) {
fs.writeFileSync(path.join(self.locations.platformWww, 'cordova_plugins.js'), metadata, 'utf-8');
}
});
};
PluginManager.prototype.addPlugin = function (plugin, installOptions) {
return this.doOperation(PluginManager.INSTALL, plugin, installOptions);
};
PluginManager.prototype.removePlugin = function (plugin, uninstallOptions) {
return this.doOperation(PluginManager.UNINSTALL, plugin, uninstallOptions);
};

View File

@ -42,7 +42,14 @@ module.exports.forwardEventsTo = function (eventEmitter) {
if (!(eventEmitter instanceof EventEmitter))
throw new Error('Cordova events could be redirected to another EventEmitter instance only');
EVENTS_RECEIVER = eventEmitter;
// CB-10940 Skipping forwarding to self to avoid infinite recursion.
// This is the case when the modules are npm-linked.
if (this !== eventEmitter) {
EVENTS_RECEIVER = eventEmitter;
} else {
// Reset forwarding if we are subscribing to self
EVENTS_RECEIVER = undefined;
}
};
var emit = INSTANCE.emit;

View File

@ -194,7 +194,7 @@ function findInsertIdx(children, after) {
}
var BLACKLIST = ['platform', 'feature','plugin','engine'];
var SINGLETONS = ['content', 'author'];
var SINGLETONS = ['content', 'author', 'name'];
function mergeXml(src, dest, platform, clobber) {
// Do nothing for blacklisted tags.
if (BLACKLIST.indexOf(src.tag) != -1) return;
@ -209,6 +209,9 @@ function mergeXml(src, dest, platform, clobber) {
if (src.text && (clobber || !dest.text)) {
dest.text = src.text;
}
//Handle children
src.getchildren().forEach(mergeChild);
//Handle platform
if (platform) {
src.findall('platform[@name="' + platform + '"]').forEach(function (platformElement) {
@ -216,8 +219,8 @@ function mergeXml(src, dest, platform, clobber) {
});
}
//Handle children
src.getchildren().forEach(mergeChild);
//Handle duplicate preference tags (by name attribute)
removeDuplicatePreferences(dest);
function mergeChild (srcChild) {
var srcTag = srcChild.tag,
@ -254,6 +257,26 @@ function mergeXml(src, dest, platform, clobber) {
dest.append(destChild);
}
}
function removeDuplicatePreferences(xml) {
// reduce preference tags to a hashtable to remove dupes
var prefHash = xml.findall('preference[@name][@value]').reduce(function(previousValue, currentValue) {
previousValue[ currentValue.attrib.name ] = currentValue.attrib.value;
return previousValue;
}, {});
// remove all preferences
xml.findall('preference[@name][@value]').forEach(function(pref) {
xml.remove(pref);
});
// write new preferences
Object.keys(prefHash).forEach(function(key, index) {
var element = et.SubElement(xml, 'preference');
element.set('name', key);
element.set('value', this[key]);
}, prefHash);
}
}
// Expose for testing.

View File

@ -2,7 +2,7 @@
"_args": [
[
"cordova-registry-mapper@^1.1.8",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "cordova-registry-mapper@>=1.1.8 <2.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registry-mapper-1.1.15.tgz",
"_resolved": "https://registry.npmjs.org/cordova-registry-mapper/-/cordova-registry-mapper-1.1.15.tgz",
"_shasum": "e244b9185b8175473bff6079324905115f83dc7c",
"_shrinkwrap": null,
"_spec": "cordova-registry-mapper@^1.1.8",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"name": "Steve Gill"
},
@ -59,8 +59,8 @@
"main": "index.js",
"maintainers": [
{
"name": "stevegill",
"email": "stevengill97@gmail.com"
"email": "stevengill97@gmail.com",
"name": "stevegill"
}
],
"name": "cordova-registry-mapper",

38
node_modules/lodash/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"lodash@^3.5.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/xmlbuilder"
"d:\\cordova\\cordova-android\\node_modules\\xmlbuilder"
]
],
"_from": "lodash@>=3.5.0 <4.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/xmlbuilder"
],
"_resolved": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
"_resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
"_shasum": "5bf45e8e49ba4189e17d482789dfd15bd140b7b6",
"_shrinkwrap": null,
"_spec": "lodash@^3.5.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/xmlbuilder",
"_where": "d:\\cordova\\cordova-android\\node_modules\\xmlbuilder",
"author": {
"email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
@ -43,28 +43,28 @@
},
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
"url": "http://allyoucanleet.com/"
},
{
"name": "Benjamin Tan",
"email": "demoneaux@gmail.com",
"name": "Benjamin Tan",
"url": "https://d10.github.io/"
},
{
"name": "Blaine Bublitz",
"email": "blaine@iceddev.com",
"name": "Blaine Bublitz",
"url": "http://www.iceddev.com/"
},
{
"name": "Kit Cambridge",
"email": "github@kitcambridge.be",
"name": "Kit Cambridge",
"url": "http://kitcambridge.be/"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"name": "Mathias Bynens",
"url": "https://mathiasbynens.be/"
}
],
@ -74,7 +74,7 @@
"directories": {},
"dist": {
"shasum": "5bf45e8e49ba4189e17d482789dfd15bd140b7b6",
"tarball": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz"
"tarball": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@ -87,24 +87,24 @@
"main": "index.js",
"maintainers": [
{
"name": "jdalton",
"email": "john.david.dalton@gmail.com"
"email": "john.david.dalton@gmail.com",
"name": "jdalton"
},
{
"name": "mathias",
"email": "mathias@qiwi.be"
"email": "mathias@qiwi.be",
"name": "mathias"
},
{
"name": "phated",
"email": "blaine@iceddev.com"
"email": "blaine@iceddev.com",
"name": "phated"
},
{
"name": "kitcambridge",
"email": "github@kitcambridge.be"
"email": "github@kitcambridge.be",
"name": "kitcambridge"
},
{
"name": "d10",
"email": "demoneaux@gmail.com"
"email": "demoneaux@gmail.com",
"name": "d10"
}
],
"name": "lodash",

26
node_modules/os-homedir/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"os-homedir@^1.0.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/osenv"
"d:\\cordova\\cordova-android\\node_modules\\osenv"
]
],
"_from": "os-homedir@>=1.0.0 <2.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/osenv"
],
"_resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.1.tgz",
"_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.1.tgz",
"_shasum": "0d62bdf44b916fd3bbdcf2cab191948fb094f007",
"_shrinkwrap": null,
"_spec": "os-homedir@^1.0.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/osenv",
"_where": "d:\\cordova\\cordova-android\\node_modules\\osenv",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@ -63,23 +63,23 @@
"keywords": [
"built-in",
"core",
"ponyfill",
"polyfill",
"shim",
"os",
"homedir",
"home",
"dir",
"directory",
"folder",
"home",
"homedir",
"os",
"path",
"polyfill",
"ponyfill",
"shim",
"user"
"user",
"path"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
}
],
"name": "os-homedir",

28
node_modules/os-tmpdir/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"os-tmpdir@^1.0.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/osenv"
"d:\\cordova\\cordova-android\\node_modules\\osenv"
]
],
"_from": "os-tmpdir@>=1.0.0 <2.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/osenv"
],
"_resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.1.tgz",
"_resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.1.tgz",
"_shasum": "e9b423a1edaf479882562e92ed71d7743a071b6e",
"_shrinkwrap": null,
"_spec": "os-tmpdir@^1.0.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/osenv",
"_where": "d:\\cordova\\cordova-android\\node_modules\\osenv",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@ -62,24 +62,24 @@
"keywords": [
"built-in",
"core",
"ponyfill",
"polyfill",
"shim",
"os",
"tmpdir",
"tempdir",
"tmp",
"temp",
"dir",
"directory",
"env",
"environment",
"os",
"polyfill",
"ponyfill",
"shim",
"temp",
"tempdir",
"tmp",
"tmpdir"
"environment"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
}
],
"name": "os-tmpdir",

28
node_modules/osenv/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"osenv@^0.1.3",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "osenv@>=0.1.3 <0.2.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/osenv/-/osenv-0.1.3.tgz",
"_resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.3.tgz",
"_shasum": "83cf05c6d6458fc4d5ac6362ea325d92f2754217",
"_shrinkwrap": null,
"_spec": "osenv@^0.1.3",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
@ -60,31 +60,31 @@
"homepage": "https://github.com/npm/osenv#readme",
"keywords": [
"environment",
"variable",
"home",
"tmpdir",
"path",
"prompt",
"ps1",
"tmpdir",
"variable"
"ps1"
],
"license": "ISC",
"main": "osenv.js",
"maintainers": [
{
"name": "isaacs",
"email": "i@izs.me"
"email": "i@izs.me",
"name": "isaacs"
},
{
"name": "robertkowalski",
"email": "rok@kowalski.gd"
"email": "rok@kowalski.gd",
"name": "robertkowalski"
},
{
"name": "othiym23",
"email": "ogd@aoaioxxysz.net"
"email": "ogd@aoaioxxysz.net",
"name": "othiym23"
},
{
"name": "iarna",
"email": "me@re-becca.org"
"email": "me@re-becca.org",
"name": "iarna"
}
],
"name": "osenv",

28
node_modules/plist/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"plist@^1.2.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "plist@>=1.2.0 <2.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/plist/-/plist-1.2.0.tgz",
"_resolved": "https://registry.npmjs.org/plist/-/plist-1.2.0.tgz",
"_shasum": "084b5093ddc92506e259f874b8d9b1afb8c79593",
"_shrinkwrap": null,
"_spec": "plist@^1.2.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "nathan@tootallnate.net",
"name": "Nathan Rajlich"
@ -42,15 +42,15 @@
},
"contributors": [
{
"name": "Hans Huebner",
"email": "hans.huebner@gmail.com"
"email": "hans.huebner@gmail.com",
"name": "Hans Huebner"
},
{
"name": "Pierre Metrailler"
},
{
"name": "Mike Reinstein",
"email": "reinstein.mike@gmail.com"
"email": "reinstein.mike@gmail.com",
"name": "Mike Reinstein"
},
{
"name": "Vladimir Tsvang"
@ -83,24 +83,24 @@
"apple",
"browser",
"mac",
"parser",
"plist",
"parser",
"xml"
],
"license": "MIT",
"main": "lib/plist.js",
"maintainers": [
{
"name": "TooTallNate",
"email": "nathan@tootallnate.net"
"email": "nathan@tootallnate.net",
"name": "TooTallNate"
},
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
"email": "nathan@tootallnate.net",
"name": "tootallnate"
},
{
"name": "mreinstein",
"email": "reinstein.mike@gmail.com"
"email": "reinstein.mike@gmail.com",
"name": "mreinstein"
}
],
"name": "plist",

16
node_modules/semver/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"semver@^5.0.1",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "semver@>=5.0.1 <6.0.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/semver/-/semver-5.1.0.tgz",
"_resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz",
"_shasum": "85f2cf8550465c4df000cf7d86f6b054106ab9e5",
"_shrinkwrap": null,
"_spec": "semver@^5.0.1",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"bin": {
"semver": "./bin/semver"
},
@ -47,7 +47,7 @@
"directories": {},
"dist": {
"shasum": "85f2cf8550465c4df000cf7d86f6b054106ab9e5",
"tarball": "http://registry.npmjs.org/semver/-/semver-5.1.0.tgz"
"tarball": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz"
},
"gitHead": "8e33a30e62e40e4983d1c5f55e794331b861aadc",
"homepage": "https://github.com/npm/node-semver#readme",
@ -55,12 +55,12 @@
"main": "semver.js",
"maintainers": [
{
"name": "isaacs",
"email": "isaacs@npmjs.com"
"email": "isaacs@npmjs.com",
"name": "isaacs"
},
{
"name": "othiym23",
"email": "ogd@aoaioxxysz.net"
"email": "ogd@aoaioxxysz.net",
"name": "othiym23"
}
],
"name": "semver",

22
node_modules/underscore/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"underscore@^1.8.3",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "underscore@>=1.8.3 <2.0.0",
@ -27,11 +27,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
"_shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022",
"_shrinkwrap": null,
"_spec": "underscore@^1.8.3",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "jeremy@documentcloud.org",
"name": "Jeremy Ashkenas"
@ -52,29 +52,29 @@
"directories": {},
"dist": {
"shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022",
"tarball": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz"
"tarball": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz"
},
"files": [
"LICENSE",
"underscore.js",
"underscore-min.js",
"underscore-min.map",
"underscore.js"
"LICENSE"
],
"gitHead": "e4743ab712b8ab42ad4ccb48b155034d02394e4d",
"homepage": "http://underscorejs.org",
"keywords": [
"browser",
"client",
"util",
"functional",
"server",
"util"
"client",
"browser"
],
"license": "MIT",
"main": "underscore.js",
"maintainers": [
{
"name": "jashkenas",
"email": "jashkenas@gmail.com"
"email": "jashkenas@gmail.com",
"name": "jashkenas"
}
],
"name": "underscore",

22
node_modules/unorm/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"unorm@^1.3.3",
"/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common"
"d:\\cordova\\cordova-android\\node_modules\\cordova-common"
]
],
"_from": "unorm@>=1.3.3 <2.0.0",
@ -27,11 +27,11 @@
"_requiredBy": [
"/cordova-common"
],
"_resolved": "http://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz",
"_resolved": "https://registry.npmjs.org/unorm/-/unorm-1.4.1.tgz",
"_shasum": "364200d5f13646ca8bcd44490271335614792300",
"_shrinkwrap": null,
"_spec": "unorm@^1.3.3",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/cordova-common",
"_where": "d:\\cordova\\cordova-android\\node_modules\\cordova-common",
"author": {
"email": "bwp@bwp.dk",
"name": "Bjarke Walling"
@ -41,16 +41,16 @@
},
"contributors": [
{
"name": "Bjarke Walling",
"email": "bwp@bwp.dk"
"email": "bwp@bwp.dk",
"name": "Bjarke Walling"
},
{
"name": "Oleg Grenrus",
"email": "oleg.grenrus@iki.fi"
"email": "oleg.grenrus@iki.fi",
"name": "Oleg Grenrus"
},
{
"name": "Matsuza",
"email": "matsuza@gmail.com"
"email": "matsuza@gmail.com",
"name": "Matsuza"
}
],
"dependencies": {},
@ -77,8 +77,8 @@
"main": "./lib/unorm.js",
"maintainers": [
{
"name": "walling",
"email": "bwp@bwp.dk"
"email": "bwp@bwp.dk",
"name": "walling"
}
],
"name": "unorm",

View File

@ -2,7 +2,7 @@
"_args": [
[
"util-deprecate@1.0.2",
"/Users/steveng/repo/cordova/cordova-android/node_modules/plist"
"d:\\cordova\\cordova-android\\node_modules\\plist"
]
],
"_from": "util-deprecate@1.0.2",
@ -28,11 +28,11 @@
"_requiredBy": [
"/plist"
],
"_resolved": "http://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"_resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"_shasum": "450d4dc9fa70de732762fbd2d4a28981419a0ccf",
"_shrinkwrap": null,
"_spec": "util-deprecate@1.0.2",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/plist",
"_where": "d:\\cordova\\cordova-android\\node_modules\\plist",
"author": {
"email": "nathan@tootallnate.net",
"name": "Nathan Rajlich",
@ -53,18 +53,18 @@
"gitHead": "475fb6857cd23fafff20c1be846c1350abf8e6d4",
"homepage": "https://github.com/TooTallNate/util-deprecate",
"keywords": [
"browser",
"browserify",
"util",
"deprecate",
"node",
"util"
"browserify",
"browser",
"node"
],
"license": "MIT",
"main": "node.js",
"maintainers": [
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
"email": "nathan@tootallnate.net",
"name": "tootallnate"
}
],
"name": "util-deprecate",

12
node_modules/xmlbuilder/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"xmlbuilder@4.0.0",
"/Users/steveng/repo/cordova/cordova-android/node_modules/plist"
"d:\\cordova\\cordova-android\\node_modules\\plist"
]
],
"_from": "xmlbuilder@4.0.0",
@ -27,11 +27,11 @@
"_requiredBy": [
"/plist"
],
"_resolved": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.0.0.tgz",
"_resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.0.0.tgz",
"_shasum": "98b8f651ca30aa624036f127d11cc66dc7b907a3",
"_shrinkwrap": null,
"_spec": "xmlbuilder@4.0.0",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/plist",
"_where": "d:\\cordova\\cordova-android\\node_modules\\plist",
"author": {
"email": "oozcitak@gmail.com",
"name": "Ozgur Ozcitak"
@ -54,7 +54,7 @@
"directories": {},
"dist": {
"shasum": "98b8f651ca30aa624036f127d11cc66dc7b907a3",
"tarball": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.0.0.tgz"
"tarball": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-4.0.0.tgz"
},
"engines": {
"node": ">=0.8.0"
@ -69,8 +69,8 @@
"main": "./lib/index",
"maintainers": [
{
"name": "oozcitak",
"email": "oozcitak@gmail.com"
"email": "oozcitak@gmail.com",
"name": "oozcitak"
}
],
"name": "xmlbuilder",

48
node_modules/xmldom/package.json generated vendored
View File

@ -2,7 +2,7 @@
"_args": [
[
"xmldom@0.1.x",
"/Users/steveng/repo/cordova/cordova-android/node_modules/plist"
"d:\\cordova\\cordova-android\\node_modules\\plist"
]
],
"_from": "xmldom@>=0.1.0 <0.2.0",
@ -28,11 +28,11 @@
"_requiredBy": [
"/plist"
],
"_resolved": "http://registry.npmjs.org/xmldom/-/xmldom-0.1.22.tgz",
"_resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.22.tgz",
"_shasum": "10de4e5e964981f03c8cc72fadc08d14b6c3aa26",
"_shrinkwrap": null,
"_spec": "xmldom@0.1.x",
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/plist",
"_where": "d:\\cordova\\cordova-android\\node_modules\\plist",
"author": {
"email": "jindw@xidea.org",
"name": "jindw",
@ -44,18 +44,18 @@
},
"contributors": [
{
"name": "Yaron Naveh",
"email": "yaronn01@gmail.com",
"name": "Yaron Naveh",
"url": "http://webservices20.blogspot.com/"
},
{
"name": "Harutyun Amirjanyan",
"email": "amirjanyan@gmail.com",
"name": "Harutyun Amirjanyan",
"url": "https://github.com/nightwing"
},
{
"name": "Alan Gutierrez",
"email": "alan@prettyrobots.com",
"name": "Alan Gutierrez",
"url": "http://www.prettyrobots.com/"
}
],
@ -75,42 +75,42 @@
"gitHead": "29a83b315aef56c156602286b2d884a3b4c2521f",
"homepage": "https://github.com/jindw/xmldom",
"keywords": [
"DOMParser",
"XMLSerializer",
"dom",
"javascript",
"parser",
"w3c",
"xml"
"dom",
"xml",
"parser",
"javascript",
"DOMParser",
"XMLSerializer"
],
"licenses": [
{
"MIT": "http://opensource.org/licenses/MIT",
"type": "LGPL",
"url": "http://www.gnu.org/licenses/lgpl.html",
"MIT": "http://opensource.org/licenses/MIT"
"url": "http://www.gnu.org/licenses/lgpl.html"
}
],
"main": "./dom-parser.js",
"maintainers": [
{
"name": "jindw",
"email": "jindw@xidea.org"
"email": "jindw@xidea.org",
"name": "jindw"
},
{
"name": "yaron",
"email": "yaronn01@gmail.com"
"email": "yaronn01@gmail.com",
"name": "yaron"
},
{
"name": "bigeasy",
"email": "alan@prettyrobots.com"
"email": "alan@prettyrobots.com",
"name": "bigeasy"
},
{
"name": "kethinov",
"email": "kethinov@gmail.com"
"email": "kethinov@gmail.com",
"name": "kethinov"
},
{
"name": "jinjinyun",
"email": "jinyun.jin@gmail.com"
"email": "jinyun.jin@gmail.com",
"name": "jinjinyun"
}
],
"name": "xmldom",

View File

@ -1,49 +1,49 @@
{
"name": "cordova-android",
"version": "5.2.0-dev",
"description": "cordova-android release",
"bin": {
"create": "bin/create"
},
"main": "bin/templates/cordova/Api.js",
"repository": {
"type": "git",
"url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git"
},
"keywords": [
"android",
"cordova",
"apache"
],
"scripts": {
"test": "npm run jshint && jasmine-node --color spec/unit",
"cover": "istanbul cover --root bin/templates/cordova --print detail node_modules/jasmine-node/bin/jasmine-node -- spec/unit",
"test-build": "jasmine-node --captureExceptions --color spec/e2e",
"jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
},
"author": "Apache Software Foundation",
"license": "Apache-2.0",
"dependencies": {
"cordova-common": "^1.1.0",
"elementtree": "^0.1.6",
"nopt": "^3.0.1",
"properties-parser": "^0.2.3",
"q": "^1.4.1",
"shelljs": "^0.5.3"
},
"bundledDependencies": [
"cordova-common",
"elementtree",
"nopt",
"properties-parser",
"q",
"shelljs"
],
"devDependencies": {
"istanbul": "^0.4.2",
"jasmine-node": "^1.14.5",
"jshint": "^2.6.0",
"promise-matchers": "~0",
"rewire": "^2.1.3"
}
}
"name": "cordova-android",
"version": "5.2.0-dev",
"description": "cordova-android release",
"bin": {
"create": "bin/create"
},
"main": "bin/templates/cordova/Api.js",
"repository": {
"type": "git",
"url": "https://git-wip-us.apache.org/repos/asf/cordova-android.git"
},
"keywords": [
"android",
"cordova",
"apache"
],
"scripts": {
"test": "npm run jshint && jasmine-node --color spec/unit",
"cover": "istanbul cover --root bin/templates/cordova --print detail node_modules/jasmine-node/bin/jasmine-node -- spec/unit",
"test-build": "jasmine-node --captureExceptions --color spec/e2e",
"jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
},
"author": "Apache Software Foundation",
"license": "Apache-2.0",
"dependencies": {
"cordova-common": "^1.2.0",
"elementtree": "^0.1.6",
"nopt": "^3.0.1",
"properties-parser": "^0.2.3",
"q": "^1.4.1",
"shelljs": "^0.5.3"
},
"bundledDependencies": [
"cordova-common",
"elementtree",
"nopt",
"properties-parser",
"q",
"shelljs"
],
"devDependencies": {
"istanbul": "^0.4.2",
"jasmine-node": "^1.14.5",
"jshint": "^2.6.0",
"promise-matchers": "~0",
"rewire": "^2.1.3"
}
}