cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [28/51] [partial] cordova-lib git commit: Reorganized unit test directory. Changes include: - consolidate spec-cordova/ and spec-plugman/ into a single spec/ dir. - put jasmine config and helper modules in top-level spec dir. - changed package.json npm r
Date Tue, 27 Jun 2017 21:22:09 GMT
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/HISTORY.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/HISTORY.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/HISTORY.md
deleted file mode 100644
index e51ff01..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/HISTORY.md
+++ /dev/null
@@ -1,16 +0,0 @@
-1.0.1 / 2015-09-29
-==================
-
-  * perf: enable strict mode
-
-1.0.0 / 2014-08-10
-==================
-
-  * Honor `res.statusCode` change in `listener`
-  * Move to `jshttp` orgainzation
-  * Prevent `arguments`-related de-opt
-
-0.0.0 / 2014-05-13
-==================
-
-  * Initial implementation

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/LICENSE
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/LICENSE b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/LICENSE
deleted file mode 100644
index b7dce6c..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 Douglas Christopher Wilson
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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 OR COPYRIGHT HOLDERS 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.

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/README.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/README.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/README.md
deleted file mode 100644
index 48ed9ae..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# on-headers
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Execute a listener when a response is about to write headers.
-
-## Installation
-
-```sh
-$ npm install on-headers
-```
-
-## API
-
-```js
-var onHeaders = require('on-headers')
-```
-
-### onHeaders(res, listener)
-
-This will add the listener `listener` to fire when headers are emitted for `res`.
-The listener is passed the `response` object as it's context (`this`). Headers are
-considered to be emitted only once, right before they are sent to the client.
-
-When this is called multiple times on the same `res`, the `listener`s are fired
-in the reverse order they were added.
-
-## Examples
-
-```js
-var http = require('http')
-var onHeaders = require('on-headers')
-
-http
-.createServer(onRequest)
-.listen(3000)
-
-function addPoweredBy() {
-  // set if not set by end of request
-  if (!this.getHeader('X-Powered-By')) {
-    this.setHeader('X-Powered-By', 'Node.js')
-  }
-}
-
-function onRequest(req, res) {
-  onHeaders(res, addPoweredBy)
-
-  res.setHeader('Content-Type', 'text/plain')
-  res.end('hello!')
-}
-```
-
-## Testing
-
-```sh
-$ npm test
-```
-
-## License
-
-[MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/on-headers.svg
-[npm-url]: https://npmjs.org/package/on-headers
-[node-version-image]: https://img.shields.io/node/v/on-headers.svg
-[node-version-url]: http://nodejs.org/download/
-[travis-image]: https://img.shields.io/travis/jshttp/on-headers/master.svg
-[travis-url]: https://travis-ci.org/jshttp/on-headers
-[coveralls-image]: https://img.shields.io/coveralls/jshttp/on-headers/master.svg
-[coveralls-url]: https://coveralls.io/r/jshttp/on-headers?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/on-headers.svg
-[downloads-url]: https://npmjs.org/package/on-headers

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/index.js
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/index.js b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/index.js
deleted file mode 100644
index 089f2b3..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*!
- * on-headers
- * Copyright(c) 2014 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Reference to Array slice.
- */
-
-var slice = Array.prototype.slice
-
-/**
- * Execute a listener when a response is about to write headers.
- *
- * @param {Object} res
- * @return {Function} listener
- * @api public
- */
-
-module.exports = function onHeaders(res, listener) {
-  if (!res) {
-    throw new TypeError('argument res is required')
-  }
-
-  if (typeof listener !== 'function') {
-    throw new TypeError('argument listener must be a function')
-  }
-
-  res.writeHead = createWriteHead(res.writeHead, listener)
-}
-
-function createWriteHead(prevWriteHead, listener) {
-  var fired = false;
-
-  // return function with core name and argument list
-  return function writeHead(statusCode) {
-    // set headers from arguments
-    var args = setWriteHeadHeaders.apply(this, arguments);
-
-    // fire listener
-    if (!fired) {
-      fired = true
-      listener.call(this)
-
-      // pass-along an updated status code
-      if (typeof args[0] === 'number' && this.statusCode !== args[0]) {
-        args[0] = this.statusCode
-        args.length = 1
-      }
-    }
-
-    prevWriteHead.apply(this, args);
-  }
-}
-
-function setWriteHeadHeaders(statusCode) {
-  var length = arguments.length
-  var headerIndex = length > 1 && typeof arguments[1] === 'string'
-    ? 2
-    : 1
-
-  var headers = length >= headerIndex + 1
-    ? arguments[headerIndex]
-    : undefined
-
-  this.statusCode = statusCode
-
-  // the following block is from node.js core
-  if (Array.isArray(headers)) {
-    // handle array case
-    for (var i = 0, len = headers.length; i < len; ++i) {
-      this.setHeader(headers[i][0], headers[i][1])
-    }
-  } else if (headers) {
-    // handle object case
-    var keys = Object.keys(headers)
-    for (var i = 0; i < keys.length; i++) {
-      var k = keys[i]
-      if (k) this.setHeader(k, headers[k])
-    }
-  }
-
-  // copy leading arguments
-  var args = new Array(Math.min(length, headerIndex))
-  for (var i = 0; i < args.length; i++) {
-    args[i] = arguments[i]
-  }
-
-  return args
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/package.json
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/package.json b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/package.json
deleted file mode 100644
index d1f04be..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/on-headers/package.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
-  "_args": [
-    [
-      {
-        "raw": "on-headers@~1.0.1",
-        "scope": null,
-        "escapedName": "on-headers",
-        "name": "on-headers",
-        "rawSpec": "~1.0.1",
-        "spec": ">=1.0.1 <1.1.0",
-        "type": "range"
-      },
-      "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/compression"
-    ]
-  ],
-  "_from": "on-headers@>=1.0.1 <1.1.0",
-  "_id": "on-headers@1.0.1",
-  "_inCache": true,
-  "_location": "/on-headers",
-  "_npmUser": {
-    "name": "dougwilson",
-    "email": "doug@somethingdoug.com"
-  },
-  "_npmVersion": "1.4.28",
-  "_phantomChildren": {},
-  "_requested": {
-    "raw": "on-headers@~1.0.1",
-    "scope": null,
-    "escapedName": "on-headers",
-    "name": "on-headers",
-    "rawSpec": "~1.0.1",
-    "spec": ">=1.0.1 <1.1.0",
-    "type": "range"
-  },
-  "_requiredBy": [
-    "/compression"
-  ],
-  "_resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz",
-  "_shasum": "928f5d0f470d49342651ea6794b0857c100693f7",
-  "_shrinkwrap": null,
-  "_spec": "on-headers@~1.0.1",
-  "_where": "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/compression",
-  "author": {
-    "name": "Douglas Christopher Wilson",
-    "email": "doug@somethingdoug.com"
-  },
-  "bugs": {
-    "url": "https://github.com/jshttp/on-headers/issues"
-  },
-  "dependencies": {},
-  "description": "Execute a listener when a response is about to write headers",
-  "devDependencies": {
-    "istanbul": "0.3.21",
-    "mocha": "2.3.3",
-    "supertest": "1.1.0"
-  },
-  "directories": {},
-  "dist": {
-    "shasum": "928f5d0f470d49342651ea6794b0857c100693f7",
-    "tarball": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz"
-  },
-  "engines": {
-    "node": ">= 0.8"
-  },
-  "files": [
-    "LICENSE",
-    "HISTORY.md",
-    "README.md",
-    "index.js"
-  ],
-  "gitHead": "ab0156a979d72353cfe666cccb3639e016b00280",
-  "homepage": "https://github.com/jshttp/on-headers",
-  "keywords": [
-    "event",
-    "headers",
-    "http",
-    "onheaders"
-  ],
-  "license": "MIT",
-  "maintainers": [
-    {
-      "name": "dougwilson",
-      "email": "doug@somethingdoug.com"
-    },
-    {
-      "name": "jongleberry",
-      "email": "jonathanrichardong@gmail.com"
-    }
-  ],
-  "name": "on-headers",
-  "optionalDependencies": {},
-  "readme": "ERROR: No README data found!",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/jshttp/on-headers.git"
-  },
-  "scripts": {
-    "test": "mocha --reporter spec --bail --check-leaks test/",
-    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
-    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
-  },
-  "version": "1.0.1"
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/HISTORY.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/HISTORY.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/HISTORY.md
deleted file mode 100644
index 395041e..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/HISTORY.md
+++ /dev/null
@@ -1,47 +0,0 @@
-1.3.1 / 2016-01-17
-==================
-
-  * perf: enable strict mode
-
-1.3.0 / 2014-08-09
-==================
-
-  * Add `parseurl.original` for parsing `req.originalUrl` with fallback
-  * Return `undefined` if `req.url` is `undefined`
-
-1.2.0 / 2014-07-21
-==================
-
-  * Cache URLs based on original value
-  * Remove no-longer-needed URL mis-parse work-around
-  * Simplify the "fast-path" `RegExp`
-
-1.1.3 / 2014-07-08
-==================
-
-  * Fix typo
-
-1.1.2 / 2014-07-08
-==================
-
-  * Seriously fix Node.js 0.8 compatibility
-
-1.1.1 / 2014-07-08
-==================
-
-  * Fix Node.js 0.8 compatibility
-
-1.1.0 / 2014-07-08
-==================
-
-  * Incorporate URL href-only parse fast-path
-
-1.0.1 / 2014-03-08
-==================
-
-  * Add missing `require`
-
-1.0.0 / 2014-03-08
-==================
-
-  * Genesis from `connect`

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/LICENSE
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/LICENSE b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/LICENSE
deleted file mode 100644
index ec7dfe7..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-
-(The MIT License)
-
-Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
-Copyright (c) 2014 Douglas Christopher Wilson <doug@somethingdoug.com>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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 OR COPYRIGHT HOLDERS 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.

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/README.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/README.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/README.md
deleted file mode 100644
index f4796eb..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/README.md
+++ /dev/null
@@ -1,120 +0,0 @@
-# parseurl
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Parse a URL with memoization.
-
-## Install
-
-```bash
-$ npm install parseurl
-```
-
-## API
-
-```js
-var parseurl = require('parseurl')
-```
-
-### parseurl(req)
-
-Parse the URL of the given request object (looks at the `req.url` property)
-and return the result. The result is the same as `url.parse` in Node.js core.
-Calling this function multiple times on the same `req` where `req.url` does
-not change will return a cached parsed object, rather than parsing again.
-
-### parseurl.original(req)
-
-Parse the original URL of the given request object and return the result.
-This works by trying to parse `req.originalUrl` if it is a string, otherwise
-parses `req.url`. The result is the same as `url.parse` in Node.js core.
-Calling this function multiple times on the same `req` where `req.originalUrl`
-does not change will return a cached parsed object, rather than parsing again.
-
-## Benchmark
-
-```bash
-$ npm run-script bench
-
-> parseurl@1.3.1 bench nodejs-parseurl
-> node benchmark/index.js
-
-> node benchmark/fullurl.js
-
-  Parsing URL "http://localhost:8888/foo/bar?user=tj&pet=fluffy"
-
-  1 test completed.
-  2 tests completed.
-  3 tests completed.
-
-  fasturl   x 1,290,780 ops/sec ±0.46% (195 runs sampled)
-  nativeurl x    56,401 ops/sec ±0.22% (196 runs sampled)
-  parseurl  x    55,231 ops/sec ±0.22% (194 runs sampled)
-
-> node benchmark/pathquery.js
-
-  Parsing URL "/foo/bar?user=tj&pet=fluffy"
-
-  1 test completed.
-  2 tests completed.
-  3 tests completed.
-
-  fasturl   x 1,986,668 ops/sec ±0.27% (190 runs sampled)
-  nativeurl x    98,740 ops/sec ±0.21% (195 runs sampled)
-  parseurl  x 2,628,171 ops/sec ±0.36% (195 runs sampled)
-
-> node benchmark/samerequest.js
-
-  Parsing URL "/foo/bar?user=tj&pet=fluffy" on same request object
-
-  1 test completed.
-  2 tests completed.
-  3 tests completed.
-
-  fasturl   x  2,184,468 ops/sec ±0.40% (194 runs sampled)
-  nativeurl x     99,437 ops/sec ±0.71% (194 runs sampled)
-  parseurl  x 10,498,005 ops/sec ±0.61% (186 runs sampled)
-
-> node benchmark/simplepath.js
-
-  Parsing URL "/foo/bar"
-
-  1 test completed.
-  2 tests completed.
-  3 tests completed.
-
-  fasturl   x 4,535,825 ops/sec ±0.27% (191 runs sampled)
-  nativeurl x    98,769 ops/sec ±0.54% (191 runs sampled)
-  parseurl  x 4,164,865 ops/sec ±0.34% (192 runs sampled)
-
-> node benchmark/slash.js
-
-  Parsing URL "/"
-
-  1 test completed.
-  2 tests completed.
-  3 tests completed.
-
-  fasturl   x 4,908,405 ops/sec ±0.42% (191 runs sampled)
-  nativeurl x   100,945 ops/sec ±0.59% (188 runs sampled)
-  parseurl  x 4,333,208 ops/sec ±0.27% (194 runs sampled)
-```
-
-## License
-
-  [MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/parseurl.svg
-[npm-url]: https://npmjs.org/package/parseurl
-[node-version-image]: https://img.shields.io/node/v/parseurl.svg
-[node-version-url]: http://nodejs.org/download/
-[travis-image]: https://img.shields.io/travis/pillarjs/parseurl/master.svg
-[travis-url]: https://travis-ci.org/pillarjs/parseurl
-[coveralls-image]: https://img.shields.io/coveralls/pillarjs/parseurl/master.svg
-[coveralls-url]: https://coveralls.io/r/pillarjs/parseurl?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/parseurl.svg
-[downloads-url]: https://npmjs.org/package/parseurl

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/index.js
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/index.js b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/index.js
deleted file mode 100644
index 56cc6ec..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/index.js
+++ /dev/null
@@ -1,138 +0,0 @@
-/*!
- * parseurl
- * Copyright(c) 2014 Jonathan Ong
- * Copyright(c) 2014 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Module dependencies.
- */
-
-var url = require('url')
-var parse = url.parse
-var Url = url.Url
-
-/**
- * Pattern for a simple path case.
- * See: https://github.com/joyent/node/pull/7878
- */
-
-var simplePathRegExp = /^(\/\/?(?!\/)[^\?#\s]*)(\?[^#\s]*)?$/
-
-/**
- * Exports.
- */
-
-module.exports = parseurl
-module.exports.original = originalurl
-
-/**
- * Parse the `req` url with memoization.
- *
- * @param {ServerRequest} req
- * @return {Object}
- * @api public
- */
-
-function parseurl(req) {
-  var url = req.url
-
-  if (url === undefined) {
-    // URL is undefined
-    return undefined
-  }
-
-  var parsed = req._parsedUrl
-
-  if (fresh(url, parsed)) {
-    // Return cached URL parse
-    return parsed
-  }
-
-  // Parse the URL
-  parsed = fastparse(url)
-  parsed._raw = url
-
-  return req._parsedUrl = parsed
-};
-
-/**
- * Parse the `req` original url with fallback and memoization.
- *
- * @param {ServerRequest} req
- * @return {Object}
- * @api public
- */
-
-function originalurl(req) {
-  var url = req.originalUrl
-
-  if (typeof url !== 'string') {
-    // Fallback
-    return parseurl(req)
-  }
-
-  var parsed = req._parsedOriginalUrl
-
-  if (fresh(url, parsed)) {
-    // Return cached URL parse
-    return parsed
-  }
-
-  // Parse the URL
-  parsed = fastparse(url)
-  parsed._raw = url
-
-  return req._parsedOriginalUrl = parsed
-};
-
-/**
- * Parse the `str` url with fast-path short-cut.
- *
- * @param {string} str
- * @return {Object}
- * @api private
- */
-
-function fastparse(str) {
-  // Try fast path regexp
-  // See: https://github.com/joyent/node/pull/7878
-  var simplePath = typeof str === 'string' && simplePathRegExp.exec(str)
-
-  // Construct simple URL
-  if (simplePath) {
-    var pathname = simplePath[1]
-    var search = simplePath[2] || null
-    var url = Url !== undefined
-      ? new Url()
-      : {}
-    url.path = str
-    url.href = str
-    url.pathname = pathname
-    url.search = search
-    url.query = search && search.substr(1)
-
-    return url
-  }
-
-  return parse(str)
-}
-
-/**
- * Determine if parsed is still fresh for url.
- *
- * @param {string} url
- * @param {object} parsedUrl
- * @return {boolean}
- * @api private
- */
-
-function fresh(url, parsedUrl) {
-  return typeof parsedUrl === 'object'
-    && parsedUrl !== null
-    && (Url === undefined || parsedUrl instanceof Url)
-    && parsedUrl._raw === url
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/package.json
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/package.json b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/package.json
deleted file mode 100644
index 9117781..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/parseurl/package.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
-  "_args": [
-    [
-      {
-        "raw": "parseurl@~1.3.1",
-        "scope": null,
-        "escapedName": "parseurl",
-        "name": "parseurl",
-        "rawSpec": "~1.3.1",
-        "spec": ">=1.3.1 <1.4.0",
-        "type": "range"
-      },
-      "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express"
-    ]
-  ],
-  "_from": "parseurl@>=1.3.1 <1.4.0",
-  "_id": "parseurl@1.3.1",
-  "_inCache": true,
-  "_location": "/parseurl",
-  "_npmUser": {
-    "name": "dougwilson",
-    "email": "doug@somethingdoug.com"
-  },
-  "_npmVersion": "1.4.28",
-  "_phantomChildren": {},
-  "_requested": {
-    "raw": "parseurl@~1.3.1",
-    "scope": null,
-    "escapedName": "parseurl",
-    "name": "parseurl",
-    "rawSpec": "~1.3.1",
-    "spec": ">=1.3.1 <1.4.0",
-    "type": "range"
-  },
-  "_requiredBy": [
-    "/express",
-    "/serve-static"
-  ],
-  "_resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz",
-  "_shasum": "c8ab8c9223ba34888aa64a297b28853bec18da56",
-  "_shrinkwrap": null,
-  "_spec": "parseurl@~1.3.1",
-  "_where": "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express",
-  "author": {
-    "name": "Jonathan Ong",
-    "email": "me@jongleberry.com",
-    "url": "http://jongleberry.com"
-  },
-  "bugs": {
-    "url": "https://github.com/pillarjs/parseurl/issues"
-  },
-  "contributors": [
-    {
-      "name": "Douglas Christopher Wilson",
-      "email": "doug@somethingdoug.com"
-    }
-  ],
-  "dependencies": {},
-  "description": "parse a url with memoization",
-  "devDependencies": {
-    "beautify-benchmark": "0.2.4",
-    "benchmark": "2.0.0",
-    "fast-url-parser": "1.1.3",
-    "istanbul": "0.4.2",
-    "mocha": "~1.21.5"
-  },
-  "directories": {},
-  "dist": {
-    "shasum": "c8ab8c9223ba34888aa64a297b28853bec18da56",
-    "tarball": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz"
-  },
-  "engines": {
-    "node": ">= 0.8"
-  },
-  "files": [
-    "LICENSE",
-    "HISTORY.md",
-    "README.md",
-    "index.js"
-  ],
-  "gitHead": "6d22d376d75b927ab2b5347ce3a1d6735133dd43",
-  "homepage": "https://github.com/pillarjs/parseurl",
-  "license": "MIT",
-  "maintainers": [
-    {
-      "name": "jongleberry",
-      "email": "jonathanrichardong@gmail.com"
-    },
-    {
-      "name": "dougwilson",
-      "email": "doug@somethingdoug.com"
-    },
-    {
-      "name": "tjholowaychuk",
-      "email": "tj@vision-media.ca"
-    },
-    {
-      "name": "mscdex",
-      "email": "mscdex@mscdex.net"
-    },
-    {
-      "name": "fishrock123",
-      "email": "fishrock123@rocketmail.com"
-    },
-    {
-      "name": "defunctzombie",
-      "email": "shtylman@gmail.com"
-    }
-  ],
-  "name": "parseurl",
-  "optionalDependencies": {},
-  "readme": "ERROR: No README data found!",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/pillarjs/parseurl.git"
-  },
-  "scripts": {
-    "bench": "node benchmark/index.js",
-    "test": "mocha --check-leaks --bail --reporter spec test/",
-    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot test/",
-    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec test/"
-  },
-  "version": "1.3.1"
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/History.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/History.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/History.md
deleted file mode 100644
index 7f65878..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/History.md
+++ /dev/null
@@ -1,36 +0,0 @@
-0.1.7 / 2015-07-28
-==================
-
-  * Fixed regression with escaped round brackets and matching groups.
-
-0.1.6 / 2015-06-19
-==================
-
-  * Replace `index` feature by outputting all parameters, unnamed and named.
-
-0.1.5 / 2015-05-08
-==================
-
-  * Add an index property for position in match result.
-
-0.1.4 / 2015-03-05
-==================
-
-  * Add license information
-
-0.1.3 / 2014-07-06
-==================
-
-  * Better array support
-  * Improved support for trailing slash in non-ending mode
-
-0.1.0 / 2014-03-06
-==================
-
-  * add options.end
-
-0.0.2 / 2013-02-10
-==================
-
-  * Update to match current express
-  * add .license property to component.json

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/LICENSE
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/LICENSE b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/LICENSE
deleted file mode 100644
index 983fbe8..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-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 OR COPYRIGHT HOLDERS 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.

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/Readme.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/Readme.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/Readme.md
deleted file mode 100644
index 95452a6..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/Readme.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Path-to-RegExp
-
-Turn an Express-style path string such as `/user/:name` into a regular expression.
-
-**Note:** This is a legacy branch. You should upgrade to `1.x`.
-
-## Usage
-
-```javascript
-var pathToRegexp = require('path-to-regexp');
-```
-
-### pathToRegexp(path, keys, options)
-
- - **path** A string in the express format, an array of such strings, or a regular expression
- - **keys** An array to be populated with the keys present in the url.  Once the function completes, this will be an array of strings.
- - **options**
-   - **options.sensitive** Defaults to false, set this to true to make routes case sensitive
-   - **options.strict** Defaults to false, set this to true to make the trailing slash matter.
-   - **options.end** Defaults to true, set this to false to only match the prefix of the URL.
-
-```javascript
-var keys = [];
-var exp = pathToRegexp('/foo/:bar', keys);
-//keys = ['bar']
-//exp = /^\/foo\/(?:([^\/]+?))\/?$/i
-```
-
-## Live Demo
-
-You can see a live demo of this library in use at [express-route-tester](http://forbeslindesay.github.com/express-route-tester/).
-
-## License
-
-  MIT

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/index.js
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/index.js b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/index.js
deleted file mode 100644
index 500d1da..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/index.js
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * Expose `pathtoRegexp`.
- */
-
-module.exports = pathtoRegexp;
-
-/**
- * Match matching groups in a regular expression.
- */
-var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
-
-/**
- * Normalize the given path string,
- * returning a regular expression.
- *
- * An empty array should be passed,
- * which will contain the placeholder
- * key names. For example "/user/:id" will
- * then contain ["id"].
- *
- * @param  {String|RegExp|Array} path
- * @param  {Array} keys
- * @param  {Object} options
- * @return {RegExp}
- * @api private
- */
-
-function pathtoRegexp(path, keys, options) {
-  options = options || {};
-  keys = keys || [];
-  var strict = options.strict;
-  var end = options.end !== false;
-  var flags = options.sensitive ? '' : 'i';
-  var extraOffset = 0;
-  var keysOffset = keys.length;
-  var i = 0;
-  var name = 0;
-  var m;
-
-  if (path instanceof RegExp) {
-    while (m = MATCHING_GROUP_REGEXP.exec(path.source)) {
-      keys.push({
-        name: name++,
-        optional: false,
-        offset: m.index
-      });
-    }
-
-    return path;
-  }
-
-  if (Array.isArray(path)) {
-    // Map array parts into regexps and return their source. We also pass
-    // the same keys and options instance into every generation to get
-    // consistent matching groups before we join the sources together.
-    path = path.map(function (value) {
-      return pathtoRegexp(value, keys, options).source;
-    });
-
-    return new RegExp('(?:' + path.join('|') + ')', flags);
-  }
-
-  path = ('^' + path + (strict ? '' : path[path.length - 1] === '/' ? '?' : '/?'))
-    .replace(/\/\(/g, '/(?:')
-    .replace(/([\/\.])/g, '\\$1')
-    .replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function (match, slash, format, key, capture, star, optional, offset) {
-      slash = slash || '';
-      format = format || '';
-      capture = capture || '([^\\/' + format + ']+?)';
-      optional = optional || '';
-
-      keys.push({
-        name: key,
-        optional: !!optional,
-        offset: offset + extraOffset
-      });
-
-      var result = ''
-        + (optional ? '' : slash)
-        + '(?:'
-        + format + (optional ? slash : '') + capture
-        + (star ? '((?:[\\/' + format + '].+?)?)' : '')
-        + ')'
-        + optional;
-
-      extraOffset += result.length - match.length;
-
-      return result;
-    })
-    .replace(/\*/g, function (star, index) {
-      var len = keys.length
-
-      while (len-- > keysOffset && keys[len].offset > index) {
-        keys[len].offset += 3; // Replacement length minus asterisk length.
-      }
-
-      return '(.*)';
-    });
-
-  // This is a workaround for handling unnamed matching groups.
-  while (m = MATCHING_GROUP_REGEXP.exec(path)) {
-    var escapeCount = 0;
-    var index = m.index;
-
-    while (path.charAt(--index) === '\\') {
-      escapeCount++;
-    }
-
-    // It's possible to escape the bracket.
-    if (escapeCount % 2 === 1) {
-      continue;
-    }
-
-    if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
-      keys.splice(keysOffset + i, 0, {
-        name: name++, // Unnamed matching groups must be consistently linear.
-        optional: false,
-        offset: m.index
-      });
-    }
-
-    i++;
-  }
-
-  // If the path is non-ending, match until the end or a slash.
-  path += (end ? '$' : (path[path.length - 1] === '/' ? '' : '(?=\\/|$)'));
-
-  return new RegExp(path, flags);
-};

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/package.json
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/package.json b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/package.json
deleted file mode 100644
index 59fa7b8..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/path-to-regexp/package.json
+++ /dev/null
@@ -1,219 +0,0 @@
-{
-  "_args": [
-    [
-      {
-        "raw": "path-to-regexp@0.1.7",
-        "scope": null,
-        "escapedName": "path-to-regexp",
-        "name": "path-to-regexp",
-        "rawSpec": "0.1.7",
-        "spec": "0.1.7",
-        "type": "version"
-      },
-      "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express"
-    ]
-  ],
-  "_from": "path-to-regexp@0.1.7",
-  "_id": "path-to-regexp@0.1.7",
-  "_inCache": true,
-  "_location": "/path-to-regexp",
-  "_nodeVersion": "2.3.3",
-  "_npmUser": {
-    "name": "blakeembrey",
-    "email": "hello@blakeembrey.com"
-  },
-  "_npmVersion": "2.13.2",
-  "_phantomChildren": {},
-  "_requested": {
-    "raw": "path-to-regexp@0.1.7",
-    "scope": null,
-    "escapedName": "path-to-regexp",
-    "name": "path-to-regexp",
-    "rawSpec": "0.1.7",
-    "spec": "0.1.7",
-    "type": "version"
-  },
-  "_requiredBy": [
-    "/express"
-  ],
-  "_resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
-  "_shasum": "df604178005f522f15eb4490e7247a1bfaa67f8c",
-  "_shrinkwrap": null,
-  "_spec": "path-to-regexp@0.1.7",
-  "_where": "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express",
-  "bugs": {
-    "url": "https://github.com/component/path-to-regexp/issues"
-  },
-  "component": {
-    "scripts": {
-      "path-to-regexp": "index.js"
-    }
-  },
-  "dependencies": {},
-  "description": "Express style path to RegExp utility",
-  "devDependencies": {
-    "istanbul": "^0.2.6",
-    "mocha": "^1.17.1"
-  },
-  "directories": {},
-  "dist": {
-    "shasum": "df604178005f522f15eb4490e7247a1bfaa67f8c",
-    "tarball": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
-  },
-  "files": [
-    "index.js",
-    "LICENSE"
-  ],
-  "gitHead": "039118d6c3c186d3f176c73935ca887a32a33d93",
-  "homepage": "https://github.com/component/path-to-regexp#readme",
-  "keywords": [
-    "express",
-    "regexp"
-  ],
-  "license": "MIT",
-  "maintainers": [
-    {
-      "name": "tjholowaychuk",
-      "email": "tj@vision-media.ca"
-    },
-    {
-      "name": "hughsk",
-      "email": "hughskennedy@gmail.com"
-    },
-    {
-      "name": "timaschew",
-      "email": "timaschew@gmail.com"
-    },
-    {
-      "name": "dougwilson",
-      "email": "doug@somethingdoug.com"
-    },
-    {
-      "name": "jongleberry",
-      "email": "jonathanrichardong@gmail.com"
-    },
-    {
-      "name": "dominicbarnes",
-      "email": "dominic@dbarnes.info"
-    },
-    {
-      "name": "tootallnate",
-      "email": "nathan@tootallnate.net"
-    },
-    {
-      "name": "rauchg",
-      "email": "rauchg@gmail.com"
-    },
-    {
-      "name": "retrofox",
-      "email": "rdsuarez@gmail.com"
-    },
-    {
-      "name": "coreh",
-      "email": "thecoreh@gmail.com"
-    },
-    {
-      "name": "forbeslindesay",
-      "email": "forbes@lindesay.co.uk"
-    },
-    {
-      "name": "kelonye",
-      "email": "kelonyemitchel@gmail.com"
-    },
-    {
-      "name": "mattmueller",
-      "email": "mattmuelle@gmail.com"
-    },
-    {
-      "name": "yields",
-      "email": "yields@icloud.com"
-    },
-    {
-      "name": "anthonyshort",
-      "email": "antshort@gmail.com"
-    },
-    {
-      "name": "ianstormtaylor",
-      "email": "ian@ianstormtaylor.com"
-    },
-    {
-      "name": "cristiandouce",
-      "email": "cristian@gravityonmars.com"
-    },
-    {
-      "name": "swatinem",
-      "email": "arpad.borsos@googlemail.com"
-    },
-    {
-      "name": "stagas",
-      "email": "gstagas@gmail.com"
-    },
-    {
-      "name": "amasad",
-      "email": "amjad.masad@gmail.com"
-    },
-    {
-      "name": "juliangruber",
-      "email": "julian@juliangruber.com"
-    },
-    {
-      "name": "calvinfo",
-      "email": "calvin@calv.info"
-    },
-    {
-      "name": "blakeembrey",
-      "email": "hello@blakeembrey.com"
-    },
-    {
-      "name": "timoxley",
-      "email": "secoif@gmail.com"
-    },
-    {
-      "name": "jonathanong",
-      "email": "jonathanrichardong@gmail.com"
-    },
-    {
-      "name": "queckezz",
-      "email": "fabian.eichenberger@gmail.com"
-    },
-    {
-      "name": "nami-doc",
-      "email": "vendethiel@hotmail.fr"
-    },
-    {
-      "name": "clintwood",
-      "email": "clint@anotherway.co.za"
-    },
-    {
-      "name": "thehydroimpulse",
-      "email": "dnfagnan@gmail.com"
-    },
-    {
-      "name": "stephenmathieson",
-      "email": "me@stephenmathieson.com"
-    },
-    {
-      "name": "trevorgerhardt",
-      "email": "trevorgerhardt@gmail.com"
-    },
-    {
-      "name": "dfcreative",
-      "email": "df.creative@gmail.com"
-    },
-    {
-      "name": "defunctzombie",
-      "email": "shtylman@gmail.com"
-    }
-  ],
-  "name": "path-to-regexp",
-  "optionalDependencies": {},
-  "readme": "ERROR: No README data found!",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/component/path-to-regexp.git"
-  },
-  "scripts": {
-    "test": "istanbul cover _mocha -- -R spec"
-  },
-  "version": "0.1.7"
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/HISTORY.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/HISTORY.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/HISTORY.md
deleted file mode 100644
index ac845a0..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/HISTORY.md
+++ /dev/null
@@ -1,104 +0,0 @@
-1.1.3 / 2017-01-14
-==================
-
-  * deps: ipaddr.js@1.2.0
-
-1.1.2 / 2016-05-29
-==================
-
-  * deps: ipaddr.js@1.1.1
-    - Fix IPv6-mapped IPv4 validation edge cases
-
-1.1.1 / 2016-05-03
-==================
-
-  * Fix regression matching mixed versions against multiple subnets
-
-1.1.0 / 2016-05-01
-==================
-
-  * Fix accepting various invalid netmasks
-    - IPv4 netmasks must be contingous
-    - IPv6 addresses cannot be used as a netmask
-  * deps: ipaddr.js@1.1.0
-
-1.0.10 / 2015-12-09
-===================
-
-  * deps: ipaddr.js@1.0.5
-    - Fix regression in `isValid` with non-string arguments
-
-1.0.9 / 2015-12-01
-==================
-
-  * deps: ipaddr.js@1.0.4
-    - Fix accepting some invalid IPv6 addresses
-    - Reject CIDRs with negative or overlong masks
-  * perf: enable strict mode
-
-1.0.8 / 2015-05-10
-==================
-
-  * deps: ipaddr.js@1.0.1
-
-1.0.7 / 2015-03-16
-==================
-
-  * deps: ipaddr.js@0.1.9
-    - Fix OOM on certain inputs to `isValid`
-
-1.0.6 / 2015-02-01
-==================
-
-  * deps: ipaddr.js@0.1.8
-
-1.0.5 / 2015-01-08
-==================
-
-  * deps: ipaddr.js@0.1.6
-
-1.0.4 / 2014-11-23
-==================
-
-  * deps: ipaddr.js@0.1.5
-    - Fix edge cases with `isValid`
-
-1.0.3 / 2014-09-21
-==================
-
-  * Use `forwarded` npm module
-
-1.0.2 / 2014-09-18
-==================
-
-  * Fix a global leak when multiple subnets are trusted
-  * Support Node.js 0.6
-  * deps: ipaddr.js@0.1.3
-
-1.0.1 / 2014-06-03
-==================
-
-  * Fix links in npm package
-
-1.0.0 / 2014-05-08
-==================
-
-  * Add `trust` argument to determine proxy trust on
-    * Accepts custom function
-    * Accepts IPv4/IPv6 address(es)
-    * Accepts subnets
-    * Accepts pre-defined names
-  * Add optional `trust` argument to `proxyaddr.all` to
-    stop at first untrusted
-  * Add `proxyaddr.compile` to pre-compile `trust` function
-    to make subsequent calls faster
-
-0.0.1 / 2014-05-04
-==================
-
-  * Fix bad npm publish
-
-0.0.0 / 2014-05-04
-==================
-
-  * Initial release

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/LICENSE
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/LICENSE b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/LICENSE
deleted file mode 100644
index cab251c..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014-2016 Douglas Christopher Wilson
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-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 OR COPYRIGHT HOLDERS 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.

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/README.md
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/README.md b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/README.md
deleted file mode 100644
index 1bffc76..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/README.md
+++ /dev/null
@@ -1,136 +0,0 @@
-# proxy-addr
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Determine address of proxied request
-
-## Install
-
-```sh
-$ npm install proxy-addr
-```
-
-## API
-
-```js
-var proxyaddr = require('proxy-addr')
-```
-
-### proxyaddr(req, trust)
-
-Return the address of the request, using the given `trust` parameter.
-
-The `trust` argument is a function that returns `true` if you trust
-the address, `false` if you don't. The closest untrusted address is
-returned.
-
-```js
-proxyaddr(req, function(addr){ return addr === '127.0.0.1' })
-proxyaddr(req, function(addr, i){ return i < 1 })
-```
-
-The `trust` arugment may also be a single IP address string or an
-array of trusted addresses, as plain IP addresses, CIDR-formatted
-strings, or IP/netmask strings.
-
-```js
-proxyaddr(req, '127.0.0.1')
-proxyaddr(req, ['127.0.0.0/8', '10.0.0.0/8'])
-proxyaddr(req, ['127.0.0.0/255.0.0.0', '192.168.0.0/255.255.0.0'])
-```
-
-This module also supports IPv6. Your IPv6 addresses will be normalized
-automatically (i.e. `fe80::00ed:1` equals `fe80:0:0:0:0:0:ed:1`).
-
-```js
-proxyaddr(req, '::1')
-proxyaddr(req, ['::1/128', 'fe80::/10'])
-```
-
-This module will automatically work with IPv4-mapped IPv6 addresses
-as well to support node.js in IPv6-only mode. This means that you do
-not have to specify both `::ffff:a00:1` and `10.0.0.1`.
-
-As a convenience, this module also takes certain pre-defined names
-in addition to IP addresses, which expand into IP addresses:
-
-```js
-proxyaddr(req, 'loopback')
-proxyaddr(req, ['loopback', 'fc00:ac:1ab5:fff::1/64'])
-```
-
-  * `loopback`: IPv4 and IPv6 loopback addresses (like `::1` and
-    `127.0.0.1`).
-  * `linklocal`: IPv4 and IPv6 link-local addresses (like
-    `fe80::1:1:1:1` and `169.254.0.1`).
-  * `uniquelocal`: IPv4 private addresses and IPv6 unique-local
-    addresses (like `fc00:ac:1ab5:fff::1` and `192.168.0.1`).
-
-When `trust` is specified as a function, it will be called for each
-address to determine if it is a trusted address. The function is
-given two arguments: `addr` and `i`, where `addr` is a string of
-the address to check and `i` is a number that represents the distance
-from the socket address.
-
-### proxyaddr.all(req, [trust])
-
-Return all the addresses of the request, optionally stopping at the
-first untrusted. This array is ordered from closest to furthest
-(i.e. `arr[0] === req.connection.remoteAddress`).
-
-```js
-proxyaddr.all(req)
-```
-
-The optional `trust` argument takes the same arguments as `trust`
-does in `proxyaddr(req, trust)`.
-
-```js
-proxyaddr.all(req, 'loopback')
-```
-
-### proxyaddr.compile(val)
-
-Compiles argument `val` into a `trust` function. This function takes
-the same arguments as `trust` does in `proxyaddr(req, trust)` and
-returns a function suitable for `proxyaddr(req, trust)`.
-
-```js
-var trust = proxyaddr.compile('localhost')
-var addr  = proxyaddr(req, trust)
-```
-
-This function is meant to be optimized for use against every request.
-It is recommend to compile a trust function up-front for the trusted
-configuration and pass that to `proxyaddr(req, trust)` for each request.
-
-## Testing
-
-```sh
-$ npm test
-```
-
-## Benchmarks
-
-```sh
-$ npm run-script bench
-```
-
-## License
-
-[MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/proxy-addr.svg
-[npm-url]: https://npmjs.org/package/proxy-addr
-[node-version-image]: https://img.shields.io/node/v/proxy-addr.svg
-[node-version-url]: http://nodejs.org/download/
-[travis-image]: https://img.shields.io/travis/jshttp/proxy-addr/master.svg
-[travis-url]: https://travis-ci.org/jshttp/proxy-addr
-[coveralls-image]: https://img.shields.io/coveralls/jshttp/proxy-addr/master.svg
-[coveralls-url]: https://coveralls.io/r/jshttp/proxy-addr?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/proxy-addr.svg
-[downloads-url]: https://npmjs.org/package/proxy-addr

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/index.js
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/index.js b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/index.js
deleted file mode 100644
index 0b3cf0b..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/index.js
+++ /dev/null
@@ -1,321 +0,0 @@
-/*!
- * proxy-addr
- * Copyright(c) 2014-2016 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Module exports.
- */
-
-module.exports = proxyaddr;
-module.exports.all = alladdrs;
-module.exports.compile = compile;
-
-/**
- * Module dependencies.
- */
-
-var forwarded = require('forwarded');
-var ipaddr = require('ipaddr.js');
-
-/**
- * Variables.
- */
-
-var digitre = /^[0-9]+$/;
-var isip = ipaddr.isValid;
-var parseip = ipaddr.parse;
-
-/**
- * Pre-defined IP ranges.
- */
-
-var ipranges = {
-  linklocal: ['169.254.0.0/16', 'fe80::/10'],
-  loopback: ['127.0.0.1/8', '::1/128'],
-  uniquelocal: ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16', 'fc00::/7']
-};
-
-/**
- * Get all addresses in the request, optionally stopping
- * at the first untrusted.
- *
- * @param {Object} request
- * @param {Function|Array|String} [trust]
- * @api public
- */
-
-function alladdrs(req, trust) {
-  // get addresses
-  var addrs = forwarded(req);
-
-  if (!trust) {
-    // Return all addresses
-    return addrs;
-  }
-
-  if (typeof trust !== 'function') {
-    trust = compile(trust);
-  }
-
-  for (var i = 0; i < addrs.length - 1; i++) {
-    if (trust(addrs[i], i)) continue;
-
-    addrs.length = i + 1;
-  }
-
-  return addrs;
-}
-
-/**
- * Compile argument into trust function.
- *
- * @param {Array|String} val
- * @api private
- */
-
-function compile(val) {
-  if (!val) {
-    throw new TypeError('argument is required');
-  }
-
-  var trust = typeof val === 'string'
-    ? [val]
-    : val;
-
-  if (!Array.isArray(trust)) {
-    throw new TypeError('unsupported trust argument');
-  }
-
-  for (var i = 0; i < trust.length; i++) {
-    val = trust[i];
-
-    if (!ipranges.hasOwnProperty(val)) {
-      continue;
-    }
-
-    // Splice in pre-defined range
-    val = ipranges[val];
-    trust.splice.apply(trust, [i, 1].concat(val));
-    i += val.length - 1;
-  }
-
-  return compileTrust(compileRangeSubnets(trust));
-}
-
-/**
- * Compile `arr` elements into range subnets.
- *
- * @param {Array} arr
- * @api private
- */
-
-function compileRangeSubnets(arr) {
-  var rangeSubnets = new Array(arr.length);
-
-  for (var i = 0; i < arr.length; i++) {
-    rangeSubnets[i] = parseipNotation(arr[i]);
-  }
-
-  return rangeSubnets;
-}
-
-/**
- * Compile range subnet array into trust function.
- *
- * @param {Array} rangeSubnets
- * @api private
- */
-
-function compileTrust(rangeSubnets) {
-  // Return optimized function based on length
-  var len = rangeSubnets.length;
-  return len === 0
-    ? trustNone
-    : len === 1
-    ? trustSingle(rangeSubnets[0])
-    : trustMulti(rangeSubnets);
-}
-
-/**
- * Parse IP notation string into range subnet.
- *
- * @param {String} note
- * @api private
- */
-
-function parseipNotation(note) {
-  var pos = note.lastIndexOf('/');
-  var str = pos !== -1
-    ? note.substring(0, pos)
-    : note;
-
-  if (!isip(str)) {
-    throw new TypeError('invalid IP address: ' + str);
-  }
-
-  var ip = parseip(str);
-
-  if (pos === -1 && ip.kind() === 'ipv6' && ip.isIPv4MappedAddress()) {
-    // Store as IPv4
-    ip = ip.toIPv4Address();
-  }
-
-  var max = ip.kind() === 'ipv6'
-    ? 128
-    : 32;
-
-  var range = pos !== -1
-    ? note.substring(pos + 1, note.length)
-    : null;
-
-  if (range === null) {
-    range = max;
-  } else if (digitre.test(range)) {
-    range = parseInt(range, 10);
-  } else if (ip.kind() === 'ipv4' && isip(range)) {
-    range = parseNetmask(range);
-  } else {
-    range = null;
-  }
-
-  if (range <= 0 || range > max) {
-    throw new TypeError('invalid range on address: ' + note);
-  }
-
-  return [ip, range];
-}
-
-/**
- * Parse netmask string into CIDR range.
- *
- * @param {String} netmask
- * @api private
- */
-
-function parseNetmask(netmask) {
-  var ip = parseip(netmask);
-  var kind = ip.kind();
-
-  return kind === 'ipv4'
-    ? ip.prefixLengthFromSubnetMask()
-    : null;
-}
-
-/**
- * Determine address of proxied request.
- *
- * @param {Object} request
- * @param {Function|Array|String} trust
- * @api public
- */
-
-function proxyaddr(req, trust) {
-  if (!req) {
-    throw new TypeError('req argument is required');
-  }
-
-  if (!trust) {
-    throw new TypeError('trust argument is required');
-  }
-
-  var addrs = alladdrs(req, trust);
-  var addr = addrs[addrs.length - 1];
-
-  return addr;
-}
-
-/**
- * Static trust function to trust nothing.
- *
- * @api private
- */
-
-function trustNone() {
-  return false;
-}
-
-/**
- * Compile trust function for multiple subnets.
- *
- * @param {Array} subnets
- * @api private
- */
-
-function trustMulti(subnets) {
-  return function trust(addr) {
-    if (!isip(addr)) return false;
-
-    var ip = parseip(addr);
-    var ipconv;
-    var kind = ip.kind();
-
-    for (var i = 0; i < subnets.length; i++) {
-      var subnet = subnets[i];
-      var subnetip = subnet[0];
-      var subnetkind = subnetip.kind();
-      var subnetrange = subnet[1];
-      var trusted = ip;
-
-      if (kind !== subnetkind) {
-        if (subnetkind === 'ipv4' && !ip.isIPv4MappedAddress()) {
-          // Incompatible IP addresses
-          continue;
-        }
-
-        if (!ipconv) {
-          // Convert IP to match subnet IP kind
-          ipconv = subnetkind === 'ipv4'
-            ? ip.toIPv4Address()
-            : ip.toIPv4MappedAddress();
-        }
-
-        trusted = ipconv;
-      }
-
-      if (trusted.match(subnetip, subnetrange)) {
-        return true;
-      }
-    }
-
-    return false;
-  };
-}
-
-/**
- * Compile trust function for single subnet.
- *
- * @param {Object} subnet
- * @api private
- */
-
-function trustSingle(subnet) {
-  var subnetip = subnet[0];
-  var subnetkind = subnetip.kind();
-  var subnetisipv4 = subnetkind === 'ipv4';
-  var subnetrange = subnet[1];
-
-  return function trust(addr) {
-    if (!isip(addr)) return false;
-
-    var ip = parseip(addr);
-    var kind = ip.kind();
-
-    if (kind !== subnetkind) {
-      if (subnetisipv4 && !ip.isIPv4MappedAddress()) {
-        // Incompatible IP addresses
-        return false;
-      }
-
-      // Convert IP to match subnet IP kind
-      ip = subnetisipv4
-        ? ip.toIPv4Address()
-        : ip.toIPv4MappedAddress();
-    }
-
-    return ip.match(subnetip, subnetrange);
-  };
-}

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/package.json
----------------------------------------------------------------------
diff --git a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/package.json b/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/package.json
deleted file mode 100644
index 4ed15bc..0000000
--- a/spec-cordova/fixtures/platforms/cordova-browser/node_modules/proxy-addr/package.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
-  "_args": [
-    [
-      {
-        "raw": "proxy-addr@~1.1.3",
-        "scope": null,
-        "escapedName": "proxy-addr",
-        "name": "proxy-addr",
-        "rawSpec": "~1.1.3",
-        "spec": ">=1.1.3 <1.2.0",
-        "type": "range"
-      },
-      "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express"
-    ]
-  ],
-  "_from": "proxy-addr@>=1.1.3 <1.2.0",
-  "_id": "proxy-addr@1.1.3",
-  "_inCache": true,
-  "_location": "/proxy-addr",
-  "_nodeVersion": "4.6.1",
-  "_npmOperationalInternal": {
-    "host": "packages-18-east.internal.npmjs.com",
-    "tmp": "tmp/proxy-addr-1.1.3.tgz_1484460061440_0.03347301739268005"
-  },
-  "_npmUser": {
-    "name": "dougwilson",
-    "email": "doug@somethingdoug.com"
-  },
-  "_npmVersion": "2.15.9",
-  "_phantomChildren": {},
-  "_requested": {
-    "raw": "proxy-addr@~1.1.3",
-    "scope": null,
-    "escapedName": "proxy-addr",
-    "name": "proxy-addr",
-    "rawSpec": "~1.1.3",
-    "spec": ">=1.1.3 <1.2.0",
-    "type": "range"
-  },
-  "_requiredBy": [
-    "/express"
-  ],
-  "_resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.1.3.tgz",
-  "_shasum": "dc97502f5722e888467b3fa2297a7b1ff47df074",
-  "_shrinkwrap": null,
-  "_spec": "proxy-addr@~1.1.3",
-  "_where": "/Users/auso/cordova/cordova-lib/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/node_modules/express",
-  "author": {
-    "name": "Douglas Christopher Wilson",
-    "email": "doug@somethingdoug.com"
-  },
-  "bugs": {
-    "url": "https://github.com/jshttp/proxy-addr/issues"
-  },
-  "dependencies": {
-    "forwarded": "~0.1.0",
-    "ipaddr.js": "1.2.0"
-  },
-  "description": "Determine address of proxied request",
-  "devDependencies": {
-    "beautify-benchmark": "0.2.4",
-    "benchmark": "2.1.3",
-    "istanbul": "0.4.5",
-    "mocha": "~1.21.5"
-  },
-  "directories": {},
-  "dist": {
-    "shasum": "dc97502f5722e888467b3fa2297a7b1ff47df074",
-    "tarball": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.1.3.tgz"
-  },
-  "engines": {
-    "node": ">= 0.6"
-  },
-  "files": [
-    "LICENSE",
-    "HISTORY.md",
-    "README.md",
-    "index.js"
-  ],
-  "gitHead": "0724490937983255e7687812594c97c36ebca90b",
-  "homepage": "https://github.com/jshttp/proxy-addr#readme",
-  "keywords": [
-    "ip",
-    "proxy",
-    "x-forwarded-for"
-  ],
-  "license": "MIT",
-  "maintainers": [
-    {
-      "name": "dougwilson",
-      "email": "doug@somethingdoug.com"
-    }
-  ],
-  "name": "proxy-addr",
-  "optionalDependencies": {},
-  "readme": "ERROR: No README data found!",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/jshttp/proxy-addr.git"
-  },
-  "scripts": {
-    "bench": "node benchmark/index.js",
-    "test": "mocha --reporter spec --bail --check-leaks test/",
-    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
-    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
-  },
-  "version": "1.1.3"
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message