You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/06/17 06:17:13 UTC
[02/32] ios commit: CB-11445 Updated checked-in node_modules
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/examples/browser/index.html
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/examples/browser/index.html b/node_modules/simple-plist/node_modules/plist/examples/browser/index.html
deleted file mode 100644
index 8ce7d92..0000000
--- a/node_modules/simple-plist/node_modules/plist/examples/browser/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>plist.js browser example</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body>
- <script src="../../dist/plist.js"></script>
- <script>
- // TODO: add <input type=file> drag and drop example
- console.log(plist);
- </script>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/lib/build.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/lib/build.js b/node_modules/simple-plist/node_modules/plist/lib/build.js
deleted file mode 100644
index 9437ed6..0000000
--- a/node_modules/simple-plist/node_modules/plist/lib/build.js
+++ /dev/null
@@ -1,136 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var base64 = require('base64-js');
-var xmlbuilder = require('xmlbuilder');
-
-/**
- * Module exports.
- */
-
-exports.build = build;
-
-/**
- * Accepts a `Date` instance and returns an ISO date string.
- *
- * @param {Date} d - Date instance to serialize
- * @returns {String} ISO date string representation of `d`
- * @api private
- */
-
-function ISODateString(d){
- function pad(n){
- return n < 10 ? '0' + n : n;
- }
- return d.getUTCFullYear()+'-'
- + pad(d.getUTCMonth()+1)+'-'
- + pad(d.getUTCDate())+'T'
- + pad(d.getUTCHours())+':'
- + pad(d.getUTCMinutes())+':'
- + pad(d.getUTCSeconds())+'Z';
-}
-
-/**
- * Returns the internal "type" of `obj` via the
- * `Object.prototype.toString()` trick.
- *
- * @param {Mixed} obj - any value
- * @returns {String} the internal "type" name
- * @api private
- */
-
-var toString = Object.prototype.toString;
-function type (obj) {
- var m = toString.call(obj).match(/\[object (.*)\]/);
- return m ? m[1] : m;
-}
-
-/**
- * Generate an XML plist string from the input object `obj`.
- *
- * @param {Object} obj - the object to convert
- * @param {Object} [opts] - optional options object
- * @returns {String} converted plist XML string
- * @api public
- */
-
-function build (obj, opts) {
- var XMLHDR = {
- version: '1.0',
- encoding: 'UTF-8'
- };
-
- var XMLDTD = {
- pubid: '-//Apple//DTD PLIST 1.0//EN',
- sysid: 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'
- };
-
- var doc = xmlbuilder.create('plist');
-
- doc.dec(XMLHDR.version, XMLHDR.encoding, XMLHDR.standalone);
- doc.dtd(XMLDTD.pubid, XMLDTD.sysid);
- doc.att('version', '1.0');
-
- walk_obj(obj, doc);
-
- if (!opts) opts = {};
- // default `pretty` to `true`
- opts.pretty = opts.pretty !== false;
- return doc.end(opts);
-}
-
-/**
- * depth first, recursive traversal of a javascript object. when complete,
- * next_child contains a reference to the build XML object.
- *
- * @api private
- */
-
-function walk_obj(next, next_child) {
- var tag_type, i, prop;
- var name = type(next);
-
- if (Array.isArray(next)) {
- next_child = next_child.ele('array');
- for (i = 0; i < next.length; i++) {
- walk_obj(next[i], next_child);
- }
-
- } else if (Buffer.isBuffer(next)) {
- next_child.ele('data').raw(next.toString('base64'));
-
- } else if ('Object' == name) {
- next_child = next_child.ele('dict');
- for (prop in next) {
- if (next.hasOwnProperty(prop)) {
- next_child.ele('key').txt(prop);
- walk_obj(next[prop], next_child);
- }
- }
-
- } else if ('Number' == name) {
- // detect if this is an integer or real
- // TODO: add an ability to force one way or another via a "cast"
- tag_type = (next % 1 === 0) ? 'integer' : 'real';
- next_child.ele(tag_type).txt(next.toString());
-
- } else if ('Date' == name) {
- next_child.ele('date').txt(ISODateString(new Date(next)));
-
- } else if ('Boolean' == name) {
- next_child.ele(next ? 'true' : 'false');
-
- } else if ('String' == name) {
- next_child.ele('string').txt(next);
-
- } else if ('ArrayBuffer' == name) {
- next_child.ele('data').raw(base64.fromByteArray(next));
-
- } else if (next.buffer && 'ArrayBuffer' == type(next.buffer)) {
- // a typed array
- next_child.ele('data').raw(base64.fromByteArray(new Uint8Array(next.buffer), next_child));
-
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/lib/node.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/lib/node.js b/node_modules/simple-plist/node_modules/plist/lib/node.js
deleted file mode 100644
index ac18e32..0000000
--- a/node_modules/simple-plist/node_modules/plist/lib/node.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Module dependencies.
- */
-
-var fs = require('fs');
-var parse = require('./parse');
-var deprecate = require('util-deprecate');
-
-/**
- * Module exports.
- */
-
-exports.parseFile = deprecate(parseFile, '`parseFile()` is deprecated. ' +
- 'Use `parseString()` instead.');
-exports.parseFileSync = deprecate(parseFileSync, '`parseFileSync()` is deprecated. ' +
- 'Use `parseStringSync()` instead.');
-
-/**
- * Parses file `filename` as a .plist file.
- * Invokes `fn` callback function when done.
- *
- * @param {String} filename - name of the file to read
- * @param {Function} fn - callback function
- * @api public
- * @deprecated use parseString() instead
- */
-
-function parseFile (filename, fn) {
- fs.readFile(filename, { encoding: 'utf8' }, onread);
- function onread (err, inxml) {
- if (err) return fn(err);
- parse.parseString(inxml, fn);
- }
-}
-
-/**
- * Parses file `filename` as a .plist file.
- * Returns a when done.
- *
- * @param {String} filename - name of the file to read
- * @param {Function} fn - callback function
- * @api public
- * @deprecated use parseStringSync() instead
- */
-
-function parseFileSync (filename) {
- var inxml = fs.readFileSync(filename, 'utf8');
- return parse.parseStringSync(inxml);
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/lib/parse.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/lib/parse.js b/node_modules/simple-plist/node_modules/plist/lib/parse.js
deleted file mode 100644
index c154384..0000000
--- a/node_modules/simple-plist/node_modules/plist/lib/parse.js
+++ /dev/null
@@ -1,200 +0,0 @@
-
-/**
- * Module dependencies.
- */
-
-var deprecate = require('util-deprecate');
-var DOMParser = require('xmldom').DOMParser;
-
-/**
- * Module exports.
- */
-
-exports.parse = parse;
-exports.parseString = deprecate(parseString, '`parseString()` is deprecated. ' +
- 'It\'s not actually async. Use `parse()` instead.');
-exports.parseStringSync = deprecate(parseStringSync, '`parseStringSync()` is ' +
- 'deprecated. Use `parse()` instead.');
-
-/**
- * We ignore raw text (usually whitespace), <!-- xml comments -->,
- * and raw CDATA nodes.
- *
- * @param {Element} node
- * @returns {Boolean}
- * @api private
- */
-
-function shouldIgnoreNode (node) {
- return node.nodeType === 3 // text
- || node.nodeType === 8 // comment
- || node.nodeType === 4; // cdata
-}
-
-
-/**
- * Parses a Plist XML string. Returns an Object.
- *
- * @param {String} xml - the XML String to decode
- * @returns {Mixed} the decoded value from the Plist XML
- * @api public
- */
-
-function parse (xml) {
- var doc = new DOMParser().parseFromString(xml);
- if (doc.documentElement.nodeName !== 'plist') {
- throw new Error('malformed document. First element should be <plist>');
- }
- var plist = parsePlistXML(doc.documentElement);
-
- // the root <plist> node gets interpreted as an Array,
- // so pull out the inner data first
- if (plist.length == 1) plist = plist[0];
-
- return plist;
-}
-
-/**
- * Parses a Plist XML string. Returns an Object. Takes a `callback` function.
- *
- * @param {String} xml - the XML String to decode
- * @param {Function} callback - callback function
- * @returns {Mixed} the decoded value from the Plist XML
- * @api public
- * @deprecated not actually async. use parse() instead
- */
-
-function parseString (xml, callback) {
- var doc, error, plist;
- try {
- doc = new DOMParser().parseFromString(xml);
- plist = parsePlistXML(doc.documentElement);
- } catch(e) {
- error = e;
- }
- callback(error, plist);
-}
-
-/**
- * Parses a Plist XML string. Returns an Object.
- *
- * @param {String} xml - the XML String to decode
- * @param {Function} callback - callback function
- * @returns {Mixed} the decoded value from the Plist XML
- * @api public
- * @deprecated use parse() instead
- */
-
-function parseStringSync (xml) {
- var doc = new DOMParser().parseFromString(xml);
- var plist;
- if (doc.documentElement.nodeName !== 'plist') {
- throw new Error('malformed document. First element should be <plist>');
- }
- plist = parsePlistXML(doc.documentElement);
-
- // if the plist is an array with 1 element, pull it out of the array
- if (plist.length == 1) {
- plist = plist[0];
- }
- return plist;
-}
-
-/**
- * Convert an XML based plist document into a JSON representation.
- *
- * @param {Object} xml_node - current XML node in the plist
- * @returns {Mixed} built up JSON object
- * @api private
- */
-
-function parsePlistXML (node) {
- var i, new_obj, key, val, new_arr, res, d;
-
- if (!node)
- return null;
-
- if (node.nodeName === 'plist') {
- new_arr = [];
- for (i=0; i < node.childNodes.length; i++) {
- // ignore comment nodes (text)
- if (!shouldIgnoreNode(node.childNodes[i])) {
- new_arr.push( parsePlistXML(node.childNodes[i]));
- }
- }
- return new_arr;
-
- } else if (node.nodeName === 'dict') {
- new_obj = {};
- key = null;
- for (i=0; i < node.childNodes.length; i++) {
- // ignore comment nodes (text)
- if (!shouldIgnoreNode(node.childNodes[i])) {
- if (key === null) {
- key = parsePlistXML(node.childNodes[i]);
- } else {
- new_obj[key] = parsePlistXML(node.childNodes[i]);
- key = null;
- }
- }
- }
- return new_obj;
-
- } else if (node.nodeName === 'array') {
- new_arr = [];
- for (i=0; i < node.childNodes.length; i++) {
- // ignore comment nodes (text)
- if (!shouldIgnoreNode(node.childNodes[i])) {
- res = parsePlistXML(node.childNodes[i]);
- if (null != res) new_arr.push(res);
- }
- }
- return new_arr;
-
- } else if (node.nodeName === '#text') {
- // TODO: what should we do with text types? (CDATA sections)
-
- } else if (node.nodeName === 'key') {
- return node.childNodes[0].nodeValue;
-
- } else if (node.nodeName === 'string') {
- res = '';
- for (d=0; d < node.childNodes.length; d++) {
- res += node.childNodes[d].nodeValue;
- }
- return res;
-
- } else if (node.nodeName === 'integer') {
- // parse as base 10 integer
- return parseInt(node.childNodes[0].nodeValue, 10);
-
- } else if (node.nodeName === 'real') {
- res = '';
- for (d=0; d < node.childNodes.length; d++) {
- if (node.childNodes[d].nodeType === 3) {
- res += node.childNodes[d].nodeValue;
- }
- }
- return parseFloat(res);
-
- } else if (node.nodeName === 'data') {
- res = '';
- for (d=0; d < node.childNodes.length; d++) {
- if (node.childNodes[d].nodeType === 3) {
- res += node.childNodes[d].nodeValue.replace(/\s+/g, '');
- }
- }
-
- // decode base64 data to a Buffer instance
- return new Buffer(res, 'base64');
-
- } else if (node.nodeName === 'date') {
- return new Date(node.childNodes[0].nodeValue);
-
- } else if (node.nodeName === 'true') {
- return true;
-
- } else if (node.nodeName === 'false') {
- return false;
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/lib/plist.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/lib/plist.js b/node_modules/simple-plist/node_modules/plist/lib/plist.js
deleted file mode 100644
index 00a4167..0000000
--- a/node_modules/simple-plist/node_modules/plist/lib/plist.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-var i;
-
-/**
- * Parser functions.
- */
-
-var parserFunctions = require('./parse');
-for (i in parserFunctions) exports[i] = parserFunctions[i];
-
-/**
- * Builder functions.
- */
-
-var builderFunctions = require('./build');
-for (i in builderFunctions) exports[i] = builderFunctions[i];
-
-/**
- * Add Node.js-specific functions (they're deprecated\u2026).
- */
-
-var nodeFunctions = require('./node');
-for (i in nodeFunctions) exports[i] = nodeFunctions[i];
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/package.json
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/package.json b/node_modules/simple-plist/node_modules/plist/package.json
deleted file mode 100644
index e132e8c..0000000
--- a/node_modules/simple-plist/node_modules/plist/package.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_args": [
- [
- "plist@1.1.0",
- "D:\\Cordova\\cordova-ios\\node_modules\\simple-plist"
- ]
- ],
- "_from": "plist@1.1.0",
- "_id": "plist@1.1.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/simple-plist/plist",
- "_npmUser": {
- "email": "nathan@tootallnate.net",
- "name": "tootallnate"
- },
- "_npmVersion": "1.4.21",
- "_phantomChildren": {},
- "_requested": {
- "name": "plist",
- "raw": "plist@1.1.0",
- "rawSpec": "1.1.0",
- "scope": null,
- "spec": "1.1.0",
- "type": "version"
- },
- "_requiredBy": [
- "/simple-plist"
- ],
- "_resolved": "https://registry.npmjs.org/plist/-/plist-1.1.0.tgz",
- "_shasum": "ff6708590c97cc438e7bc45de5251bd725f3f89d",
- "_shrinkwrap": null,
- "_spec": "plist@1.1.0",
- "_where": "D:\\Cordova\\cordova-ios\\node_modules\\simple-plist",
- "author": {
- "email": "nathan@tootallnate.net",
- "name": "Nathan Rajlich"
- },
- "bugs": {
- "url": "https://github.com/TooTallNate/node-plist/issues"
- },
- "contributors": [
- {
- "email": "hans.huebner@gmail.com",
- "name": "Hans Huebner"
- },
- {
- "name": "Pierre Metrailler"
- },
- {
- "email": "reinstein.mike@gmail.com",
- "name": "Mike Reinstein"
- },
- {
- "name": "Vladimir Tsvang"
- },
- {
- "name": "Mathieu D'Amours"
- }
- ],
- "dependencies": {
- "base64-js": "0.0.6",
- "util-deprecate": "1.0.0",
- "xmlbuilder": "2.2.1",
- "xmldom": "0.1.x"
- },
- "description": "Mac OS X Plist parser/builder for Node.js and browsers",
- "devDependencies": {
- "browserify": "5.10.1",
- "mocha": "1.18.2",
- "multiline": "0.3.4",
- "zuul": "1.10.2"
- },
- "directories": {},
- "dist": {
- "shasum": "ff6708590c97cc438e7bc45de5251bd725f3f89d",
- "tarball": "https://registry.npmjs.org/plist/-/plist-1.1.0.tgz"
- },
- "gitHead": "806c35e79ad1326da22ced98bc9c721ff570af84",
- "homepage": "https://github.com/TooTallNate/node-plist",
- "keywords": [
- "apple",
- "browser",
- "mac",
- "plist",
- "parser",
- "xml"
- ],
- "main": "lib/plist.js",
- "maintainers": [
- {
- "email": "nathan@tootallnate.net",
- "name": "TooTallNate"
- },
- {
- "email": "nathan@tootallnate.net",
- "name": "tootallnate"
- },
- {
- "email": "reinstein.mike@gmail.com",
- "name": "mreinstein"
- }
- ],
- "name": "plist",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/TooTallNate/node-plist.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "1.1.0"
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/test/build.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/test/build.js b/node_modules/simple-plist/node_modules/plist/test/build.js
deleted file mode 100644
index c396c55..0000000
--- a/node_modules/simple-plist/node_modules/plist/test/build.js
+++ /dev/null
@@ -1,133 +0,0 @@
-
-var assert = require('assert');
-var build = require('../').build;
-var multiline = require('multiline');
-
-describe('plist', function () {
-
- describe('build()', function () {
-
- it('should create a plist XML string from a String', function () {
- var xml = build('test');
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <string>test</string>
-</plist>
-*/}));
- });
-
- it('should create a plist XML integer from a whole Number', function () {
- var xml = build(3);
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <integer>3</integer>
-</plist>
-*/}));
- });
-
- it('should create a plist XML real from a fractional Number', function () {
- var xml = build(Math.PI);
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <real>3.141592653589793</real>
-</plist>
-*/}));
- });
-
- it('should create a plist XML date from a Date', function () {
- var xml = build(new Date('2010-02-08T21:41:23Z'));
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <date>2010-02-08T21:41:23Z</date>
-</plist>
-*/}));
- });
-
- it('should create a plist XML date from a Buffer', function () {
- var xml = build(new Buffer('\u2603'));
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <data>4piD</data>
-</plist>
-*/}));
- });
-
- it('should create a plist XML true from a `true` Boolean', function () {
- var xml = build(true);
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <true/>
-</plist>
-*/}));
- });
-
- it('should create a plist XML false from a `false` Boolean', function () {
- var xml = build(false);
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <false/>
-</plist>
-*/}));
- });
-
- it('should create a plist XML dict from an Object', function () {
- var xml = build({ foo: 'bar' });
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <dict>
- <key>foo</key>
- <string>bar</string>
- </dict>
-</plist>
-*/}));
- });
-
- it('should create a plist XML array from an Array', function () {
- var xml = build([ 1, 'foo', false, new Date(1234) ]);
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <array>
- <integer>1</integer>
- <string>foo</string>
- <false/>
- <date>1970-01-01T00:00:01Z</date>
- </array>
-</plist>
-*/}));
- });
-
- it('should properly encode an empty string', function () {
- var xml = build({ a: '' });
- assert.strictEqual(xml, multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <dict>
- <key>a</key>
- <string></string>
- </dict>
-</plist>
-*/}));
- });
-
- });
-
-});
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/plist/test/parse.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/plist/test/parse.js b/node_modules/simple-plist/node_modules/plist/test/parse.js
deleted file mode 100644
index 67a9257..0000000
--- a/node_modules/simple-plist/node_modules/plist/test/parse.js
+++ /dev/null
@@ -1,448 +0,0 @@
-
-var assert = require('assert');
-var parse = require('../').parse;
-var multiline = require('multiline');
-
-describe('plist', function () {
-
- describe('parse()', function () {
-
- it('should parse a minimal <string> node into a String', function () {
- var parsed = parse('<plist><string>Hello World!</string></plist>');
- assert.strictEqual(parsed, 'Hello World!');
- });
-
- it('should parse a full XML <string> node into a String', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<string>gray</string>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.strictEqual(parsed, 'gray');
- });
-
- it('should parse an <integer> node into a Number', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <integer>14</integer>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.strictEqual(parsed, 14);
- });
-
- it('should parse a <real> node into a Number', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <real>3.14</real>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.strictEqual(parsed, 3.14);
- });
-
- it('should parse a <date> node into a Date', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <date>2010-02-08T21:41:23Z</date>
-</plist>
-*/});
- var parsed = parse(xml);
- assert(parsed instanceof Date);
- assert.strictEqual(parsed.getTime(), 1265665283000);
- });
-
- it('should parse a <data> node into a Buffer', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <data>4pyTIMOgIGxhIG1vZGU=</data>
-</plist>
-*/});
- var parsed = parse(xml);
- assert(Buffer.isBuffer(parsed));
- assert.strictEqual(parsed.toString('utf8'), '\u2713 � la mode');
- });
-
- it('should parse a <data> node with newlines into a Buffer', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <data>4pyTIMOgIGxhIG
-
-
- 1v
-
- ZG
- U=</data>
-</plist>
-*/});
- var parsed = parse(xml);
- assert(Buffer.isBuffer(parsed));
- assert.strictEqual(parsed.toString('utf8'), '\u2713 � la mode');
- });
-
- it('should parse a <true> node into a Boolean `true` value', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <true/>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.strictEqual(parsed, true);
- });
-
- it('should parse a <false> node into a Boolean `false` value', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <false/>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.strictEqual(parsed, false);
- });
-
- it('should parse an <array> node into an Array', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <array>
- <dict>
- <key>duration</key>
- <real>5555.0495000000001</real>
- <key>start</key>
- <real>0.0</real>
- </dict>
- </array>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.deepEqual(parsed, [
- {
- duration: 5555.0495,
- start: 0
- }
- ]);
- });
-
- it('should parse a plist file with XML comments', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
- <dict>
- <key>CFBundleName</key>
- <string>Emacs</string>
-
- <key>CFBundlePackageType</key>
- <string>APPL</string>
-
- <!-- This should be the emacs version number. -->
-
- <key>CFBundleShortVersionString</key>
- <string>24.3</string>
-
- <key>CFBundleSignature</key>
- <string>EMAx</string>
-
- <!-- This SHOULD be a build number. -->
-
- <key>CFBundleVersion</key>
- <string>9.0</string>
- </dict>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.deepEqual(parsed, {
- CFBundleName: 'Emacs',
- CFBundlePackageType: 'APPL',
- CFBundleShortVersionString: '24.3',
- CFBundleSignature: 'EMAx',
- CFBundleVersion: '9.0'
- });
- });
-
- it('should parse a plist file with CDATA content', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>OptionsLabel</key>
- <string>Product</string>
- <key>PopupMenu</key>
- <array>
- <dict>
- <key>Key</key>
- <string>iPhone</string>
- <key>Title</key>
- <string>iPhone</string>
- </dict>
- <dict>
- <key>Key</key>
- <string>iPad</string>
- <key>Title</key>
- <string>iPad</string>
- </dict>
- <dict>
- <key>Key</key>
- <string>
- <![CDATA[
- #import <Cocoa/Cocoa.h>
-
-#import <MacRuby/MacRuby.h>
-
-int main(int argc, char *argv[])
-{
- return macruby_main("rb_main.rb", argc, argv);
-}
-]]>
-</string>
- </dict>
- </array>
- <key>TemplateSelection</key>
- <dict>
- <key>iPhone</key>
- <string>Tab Bar iPhone Application</string>
- <key>iPad</key>
- <string>Tab Bar iPad Application</string>
- </dict>
-</dict>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.deepEqual(parsed, { OptionsLabel: 'Product',
- PopupMenu:
- [ { Key: 'iPhone', Title: 'iPhone' },
- { Key: 'iPad', Title: 'iPad' },
- { Key: '\n \n #import <Cocoa/Cocoa.h>\n\n#import <MacRuby/MacRuby.h>\n\nint main(int argc, char *argv[])\n{\n return macruby_main("rb_main.rb", argc, argv);\n}\n\n' } ],
- TemplateSelection:
- { iPhone: 'Tab Bar iPhone Application',
- iPad: 'Tab Bar iPad Application' }
- });
- });
-
- it('should parse an example "Cordova.plist" file', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<!--
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
--->
-<plist version="1.0">
-<dict>
- <key>UIWebViewBounce</key>
- <true/>
- <key>TopActivityIndicator</key>
- <string>gray</string>
- <key>EnableLocation</key>
- <false/>
- <key>EnableViewportScale</key>
- <false/>
- <key>AutoHideSplashScreen</key>
- <true/>
- <key>ShowSplashScreenSpinner</key>
- <true/>
- <key>MediaPlaybackRequiresUserAction</key>
- <false/>
- <key>AllowInlineMediaPlayback</key>
- <false/>
- <key>OpenAllWhitelistURLsInWebView</key>
- <false/>
- <key>BackupWebStorage</key>
- <true/>
- <key>ExternalHosts</key>
- <array>
- <string>*</string>
- </array>
- <key>Plugins</key>
- <dict>
- <key>Device</key>
- <string>CDVDevice</string>
- <key>Logger</key>
- <string>CDVLogger</string>
- <key>Compass</key>
- <string>CDVLocation</string>
- <key>Accelerometer</key>
- <string>CDVAccelerometer</string>
- <key>Camera</key>
- <string>CDVCamera</string>
- <key>NetworkStatus</key>
- <string>CDVConnection</string>
- <key>Contacts</key>
- <string>CDVContacts</string>
- <key>Debug Console</key>
- <string>CDVDebugConsole</string>
- <key>Echo</key>
- <string>CDVEcho</string>
- <key>File</key>
- <string>CDVFile</string>
- <key>FileTransfer</key>
- <string>CDVFileTransfer</string>
- <key>Geolocation</key>
- <string>CDVLocation</string>
- <key>Notification</key>
- <string>CDVNotification</string>
- <key>Media</key>
- <string>CDVSound</string>
- <key>Capture</key>
- <string>CDVCapture</string>
- <key>SplashScreen</key>
- <string>CDVSplashScreen</string>
- <key>Battery</key>
- <string>CDVBattery</string>
- </dict>
-</dict>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.deepEqual(parsed, {
- UIWebViewBounce: true,
- TopActivityIndicator: 'gray',
- EnableLocation: false,
- EnableViewportScale: false,
- AutoHideSplashScreen: true,
- ShowSplashScreenSpinner: true,
- MediaPlaybackRequiresUserAction: false,
- AllowInlineMediaPlayback: false,
- OpenAllWhitelistURLsInWebView: false,
- BackupWebStorage: true,
- ExternalHosts: [ '*' ],
- Plugins: {
- Device: 'CDVDevice',
- Logger: 'CDVLogger',
- Compass: 'CDVLocation',
- Accelerometer: 'CDVAccelerometer',
- Camera: 'CDVCamera',
- NetworkStatus: 'CDVConnection',
- Contacts: 'CDVContacts',
- 'Debug Console': 'CDVDebugConsole',
- Echo: 'CDVEcho',
- File: 'CDVFile',
- FileTransfer: 'CDVFileTransfer',
- Geolocation: 'CDVLocation',
- Notification: 'CDVNotification',
- Media: 'CDVSound',
- Capture: 'CDVCapture',
- SplashScreen: 'CDVSplashScreen',
- Battery: 'CDVBattery'
- }
- });
- });
-
- it('should parse an example "Xcode-Info.plist" file', function () {
- var xml = multiline(function () {/*
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>en</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFiles</key>
- <array/>
- <key>CFBundleIdentifier</key>
- <string>com.joshfire.ads</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>UIRequiredDeviceCapabilities</key>
- <array>
- <string>armv7</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>CFBundleAllowMixedLocalizations</key>
- <true/>
-</dict>
-</plist>
-*/});
- var parsed = parse(xml);
- assert.deepEqual(parsed, {
- CFBundleDevelopmentRegion: 'en',
- CFBundleDisplayName: '${PRODUCT_NAME}',
- CFBundleExecutable: '${EXECUTABLE_NAME}',
- CFBundleIconFiles: [],
- CFBundleIdentifier: 'com.joshfire.ads',
- CFBundleInfoDictionaryVersion: '6.0',
- CFBundleName: '${PRODUCT_NAME}',
- CFBundlePackageType: 'APPL',
- CFBundleShortVersionString: '1.0',
- CFBundleSignature: '????',
- CFBundleVersion: '1.0',
- LSRequiresIPhoneOS: true,
- UIRequiredDeviceCapabilities: [ 'armv7' ],
- UISupportedInterfaceOrientations:
- [ 'UIInterfaceOrientationPortrait',
- 'UIInterfaceOrientationLandscapeLeft',
- 'UIInterfaceOrientationLandscapeRight' ],
- 'UISupportedInterfaceOrientations~ipad':
- [ 'UIInterfaceOrientationPortrait',
- 'UIInterfaceOrientationPortraitUpsideDown',
- 'UIInterfaceOrientationLandscapeLeft',
- 'UIInterfaceOrientationLandscapeRight' ],
- CFBundleAllowMixedLocalizations: true
- });
- });
-
- });
-
-});
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/History.md
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/History.md b/node_modules/simple-plist/node_modules/util-deprecate/History.md
deleted file mode 100644
index 149b6d3..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/History.md
+++ /dev/null
@@ -1,5 +0,0 @@
-
-1.0.0 / 2014-04-30
-==================
-
- * initial commit
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/LICENSE b/node_modules/simple-plist/node_modules/util-deprecate/LICENSE
deleted file mode 100644
index 6a60e8c..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 Nathan Rajlich <na...@tootallnate.net>
-
-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-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/README.md
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/README.md b/node_modules/simple-plist/node_modules/util-deprecate/README.md
deleted file mode 100644
index 75622fa..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-util-deprecate
-==============
-### The Node.js `util.deprecate()` function with browser support
-
-In Node.js, this module simply re-exports the `util.deprecate()` function.
-
-In the web browser (i.e. via browserify), a browser-specific implementation
-of the `util.deprecate()` function is used.
-
-
-## API
-
-A `deprecate()` function is the only thing exposed by this module.
-
-``` javascript
-// setup:
-exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead');
-
-
-// users see:
-foo();
-// foo() is deprecated, use bar() instead
-foo();
-foo();
-```
-
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2014 Nathan Rajlich <na...@tootallnate.net>
-
-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-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/browser.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/browser.js b/node_modules/simple-plist/node_modules/util-deprecate/browser.js
deleted file mode 100644
index 9112c54..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/browser.js
+++ /dev/null
@@ -1,55 +0,0 @@
-
-/**
- * Module exports.
- */
-
-module.exports = deprecate;
-
-/**
- * Mark that a method should not be used.
- * Returns a modified function which warns once by default.
- * If --no-deprecation is set, then it is a no-op.
- *
- * @param {Function} fn - the function to deprecate
- * @param {String} msg - the string to print to the console when `fn` is invoked
- * @returns {Function} a new "deprecated" version of `fn`
- * @api public
- */
-
-function deprecate (fn, msg) {
- if (config('noDeprecation')) {
- return fn;
- }
-
- var warned = false;
- function deprecated() {
- if (!warned) {
- if (config('throwDeprecation')) {
- throw new Error(msg);
- } else if (config('traceDeprecation')) {
- console.trace(msg);
- } else {
- console.error(msg);
- }
- warned = true;
- }
- return fn.apply(this, arguments);
- }
-
- return deprecated;
-}
-
-/**
- * Checks `localStorage` for boolean values for the given `name`.
- *
- * @param {String} name
- * @returns {Boolean}
- * @api private
- */
-
-function config (name) {
- if (!global.localStorage) return false;
- var val = global.localStorage[name];
- if (null == val) return false;
- return String(val).toLowerCase() === 'true';
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/node.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/node.js b/node_modules/simple-plist/node_modules/util-deprecate/node.js
deleted file mode 100644
index 5e6fcff..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/node.js
+++ /dev/null
@@ -1,6 +0,0 @@
-
-/**
- * For Node.js, simply re-export the core `util.deprecate` function.
- */
-
-module.exports = require('util').deprecate;
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/util-deprecate/package.json
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/util-deprecate/package.json b/node_modules/simple-plist/node_modules/util-deprecate/package.json
deleted file mode 100644
index de353b4..0000000
--- a/node_modules/simple-plist/node_modules/util-deprecate/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_args": [
- [
- "util-deprecate@1.0.0",
- "D:\\Cordova\\cordova-ios\\node_modules\\simple-plist\\node_modules\\plist"
- ]
- ],
- "_from": "util-deprecate@1.0.0",
- "_id": "util-deprecate@1.0.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/simple-plist/util-deprecate",
- "_npmUser": {
- "email": "nathan@tootallnate.net",
- "name": "tootallnate"
- },
- "_npmVersion": "1.4.3",
- "_phantomChildren": {},
- "_requested": {
- "name": "util-deprecate",
- "raw": "util-deprecate@1.0.0",
- "rawSpec": "1.0.0",
- "scope": null,
- "spec": "1.0.0",
- "type": "version"
- },
- "_requiredBy": [
- "/simple-plist/plist"
- ],
- "_resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.0.tgz",
- "_shasum": "3007af012c140eae26de05576ec22785cac3abf2",
- "_shrinkwrap": null,
- "_spec": "util-deprecate@1.0.0",
- "_where": "D:\\Cordova\\cordova-ios\\node_modules\\simple-plist\\node_modules\\plist",
- "author": {
- "email": "nathan@tootallnate.net",
- "name": "Nathan Rajlich",
- "url": "http://n8.io/"
- },
- "browser": "browser.js",
- "bugs": {
- "url": "https://github.com/TooTallNate/util-deprecate/issues"
- },
- "dependencies": {},
- "description": "The Node.js `util.deprecate()` function with browser support",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "3007af012c140eae26de05576ec22785cac3abf2",
- "tarball": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.0.tgz"
- },
- "homepage": "https://github.com/TooTallNate/util-deprecate",
- "keywords": [
- "util",
- "deprecate",
- "browserify",
- "browser",
- "node"
- ],
- "license": "MIT",
- "main": "node.js",
- "maintainers": [
- {
- "email": "nathan@tootallnate.net",
- "name": "tootallnate"
- }
- ],
- "name": "util-deprecate",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/TooTallNate/util-deprecate.git"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "version": "1.0.0"
-}
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/.npmignore
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/.npmignore b/node_modules/simple-plist/node_modules/xmlbuilder/.npmignore
deleted file mode 100644
index 3ca4980..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.travis.yml
-src
-test
-perf
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/LICENSE b/node_modules/simple-plist/node_modules/xmlbuilder/LICENSE
deleted file mode 100644
index e7cbac9..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 Ozgur Ozcitak
-
-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-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/README.md
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/README.md b/node_modules/simple-plist/node_modules/xmlbuilder/README.md
deleted file mode 100644
index 4883757..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/README.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# xmlbuilder-js
-
-An XML builder for [node.js](http://nodejs.org/) similar to
-[java-xmlbuilder](http://code.google.com/p/java-xmlbuilder/).
-
-[![NPM version](https://badge.fury.io/js/xmlbuilder.png)](http://badge.fury.io/js/xmlbuilder)
-[![Build Status](https://secure.travis-ci.org/oozcitak/xmlbuilder-js.png)](http://travis-ci.org/oozcitak/xmlbuilder-js)
-[![Dependency Status](https://david-dm.org/oozcitak/xmlbuilder-js.png)](https://david-dm.org/oozcitak/xmlbuilder-js)
-
-### Installation:
-
-``` sh
-npm install xmlbuilder
-```
-
-### Usage:
-
-``` js
-var builder = require('xmlbuilder');
-var xml = builder.create('root')
- .ele('xmlbuilder', {'for': 'node-js'})
- .ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git')
- .end({ pretty: true});
-
-console.log(xml);
-```
-
-will result in:
-
-``` xml
-<?xml version="1.0"?>
-<root>
- <xmlbuilder for="node-js">
- <repo type="git">git://github.com/oozcitak/xmlbuilder-js.git</repo>
- </xmlbuilder>
-</root>
-```
-
-It is also possible to convert objects into nodes:
-
-``` js
-builder.create({
- root: {
- xmlbuilder: {
- '@for': 'node-js', // attributes start with @
- repo: {
- '@type': 'git',
- '#text': 'git://github.com/oozcitak/xmlbuilder-js.git' // #text denotes element text
- }
- }
- }
-});
-```
-
-If you need to do some processing:
-
-``` js
-var root = builder.create('squares');
-root.com('f(x) = x^2');
-for(var i = 1; i <= 5; i++)
-{
- var item = root.ele('data');
- item.att('x', i);
- item.att('y', i * i);
-}
-```
-
-This will result in:
-
-``` xml
-<?xml version="1.0"?>
-<squares>
- <!-- f(x) = x^2 -->
- <data x="1" y="1"/>
- <data x="2" y="4"/>
- <data x="3" y="9"/>
- <data x="4" y="16"/>
- <data x="5" y="25"/>
-</squares>
-```
-
-See the [wiki](https://github.com/oozcitak/xmlbuilder-js/wiki) for details.
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLAttribute.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLAttribute.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLAttribute.js
deleted file mode 100644
index a83ffec..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLAttribute.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLAttribute, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLAttribute = (function() {
- function XMLAttribute(parent, name, value) {
- this.stringify = parent.stringify;
- if (name == null) {
- throw new Error("Missing attribute name");
- }
- if (value == null) {
- throw new Error("Missing attribute value");
- }
- this.name = this.stringify.attName(name);
- this.value = this.stringify.attValue(value);
- }
-
- XMLAttribute.prototype.clone = function() {
- return _.create(XMLAttribute.prototype, this);
- };
-
- XMLAttribute.prototype.toString = function(options, level) {
- return ' ' + this.name + '="' + this.value + '"';
- };
-
- return XMLAttribute;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLBuilder.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLBuilder.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLBuilder.js
deleted file mode 100644
index 063d6db..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLBuilder.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLBuilder, XMLDeclaration, XMLDocType, XMLElement, XMLStringifier, _;
-
- _ = require('lodash-node');
-
- XMLStringifier = require('./XMLStringifier');
-
- XMLDeclaration = require('./XMLDeclaration');
-
- XMLDocType = require('./XMLDocType');
-
- XMLElement = require('./XMLElement');
-
- module.exports = XMLBuilder = (function() {
- function XMLBuilder(name, options) {
- var root, temp;
- if (name == null) {
- throw new Error("Root element needs a name");
- }
- if (options == null) {
- options = {};
- }
- this.options = options;
- this.stringify = new XMLStringifier(options);
- temp = new XMLElement(this, 'doc');
- root = temp.element(name);
- root.isRoot = true;
- root.documentObject = this;
- this.rootObject = root;
- if (!options.headless) {
- root.declaration(options);
- if ((options.pubID != null) || (options.sysID != null)) {
- root.doctype(options);
- }
- }
- }
-
- XMLBuilder.prototype.root = function() {
- return this.rootObject;
- };
-
- XMLBuilder.prototype.end = function(options) {
- return toString(options);
- };
-
- XMLBuilder.prototype.toString = function(options) {
- var indent, newline, pretty, r;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- r = '';
- if (this.xmldec != null) {
- r += this.xmldec.toString(options);
- }
- if (this.doctype != null) {
- r += this.doctype.toString(options);
- }
- r += this.rootObject.toString(options);
- if (pretty && r.slice(-newline.length) === newline) {
- r = r.slice(0, -newline.length);
- }
- return r;
- };
-
- return XMLBuilder;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLCData.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLCData.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLCData.js
deleted file mode 100644
index c729a3f..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLCData.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLCData, XMLNode, _,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
- _ = require('lodash-node');
-
- XMLNode = require('./XMLNode');
-
- module.exports = XMLCData = (function(_super) {
- __extends(XMLCData, _super);
-
- function XMLCData(parent, text) {
- XMLCData.__super__.constructor.call(this, parent);
- if (text == null) {
- throw new Error("Missing CDATA text");
- }
- this.text = this.stringify.cdata(text);
- }
-
- XMLCData.prototype.clone = function() {
- return _.create(XMLCData.prototype, this);
- };
-
- XMLCData.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<![CDATA[' + this.text + ']]>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLCData;
-
- })(XMLNode);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLComment.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLComment.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLComment.js
deleted file mode 100644
index d89cc8f..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLComment.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLComment, XMLNode, _,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
- _ = require('lodash-node');
-
- XMLNode = require('./XMLNode');
-
- module.exports = XMLComment = (function(_super) {
- __extends(XMLComment, _super);
-
- function XMLComment(parent, text) {
- XMLComment.__super__.constructor.call(this, parent);
- if (text == null) {
- throw new Error("Missing comment text");
- }
- this.text = this.stringify.comment(text);
- }
-
- XMLComment.prototype.clone = function() {
- return _.create(XMLComment.prototype, this);
- };
-
- XMLComment.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!-- ' + this.text + ' -->';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLComment;
-
- })(XMLNode);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDAttList.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDAttList.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDAttList.js
deleted file mode 100644
index 37e2fa7..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDAttList.js
+++ /dev/null
@@ -1,71 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDTDAttList, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLDTDAttList = (function() {
- function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
- this.stringify = parent.stringify;
- if (elementName == null) {
- throw new Error("Missing DTD element name");
- }
- if (attributeName == null) {
- throw new Error("Missing DTD attribute name");
- }
- if (!attributeType) {
- throw new Error("Missing DTD attribute type");
- }
- if (!defaultValueType) {
- throw new Error("Missing DTD attribute default");
- }
- if (defaultValueType.indexOf('#') !== 0) {
- defaultValueType = '#' + defaultValueType;
- }
- if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {
- throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");
- }
- if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {
- throw new Error("Default value only applies to #FIXED or #DEFAULT");
- }
- this.elementName = this.stringify.eleName(elementName);
- this.attributeName = this.stringify.attName(attributeName);
- this.attributeType = this.stringify.dtdAttType(attributeType);
- this.defaultValue = this.stringify.dtdAttDefault(defaultValue);
- this.defaultValueType = defaultValueType;
- }
-
- XMLDTDAttList.prototype.clone = function() {
- return _.create(XMLDTDAttList.prototype, this);
- };
-
- XMLDTDAttList.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!ATTLIST ' + this.elementName + ' ' + this.attributeName + ' ' + this.attributeType;
- if (this.defaultValueType !== '#DEFAULT') {
- r += ' ' + this.defaultValueType;
- }
- if (this.defaultValue) {
- r += ' "' + this.defaultValue + '"';
- }
- r += '>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLDTDAttList;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDElement.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDElement.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDElement.js
deleted file mode 100644
index 548eed4..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDElement.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDTDElement, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLDTDElement = (function() {
- function XMLDTDElement(parent, name, value) {
- this.stringify = parent.stringify;
- if (name == null) {
- throw new Error("Missing DTD element name");
- }
- if (!value) {
- value = '(#PCDATA)';
- }
- if (_.isArray(value)) {
- value = '(' + value.join(',') + ')';
- }
- this.name = this.stringify.eleName(name);
- this.value = this.stringify.dtdElementValue(value);
- }
-
- XMLDTDElement.prototype.clone = function() {
- return _.create(XMLDTDElement.prototype, this);
- };
-
- XMLDTDElement.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!ELEMENT ' + this.name + ' ' + this.value + '>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLDTDElement;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDEntity.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDEntity.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDEntity.js
deleted file mode 100644
index 205c948..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDEntity.js
+++ /dev/null
@@ -1,85 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDTDEntity, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLDTDEntity = (function() {
- function XMLDTDEntity(parent, pe, name, value) {
- this.stringify = parent.stringify;
- if (name == null) {
- throw new Error("Missing entity name");
- }
- if (value == null) {
- throw new Error("Missing entity value");
- }
- this.pe = !!pe;
- this.name = this.stringify.eleName(name);
- if (!_.isObject(value)) {
- this.value = this.stringify.dtdEntityValue(value);
- } else {
- if (!value.pubID && !value.sysID) {
- throw new Error("Public and/or system identifiers are required for an external entity");
- }
- if (value.pubID && !value.sysID) {
- throw new Error("System identifier is required for a public external entity");
- }
- if (value.pubID != null) {
- this.pubID = this.stringify.dtdPubID(value.pubID);
- }
- if (value.sysID != null) {
- this.sysID = this.stringify.dtdSysID(value.sysID);
- }
- if (value.nData != null) {
- this.nData = this.stringify.dtdNData(value.nData);
- }
- if (this.pe && this.nData) {
- throw new Error("Notation declaration is not allowed in a parameter entity");
- }
- }
- }
-
- XMLDTDEntity.prototype.clone = function() {
- return _.create(XMLDTDEntity.prototype, this);
- };
-
- XMLDTDEntity.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!ENTITY';
- if (this.pe) {
- r += ' %';
- }
- r += ' ' + this.name;
- if (this.value) {
- r += ' "' + this.value + '"';
- } else {
- if (this.pubID && this.sysID) {
- r += ' PUBLIC "' + this.pubID + '" "' + this.sysID + '"';
- } else if (this.sysID) {
- r += ' SYSTEM "' + this.sysID + '"';
- }
- if (this.nData) {
- r += ' NDATA ' + this.nData;
- }
- }
- r += '>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLDTDEntity;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDNotation.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDNotation.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDNotation.js
deleted file mode 100644
index 94b0cb6..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDTDNotation.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDTDNotation, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLDTDNotation = (function() {
- function XMLDTDNotation(parent, name, value) {
- this.stringify = parent.stringify;
- if (name == null) {
- throw new Error("Missing notation name");
- }
- if (!value.pubID && !value.sysID) {
- throw new Error("Public or system identifiers are required for an external entity");
- }
- this.name = this.stringify.eleName(name);
- if (value.pubID != null) {
- this.pubID = this.stringify.dtdPubID(value.pubID);
- }
- if (value.sysID != null) {
- this.sysID = this.stringify.dtdSysID(value.sysID);
- }
- }
-
- XMLDTDNotation.prototype.clone = function() {
- return _.create(XMLDTDNotation.prototype, this);
- };
-
- XMLDTDNotation.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!NOTATION ' + this.name;
- if (this.pubID && this.sysID) {
- r += ' PUBLIC "' + this.pubID + '" "' + this.sysID + '"';
- } else if (this.pubID) {
- r += ' PUBLIC "' + this.pubID + '"';
- } else if (this.sysID) {
- r += ' SYSTEM "' + this.sysID + '"';
- }
- r += '>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLDTDNotation;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDeclaration.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDeclaration.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDeclaration.js
deleted file mode 100644
index a8ea575..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDeclaration.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDeclaration, XMLNode, _,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
- _ = require('lodash-node');
-
- XMLNode = require('./XMLNode');
-
- module.exports = XMLDeclaration = (function(_super) {
- __extends(XMLDeclaration, _super);
-
- function XMLDeclaration(parent, version, encoding, standalone) {
- var _ref;
- XMLDeclaration.__super__.constructor.call(this, parent);
- if (_.isObject(version)) {
- _ref = version, version = _ref.version, encoding = _ref.encoding, standalone = _ref.standalone;
- }
- if (!version) {
- version = '1.0';
- }
- if (version != null) {
- this.version = this.stringify.xmlVersion(version);
- }
- if (encoding != null) {
- this.encoding = this.stringify.xmlEncoding(encoding);
- }
- if (standalone != null) {
- this.standalone = this.stringify.xmlStandalone(standalone);
- }
- }
-
- XMLDeclaration.prototype.clone = function() {
- return _.create(XMLDeclaration.prototype, this);
- };
-
- XMLDeclaration.prototype.toString = function(options, level) {
- var indent, newline, pretty, r, space;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<?xml';
- if (this.version != null) {
- r += ' version="' + this.version + '"';
- }
- if (this.encoding != null) {
- r += ' encoding="' + this.encoding + '"';
- }
- if (this.standalone != null) {
- r += ' standalone="' + this.standalone + '"';
- }
- r += '?>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- return XMLDeclaration;
-
- })(XMLNode);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDocType.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDocType.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDocType.js
deleted file mode 100644
index d360353..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLDocType.js
+++ /dev/null
@@ -1,183 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLDocType, _;
-
- _ = require('lodash-node');
-
- module.exports = XMLDocType = (function() {
- function XMLDocType(parent, pubID, sysID) {
- var _ref, _ref1;
- this.documentObject = parent;
- this.stringify = this.documentObject.stringify;
- this.children = [];
- if (_.isObject(pubID)) {
- _ref = pubID, pubID = _ref.pubID, sysID = _ref.sysID;
- }
- if (sysID == null) {
- _ref1 = [pubID, sysID], sysID = _ref1[0], pubID = _ref1[1];
- }
- if (pubID != null) {
- this.pubID = this.stringify.dtdPubID(pubID);
- }
- if (sysID != null) {
- this.sysID = this.stringify.dtdSysID(sysID);
- }
- }
-
- XMLDocType.prototype.clone = function() {
- return _.create(XMLDocType.prototype, this);
- };
-
- XMLDocType.prototype.element = function(name, value) {
- var XMLDTDElement, child;
- XMLDTDElement = require('./XMLDTDElement');
- child = new XMLDTDElement(this, name, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
- var XMLDTDAttList, child;
- XMLDTDAttList = require('./XMLDTDAttList');
- child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.entity = function(name, value) {
- var XMLDTDEntity, child;
- XMLDTDEntity = require('./XMLDTDEntity');
- child = new XMLDTDEntity(this, false, name, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.pEntity = function(name, value) {
- var XMLDTDEntity, child;
- XMLDTDEntity = require('./XMLDTDEntity');
- child = new XMLDTDEntity(this, true, name, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.notation = function(name, value) {
- var XMLDTDNotation, child;
- XMLDTDNotation = require('./XMLDTDNotation');
- child = new XMLDTDNotation(this, name, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.cdata = function(value) {
- var XMLCData, child;
- XMLCData = require('./XMLCData');
- child = new XMLCData(this, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.comment = function(value) {
- var XMLComment, child;
- XMLComment = require('./XMLComment');
- child = new XMLComment(this, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.instruction = function(target, value) {
- var XMLProcessingInstruction, child;
- XMLProcessingInstruction = require('./XMLProcessingInstruction');
- child = new XMLProcessingInstruction(this, target, value);
- this.children.push(child);
- return this;
- };
-
- XMLDocType.prototype.root = function() {
- return this.documentObject.root();
- };
-
- XMLDocType.prototype.document = function() {
- return this.documentObject;
- };
-
- XMLDocType.prototype.toString = function(options, level) {
- var child, indent, newline, pretty, r, space, _i, _len, _ref;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- if (pretty) {
- r += space;
- }
- r += '<!DOCTYPE ' + this.root().name;
- if (this.pubID && this.sysID) {
- r += ' PUBLIC "' + this.pubID + '" "' + this.sysID + '"';
- } else if (this.sysID) {
- r += ' SYSTEM "' + this.sysID + '"';
- }
- if (this.children.length > 0) {
- r += ' [';
- if (pretty) {
- r += newline;
- }
- _ref = this.children;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- child = _ref[_i];
- r += child.toString(options, level + 1);
- }
- r += ']';
- }
- r += '>';
- if (pretty) {
- r += newline;
- }
- return r;
- };
-
- XMLDocType.prototype.ele = function(name, value) {
- return this.element(name, value);
- };
-
- XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
- return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue);
- };
-
- XMLDocType.prototype.ent = function(name, value) {
- return this.entity(name, value);
- };
-
- XMLDocType.prototype.pent = function(name, value) {
- return this.pEntity(name, value);
- };
-
- XMLDocType.prototype.not = function(name, value) {
- return this.notation(name, value);
- };
-
- XMLDocType.prototype.dat = function(value) {
- return this.cdata(value);
- };
-
- XMLDocType.prototype.com = function(value) {
- return this.comment(value);
- };
-
- XMLDocType.prototype.ins = function(target, value) {
- return this.instruction(target, value);
- };
-
- XMLDocType.prototype.up = function() {
- return this.root();
- };
-
- XMLDocType.prototype.doc = function() {
- return this.document();
- };
-
- return XMLDocType;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/0d465c30/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLElement.js
----------------------------------------------------------------------
diff --git a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLElement.js b/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLElement.js
deleted file mode 100644
index 28a5c81..0000000
--- a/node_modules/simple-plist/node_modules/xmlbuilder/lib/XMLElement.js
+++ /dev/null
@@ -1,190 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var XMLAttribute, XMLElement, XMLNode, XMLProcessingInstruction, _,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
-
- _ = require('lodash-node');
-
- XMLNode = require('./XMLNode');
-
- XMLAttribute = require('./XMLAttribute');
-
- XMLProcessingInstruction = require('./XMLProcessingInstruction');
-
- module.exports = XMLElement = (function(_super) {
- __extends(XMLElement, _super);
-
- function XMLElement(parent, name, attributes) {
- XMLElement.__super__.constructor.call(this, parent);
- if (name == null) {
- throw new Error("Missing element name");
- }
- this.name = this.stringify.eleName(name);
- this.children = [];
- this.instructions = [];
- this.attributes = {};
- if (attributes != null) {
- this.attribute(attributes);
- }
- }
-
- XMLElement.prototype.clone = function() {
- var att, attName, clonedSelf, pi, _i, _len, _ref, _ref1;
- clonedSelf = _.create(XMLElement.prototype, this);
- clonedSelf.attributes = {};
- _ref = this.attributes;
- for (attName in _ref) {
- if (!__hasProp.call(_ref, attName)) continue;
- att = _ref[attName];
- clonedSelf.attributes[attName] = att.clone();
- }
- clonedSelf.instructions = [];
- _ref1 = this.instructions;
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- pi = _ref1[_i];
- clonedSelf.instructions.push(pi.clone());
- }
- clonedSelf.children = [];
- this.children.forEach(function(child) {
- var clonedChild;
- clonedChild = child.clone();
- clonedChild.parent = clonedSelf;
- return clonedSelf.children.push(clonedChild);
- });
- return clonedSelf;
- };
-
- XMLElement.prototype.attribute = function(name, value) {
- var attName, attValue;
- if (_.isObject(name)) {
- for (attName in name) {
- if (!__hasProp.call(name, attName)) continue;
- attValue = name[attName];
- this.attribute(attName, attValue);
- }
- } else {
- if (_.isFunction(value)) {
- value = value.apply();
- }
- if (!this.options.skipNullAttributes || (value != null)) {
- this.attributes[name] = new XMLAttribute(this, name, value);
- }
- }
- return this;
- };
-
- XMLElement.prototype.removeAttribute = function(name) {
- var attName, _i, _len;
- if (name == null) {
- throw new Error("Missing attribute name");
- }
- if (_.isArray(name)) {
- for (_i = 0, _len = name.length; _i < _len; _i++) {
- attName = name[_i];
- delete this.attributes[attName];
- }
- } else {
- delete this.attributes[name];
- }
- return this;
- };
-
- XMLElement.prototype.instruction = function(target, value) {
- var insTarget, insValue, instruction, _i, _len;
- if (_.isArray(target)) {
- for (_i = 0, _len = target.length; _i < _len; _i++) {
- insTarget = target[_i];
- this.instruction(insTarget);
- }
- } else if (_.isObject(target)) {
- for (insTarget in target) {
- if (!__hasProp.call(target, insTarget)) continue;
- insValue = target[insTarget];
- this.instruction(insTarget, insValue);
- }
- } else {
- if (_.isFunction(value)) {
- value = value.apply();
- }
- instruction = new XMLProcessingInstruction(this, target, value);
- this.instructions.push(instruction);
- }
- return this;
- };
-
- XMLElement.prototype.toString = function(options, level) {
- var att, child, indent, instruction, name, newline, pretty, r, space, _i, _j, _len, _len1, _ref, _ref1, _ref2;
- pretty = (options != null ? options.pretty : void 0) || false;
- indent = (options != null ? options.indent : void 0) || ' ';
- newline = (options != null ? options.newline : void 0) || '\n';
- level || (level = 0);
- space = new Array(level + 1).join(indent);
- r = '';
- _ref = this.instructions;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- instruction = _ref[_i];
- r += instruction.toString(options, level + 1);
- }
- if (pretty) {
- r += space;
- }
- r += '<' + this.name;
- _ref1 = this.attributes;
- for (name in _ref1) {
- if (!__hasProp.call(_ref1, name)) continue;
- att = _ref1[name];
- r += att.toString(options);
- }
- if (this.children.length === 0) {
- r += '/>';
- if (pretty) {
- r += newline;
- }
- } else if (pretty && this.children.length === 1 && (this.children[0].value != null)) {
- r += '>';
- r += this.children[0].value;
- r += '</' + this.name + '>';
- r += newline;
- } else {
- r += '>';
- if (pretty) {
- r += newline;
- }
- _ref2 = this.children;
- for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
- child = _ref2[_j];
- r += child.toString(options, level + 1);
- }
- if (pretty) {
- r += space;
- }
- r += '</' + this.name + '>';
- if (pretty) {
- r += newline;
- }
- }
- return r;
- };
-
- XMLElement.prototype.att = function(name, value) {
- return this.attribute(name, value);
- };
-
- XMLElement.prototype.ins = function(target, value) {
- return this.instruction(target, value);
- };
-
- XMLElement.prototype.a = function(name, value) {
- return this.attribute(name, value);
- };
-
- XMLElement.prototype.i = function(target, value) {
- return this.instruction(target, value);
- };
-
- return XMLElement;
-
- })(XMLNode);
-
-}).call(this);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org