cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [23/61] [abbrv] [partial] cordova-create git commit: gitignore node modules
Date Mon, 01 Aug 2016 22:22:42 GMT
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/09-unquoted_attrib.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/09-unquoted_attrib.json b/node_modules/domhandler/test/cases/09-unquoted_attrib.json
deleted file mode 100644
index 543ccee..0000000
--- a/node_modules/domhandler/test/cases/09-unquoted_attrib.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "name": "Unquoted attributes",
-  "options": {},
-  "html": "<font size= 14>the text</font>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "font",
-      "attribs": {
-        "size": "14"
-      },
-      "children": [
-        {
-          "data": "the text",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/10-singular_attribute.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/10-singular_attribute.json b/node_modules/domhandler/test/cases/10-singular_attribute.json
deleted file mode 100644
index 544636e..0000000
--- a/node_modules/domhandler/test/cases/10-singular_attribute.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "name": "Singular attribute",
-  "options": {},
-  "html": "<option value='foo' selected>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "option",
-      "attribs": {
-        "value": "foo",
-        "selected": ""
-      }
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/11-text_outside_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/11-text_outside_tags.json b/node_modules/domhandler/test/cases/11-text_outside_tags.json
deleted file mode 100644
index d328572..0000000
--- a/node_modules/domhandler/test/cases/11-text_outside_tags.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
-  "name": "Text outside tags",
-  "options": {},
-  "html": "Line one\n<br>\nline two",
-  "expected": [
-    {
-      "data": "Line one\n",
-      "type": "text",
-      "prev": null,
-      "next": {
-        "type": "tag",
-        "name": "br",
-        "attribs": {}
-      }
-    },
-    {
-      "type": "tag",
-      "name": "br",
-      "attribs": {},
-      "prev": {
-        "data": "Line one\n",
-        "type": "text"
-      },
-      "next": {
-        "data": "\nline two",
-        "type": "text"
-      }
-    },
-    {
-      "data": "\nline two",
-      "type": "text",
-      "prev": {
-        "type": "tag",
-        "name": "br",
-        "attribs": {}
-      },
-      "next": null
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/12-text_only.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/12-text_only.json b/node_modules/domhandler/test/cases/12-text_only.json
deleted file mode 100644
index 342dc45..0000000
--- a/node_modules/domhandler/test/cases/12-text_only.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
-  "name": "Only text",
-  "options": {},
-  "html": "this is the text",
-  "expected": [
-    {
-      "data": "this is the text",
-      "type": "text"
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/13-comment_in_text.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/13-comment_in_text.json b/node_modules/domhandler/test/cases/13-comment_in_text.json
deleted file mode 100644
index 672dbbe..0000000
--- a/node_modules/domhandler/test/cases/13-comment_in_text.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "name": "Comment within text",
-  "options": {},
-  "html": "this is <!-- the comment --> the text",
-  "expected": [
-    {
-      "data": "this is ",
-      "type": "text"
-    },
-    {
-      "data": " the comment ",
-      "type": "comment"
-    },
-    {
-      "data": " the text",
-      "type": "text"
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json b/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json
deleted file mode 100644
index b69d04b..0000000
--- a/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
-  "name": "Comment within text within script",
-  "options": {},
-  "html": "<script>this is <!-- the comment --> the text</script>",
-  "expected": [
-    {
-      "type": "script",
-      "name": "script",
-      "attribs": {},
-      "children": [
-        {
-          "data": "this is <!-- the comment --> the text",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/15-non-verbose.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/15-non-verbose.json b/node_modules/domhandler/test/cases/15-non-verbose.json
deleted file mode 100644
index 069db84..0000000
--- a/node_modules/domhandler/test/cases/15-non-verbose.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
-  "name": "Option 'verbose' set to 'false'",
-  "options": {
-    "verbose": false
-  },
-  "html": "<font\t\n size='14' \n>the text</\t\nfont\t \n>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "font",
-      "attribs": {
-        "size": "14"
-      },
-      "children": [
-        {
-          "data": "the text",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/16-normalize_whitespace.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/16-normalize_whitespace.json b/node_modules/domhandler/test/cases/16-normalize_whitespace.json
deleted file mode 100644
index d4490af..0000000
--- a/node_modules/domhandler/test/cases/16-normalize_whitespace.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
-  "name": "Normalize whitespace",
-  "options": {
-    "normalizeWhitespace": true
-  },
-  "html": "Line one\n<br>\t  \r\n\f  <br>\nline two<font><br> x </font>",
-  "expected": [
-    {
-      "data": "Line one ",
-      "type": "text"
-    },
-    {
-      "type": "tag",
-      "name": "br",
-      "attribs": {}
-    },
-    {
-      "data": " ",
-      "type": "text"
-    },
-    {
-      "type": "tag",
-      "name": "br",
-      "attribs": {}
-    },
-    {
-      "data": " line two",
-      "type": "text"
-    },
-    {
-      "type": "tag",
-      "name": "font",
-      "attribs": {},
-      "children": [
-        {
-          "type": "tag",
-          "name": "br",
-          "attribs": {}
-        },
-        {
-          "data": " x ",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/17-xml_namespace.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/17-xml_namespace.json b/node_modules/domhandler/test/cases/17-xml_namespace.json
deleted file mode 100644
index 2171c49..0000000
--- a/node_modules/domhandler/test/cases/17-xml_namespace.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
-  "name": "XML Namespace",
-  "options": {},
-  "html": "<ns:tag>text</ns:tag>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "ns:tag",
-      "attribs": {},
-      "children": [
-        {
-          "data": "text",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/18-enforce_empty_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/18-enforce_empty_tags.json b/node_modules/domhandler/test/cases/18-enforce_empty_tags.json
deleted file mode 100644
index ce6c455..0000000
--- a/node_modules/domhandler/test/cases/18-enforce_empty_tags.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
-  "name": "Enforce empty tags",
-  "options": {},
-  "html": "<link>text</link>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "link",
-      "attribs": {}
-    },
-    {
-      "data": "text",
-      "type": "text"
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/19-ignore_empty_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/19-ignore_empty_tags.json b/node_modules/domhandler/test/cases/19-ignore_empty_tags.json
deleted file mode 100644
index fe59cf9..0000000
--- a/node_modules/domhandler/test/cases/19-ignore_empty_tags.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "name": "Ignore empty tags (xml mode)",
-  "options": {
-    "xmlMode": true
-  },
-  "html": "<link>text</link>",
-  "expected": [
-    {
-      "type": "tag",
-      "name": "link",
-      "attribs": {},
-      "children": [
-        {
-          "data": "text",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/20-template_script_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/20-template_script_tags.json b/node_modules/domhandler/test/cases/20-template_script_tags.json
deleted file mode 100644
index dae5f1f..0000000
--- a/node_modules/domhandler/test/cases/20-template_script_tags.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "name": "Template script tags",
-  "options": {},
-  "html": "<script type=\"text/template\"><h1>Heading1</h1></script>",
-  "expected": [
-    {
-      "type": "script",
-      "name": "script",
-      "attribs": {
-        "type": "text/template"
-      },
-      "children": [
-        {
-          "data": "<h1>Heading1</h1>",
-          "type": "text"
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/21-conditional_comments.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/21-conditional_comments.json b/node_modules/domhandler/test/cases/21-conditional_comments.json
deleted file mode 100644
index c034acd..0000000
--- a/node_modules/domhandler/test/cases/21-conditional_comments.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "name": "Conditional comments",
-  "options": {},
-  "html": "<!--[if lt IE 7]> <html class='no-js ie6 oldie' lang='en'> <![endif]--><!--[if lt IE 7]> <html class='no-js ie6 oldie' lang='en'> <![endif]-->",
-  "expected": [
-    {
-      "data": "[if lt IE 7]> <html class='no-js ie6 oldie' lang='en'> <![endif]",
-      "type": "comment"
-    },
-    {
-      "data": "[if lt IE 7]> <html class='no-js ie6 oldie' lang='en'> <![endif]",
-      "type": "comment"
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/22-lowercase_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/22-lowercase_tags.json b/node_modules/domhandler/test/cases/22-lowercase_tags.json
deleted file mode 100644
index b3d70e4..0000000
--- a/node_modules/domhandler/test/cases/22-lowercase_tags.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
-  "name": "lowercase tags",
-  "options": {},
-  "html": "<!DOCTYPE html><HTML><TITLE>The Title</title><BODY>Hello world</body></html>",
-  "expected": [
-    {
-      "name": "!doctype",
-      "data": "!DOCTYPE html",
-      "type": "directive"
-    },
-    {
-      "type": "tag",
-      "name": "html",
-      "attribs": {},
-      "children": [
-        {
-          "type": "tag",
-          "name": "title",
-          "attribs": {},
-          "children": [
-            {
-              "data": "The Title",
-              "type": "text"
-            }
-          ]
-        },
-        {
-          "type": "tag",
-          "name": "body",
-          "attribs": {},
-          "children": [
-            {
-              "data": "Hello world",
-              "type": "text"
-            }
-          ]
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/23-dom-lvl1.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/23-dom-lvl1.json b/node_modules/domhandler/test/cases/23-dom-lvl1.json
deleted file mode 100644
index ab25d88..0000000
--- a/node_modules/domhandler/test/cases/23-dom-lvl1.json
+++ /dev/null
@@ -1,131 +0,0 @@
-{
-  "name": "DOM level 1",
-  "options": { "withDomLvl1": true },
-  "html": "<div>some stray text<h1>Hello, world.</h1><!-- comment node -->more stray text</div>",
-  "expected": [
-    {
-      "type": "tag",
-      "nodeType": 1,
-      "name": "div",
-      "tagName": "div",
-      "attribs": {},
-      "nodeValue": null,
-      "children": [
-        {
-          "type": "text",
-          "nodeType": 3,
-          "tagName": null,
-          "data": "some stray text",
-          "nodeValue": "some stray text",
-          "childNodes": null,
-          "firstChild": null,
-          "lastChild": null
-        },
-        {
-          "type": "tag",
-          "nodeType": 1,
-          "name": "h1",
-          "tagName": "h1",
-          "nodeValue": null,
-          "attribs": {},
-          "children": [
-            {
-              "type": "text",
-              "nodeType": 3,
-              "tagName": null,
-              "data": "Hello, world.",
-              "nodeValue": "Hello, world.",
-              "childNodes": null,
-              "firstChild": null,
-              "lastChild": null
-            }
-          ],
-          "firstChild": {
-            "type": "text",
-            "nodeType": 3,
-            "tagName": null,
-            "data": "Hello, world.",
-            "nodeValue": "Hello, world.",
-            "childNodes": null,
-            "firstChild": null,
-            "lastChild": null
-          },
-          "lastChild": {
-            "type": "text",
-            "nodeType": 3,
-            "tagName": null,
-            "data": "Hello, world.",
-            "nodeValue": "Hello, world.",
-            "childNodes": null,
-            "firstChild": null,
-            "lastChild": null
-          }
-        },
-        {
-          "type": "comment",
-          "nodeType": 8,
-          "tagName": null,
-          "data": " comment node ",
-          "nodeValue": " comment node ",
-          "childNodes": null,
-          "firstChild": null,
-          "lastChild": null,
-          "prev": {
-            "type": "tag",
-            "name": "h1",
-            "nodeValue": null,
-            "attribs": {}
-          },
-          "previousSibling": {
-            "type": "tag",
-            "name": "h1",
-            "nodeValue": null,
-            "attribs": {}
-          },
-          "next": {
-            "type": "text",
-            "tagName": null,
-            "data": "more stray text"
-          },
-          "nextSibling": {
-            "type": "text",
-            "tagName": null,
-            "data": "more stray text"
-          }
-        },
-        {
-          "type": "text",
-          "nodeType": 3,
-          "tagName": null,
-          "data": "more stray text",
-          "nodeValue": "more stray text",
-          "childNodes": null,
-          "firstChild": null,
-          "lastChild": null,
-          "next": null,
-          "nextSibling": null
-        }
-      ],
-      "firstChild": {
-        "type": "text",
-        "nodeType": 3,
-        "tagName": null,
-        "data": "some stray text",
-        "nodeValue": "some stray text",
-        "childNodes": null,
-        "firstChild": null,
-        "lastChild": null
-       },
-       "lastChild": {
-          "type": "text",
-          "nodeType": 3,
-          "tagName": null,
-          "data": "more stray text",
-          "nodeValue": "more stray text",
-          "childNodes": null,
-          "firstChild": null,
-          "lastChild": null
-        }
-    }
-  ]
-}

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/cases/24-with-start-indices.json
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/cases/24-with-start-indices.json b/node_modules/domhandler/test/cases/24-with-start-indices.json
deleted file mode 100644
index 02228f1..0000000
--- a/node_modules/domhandler/test/cases/24-with-start-indices.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
-  "name": "withStartIndices adds correct startIndex properties",
-  "options": {"withStartIndices": true},
-  "streaming": false,
-  "html": "<!DOCTYPE html> <html> <title>The Title</title> <body class='foo'>Hello world <p></p></body> <!-- the comment --> </html> ",
-  "expected": [
-    {
-      "startIndex": 0,
-      "name": "!doctype",
-      "data": "!DOCTYPE html",
-      "type": "directive"
-    },
-    {
-      "type": "text",
-      "data": " "
-    },
-    {
-      "startIndex": 16,
-      "type": "tag",
-      "name": "html",
-      "attribs": {},
-      "parent": null,
-      "children": [
-        {
-          "startIndex": 22,
-          "type": "text",
-          "data": " "
-        },
-        {
-          "startIndex": 23,
-          "type": "tag",
-          "name": "title",
-          "attribs": {},
-          "children": [
-            {
-              "startIndex": 30,
-              "data": "The Title",
-              "type": "text"
-            }
-          ]
-        },
-        {
-          "startIndex": 47,
-          "type": "text",
-          "data": " "
-        },
-        {
-          "startIndex": 48,
-          "type": "tag",
-          "name": "body",
-          "attribs": {"class": "foo"},
-          "children": [
-            {
-              "startIndex": 66,
-              "data": "Hello world ",
-              "type": "text"
-            },
-            {
-              "startIndex": 78,
-              "type": "tag",
-              "name": "p",
-              "attribs": {},
-              "children": []
-            }
-          ]
-        },
-        {
-          "startIndex": 92,
-          "type": "text",
-          "data": " "
-        },
-        {
-          "startIndex": 93,
-          "type": "comment",
-          "data": " the comment "
-        },
-        {
-          "startIndex": 113,
-          "type": "text",
-          "data": " "
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domhandler/test/tests.js
----------------------------------------------------------------------
diff --git a/node_modules/domhandler/test/tests.js b/node_modules/domhandler/test/tests.js
deleted file mode 100644
index 6dc96a2..0000000
--- a/node_modules/domhandler/test/tests.js
+++ /dev/null
@@ -1,60 +0,0 @@
-var fs = require("fs"),
-    path = require("path"),
-    assert = require("assert"),
-    util = require("util"),
-    Parser = require("htmlparser2").Parser,
-    Handler = require("../");
-
-var basePath = path.resolve(__dirname, "cases"),
-    inspectOpts = { showHidden: true, depth: null };
-
-fs
-.readdirSync(basePath)
-.filter(RegExp.prototype.test, /\.json$/) //only allow .json files
-.map(function(name){
-	return path.resolve(basePath, name);
-})
-.map(require)
-.forEach(function(test){
-	it(test.name, function(){
-		var expected = test.expected;
-
-		var handler = new Handler(function(err, actual){
-			assert.ifError(err);
-			try {
-				compare(expected, actual);
-			} catch(e){
-				e.expected = util.inspect(expected, inspectOpts);
-				e.actual   = util.inspect(actual,   inspectOpts);
-				throw e;
-			}
-		}, test.options);
-
-		var data = test.html;
-
-		var parser = new Parser(handler, test.options);
-
-		//first, try to run the test via chunks
-		if (test.streaming || test.streaming === undefined){
-			for(var i = 0; i < data.length; i++){
-				parser.write(data.charAt(i));
-			}
-			parser.done();
-		}
-
-		//then parse everything
-		parser.parseComplete(data);
-	});
-});
-
-function compare(expected, result){
-	assert.equal(typeof expected, typeof result, "types didn't match");
-	if(typeof expected !== "object" || expected === null){
-		assert.strictEqual(expected, result, "result doesn't equal expected");
-	} else {
-		for(var prop in expected){
-			assert.ok(prop in result, "result didn't contain property " + prop);
-			compare(expected[prop], result[prop]);
-		}
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/domutils/.npmignore b/node_modules/domutils/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/node_modules/domutils/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/domutils/LICENSE b/node_modules/domutils/LICENSE
deleted file mode 100644
index c464f86..0000000
--- a/node_modules/domutils/LICENSE
+++ /dev/null
@@ -1,11 +0,0 @@
-Copyright (c) Felix Böhm
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
-Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
-THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/index.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/index.js b/node_modules/domutils/index.js
deleted file mode 100644
index 13f3344..0000000
--- a/node_modules/domutils/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var DomUtils = module.exports;
-
-[
-	require("./lib/stringify"),
-	require("./lib/traversal"),
-	require("./lib/manipulation"),
-	require("./lib/querying"),
-	require("./lib/legacy"),
-	require("./lib/helpers")
-].forEach(function(ext){
-	Object.keys(ext).forEach(function(key){
-		DomUtils[key] = ext[key].bind(DomUtils);
-	});
-});

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/helpers.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/helpers.js b/node_modules/domutils/lib/helpers.js
deleted file mode 100644
index 57056f6..0000000
--- a/node_modules/domutils/lib/helpers.js
+++ /dev/null
@@ -1,141 +0,0 @@
-// removeSubsets
-// Given an array of nodes, remove any member that is contained by another.
-exports.removeSubsets = function(nodes) {
-	var idx = nodes.length, node, ancestor, replace;
-
-	// Check if each node (or one of its ancestors) is already contained in the
-	// array.
-	while (--idx > -1) {
-		node = ancestor = nodes[idx];
-
-		// Temporarily remove the node under consideration
-		nodes[idx] = null;
-		replace = true;
-
-		while (ancestor) {
-			if (nodes.indexOf(ancestor) > -1) {
-				replace = false;
-				nodes.splice(idx, 1);
-				break;
-			}
-			ancestor = ancestor.parent;
-		}
-
-		// If the node has been found to be unique, re-insert it.
-		if (replace) {
-			nodes[idx] = node;
-		}
-	}
-
-	return nodes;
-};
-
-// Source: http://dom.spec.whatwg.org/#dom-node-comparedocumentposition
-var POSITION = {
-	DISCONNECTED: 1,
-	PRECEDING: 2,
-	FOLLOWING: 4,
-	CONTAINS: 8,
-	CONTAINED_BY: 16
-};
-
-// Compare the position of one node against another node in any other document.
-// The return value is a bitmask with the following values:
-//
-// document order:
-// > There is an ordering, document order, defined on all the nodes in the
-// > document corresponding to the order in which the first character of the
-// > XML representation of each node occurs in the XML representation of the
-// > document after expansion of general entities. Thus, the document element
-// > node will be the first node. Element nodes occur before their children.
-// > Thus, document order orders element nodes in order of the occurrence of
-// > their start-tag in the XML (after expansion of entities). The attribute
-// > nodes of an element occur after the element and before its children. The
-// > relative order of attribute nodes is implementation-dependent./
-// Source:
-// http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
-//
-// @argument {Node} nodaA The first node to use in the comparison
-// @argument {Node} nodeB The second node to use in the comparison
-//
-// @return {Number} A bitmask describing the input nodes' relative position.
-//         See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
-//         a description of these values.
-var comparePos = exports.compareDocumentPosition = function(nodeA, nodeB) {
-	var aParents = [];
-	var bParents = [];
-	var current, sharedParent, siblings, aSibling, bSibling, idx;
-
-	if (nodeA === nodeB) {
-		return 0;
-	}
-
-	current = nodeA;
-	while (current) {
-		aParents.unshift(current);
-		current = current.parent;
-	}
-	current = nodeB;
-	while (current) {
-		bParents.unshift(current);
-		current = current.parent;
-	}
-
-	idx = 0;
-	while (aParents[idx] === bParents[idx]) {
-		idx++;
-	}
-
-	if (idx === 0) {
-		return POSITION.DISCONNECTED;
-	}
-
-	sharedParent = aParents[idx - 1];
-	siblings = sharedParent.children;
-	aSibling = aParents[idx];
-	bSibling = bParents[idx];
-
-	if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {
-		if (sharedParent === nodeB) {
-			return POSITION.FOLLOWING | POSITION.CONTAINED_BY;
-		}
-		return POSITION.FOLLOWING;
-	} else {
-		if (sharedParent === nodeA) {
-			return POSITION.PRECEDING | POSITION.CONTAINS;
-		}
-		return POSITION.PRECEDING;
-	}
-};
-
-// Sort an array of nodes based on their relative position in the document and
-// remove any duplicate nodes. If the array contains nodes that do not belong
-// to the same document, sort order is unspecified.
-//
-// @argument {Array} nodes Array of DOM nodes
-//
-// @returns {Array} collection of unique nodes, sorted in document order
-exports.uniqueSort = function(nodes) {
-	var idx = nodes.length, node, position;
-
-	nodes = nodes.slice();
-
-	while (--idx > -1) {
-		node = nodes[idx];
-		position = nodes.indexOf(node);
-		if (position > -1 && position < idx) {
-			nodes.splice(idx, 1);
-		}
-	}
-	nodes.sort(function(a, b) {
-		var relative = comparePos(a, b);
-		if (relative & POSITION.PRECEDING) {
-			return -1;
-		} else if (relative & POSITION.FOLLOWING) {
-			return 1;
-		}
-		return 0;
-	});
-
-	return nodes;
-};

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/legacy.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/legacy.js b/node_modules/domutils/lib/legacy.js
deleted file mode 100644
index 43bd446..0000000
--- a/node_modules/domutils/lib/legacy.js
+++ /dev/null
@@ -1,87 +0,0 @@
-var ElementType = require("domelementtype");
-var isTag = exports.isTag = ElementType.isTag;
-
-exports.testElement = function(options, element){
-	for(var key in options){
-		if(!options.hasOwnProperty(key));
-		else if(key === "tag_name"){
-			if(!isTag(element) || !options.tag_name(element.name)){
-				return false;
-			}
-		} else if(key === "tag_type"){
-			if(!options.tag_type(element.type)) return false;
-		} else if(key === "tag_contains"){
-			if(isTag(element) || !options.tag_contains(element.data)){
-				return false;
-			}
-		} else if(!element.attribs || !options[key](element.attribs[key])){
-			return false;
-		}
-	}
-	return true;
-};
-
-var Checks = {
-	tag_name: function(name){
-		if(typeof name === "function"){
-			return function(elem){ return isTag(elem) && name(elem.name); };
-		} else if(name === "*"){
-			return isTag;
-		} else {
-			return function(elem){ return isTag(elem) && elem.name === name; };
-		}
-	},
-	tag_type: function(type){
-		if(typeof type === "function"){
-			return function(elem){ return type(elem.type); };
-		} else {
-			return function(elem){ return elem.type === type; };
-		}
-	},
-	tag_contains: function(data){
-		if(typeof data === "function"){
-			return function(elem){ return !isTag(elem) && data(elem.data); };
-		} else {
-			return function(elem){ return !isTag(elem) && elem.data === data; };
-		}
-	}
-};
-
-function getAttribCheck(attrib, value){
-	if(typeof value === "function"){
-		return function(elem){ return elem.attribs && value(elem.attribs[attrib]); };
-	} else {
-		return function(elem){ return elem.attribs && elem.attribs[attrib] === value; };
-	}
-}
-
-function combineFuncs(a, b){
-	return function(elem){
-		return a(elem) || b(elem);
-	};
-}
-
-exports.getElements = function(options, element, recurse, limit){
-	var funcs = Object.keys(options).map(function(key){
-		var value = options[key];
-		return key in Checks ? Checks[key](value) : getAttribCheck(key, value);
-	});
-
-	return funcs.length === 0 ? [] : this.filter(
-		funcs.reduce(combineFuncs),
-		element, recurse, limit
-	);
-};
-
-exports.getElementById = function(id, element, recurse){
-	if(!Array.isArray(element)) element = [element];
-	return this.findOne(getAttribCheck("id", id), element, recurse !== false);
-};
-
-exports.getElementsByTagName = function(name, element, recurse, limit){
-	return this.filter(Checks.tag_name(name), element, recurse, limit);
-};
-
-exports.getElementsByTagType = function(type, element, recurse, limit){
-	return this.filter(Checks.tag_type(type), element, recurse, limit);
-};

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/manipulation.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/manipulation.js b/node_modules/domutils/lib/manipulation.js
deleted file mode 100644
index 6b44cbc..0000000
--- a/node_modules/domutils/lib/manipulation.js
+++ /dev/null
@@ -1,77 +0,0 @@
-exports.removeElement = function(elem){
-	if(elem.prev) elem.prev.next = elem.next;
-	if(elem.next) elem.next.prev = elem.prev;
-
-	if(elem.parent){
-		var childs = elem.parent.children;
-		childs.splice(childs.lastIndexOf(elem), 1);
-	}
-};
-
-exports.replaceElement = function(elem, replacement){
-	var prev = replacement.prev = elem.prev;
-	if(prev){
-		prev.next = replacement;
-	}
-
-	var next = replacement.next = elem.next;
-	if(next){
-		next.prev = replacement;
-	}
-
-	var parent = replacement.parent = elem.parent;
-	if(parent){
-		var childs = parent.children;
-		childs[childs.lastIndexOf(elem)] = replacement;
-	}
-};
-
-exports.appendChild = function(elem, child){
-	child.parent = elem;
-
-	if(elem.children.push(child) !== 1){
-		var sibling = elem.children[elem.children.length - 2];
-		sibling.next = child;
-		child.prev = sibling;
-		child.next = null;
-	}
-};
-
-exports.append = function(elem, next){
-	var parent = elem.parent,
-		currNext = elem.next;
-
-	next.next = currNext;
-	next.prev = elem;
-	elem.next = next;
-	next.parent = parent;
-
-	if(currNext){
-		currNext.prev = next;
-		if(parent){
-			var childs = parent.children;
-			childs.splice(childs.lastIndexOf(currNext), 0, next);
-		}
-	} else if(parent){
-		parent.children.push(next);
-	}
-};
-
-exports.prepend = function(elem, prev){
-	var parent = elem.parent;
-	if(parent){
-		var childs = parent.children;
-		childs.splice(childs.lastIndexOf(elem), 0, prev);
-	}
-
-	if(elem.prev){
-		elem.prev.next = prev;
-	}
-	
-	prev.parent = parent;
-	prev.prev = elem.prev;
-	prev.next = elem;
-	elem.prev = prev;
-};
-
-

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/querying.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/querying.js b/node_modules/domutils/lib/querying.js
deleted file mode 100644
index 17e3aa9..0000000
--- a/node_modules/domutils/lib/querying.js
+++ /dev/null
@@ -1,94 +0,0 @@
-var isTag = require("domelementtype").isTag;
-
-module.exports = {
-	filter: filter,
-	find: find,
-	findOneChild: findOneChild,
-	findOne: findOne,
-	existsOne: existsOne,
-	findAll: findAll
-};
-
-function filter(test, element, recurse, limit){
-	if(!Array.isArray(element)) element = [element];
-
-	if(typeof limit !== "number" || !isFinite(limit)){
-		limit = Infinity;
-	}
-	return find(test, element, recurse !== false, limit);
-}
-
-function find(test, elems, recurse, limit){
-	var result = [], childs;
-
-	for(var i = 0, j = elems.length; i < j; i++){
-		if(test(elems[i])){
-			result.push(elems[i]);
-			if(--limit <= 0) break;
-		}
-
-		childs = elems[i].children;
-		if(recurse && childs && childs.length > 0){
-			childs = find(test, childs, recurse, limit);
-			result = result.concat(childs);
-			limit -= childs.length;
-			if(limit <= 0) break;
-		}
-	}
-
-	return result;
-}
-
-function findOneChild(test, elems){
-	for(var i = 0, l = elems.length; i < l; i++){
-		if(test(elems[i])) return elems[i];
-	}
-
-	return null;
-}
-
-function findOne(test, elems){
-	var elem = null;
-
-	for(var i = 0, l = elems.length; i < l && !elem; i++){
-		if(!isTag(elems[i])){
-			continue;
-		} else if(test(elems[i])){
-			elem = elems[i];
-		} else if(elems[i].children.length > 0){
-			elem = findOne(test, elems[i].children);
-		}
-	}
-
-	return elem;
-}
-
-function existsOne(test, elems){
-	for(var i = 0, l = elems.length; i < l; i++){
-		if(
-			isTag(elems[i]) && (
-				test(elems[i]) || (
-					elems[i].children.length > 0 &&
-					existsOne(test, elems[i].children)
-				)
-			)
-		){
-			return true;
-		}
-	}
-
-	return false;
-}
-
-function findAll(test, elems){
-	var result = [];
-	for(var i = 0, j = elems.length; i < j; i++){
-		if(!isTag(elems[i])) continue;
-		if(test(elems[i])) result.push(elems[i]);
-
-		if(elems[i].children.length > 0){
-			result = result.concat(findAll(test, elems[i].children));
-		}
-	}
-	return result;
-}

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/stringify.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/stringify.js b/node_modules/domutils/lib/stringify.js
deleted file mode 100644
index e3f2f39..0000000
--- a/node_modules/domutils/lib/stringify.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var ElementType = require("domelementtype"),
-    getOuterHTML = require("dom-serializer"),
-    isTag = ElementType.isTag;
-
-module.exports = {
-	getInnerHTML: getInnerHTML,
-	getOuterHTML: getOuterHTML,
-	getText: getText
-};
-
-function getInnerHTML(elem, opts){
-	return elem.children ? elem.children.map(function(elem){
-		return getOuterHTML(elem, opts);
-	}).join("") : "";
-}
-
-function getText(elem){
-	if(Array.isArray(elem)) return elem.map(getText).join("");
-	if(isTag(elem) || elem.type === ElementType.CDATA) return getText(elem.children);
-	if(elem.type === ElementType.Text) return elem.data;
-	return "";
-}

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/lib/traversal.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/lib/traversal.js b/node_modules/domutils/lib/traversal.js
deleted file mode 100644
index ffdfeb6..0000000
--- a/node_modules/domutils/lib/traversal.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var getChildren = exports.getChildren = function(elem){
-	return elem.children;
-};
-
-var getParent = exports.getParent = function(elem){
-	return elem.parent;
-};
-
-exports.getSiblings = function(elem){
-	var parent = getParent(elem);
-	return parent ? getChildren(parent) : [elem];
-};
-
-exports.getAttributeValue = function(elem, name){
-	return elem.attribs && elem.attribs[name];
-};
-
-exports.hasAttrib = function(elem, name){
-	return !!elem.attribs && hasOwnProperty.call(elem.attribs, name);
-};
-
-exports.getName = function(elem){
-	return elem.name;
-};

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/package.json
----------------------------------------------------------------------
diff --git a/node_modules/domutils/package.json b/node_modules/domutils/package.json
deleted file mode 100644
index 9eee18b..0000000
--- a/node_modules/domutils/package.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
-  "_args": [
-    [
-      {
-        "name": "domutils",
-        "raw": "domutils@1.5",
-        "rawSpec": "1.5",
-        "scope": null,
-        "spec": ">=1.5.0 <1.6.0",
-        "type": "range"
-      },
-      "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/htmlparser2"
-    ]
-  ],
-  "_from": "domutils@>=1.5.0 <1.6.0",
-  "_id": "domutils@1.5.1",
-  "_inCache": true,
-  "_installable": true,
-  "_location": "/domutils",
-  "_nodeVersion": "1.0.4",
-  "_npmUser": {
-    "email": "me@feedic.com",
-    "name": "feedic"
-  },
-  "_npmVersion": "2.3.0",
-  "_phantomChildren": {},
-  "_requested": {
-    "name": "domutils",
-    "raw": "domutils@1.5",
-    "rawSpec": "1.5",
-    "scope": null,
-    "spec": ">=1.5.0 <1.6.0",
-    "type": "range"
-  },
-  "_requiredBy": [
-    "/htmlparser2"
-  ],
-  "_resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
-  "_shasum": "dcd8488a26f563d61079e48c9f7b7e32373682cf",
-  "_shrinkwrap": null,
-  "_spec": "domutils@1.5",
-  "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/htmlparser2",
-  "author": {
-    "email": "me@feedic.com",
-    "name": "Felix Boehm"
-  },
-  "bugs": {
-    "url": "https://github.com/FB55/domutils/issues"
-  },
-  "dependencies": {
-    "dom-serializer": "0",
-    "domelementtype": "1"
-  },
-  "description": "utilities for working with htmlparser2's dom",
-  "devDependencies": {
-    "domhandler": "2",
-    "htmlparser2": "~3.3.0",
-    "jshint": "~2.3.0",
-    "mocha": "~1.15.1"
-  },
-  "directories": {
-    "test": "tests"
-  },
-  "dist": {
-    "shasum": "dcd8488a26f563d61079e48c9f7b7e32373682cf",
-    "tarball": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz"
-  },
-  "gitHead": "7d4bd16cd36ffce62362ef91616806ea27e30d95",
-  "homepage": "https://github.com/FB55/domutils",
-  "jshintConfig": {
-    "eqeqeq": true,
-    "eqnull": true,
-    "globals": {
-      "beforeEach": true,
-      "describe": true,
-      "it": true
-    },
-    "node": true,
-    "proto": true,
-    "quotmark": "double",
-    "trailing": true,
-    "undef": true,
-    "unused": true
-  },
-  "keywords": [
-    "dom",
-    "htmlparser2"
-  ],
-  "main": "index.js",
-  "maintainers": [
-    {
-      "email": "me@feedic.com",
-      "name": "feedic"
-    }
-  ],
-  "name": "domutils",
-  "optionalDependencies": {},
-  "readme": "ERROR: No README data found!",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/FB55/domutils.git"
-  },
-  "scripts": {
-    "test": "mocha test/tests/**.js && jshint index.js test/**/*.js lib/*.js"
-  },
-  "version": "1.5.1"
-}

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/readme.md
----------------------------------------------------------------------
diff --git a/node_modules/domutils/readme.md b/node_modules/domutils/readme.md
deleted file mode 100644
index 9ccdda6..0000000
--- a/node_modules/domutils/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-utilities for working with htmlparser2's dom

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/test/fixture.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/test/fixture.js b/node_modules/domutils/test/fixture.js
deleted file mode 100644
index 9bd791b..0000000
--- a/node_modules/domutils/test/fixture.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var makeDom = require("./utils").makeDom;
-var markup = Array(21).join(
-	"<?xml><tag1 id='asdf'> <script>text</script> <!-- comment --> <tag2> text </tag1>"
-);
-
-module.exports = makeDom(markup);

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/test/tests/helpers.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/test/tests/helpers.js b/node_modules/domutils/test/tests/helpers.js
deleted file mode 100644
index 2e30afb..0000000
--- a/node_modules/domutils/test/tests/helpers.js
+++ /dev/null
@@ -1,89 +0,0 @@
-var makeDom = require("../utils").makeDom;
-var helpers = require("../..");
-var assert = require("assert");
-
-describe("helpers", function() {
-	describe("removeSubsets", function() {
-		var removeSubsets = helpers.removeSubsets;
-		var dom = makeDom("<div><p><span></span></p><p></p></div>")[0];
-
-		it("removes identical trees", function() {
-			var matches = removeSubsets([dom, dom]);
-			assert.equal(matches.length, 1);
-		});
-
-		it("Removes subsets found first", function() {
-			var matches = removeSubsets([dom, dom.children[0].children[0]]);
-			assert.equal(matches.length, 1);
-		});
-
-		it("Removes subsets found last", function() {
-			var matches = removeSubsets([dom.children[0], dom]);
-			assert.equal(matches.length, 1);
-		});
-
-		it("Does not remove unique trees", function() {
-			var matches = removeSubsets([dom.children[0], dom.children[1]]);
-			assert.equal(matches.length, 2);
-		});
-	});
-
-	describe("compareDocumentPosition", function() {
-		var compareDocumentPosition = helpers.compareDocumentPosition;
-		var markup = "<div><p><span></span></p><a></a></div>";
-		var dom = makeDom(markup)[0];
-		var p = dom.children[0];
-		var span = p.children[0];
-		var a = dom.children[1];
-
-		it("reports when the first node occurs before the second indirectly", function() {
-			assert.equal(compareDocumentPosition(span, a), 2);
-		});
-
-		it("reports when the first node contains the second", function() {
-			assert.equal(compareDocumentPosition(p, span), 10);
-		});
-
-		it("reports when the first node occurs after the second indirectly", function() {
-			assert.equal(compareDocumentPosition(a, span), 4);
-		});
-
-		it("reports when the first node is contained by the second", function() {
-			assert.equal(compareDocumentPosition(span, p), 20);
-		});
-
-		it("reports when the nodes belong to separate documents", function() {
-			var other = makeDom(markup)[0].children[0].children[0];
-
-			assert.equal(compareDocumentPosition(span, other), 1);
-		});
-
-		it("reports when the nodes are identical", function() {
-			assert.equal(compareDocumentPosition(span, span), 0);
-		});
-	});
-
-	describe("uniqueSort", function() {
-		var uniqueSort = helpers.uniqueSort;
-		var dom, p, span, a;
-
-		beforeEach(function() {
-			dom = makeDom("<div><p><span></span></p><a></a></div>")[0];
-			p = dom.children[0];
-			span = p.children[0];
-			a = dom.children[1];
-		});
-
-		it("leaves unique elements untouched", function() {
-			assert.deepEqual(uniqueSort([p, a]), [p, a]);
-		});
-
-		it("removes duplicate elements", function() {
-			assert.deepEqual(uniqueSort([p, a, p]), [p, a]);
-		});
-
-		it("sorts nodes in document order", function() {
-			assert.deepEqual(uniqueSort([a, dom, span, p]), [dom, p, span, a]);
-		});
-	});
-});

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/test/tests/legacy.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/test/tests/legacy.js b/node_modules/domutils/test/tests/legacy.js
deleted file mode 100644
index 87fabfa..0000000
--- a/node_modules/domutils/test/tests/legacy.js
+++ /dev/null
@@ -1,119 +0,0 @@
-var DomUtils = require("../..");
-var fixture = require("../fixture");
-var assert = require("assert");
-
-// Set up expected structures
-var expected = {
-	idAsdf: fixture[1],
-	tag2: [],
-	typeScript: []
-};
-for (var idx = 0; idx < 20; ++idx) {
-	expected.tag2.push(fixture[idx*2 + 1].children[5]);
-	expected.typeScript.push(fixture[idx*2 + 1].children[1]);
-}
-
-describe("legacy", function() {
-	describe("getElements", function() {
-		var getElements = DomUtils.getElements;
-		it("returns the node with the specified ID", function() {
-			assert.deepEqual(
-				getElements({ id: "asdf" }, fixture, true, 1),
-				[expected.idAsdf]
-			);
-		});
-		it("returns empty array for unknown IDs", function() {
-			assert.deepEqual(getElements({ id: "asdfs" }, fixture, true), []);
-		});
-		it("returns the nodes with the specified tag name", function() {
-			assert.deepEqual(
-				getElements({ tag_name:"tag2" }, fixture, true),
-				expected.tag2
-			);
-		});
-		it("returns empty array for unknown tag names", function() {
-			assert.deepEqual(
-				getElements({ tag_name : "asdfs" }, fixture, true),
-				[]
-			);
-		});
-		it("returns the nodes with the specified tag type", function() {
-			assert.deepEqual(
-				getElements({ tag_type: "script" }, fixture, true),
-				expected.typeScript
-			);
-		});
-		it("returns empty array for unknown tag types", function() {
-			assert.deepEqual(
-				getElements({ tag_type: "video" }, fixture, true),
-				[]
-			);
-		});
-	});
-
-	describe("getElementById", function() {
-		var getElementById = DomUtils.getElementById;
-		it("returns the specified node", function() {
-			assert.equal(
-				expected.idAsdf,
-				getElementById("asdf", fixture, true)
-			);
-		});
-		it("returns `null` for unknown IDs", function() {
-			assert.equal(null, getElementById("asdfs", fixture, true));
-		});
-	});
-
-	describe("getElementsByTagName", function() {
-		var getElementsByTagName = DomUtils.getElementsByTagName;
-		it("returns the specified nodes", function() {
-			assert.deepEqual(
-				getElementsByTagName("tag2", fixture, true),
-				expected.tag2
-			);
-		});
-		it("returns empty array for unknown tag names", function() {
-			assert.deepEqual(
-				getElementsByTagName("tag23", fixture, true),
-				[]
-			);
-		});
-	});
-
-	describe("getElementsByTagType", function() {
-		var getElementsByTagType = DomUtils.getElementsByTagType;
-		it("returns the specified nodes", function() {
-			assert.deepEqual(
-				getElementsByTagType("script", fixture, true),
-				expected.typeScript
-			);
-		});
-		it("returns empty array for unknown tag types", function() {
-			assert.deepEqual(
-				getElementsByTagType("video", fixture, true),
-				[]
-			);
-		});
-	});
-
-	describe("getOuterHTML", function() {
-		var getOuterHTML = DomUtils.getOuterHTML;
-		it("Correctly renders the outer HTML", function() {
-			assert.equal(
-				getOuterHTML(fixture[1]),
-				"<tag1 id=\"asdf\"> <script>text</script> <!-- comment --> <tag2> text </tag2></tag1>"
-			);
-		});
-	});
-
-	describe("getInnerHTML", function() {
-		var getInnerHTML = DomUtils.getInnerHTML;
-		it("Correctly renders the inner HTML", function() {
-			assert.equal(
-				getInnerHTML(fixture[1]),
-				" <script>text</script> <!-- comment --> <tag2> text </tag2>"
-			);
-		});
-	});
-
-});

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/test/tests/traversal.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/test/tests/traversal.js b/node_modules/domutils/test/tests/traversal.js
deleted file mode 100644
index f500e08..0000000
--- a/node_modules/domutils/test/tests/traversal.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var makeDom = require("../utils").makeDom;
-var traversal = require("../..");
-var assert = require("assert");
-
-describe("traversal", function() {
-  describe("hasAttrib", function() {
-    var hasAttrib = traversal.hasAttrib;
-
-    it("doesn't throw on text nodes", function() {
-      var dom = makeDom("textnode");
-      assert.doesNotThrow(function() {
-        hasAttrib(dom[0], "some-attrib");
-      });
-    });
-
-  });
-});

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/domutils/test/utils.js
----------------------------------------------------------------------
diff --git a/node_modules/domutils/test/utils.js b/node_modules/domutils/test/utils.js
deleted file mode 100644
index 676e8f6..0000000
--- a/node_modules/domutils/test/utils.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var htmlparser = require("htmlparser2");
-
-exports.makeDom = function(markup) {
-	var handler = new htmlparser.DomHandler(),
-		parser = new htmlparser.Parser(handler);
-	parser.write(markup);
-	parser.done();
-	return handler.dom;
-};

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/.npmignore b/node_modules/elementtree/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/node_modules/elementtree/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/.travis.yml
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/.travis.yml b/node_modules/elementtree/.travis.yml
deleted file mode 100644
index 6f27c96..0000000
--- a/node_modules/elementtree/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-language: node_js
-
-node_js:
-  - 0.6
-
-script: make test
-
-notifications:
-  email:
-    - tomaz+travisci@tomaz.me

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/CHANGES.md
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/CHANGES.md b/node_modules/elementtree/CHANGES.md
deleted file mode 100644
index 50d415d..0000000
--- a/node_modules/elementtree/CHANGES.md
+++ /dev/null
@@ -1,39 +0,0 @@
-elementtree v0.1.6 (in development)
-
-* Add support for CData elements. (#14)
-  [hermannpencole]
-
-elementtree v0.1.5 - 2012-11-14
-
-* Fix a bug in the find() and findtext() method which could manifest itself
-  under some conditions.
-  [metagriffin]
-
-elementtree v0.1.4 - 2012-10-15
-
-* Allow user to use namespaced attributes when using find* functions.
-  [Andrew Lunny]
-
-elementtree v0.1.3 - 2012-09-21
-
-* Improve the output of text content in the tags (strip unnecessary line break
-  characters).
-
-[Darryl Pogue]
-
-elementtree v0.1.2 - 2012-09-04
-
- * Allow user to pass 'indent' option to ElementTree.write method. If this
-   option is specified (e.g. {'indent': 4}). XML will be pretty printed.
-   [Darryl Pogue, Tomaz Muraus]
-
- * Bump sax dependency version.
-
-elementtree v0.1.1 - 2011-09-23
-
- * Improve special character escaping.
-   [Ryan Phillips]
-
-elementtree v0.1.0 - 2011-09-05
-
- * Initial release.

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/LICENSE.txt
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/LICENSE.txt b/node_modules/elementtree/LICENSE.txt
deleted file mode 100644
index 6b0b127..0000000
--- a/node_modules/elementtree/LICENSE.txt
+++ /dev/null
@@ -1,203 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed 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.
-

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/Makefile
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/Makefile b/node_modules/elementtree/Makefile
deleted file mode 100755
index ab7c4e0..0000000
--- a/node_modules/elementtree/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-TESTS := \
-	tests/test-simple.js
-
-
-
-PATH := ./node_modules/.bin:$(PATH)
-
-WHISKEY := $(shell bash -c 'PATH=$(PATH) type -p whiskey')
-
-default: test
-
-test:
-	NODE_PATH=`pwd`/lib/ ${WHISKEY} --scope-leaks --sequential --real-time --tests "${TESTS}"
-
-tap:
-	NODE_PATH=`pwd`/lib/ ${WHISKEY} --test-reporter tap --sequential --real-time --tests "${TESTS}"
-
-coverage:
-	NODE_PATH=`pwd`/lib/ ${WHISKEY} --sequential --coverage  --coverage-reporter html --coverage-dir coverage_html --tests "${TESTS}"
-
-.PHONY: default test coverage tap scope

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/NOTICE
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/NOTICE b/node_modules/elementtree/NOTICE
deleted file mode 100644
index 28ad70a..0000000
--- a/node_modules/elementtree/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-node-elementtree
-Copyright (c) 2011, Rackspace, Inc.
-
-The ElementTree toolkit is Copyright (c) 1999-2007 by Fredrik Lundh
-

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/README.md
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/README.md b/node_modules/elementtree/README.md
deleted file mode 100644
index 738420c..0000000
--- a/node_modules/elementtree/README.md
+++ /dev/null
@@ -1,141 +0,0 @@
-node-elementtree
-====================
-
-node-elementtree is a [Node.js](http://nodejs.org) XML parser and serializer based upon the [Python ElementTree v1.3](http://effbot.org/zone/element-index.htm) module.
-
-Installation
-====================
-
-    $ npm install elementtree
-    
-Using the library
-====================
-
-For the usage refer to the Python ElementTree library documentation - [http://effbot.org/zone/element-index.htm#usage](http://effbot.org/zone/element-index.htm#usage).
-
-Supported XPath expressions in `find`, `findall` and `findtext` methods are listed on [http://effbot.org/zone/element-xpath.htm](http://effbot.org/zone/element-xpath.htm).
-
-Example 1 – Creating An XML Document
-====================
-
-This example shows how to build a valid XML document that can be published to
-Atom Hopper. Atom Hopper is used internally as a bridge from products all the
-way to collecting revenue, called “Usage.”  MaaS and other products send similar
-events to it every time user performs an action on a resource
-(e.g. creates,updates or deletes). Below is an example of leveraging the API
-to create a new XML document.
-
-```javascript
-var et = require('elementtree');
-var XML = et.XML;
-var ElementTree = et.ElementTree;
-var element = et.Element;
-var subElement = et.SubElement;
-
-var date, root, tenantId, serviceName, eventType, usageId, dataCenter, region,
-checks, resourceId, category, startTime, resourceName, etree, xml;
-
-date = new Date();
-
-root = element('entry');
-root.set('xmlns', 'http://www.w3.org/2005/Atom');
-
-tenantId = subElement(root, 'TenantId');
-tenantId.text = '12345';
-
-serviceName = subElement(root, 'ServiceName');
-serviceName.text = 'MaaS';
-
-resourceId = subElement(root, 'ResourceID');
-resourceId.text = 'enAAAA';
-
-usageId = subElement(root, 'UsageID');
-usageId.text = '550e8400-e29b-41d4-a716-446655440000';
-
-eventType = subElement(root, 'EventType');
-eventType.text = 'create';
-
-category = subElement(root, 'category');
-category.set('term', 'monitoring.entity.create');
-
-dataCenter = subElement(root, 'DataCenter');
-dataCenter.text = 'global';
-
-region = subElement(root, 'Region');
-region.text = 'global';
-
-startTime = subElement(root, 'StartTime');
-startTime.text = date;
-
-resourceName = subElement(root, 'ResourceName');
-resourceName.text = 'entity';
-
-etree = new ElementTree(root);
-xml = etree.write({'xml_declaration': false});
-console.log(xml);
-```
-
-As you can see, both et.Element and et.SubElement are factory methods which
-return a new instance of Element and SubElement class, respectively.
-When you create a new element (tag) you can use set method to set an attribute.
-To set the tag value, assign a value to the .text attribute.
-
-This example would output a document that looks like this:
-
-```xml
-<entry xmlns="http://www.w3.org/2005/Atom">
-  <TenantId>12345</TenantId>
-  <ServiceName>MaaS</ServiceName>
-  <ResourceID>enAAAA</ResourceID>
-  <UsageID>550e8400-e29b-41d4-a716-446655440000</UsageID>
-  <EventType>create</EventType>
-  <category term="monitoring.entity.create"/>
-  <DataCenter>global</DataCenter>
-  <Region>global</Region>
-  <StartTime>Sun Apr 29 2012 16:37:32 GMT-0700 (PDT)</StartTime>
-  <ResourceName>entity</ResourceName>
-</entry>
-```
-
-Example 2 – Parsing An XML Document
-====================
-
-This example shows how to parse an XML document and use simple XPath selectors.
-For demonstration purposes, we will use the XML document located at
-https://gist.github.com/2554343.
-
-Behind the scenes, node-elementtree uses Isaac’s sax library for parsing XML,
-but the library has a concept of “parsers,” which means it’s pretty simple to
-add support for a different parser.
-
-```javascript
-var fs = require('fs');
-
-var et = require('elementtree');
-
-var XML = et.XML;
-var ElementTree = et.ElementTree;
-var element = et.Element;
-var subElement = et.SubElement;
-
-var data, etree;
-
-data = fs.readFileSync('document.xml').toString();
-etree = et.parse(data);
-
-console.log(etree.findall('./entry/TenantId').length); // 2
-console.log(etree.findtext('./entry/ServiceName')); // MaaS
-console.log(etree.findall('./entry/category')[0].get('term')); // monitoring.entity.create
-console.log(etree.findall('*/category/[@term="monitoring.entity.update"]').length); // 1
-```
-
-Build status
-====================
-
-[![Build Status](https://secure.travis-ci.org/racker/node-elementtree.png)](http://travis-ci.org/racker/node-elementtree)
-
-
-License
-====================
-
-node-elementtree is distributed under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0.html).

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/lib/constants.js
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/lib/constants.js b/node_modules/elementtree/lib/constants.js
deleted file mode 100644
index b057faf..0000000
--- a/node_modules/elementtree/lib/constants.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- *  Copyright 2011 Rackspace
- *
- *  Licensed 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 DEFAULT_PARSER = 'sax';
-
-exports.DEFAULT_PARSER = DEFAULT_PARSER;

http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/elementtree/lib/elementpath.js
----------------------------------------------------------------------
diff --git a/node_modules/elementtree/lib/elementpath.js b/node_modules/elementtree/lib/elementpath.js
deleted file mode 100644
index 2e93f47..0000000
--- a/node_modules/elementtree/lib/elementpath.js
+++ /dev/null
@@ -1,343 +0,0 @@
-/**
- *  Copyright 2011 Rackspace
- *
- *  Licensed 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 sprintf = require('./sprintf').sprintf;
-
-var utils = require('./utils');
-var SyntaxError = require('./errors').SyntaxError;
-
-var _cache = {};
-
-var RE = new RegExp(
-  "(" +
-  "'[^']*'|\"[^\"]*\"|" +
-  "::|" +
-  "//?|" +
-  "\\.\\.|" +
-  "\\(\\)|" +
-  "[/.*:\\[\\]\\(\\)@=])|" +
-  "((?:\\{[^}]+\\})?[^/\\[\\]\\(\\)@=\\s]+)|" +
-  "\\s+", 'g'
-);
-
-var xpath_tokenizer = utils.findall.bind(null, RE);
-
-function prepare_tag(next, token) {
-  var tag = token[0];
-
-  function select(context, result) {
-    var i, len, elem, rv = [];
-
-    for (i = 0, len = result.length; i < len; i++) {
-      elem = result[i];
-      elem._children.forEach(function(e) {
-        if (e.tag === tag) {
-          rv.push(e);
-        }
-      });
-    }
-
-    return rv;
-  }
-
-  return select;
-}
-
-function prepare_star(next, token) {
-  function select(context, result) {
-    var i, len, elem, rv = [];
-
-    for (i = 0, len = result.length; i < len; i++) {
-      elem = result[i];
-      elem._children.forEach(function(e) {
-        rv.push(e);
-      });
-    }
-
-    return rv;
-  }
-
-  return select;
-}
-
-function prepare_dot(next, token) {
-  function select(context, result) {
-    var i, len, elem, rv = [];
-
-    for (i = 0, len = result.length; i < len; i++) {
-      elem = result[i];
-      rv.push(elem);
-    }
-
-    return rv;
-  }
-
-  return select;
-}
-
-function prepare_iter(next, token) {
-  var tag;
-  token = next();
-
-  if (token[1] === '*') {
-    tag = '*';
-  }
-  else if (!token[1]) {
-    tag = token[0] || '';
-  }
-  else {
-    throw new SyntaxError(token);
-  }
-
-  function select(context, result) {
-    var i, len, elem, rv = [];
-
-    for (i = 0, len = result.length; i < len; i++) {
-      elem = result[i];
-      elem.iter(tag, function(e) {
-        if (e !== elem) {
-          rv.push(e);
-        }
-      });
-    }
-
-    return rv;
-  }
-
-  return select;
-}
-
-function prepare_dot_dot(next, token) {
-  function select(context, result) {
-    var i, len, elem, rv = [], parent_map = context.parent_map;
-
-    if (!parent_map) {
-      context.parent_map = parent_map = {};
-
-      context.root.iter(null, function(p) {
-        p._children.forEach(function(e) {
-          parent_map[e] = p;
-        });
-      });
-    }
-
-    for (i = 0, len = result.length; i < len; i++) {
-      elem = result[i];
-
-      if (parent_map.hasOwnProperty(elem)) {
-        rv.push(parent_map[elem]);
-      }
-    }
-
-    return rv;
-  }
-
-  return select;
-}
-
-
-function prepare_predicate(next, token) {
-  var tag, key, value, select;
-  token = next();
-
-  if (token[1] === '@') {
-    // attribute
-    token = next();
-
-    if (token[1]) {
-      throw new SyntaxError(token, 'Invalid attribute predicate');
-    }
-
-    key = token[0];
-    token = next();
-
-    if (token[1] === ']') {
-      select = function(context, result) {
-        var i, len, elem, rv = [];
-
-        for (i = 0, len = result.length; i < len; i++) {
-          elem = result[i];
-
-          if (elem.get(key)) {
-            rv.push(elem);
-          }
-        }
-
-        return rv;
-      };
-    }
-    else if (token[1] === '=') {
-      value = next()[1];
-
-      if (value[0] === '"' || value[value.length - 1] === '\'') {
-        value = value.slice(1, value.length - 1);
-      }
-      else {
-        throw new SyntaxError(token, 'Ivalid comparison target');
-      }
-
-      token = next();
-      select = function(context, result) {
-        var i, len, elem, rv = [];
-
-        for (i = 0, len = result.length; i < len; i++) {
-          elem = result[i];
-
-          if (elem.get(key) === value) {
-            rv.push(elem);
-          }
-        }
-
-        return rv;
-      };
-    }
-
-    if (token[1] !== ']') {
-      throw new SyntaxError(token, 'Invalid attribute predicate');
-    }
-  }
-  else if (!token[1]) {
-    tag = token[0] || '';
-    token = next();
-
-    if (token[1] !== ']') {
-      throw new SyntaxError(token, 'Invalid node predicate');
-    }
-
-    select = function(context, result) {
-      var i, len, elem, rv = [];
-
-      for (i = 0, len = result.length; i < len; i++) {
-        elem = result[i];
-
-        if (elem.find(tag)) {
-          rv.push(elem);
-        }
-      }
-
-      return rv;
-    };
-  }
-  else {
-    throw new SyntaxError(null, 'Invalid predicate');
-  }
-
-  return select;
-}
-
-
-
-var ops = {
-  "": prepare_tag,
-  "*": prepare_star,
-  ".": prepare_dot,
-  "..": prepare_dot_dot,
-  "//": prepare_iter,
-  "[": prepare_predicate,
-};
-
-function _SelectorContext(root) {
-  this.parent_map = null;
-  this.root = root;
-}
-
-function findall(elem, path) {
-  var selector, result, i, len, token, value, select, context;
-
-  if (_cache.hasOwnProperty(path)) {
-    selector = _cache[path];
-  }
-  else {
-    // TODO: Use smarter cache purging approach
-    if (Object.keys(_cache).length > 100) {
-      _cache = {};
-    }
-
-    if (path.charAt(0) === '/') {
-      throw new SyntaxError(null, 'Cannot use absolute path on element');
-    }
-
-    result = xpath_tokenizer(path);
-    selector = [];
-
-    function getToken() {
-      return result.shift();
-    }
-
-    token = getToken();
-    while (true) {
-      var c = token[1] || '';
-      value = ops[c](getToken, token);
-
-      if (!value) {
-        throw new SyntaxError(null, sprintf('Invalid path: %s', path));
-      }
-
-      selector.push(value);
-      token = getToken();
-
-      if (!token) {
-        break;
-      }
-      else if (token[1] === '/') {
-        token = getToken();
-      }
-
-      if (!token) {
-        break;
-      }
-    }
-
-    _cache[path] = selector;
-  }
-
-  // Execute slector pattern
-  result = [elem];
-  context = new _SelectorContext(elem);
-
-  for (i = 0, len = selector.length; i < len; i++) {
-    select = selector[i];
-    result = select(context, result);
-  }
-
-  return result || [];
-}
-
-function find(element, path) {
-  var resultElements = findall(element, path);
-
-  if (resultElements && resultElements.length > 0) {
-    return resultElements[0];
-  }
-
-  return null;
-}
-
-function findtext(element, path, defvalue) {
-  var resultElements = findall(element, path);
-
-  if (resultElements && resultElements.length > 0) {
-    return resultElements[0].text;
-  }
-
-  return defvalue;
-}
-
-
-exports.find = find;
-exports.findall = findall;
-exports.findtext = findtext;


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


Mime
View raw message