11 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/examples/example.js:
--------------------------------------------------------------------------------
1 |
2 | var fs = require("fs"),
3 | util = require("util"),
4 | path = require("path"),
5 | xml = fs.readFileSync(path.join(__dirname, "test.xml"), "utf8"),
6 | sax = require("../lib/sax"),
7 | strict = sax.parser(true),
8 | loose = sax.parser(false, {trim:true}),
9 | inspector = function (ev) { return function (data) {
10 | console.error("%s %s %j", this.line+":"+this.column, ev, data);
11 | }};
12 |
13 | sax.EVENTS.forEach(function (ev) {
14 | loose["on"+ev] = inspector(ev);
15 | });
16 | loose.onend = function () {
17 | console.error("end");
18 | console.error(loose);
19 | };
20 |
21 | // do this in random bits at a time to verify that it works.
22 | (function () {
23 | if (xml) {
24 | var c = Math.ceil(Math.random() * 1000)
25 | loose.write(xml.substr(0,c));
26 | xml = xml.substr(c);
27 | process.nextTick(arguments.callee);
28 | } else loose.close();
29 | })();
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/examples/hello-world.js:
--------------------------------------------------------------------------------
1 | require("http").createServer(function (req, res) {
2 | res.writeHead(200, {"content-type":"application/json"})
3 | res.end(JSON.stringify({ok: true}))
4 | }).listen(1337)
5 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/examples/not-pretty.xml:
--------------------------------------------------------------------------------
1 |
2 | something blerm a bit down here
9 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/examples/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | testing the parser
6 |
7 |
8 |
9 | hello
10 |
11 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/attribute-name.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test(
2 | { xml: ""
3 | , expect: [
4 | ["attribute", {
5 | name: "length"
6 | , value: "12345"
7 | , prefix: ""
8 | , local: "length"
9 | , uri: ""
10 | }]
11 | , ["opentag", {
12 | name: "root"
13 | , prefix: ""
14 | , local: "root"
15 | , uri: ""
16 | , attributes: {
17 | length: {
18 | name: "length"
19 | , value: "12345"
20 | , prefix: ""
21 | , local: "length"
22 | , uri: ""
23 | }
24 | }
25 | , ns: {}
26 | , isSelfClosing: false
27 | }]
28 | , ["closetag", "root"]
29 | ]
30 | , strict: true
31 | , opt: { xmlns: true }
32 | }
33 | )
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/buffer-overrun.js:
--------------------------------------------------------------------------------
1 | // set this really low so that I don't have to put 64 MB of xml in here.
2 | var sax = require("../lib/sax")
3 | var bl = sax.MAX_BUFFER_LENGTH
4 | sax.MAX_BUFFER_LENGTH = 5;
5 |
6 | require(__dirname).test({
7 | expect : [
8 | ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 15\nChar: "],
9 | ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 30\nChar: "],
10 | ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 45\nChar: "],
11 | ["opentag", {
12 | "name": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ",
13 | "attributes": {},
14 | "isSelfClosing": false
15 | }],
16 | ["text", "yo"],
17 | ["closetag", "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"]
18 | ]
19 | }).write("")
23 | .write("yo")
24 | .write("")
25 | .close();
26 | sax.MAX_BUFFER_LENGTH = bl
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cdata-chunked.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | expect : [
4 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
5 | ["opencdata", undefined],
6 | ["cdata", " this is character data "],
7 | ["closecdata", undefined],
8 | ["closetag", "R"]
9 | ]
10 | }).write("").close();
11 |
12 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cdata-end-split.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | expect : [
4 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
5 | ["opencdata", undefined],
6 | ["cdata", " this is "],
7 | ["closecdata", undefined],
8 | ["closetag", "R"]
9 | ]
10 | })
11 | .write("")
13 | .write("")
14 | .close();
15 |
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cdata-fake-end.js:
--------------------------------------------------------------------------------
1 |
2 | var p = require(__dirname).test({
3 | expect : [
4 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
5 | ["opencdata", undefined],
6 | ["cdata", "[[[[[[[[]]]]]]]]"],
7 | ["closecdata", undefined],
8 | ["closetag", "R"]
9 | ]
10 | })
11 | var x = ""
12 | for (var i = 0; i < x.length ; i ++) {
13 | p.write(x.charAt(i))
14 | }
15 | p.close();
16 |
17 |
18 | var p2 = require(__dirname).test({
19 | expect : [
20 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
21 | ["opencdata", undefined],
22 | ["cdata", "[[[[[[[[]]]]]]]]"],
23 | ["closecdata", undefined],
24 | ["closetag", "R"]
25 | ]
26 | })
27 | var x = ""
28 | p2.write(x).close();
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cdata-multiple.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | expect : [
4 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
5 | ["opencdata", undefined],
6 | ["cdata", " this is "],
7 | ["closecdata", undefined],
8 | ["opencdata", undefined],
9 | ["cdata", "character data "],
10 | ["closecdata", undefined],
11 | ["closetag", "R"]
12 | ]
13 | }).write("").write("").close();
15 |
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cdata.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test({
2 | xml : "",
3 | expect : [
4 | ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
5 | ["opencdata", undefined],
6 | ["cdata", " this is character data "],
7 | ["closecdata", undefined],
8 | ["closetag", "R"]
9 | ]
10 | });
11 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/cyrillic.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test({
2 | xml: '<Р>тестР>',
3 | expect: [
4 | ['opentag', {'name':'Р', attributes:{}, isSelfClosing: false}],
5 | ['text', 'тест'],
6 | ['closetag', 'Р']
7 | ]
8 | });
9 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/duplicate-attribute.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test
2 | ( { xml :
3 | ""
4 | , expect :
5 | [ [ "attribute", { name: "ID", value: "hello" } ]
6 | , [ "opentag", { name: "SPAN",
7 | attributes: { ID: "hello" }, isSelfClosing: false } ]
8 | , [ "closetag", "SPAN" ]
9 | ]
10 | , strict : false
11 | , opt : {}
12 | }
13 | )
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/emoji.js:
--------------------------------------------------------------------------------
1 | // split high-order numeric attributes into surrogate pairs
2 | require(__dirname).test
3 | ( { xml : '🔥'
4 | , expect :
5 | [ [ 'opentag', { name: 'A', attributes: {}, isSelfClosing: false } ]
6 | , [ 'text', '\ud83d\udd25' ]
7 | , [ 'closetag', 'A' ]
8 | ]
9 | , strict : false
10 | , opt : {}
11 | }
12 | )
13 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/end_empty_stream.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert');
2 | var saxStream = require('../lib/sax').createStream();
3 | assert.doesNotThrow(function() {
4 | saxStream.end();
5 | });
6 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/entities.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test({
2 | xml: '⌋ ' +
3 | '♠ © → & ' +
4 | '< < < < < > ℜ ℘ €',
5 | expect: [
6 | ['opentag', {'name':'R', attributes:{}, isSelfClosing: false}],
7 | ['text', '⌋ ♠ © → & < < < < < > ℜ ℘ €'],
8 | ['closetag', 'R']
9 | ]
10 | });
11 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/entity-mega.js:
--------------------------------------------------------------------------------
1 | var sax = require('../');
2 | var xml = '';
3 | var text = '';
4 | for (var i in sax.ENTITIES) {
5 | xml += '&' + i + ';'
6 | text += sax.ENTITIES[i]
7 | }
8 | xml += ''
9 | require(__dirname).test({
10 | xml: xml,
11 | expect: [
12 | ['opentag', {'name':'R', attributes:{}, isSelfClosing: false}],
13 | ['text', text],
14 | ['closetag', 'R']
15 | ]
16 | });
17 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/flush.js:
--------------------------------------------------------------------------------
1 | var parser = require(__dirname).test({
2 | expect: [
3 | ['opentag', {'name':'T', attributes:{}, isSelfClosing: false}],
4 | ['text', 'flush'],
5 | ['text', 'rest'],
6 | ['closetag', 'T'],
7 | ]
8 | });
9 |
10 | parser.write('flush');
11 | parser.flush();
12 | parser.write('rest');
13 | parser.close();
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/issue-30.js:
--------------------------------------------------------------------------------
1 | // https://github.com/isaacs/sax-js/issues/33
2 | require(__dirname).test
3 | ( { xml : "\n"+
4 | "\n"+
7 | "\n"+
8 | ""
9 |
10 | , expect :
11 | [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
12 | , [ "text", "\n" ]
13 | , [ "comment", " \n comment with a single dash- in it\n" ]
14 | , [ "text", "\n" ]
15 | , [ "opentag", { name: "data", attributes: {}, isSelfClosing: true } ]
16 | , [ "closetag", "data" ]
17 | , [ "text", "\n" ]
18 | , [ "closetag", "xml" ]
19 | ]
20 | , strict : true
21 | , opt : {}
22 | }
23 | )
24 |
25 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/issue-35.js:
--------------------------------------------------------------------------------
1 | // https://github.com/isaacs/sax-js/issues/35
2 | require(__dirname).test
3 | ( { xml : "
\n"+
4 | ""
5 |
6 | , expect :
7 | [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
8 | , [ "text", "\r\r\n" ]
9 | , [ "closetag", "xml" ]
10 | ]
11 | , strict : true
12 | , opt : {}
13 | }
14 | )
15 |
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/issue-47.js:
--------------------------------------------------------------------------------
1 | // https://github.com/isaacs/sax-js/issues/47
2 | require(__dirname).test
3 | ( { xml : ''
4 | , expect : [
5 | [ "attribute", { name:'HREF', value:"query.svc?x=1&y=2&z=3"} ],
6 | [ "opentag", { name: "A", attributes: { HREF:"query.svc?x=1&y=2&z=3"}, isSelfClosing: true } ],
7 | [ "closetag", "A" ]
8 | ]
9 | , opt : {}
10 | }
11 | )
12 |
13 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/issue-49.js:
--------------------------------------------------------------------------------
1 | // https://github.com/isaacs/sax-js/issues/49
2 | require(__dirname).test
3 | ( { xml : ""
4 | , expect :
5 | [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
6 | , [ "opentag", { name: "script", attributes: {}, isSelfClosing: false } ]
7 | , [ "text", "hello world" ]
8 | , [ "closetag", "script" ]
9 | , [ "closetag", "xml" ]
10 | ]
11 | , strict : false
12 | , opt : { lowercasetags: true, noscript: true }
13 | }
14 | )
15 |
16 | require(__dirname).test
17 | ( { xml : ""
18 | , expect :
19 | [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
20 | , [ "opentag", { name: "script", attributes: {}, isSelfClosing: false } ]
21 | , [ "opencdata", undefined ]
22 | , [ "cdata", "hello world" ]
23 | , [ "closecdata", undefined ]
24 | , [ "closetag", "script" ]
25 | , [ "closetag", "xml" ]
26 | ]
27 | , strict : false
28 | , opt : { lowercasetags: true, noscript: true }
29 | }
30 | )
31 |
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/issue-84.js:
--------------------------------------------------------------------------------
1 | // https://github.com/isaacs/sax-js/issues/49
2 | require(__dirname).test
3 | ( { xml : "body"
4 | , expect :
5 | [ [ "processinginstruction", { name: "has", body: "unbalanced \"quotes" } ],
6 | [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ]
7 | , [ "text", "body" ]
8 | , [ "closetag", "xml" ]
9 | ]
10 | , strict : false
11 | , opt : { lowercasetags: true, noscript: true }
12 | }
13 | )
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/parser-position.js:
--------------------------------------------------------------------------------
1 | var sax = require("../lib/sax"),
2 | assert = require("assert")
3 |
4 | function testPosition(chunks, expectedEvents) {
5 | var parser = sax.parser();
6 | expectedEvents.forEach(function(expectation) {
7 | parser['on' + expectation[0]] = function() {
8 | for (var prop in expectation[1]) {
9 | assert.equal(parser[prop], expectation[1][prop]);
10 | }
11 | }
12 | });
13 | chunks.forEach(function(chunk) {
14 | parser.write(chunk);
15 | });
16 | };
17 |
18 | testPosition(['abcdefgh
'],
19 | [ ['opentag', { position: 5, startTagPosition: 1 }]
20 | , ['text', { position: 19, startTagPosition: 14 }]
21 | , ['closetag', { position: 19, startTagPosition: 14 }]
22 | ]);
23 |
24 | testPosition(['abcde','fgh
'],
25 | [ ['opentag', { position: 5, startTagPosition: 1 }]
26 | , ['text', { position: 19, startTagPosition: 14 }]
27 | , ['closetag', { position: 19, startTagPosition: 14 }]
28 | ]);
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/script-close-better.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test({
2 | xml : "",
3 | expect : [
4 | ["opentag", {"name": "HTML","attributes": {}, isSelfClosing: false}],
5 | ["opentag", {"name": "HEAD","attributes": {}, isSelfClosing: false}],
6 | ["opentag", {"name": "SCRIPT","attributes": {}, isSelfClosing: false}],
7 | ["script", "'foo
'"],
8 | ["closetag", "SCRIPT"],
9 | ["closetag", "HEAD"],
10 | ["closetag", "HTML"]
11 | ]
12 | });
13 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/script.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test({
2 | xml : "",
3 | expect : [
4 | ["opentag", {"name": "HTML","attributes": {}, "isSelfClosing": false}],
5 | ["opentag", {"name": "HEAD","attributes": {}, "isSelfClosing": false}],
6 | ["opentag", {"name": "SCRIPT","attributes": {}, "isSelfClosing": false}],
7 | ["script", "if (1 < 0) { console.log('elo there'); }"],
8 | ["closetag", "SCRIPT"],
9 | ["closetag", "HEAD"],
10 | ["closetag", "HTML"]
11 | ]
12 | });
13 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/self-closing-child-strict.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | xml :
4 | ""+
5 | "" +
6 | "" +
7 | "" +
8 | "" +
9 | "=(|)" +
10 | "" +
11 | "",
12 | expect : [
13 | ["opentag", {
14 | "name": "root",
15 | "attributes": {},
16 | "isSelfClosing": false
17 | }],
18 | ["opentag", {
19 | "name": "child",
20 | "attributes": {},
21 | "isSelfClosing": false
22 | }],
23 | ["opentag", {
24 | "name": "haha",
25 | "attributes": {},
26 | "isSelfClosing": true
27 | }],
28 | ["closetag", "haha"],
29 | ["closetag", "child"],
30 | ["opentag", {
31 | "name": "monkey",
32 | "attributes": {},
33 | "isSelfClosing": false
34 | }],
35 | ["text", "=(|)"],
36 | ["closetag", "monkey"],
37 | ["closetag", "root"],
38 | ["end"],
39 | ["ready"]
40 | ],
41 | strict : true,
42 | opt : {}
43 | });
44 |
45 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/self-closing-child.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | xml :
4 | ""+
5 | "" +
6 | "" +
7 | "" +
8 | "" +
9 | "=(|)" +
10 | "" +
11 | "",
12 | expect : [
13 | ["opentag", {
14 | "name": "ROOT",
15 | "attributes": {},
16 | "isSelfClosing": false
17 | }],
18 | ["opentag", {
19 | "name": "CHILD",
20 | "attributes": {},
21 | "isSelfClosing": false
22 | }],
23 | ["opentag", {
24 | "name": "HAHA",
25 | "attributes": {},
26 | "isSelfClosing": true
27 | }],
28 | ["closetag", "HAHA"],
29 | ["closetag", "CHILD"],
30 | ["opentag", {
31 | "name": "MONKEY",
32 | "attributes": {},
33 | "isSelfClosing": false
34 | }],
35 | ["text", "=(|)"],
36 | ["closetag", "MONKEY"],
37 | ["closetag", "ROOT"],
38 | ["end"],
39 | ["ready"]
40 | ],
41 | strict : false,
42 | opt : {}
43 | });
44 |
45 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/self-closing-tag.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | xml :
4 | " "+
5 | " "+
6 | " "+
7 | " "+
8 | "=(|) "+
9 | ""+
10 | " ",
11 | expect : [
12 | ["opentag", {name:"ROOT", attributes:{}, isSelfClosing: false}],
13 | ["opentag", {name:"HAHA", attributes:{}, isSelfClosing: true}],
14 | ["closetag", "HAHA"],
15 | ["opentag", {name:"HAHA", attributes:{}, isSelfClosing: true}],
16 | ["closetag", "HAHA"],
17 | // ["opentag", {name:"HAHA", attributes:{}}],
18 | // ["closetag", "HAHA"],
19 | ["opentag", {name:"MONKEY", attributes:{}, isSelfClosing: false}],
20 | ["text", "=(|)"],
21 | ["closetag", "MONKEY"],
22 | ["closetag", "ROOT"]
23 | ],
24 | opt : { trim : true }
25 | });
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/stray-ending.js:
--------------------------------------------------------------------------------
1 | // stray ending tags should just be ignored in non-strict mode.
2 | // https://github.com/isaacs/sax-js/issues/32
3 | require(__dirname).test
4 | ( { xml :
5 | ""
6 | , expect :
7 | [ [ "opentag", { name: "A", attributes: {}, isSelfClosing: false } ]
8 | , [ "opentag", { name: "B", attributes: {}, isSelfClosing: false } ]
9 | , [ "text", "" ]
10 | , [ "closetag", "B" ]
11 | , [ "closetag", "A" ]
12 | ]
13 | , strict : false
14 | , opt : {}
15 | }
16 | )
17 |
18 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/trailing-attribute-no-value.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | xml :
4 | "",
5 | expect : [
6 | ["attribute", {name:"ATTRIB", value:"attrib"}],
7 | ["opentag", {name:"ROOT", attributes:{"ATTRIB":"attrib"}, isSelfClosing: false}]
8 | ],
9 | opt : { trim : true }
10 | });
11 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/trailing-non-whitespace.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test({
3 | xml : "Welcome, to monkey land",
4 | expect : [
5 | ["opentag", {
6 | "name": "SPAN",
7 | "attributes": {},
8 | isSelfClosing: false
9 | }],
10 | ["text", "Welcome,"],
11 | ["closetag", "SPAN"],
12 | ["text", " to monkey land"],
13 | ["end"],
14 | ["ready"]
15 | ],
16 | strict : false,
17 | opt : {}
18 | });
19 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/unclosed-root.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test
2 | ( { xml : ""
3 |
4 | , expect :
5 | [ [ "opentag", { name: "root", attributes: {}, isSelfClosing: false } ]
6 | , [ "error", "Unclosed root tag\nLine: 0\nColumn: 6\nChar: " ]
7 | ]
8 | , strict : true
9 | , opt : {}
10 | }
11 | )
12 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/unquoted.js:
--------------------------------------------------------------------------------
1 | // unquoted attributes should be ok in non-strict mode
2 | // https://github.com/isaacs/sax-js/issues/31
3 | require(__dirname).test
4 | ( { xml :
5 | ""
6 | , expect :
7 | [ [ "attribute", { name: "CLASS", value: "test" } ]
8 | , [ "attribute", { name: "HELLO", value: "world" } ]
9 | , [ "opentag", { name: "SPAN",
10 | attributes: { CLASS: "test", HELLO: "world" },
11 | isSelfClosing: false } ]
12 | , [ "closetag", "SPAN" ]
13 | ]
14 | , strict : false
15 | , opt : {}
16 | }
17 | )
18 |
19 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/utf8-split.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert')
2 | var saxStream = require('../lib/sax').createStream()
3 |
4 | var b = new Buffer('误')
5 |
6 | saxStream.on('text', function(text) {
7 | assert.equal(text, b.toString())
8 | })
9 |
10 | saxStream.write(new Buffer(''))
11 | saxStream.write(b.slice(0, 1))
12 | saxStream.write(b.slice(1))
13 | saxStream.write(new Buffer(''))
14 | saxStream.write(b.slice(0, 2))
15 | saxStream.write(b.slice(2))
16 | saxStream.write(new Buffer(''))
17 | saxStream.write(b)
18 | saxStream.write(new Buffer(''))
19 | saxStream.write(Buffer.concat([new Buffer(''), b.slice(0, 1)]))
20 | saxStream.end(Buffer.concat([b.slice(1), new Buffer('')]))
21 |
22 | var saxStream2 = require('../lib/sax').createStream()
23 |
24 | saxStream2.on('text', function(text) {
25 | assert.equal(text, '�')
26 | });
27 |
28 | saxStream2.write(new Buffer(''));
29 | saxStream2.write(new Buffer([0xC0]));
30 | saxStream2.write(new Buffer(''));
31 | saxStream2.write(Buffer.concat([new Buffer(''), b.slice(0,1)]));
32 | saxStream2.end();
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-as-tag-name.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test
3 | ( { xml :
4 | ""
5 | , expect :
6 | [ [ "opentag", { name: "xmlns", uri: "", prefix: "", local: "xmlns",
7 | attributes: {}, ns: {},
8 | isSelfClosing: true}
9 | ],
10 | ["closetag", "xmlns"]
11 | ]
12 | , strict : true
13 | , opt : { xmlns: true }
14 | }
15 | );
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-unbound.js:
--------------------------------------------------------------------------------
1 |
2 | require(__dirname).test(
3 | { strict : true
4 | , opt : { xmlns: true }
5 | , expect :
6 | [ ["error", "Unbound namespace prefix: \"unbound\"\nLine: 0\nColumn: 28\nChar: >"]
7 |
8 | , [ "attribute", { name: "unbound:attr", value: "value", uri: "unbound", prefix: "unbound", local: "attr" } ]
9 | , [ "opentag", { name: "root", uri: "", prefix: "", local: "root",
10 | attributes: { "unbound:attr": { name: "unbound:attr", value: "value", uri: "unbound", prefix: "unbound", local: "attr" } },
11 | ns: {}, isSelfClosing: true } ]
12 | , [ "closetag", "root" ]
13 | ]
14 | }
15 | ).write("")
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-xml-default-ns.js:
--------------------------------------------------------------------------------
1 | var xmlns_attr =
2 | {
3 | name: "xmlns", value: "http://foo", prefix: "xmlns",
4 | local: "", uri : "http://www.w3.org/2000/xmlns/"
5 | };
6 |
7 | var attr_attr =
8 | {
9 | name: "attr", value: "bar", prefix: "",
10 | local : "attr", uri : ""
11 | };
12 |
13 |
14 | require(__dirname).test
15 | ( { xml :
16 | ""
17 | , expect :
18 | [ [ "opennamespace", { prefix: "", uri: "http://foo" } ]
19 | , [ "attribute", xmlns_attr ]
20 | , [ "attribute", attr_attr ]
21 | , [ "opentag", { name: "elm", prefix: "", local: "elm", uri : "http://foo",
22 | ns : { "" : "http://foo" },
23 | attributes: { xmlns: xmlns_attr, attr: attr_attr },
24 | isSelfClosing: true } ]
25 | , [ "closetag", "elm" ]
26 | , [ "closenamespace", { prefix: "", uri: "http://foo"} ]
27 | ]
28 | , strict : true
29 | , opt : {xmlns: true}
30 | }
31 | )
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test(
2 | { xml : ""
3 | , expect :
4 | [ [ "attribute"
5 | , { name: "xml:lang"
6 | , local: "lang"
7 | , prefix: "xml"
8 | , uri: "http://www.w3.org/XML/1998/namespace"
9 | , value: "en"
10 | }
11 | ]
12 | , [ "opentag"
13 | , { name: "root"
14 | , uri: ""
15 | , prefix: ""
16 | , local: "root"
17 | , attributes:
18 | { "xml:lang":
19 | { name: "xml:lang"
20 | , local: "lang"
21 | , prefix: "xml"
22 | , uri: "http://www.w3.org/XML/1998/namespace"
23 | , value: "en"
24 | }
25 | }
26 | , ns: {}
27 | , isSelfClosing: true
28 | }
29 | ]
30 | , ["closetag", "root"]
31 | ]
32 | , strict : true
33 | , opt : { xmlns: true }
34 | }
35 | )
36 |
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-xml-default-prefix.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test(
2 | { xml : ""
3 | , expect :
4 | [
5 | [ "opentag"
6 | , { name: "xml:root"
7 | , uri: "http://www.w3.org/XML/1998/namespace"
8 | , prefix: "xml"
9 | , local: "root"
10 | , attributes: {}
11 | , ns: {}
12 | , isSelfClosing: true
13 | }
14 | ]
15 | , ["closetag", "xml:root"]
16 | ]
17 | , strict : true
18 | , opt : { xmlns: true }
19 | }
20 | )
21 |
22 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/sax/test/xmlns-xml-default-redefine.js:
--------------------------------------------------------------------------------
1 | require(__dirname).test(
2 | { xml : ""
3 | , expect :
4 | [ ["error"
5 | , "xml: prefix must be bound to http://www.w3.org/XML/1998/namespace\n"
6 | + "Actual: ERROR\n"
7 | + "Line: 0\nColumn: 27\nChar: '"
8 | ]
9 | , [ "attribute"
10 | , { name: "xmlns:xml"
11 | , local: "xml"
12 | , prefix: "xmlns"
13 | , uri: "http://www.w3.org/2000/xmlns/"
14 | , value: "ERROR"
15 | }
16 | ]
17 | , [ "opentag"
18 | , { name: "xml:root"
19 | , uri: "http://www.w3.org/XML/1998/namespace"
20 | , prefix: "xml"
21 | , local: "root"
22 | , attributes:
23 | { "xmlns:xml":
24 | { name: "xmlns:xml"
25 | , local: "xml"
26 | , prefix: "xmlns"
27 | , uri: "http://www.w3.org/2000/xmlns/"
28 | , value: "ERROR"
29 | }
30 | }
31 | , ns: {}
32 | , isSelfClosing: true
33 | }
34 | ]
35 | , ["closetag", "xml:root"]
36 | ]
37 | , strict : true
38 | , opt : { xmlns: true }
39 | }
40 | )
41 |
42 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/.npmignore:
--------------------------------------------------------------------------------
1 | .travis.yml
2 | src
3 | test
4 | perf
5 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 Ozgur Ozcitak
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.6.3
2 | (function() {
3 | var XMLAttribute, create;
4 |
5 | create = require('lodash-node/modern/objects/create');
6 |
7 | module.exports = XMLAttribute = (function() {
8 | function XMLAttribute(parent, name, value) {
9 | this.stringify = parent.stringify;
10 | if (name == null) {
11 | throw new Error("Missing attribute name");
12 | }
13 | if (value == null) {
14 | throw new Error("Missing attribute value");
15 | }
16 | this.name = this.stringify.attName(name);
17 | this.value = this.stringify.attValue(value);
18 | }
19 |
20 | XMLAttribute.prototype.clone = function() {
21 | return create(XMLAttribute.prototype, this);
22 | };
23 |
24 | XMLAttribute.prototype.toString = function(options, level) {
25 | return ' ' + this.name + '="' + this.value + '"';
26 | };
27 |
28 | return XMLAttribute;
29 |
30 | })();
31 |
32 | }).call(this);
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.6.3
2 | (function() {
3 | var XMLBuilder, assign;
4 |
5 | assign = require('lodash-node/modern/objects/assign');
6 |
7 | XMLBuilder = require('./XMLBuilder');
8 |
9 | module.exports.create = function(name, xmldec, doctype, options) {
10 | options = assign({}, xmldec, doctype, options);
11 | return new XMLBuilder(name, options).root();
12 | };
13 |
14 | }).call(this);
15 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/arrays/compact.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Creates an array with all falsey values removed. The values `false`, `null`,
12 | * `0`, `""`, `undefined`, and `NaN` are all falsey.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Arrays
17 | * @param {Array} array The array to compact.
18 | * @returns {Array} Returns a new array of filtered values.
19 | * @example
20 | *
21 | * _.compact([0, 1, false, 2, '', 3]);
22 | * // => [1, 2, 3]
23 | */
24 | function compact(array) {
25 | var index = -1,
26 | length = array ? array.length : 0,
27 | result = [];
28 |
29 | while (++index < length) {
30 | var value = array[index];
31 | if (value) {
32 | result.push(value);
33 | }
34 | }
35 | return result;
36 | }
37 |
38 | module.exports = compact;
39 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/arrays/difference.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | baseFlatten = require('../internals/baseFlatten');
11 |
12 | /**
13 | * Creates an array excluding all values of the provided arrays using strict
14 | * equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to process.
20 | * @param {...Array} [values] The arrays of values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
25 | * // => [1, 3, 4]
26 | */
27 | function difference(array) {
28 | return baseDifference(array, baseFlatten(arguments, true, true, 1));
29 | }
30 |
31 | module.exports = difference;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/arrays/union.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseFlatten = require('../internals/baseFlatten'),
10 | baseUniq = require('../internals/baseUniq');
11 |
12 | /**
13 | * Creates an array of unique values, in order, of the provided arrays using
14 | * strict equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {...Array} [array] The arrays to inspect.
20 | * @returns {Array} Returns an array of combined values.
21 | * @example
22 | *
23 | * _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
24 | * // => [1, 2, 3, 5, 4]
25 | */
26 | function union() {
27 | return baseUniq(baseFlatten(arguments, true, true));
28 | }
29 |
30 | module.exports = union;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/arrays/without.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | slice = require('../internals/slice');
11 |
12 | /**
13 | * Creates an array excluding all provided values using strict equality for
14 | * comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to filter.
20 | * @param {...*} [value] The values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
25 | * // => [2, 3, 4]
26 | */
27 | function without(array) {
28 | return baseDifference(array, slice(arguments, 1));
29 | }
30 |
31 | module.exports = without;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/chaining.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | module.exports = {
11 | 'chain': require('./chaining/chain'),
12 | 'tap': require('./chaining/tap'),
13 | 'value': require('./chaining/wrapperValueOf'),
14 | 'wrapperChain': require('./chaining/wrapperChain'),
15 | 'wrapperToString': require('./chaining/wrapperToString'),
16 | 'wrapperValueOf': require('./chaining/wrapperValueOf')
17 | };
18 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/chaining/tap.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Invokes `interceptor` with the `value` as the first argument and then
12 | * returns `value`. The purpose of this method is to "tap into" a method
13 | * chain in order to perform operations on intermediate results within
14 | * the chain.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Chaining
19 | * @param {*} value The value to provide to `interceptor`.
20 | * @param {Function} interceptor The function to invoke.
21 | * @returns {*} Returns `value`.
22 | * @example
23 | *
24 | * _([1, 2, 3, 4])
25 | * .tap(function(array) { array.pop(); })
26 | * .reverse()
27 | * .value();
28 | * // => [3, 2, 1]
29 | */
30 | function tap(value, interceptor) {
31 | interceptor(value);
32 | return value;
33 | }
34 |
35 | module.exports = tap;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/chaining/wrapperChain.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Enables explicit method chaining on the wrapper object.
12 | *
13 | * @name chain
14 | * @memberOf _
15 | * @category Chaining
16 | * @returns {*} Returns the wrapper object.
17 | * @example
18 | *
19 | * var characters = [
20 | * { 'name': 'barney', 'age': 36 },
21 | * { 'name': 'fred', 'age': 40 }
22 | * ];
23 | *
24 | * // without explicit chaining
25 | * _(characters).first();
26 | * // => { 'name': 'barney', 'age': 36 }
27 | *
28 | * // with explicit chaining
29 | * _(characters).chain()
30 | * .first()
31 | * .pick('age')
32 | * .value();
33 | * // => { 'age': 36 }
34 | */
35 | function wrapperChain() {
36 | this.__chain__ = true;
37 | return this;
38 | }
39 |
40 | module.exports = wrapperChain;
41 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/chaining/wrapperToString.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Produces the `toString` result of the wrapped value.
12 | *
13 | * @name toString
14 | * @memberOf _
15 | * @category Chaining
16 | * @returns {string} Returns the string result.
17 | * @example
18 | *
19 | * _([1, 2, 3]).toString();
20 | * // => '1,2,3'
21 | */
22 | function wrapperToString() {
23 | return String(this.__wrapped__);
24 | }
25 |
26 | module.exports = wrapperToString;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/chaining/wrapperValueOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var support = require('../support');
10 |
11 | /**
12 | * Extracts the wrapped value.
13 | *
14 | * @name valueOf
15 | * @memberOf _
16 | * @alias value
17 | * @category Chaining
18 | * @returns {*} Returns the wrapped value.
19 | * @example
20 | *
21 | * _([1, 2, 3]).valueOf();
22 | * // => [1, 2, 3]
23 | */
24 | function wrapperValueOf() {
25 | return this.__wrapped__;
26 | }
27 |
28 | module.exports = wrapperValueOf;
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/collections/pluck.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var map = require('./map');
10 |
11 | /**
12 | * Retrieves the value of a specified property from all elements in the collection.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @type Function
17 | * @category Collections
18 | * @param {Array|Object|string} collection The collection to iterate over.
19 | * @param {string} property The name of the property to pluck.
20 | * @returns {Array} Returns a new array of property values.
21 | * @example
22 | *
23 | * var characters = [
24 | * { 'name': 'barney', 'age': 36 },
25 | * { 'name': 'fred', 'age': 40 }
26 | * ];
27 | *
28 | * _.pluck(characters, 'name');
29 | * // => ['barney', 'fred']
30 | */
31 | var pluck = map;
32 |
33 | module.exports = pluck;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/functions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | module.exports = {
11 | 'after': require('./functions/after'),
12 | 'bind': require('./functions/bind'),
13 | 'bindAll': require('./functions/bindAll'),
14 | 'bindKey': require('./functions/bindKey'),
15 | 'compose': require('./functions/compose'),
16 | 'createCallback': require('./functions/createCallback'),
17 | 'curry': require('./functions/curry'),
18 | 'debounce': require('./functions/debounce'),
19 | 'defer': require('./functions/defer'),
20 | 'delay': require('./functions/delay'),
21 | 'memoize': require('./functions/memoize'),
22 | 'once': require('./functions/once'),
23 | 'partial': require('./functions/partial'),
24 | 'partialRight': require('./functions/partialRight'),
25 | 'throttle': require('./functions/throttle'),
26 | 'wrap': require('./functions/wrap')
27 | };
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/arrayPool.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to pool arrays and objects used internally */
11 | var arrayPool = [];
12 |
13 | module.exports = arrayPool;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/baseIndexOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * The base implementation of `_.indexOf` without support for binary searches
12 | * or `fromIndex` constraints.
13 | *
14 | * @private
15 | * @param {Array} array The array to search.
16 | * @param {*} value The value to search for.
17 | * @param {number} [fromIndex=0] The index to search from.
18 | * @returns {number} Returns the index of the matched value or `-1`.
19 | */
20 | function baseIndexOf(array, value, fromIndex) {
21 | var index = (fromIndex || 0) - 1,
22 | length = array ? array.length : 0;
23 |
24 | while (++index < length) {
25 | if (array[index] === value) {
26 | return index;
27 | }
28 | }
29 | return -1;
30 | }
31 |
32 | module.exports = baseIndexOf;
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/baseRandom.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Native method shortcuts */
11 | var floor = Math.floor;
12 |
13 | /* Native method shortcuts for methods with the same name as other `lodash` methods */
14 | var nativeRandom = Math.random;
15 |
16 | /**
17 | * The base implementation of `_.random` without argument juggling or support
18 | * for returning floating-point numbers.
19 | *
20 | * @private
21 | * @param {number} min The minimum possible value.
22 | * @param {number} max The maximum possible value.
23 | * @returns {number} Returns a random number.
24 | */
25 | function baseRandom(min, max) {
26 | return min + floor(nativeRandom() * (max - min + 1));
27 | }
28 |
29 | module.exports = baseRandom;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/cachePush.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keyPrefix = require('./keyPrefix');
10 |
11 | /**
12 | * Adds a given value to the corresponding cache object.
13 | *
14 | * @private
15 | * @param {*} value The value to add to the cache.
16 | */
17 | function cachePush(value) {
18 | var cache = this.cache,
19 | type = typeof value;
20 |
21 | if (type == 'boolean' || value == null) {
22 | cache[value] = true;
23 | } else {
24 | if (type != 'number' && type != 'string') {
25 | type = 'object';
26 | }
27 | var key = type == 'number' ? value : keyPrefix + value,
28 | typeCache = cache[type] || (cache[type] = {});
29 |
30 | if (type == 'object') {
31 | (typeCache[key] || (typeCache[key] = [])).push(value);
32 | } else {
33 | typeCache[key] = true;
34 | }
35 | }
36 | }
37 |
38 | module.exports = cachePush;
39 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/charAtCallback.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Used by `_.max` and `_.min` as the default callback when a given
12 | * collection is a string value.
13 | *
14 | * @private
15 | * @param {string} value The character to inspect.
16 | * @returns {number} Returns the code unit of given character.
17 | */
18 | function charAtCallback(value) {
19 | return value.charCodeAt(0);
20 | }
21 |
22 | module.exports = charAtCallback;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/defaultsIteratorOptions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('../objects/keys');
10 |
11 | /** Reusable iterator options for `assign` and `defaults` */
12 | var defaultsIteratorOptions = {
13 | 'args': 'object, source, guard',
14 | 'top':
15 | 'var args = arguments,\n' +
16 | ' argsIndex = 0,\n' +
17 | " argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
18 | 'while (++argsIndex < argsLength) {\n' +
19 | ' iterable = args[argsIndex];\n' +
20 | ' if (iterable && objectTypes[typeof iterable]) {',
21 | 'keys': keys,
22 | 'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
23 | 'bottom': ' }\n}'
24 | };
25 |
26 | module.exports = defaultsIteratorOptions;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/eachIteratorOptions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('../objects/keys');
10 |
11 | /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
12 | var eachIteratorOptions = {
13 | 'args': 'collection, callback, thisArg',
14 | 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",
15 | 'array': "typeof length == 'number'",
16 | 'keys': keys,
17 | 'loop': 'if (callback(iterable[index], index, collection) === false) return result'
18 | };
19 |
20 | module.exports = eachIteratorOptions;
21 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/escapeHtmlChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes');
10 |
11 | /**
12 | * Used by `escape` to convert characters to HTML entities.
13 | *
14 | * @private
15 | * @param {string} match The matched character to escape.
16 | * @returns {string} Returns the escaped character.
17 | */
18 | function escapeHtmlChar(match) {
19 | return htmlEscapes[match];
20 | }
21 |
22 | module.exports = escapeHtmlChar;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/escapeStringChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to escape characters for inclusion in compiled string literals */
11 | var stringEscapes = {
12 | '\\': '\\',
13 | "'": "'",
14 | '\n': 'n',
15 | '\r': 'r',
16 | '\t': 't',
17 | '\u2028': 'u2028',
18 | '\u2029': 'u2029'
19 | };
20 |
21 | /**
22 | * Used by `template` to escape characters for inclusion in compiled
23 | * string literals.
24 | *
25 | * @private
26 | * @param {string} match The matched character to escape.
27 | * @returns {string} Returns the escaped character.
28 | */
29 | function escapeStringChar(match) {
30 | return '\\' + stringEscapes[match];
31 | }
32 |
33 | module.exports = escapeStringChar;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/forOwnIteratorOptions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var eachIteratorOptions = require('./eachIteratorOptions');
10 |
11 | /** Reusable iterator options for `forIn` and `forOwn` */
12 | var forOwnIteratorOptions = {
13 | 'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
14 | 'array': false
15 | };
16 |
17 | module.exports = forOwnIteratorOptions;
18 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/getArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var arrayPool = require('./arrayPool');
10 |
11 | /**
12 | * Gets an array from the array pool or creates a new one if the pool is empty.
13 | *
14 | * @private
15 | * @returns {Array} The array from the pool.
16 | */
17 | function getArray() {
18 | return arrayPool.pop() || [];
19 | }
20 |
21 | module.exports = getArray;
22 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/getObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var objectPool = require('./objectPool');
10 |
11 | /**
12 | * Gets an object from the object pool or creates a new one if the pool is empty.
13 | *
14 | * @private
15 | * @returns {Object} The object from the pool.
16 | */
17 | function getObject() {
18 | return objectPool.pop() || {
19 | 'array': null,
20 | 'cache': null,
21 | 'criteria': null,
22 | 'false': false,
23 | 'index': 0,
24 | 'null': false,
25 | 'number': null,
26 | 'object': null,
27 | 'push': null,
28 | 'string': null,
29 | 'true': false,
30 | 'undefined': false,
31 | 'value': null
32 | };
33 | }
34 |
35 | module.exports = getObject;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/htmlEscapes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Used to convert characters to HTML entities:
12 | *
13 | * Though the `>` character is escaped for symmetry, characters like `>` and `/`
14 | * don't require escaping in HTML and have no special meaning unless they're part
15 | * of a tag or an unquoted attribute value.
16 | * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact")
17 | */
18 | var htmlEscapes = {
19 | '&': '&',
20 | '<': '<',
21 | '>': '>',
22 | '"': '"',
23 | "'": '''
24 | };
25 |
26 | module.exports = htmlEscapes;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/htmlUnescapes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes'),
10 | invert = require('../objects/invert');
11 |
12 | /** Used to convert HTML entities to characters */
13 | var htmlUnescapes = invert(htmlEscapes);
14 |
15 | module.exports = htmlUnescapes;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/indicatorObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used internally to indicate various things */
11 | var indicatorObject = {};
12 |
13 | module.exports = indicatorObject;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/isNative.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used for native method references */
11 | var objectProto = Object.prototype;
12 |
13 | /** Used to resolve the internal [[Class]] of values */
14 | var toString = objectProto.toString;
15 |
16 | /** Used to detect if a method is native */
17 | var reNative = RegExp('^' +
18 | String(toString)
19 | .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
20 | .replace(/toString| for [^\]]+/g, '.*?') + '$'
21 | );
22 |
23 | /**
24 | * Checks if `value` is a native function.
25 | *
26 | * @private
27 | * @param {*} value The value to check.
28 | * @returns {boolean} Returns `true` if the `value` is a native function, else `false`.
29 | */
30 | function isNative(value) {
31 | return typeof value == 'function' && reNative.test(value);
32 | }
33 |
34 | module.exports = isNative;
35 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/isNode.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is a DOM node in IE < 9.
12 | *
13 | * @private
14 | * @param {*} value The value to check.
15 | * @returns {boolean} Returns `true` if the `value` is a DOM node, else `false`.
16 | */
17 | function isNode(value) {
18 | // IE < 9 presents DOM nodes as `Object` objects except they have `toString`
19 | // methods that are `typeof` "string" and still can coerce nodes to strings
20 | return typeof value.toString != 'function' && typeof (value + '') == 'string';
21 | }
22 |
23 | module.exports = isNode;
24 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/keyPrefix.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to prefix keys to avoid issues with `__proto__` and properties on `Object.prototype` */
11 | var keyPrefix = +new Date + '';
12 |
13 | module.exports = keyPrefix;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/largeArraySize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used as the size when optimizations are enabled for large arrays */
11 | var largeArraySize = 75;
12 |
13 | module.exports = largeArraySize;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/lodashWrapper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * A fast path for creating `lodash` wrapper objects.
12 | *
13 | * @private
14 | * @param {*} value The value to wrap in a `lodash` instance.
15 | * @param {boolean} chainAll A flag to enable chaining for all methods
16 | * @returns {Object} Returns a `lodash` instance.
17 | */
18 | function lodashWrapper(value, chainAll) {
19 | this.__chain__ = !!chainAll;
20 | this.__wrapped__ = value;
21 | }
22 |
23 | module.exports = lodashWrapper;
24 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/maxPoolSize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used as the max size of the `arrayPool` and `objectPool` */
11 | var maxPoolSize = 40;
12 |
13 | module.exports = maxPoolSize;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/objectPool.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to pool arrays and objects used internally */
11 | var objectPool = [];
12 |
13 | module.exports = objectPool;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/objectTypes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to determine if values are of the language type Object */
11 | var objectTypes = {
12 | 'boolean': false,
13 | 'function': true,
14 | 'object': true,
15 | 'number': false,
16 | 'string': false,
17 | 'undefined': false
18 | };
19 |
20 | module.exports = objectTypes;
21 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/reEscapedHtml.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlUnescapes = require('./htmlUnescapes'),
10 | keys = require('../objects/keys');
11 |
12 | /** Used to match HTML entities and HTML characters */
13 | var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g');
14 |
15 | module.exports = reEscapedHtml;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/reInterpolate.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to match "interpolate" template delimiters */
11 | var reInterpolate = /<%=([\s\S]+?)%>/g;
12 |
13 | module.exports = reInterpolate;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/reUnescapedHtml.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes'),
10 | keys = require('../objects/keys');
11 |
12 | /** Used to match HTML entities and HTML characters */
13 | var reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g');
14 |
15 | module.exports = reUnescapedHtml;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/releaseArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var arrayPool = require('./arrayPool'),
10 | maxPoolSize = require('./maxPoolSize');
11 |
12 | /**
13 | * Releases the given array back to the array pool.
14 | *
15 | * @private
16 | * @param {Array} [array] The array to release.
17 | */
18 | function releaseArray(array) {
19 | array.length = 0;
20 | if (arrayPool.length < maxPoolSize) {
21 | arrayPool.push(array);
22 | }
23 | }
24 |
25 | module.exports = releaseArray;
26 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/releaseObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var maxPoolSize = require('./maxPoolSize'),
10 | objectPool = require('./objectPool');
11 |
12 | /**
13 | * Releases the given object back to the object pool.
14 | *
15 | * @private
16 | * @param {Object} [object] The object to release.
17 | */
18 | function releaseObject(object) {
19 | var cache = object.cache;
20 | if (cache) {
21 | releaseObject(cache);
22 | }
23 | object.array = object.cache = object.criteria = object.object = object.number = object.string = object.value = null;
24 | if (objectPool.length < maxPoolSize) {
25 | objectPool.push(object);
26 | }
27 | }
28 |
29 | module.exports = releaseObject;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/shimKeys.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var createIterator = require('./createIterator');
10 |
11 | /**
12 | * A fallback implementation of `Object.keys` which produces an array of the
13 | * given object's own enumerable property names.
14 | *
15 | * @private
16 | * @type Function
17 | * @param {Object} object The object to inspect.
18 | * @returns {Array} Returns an array of property names.
19 | */
20 | var shimKeys = createIterator({
21 | 'args': 'object',
22 | 'init': '[]',
23 | 'top': 'if (!(objectTypes[typeof object])) return result',
24 | 'loop': 'result.push(index)'
25 | });
26 |
27 | module.exports = shimKeys;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/internals/unescapeHtmlChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlUnescapes = require('./htmlUnescapes');
10 |
11 | /**
12 | * Used by `unescape` to convert HTML entities to characters.
13 | *
14 | * @private
15 | * @param {string} match The matched character to unescape.
16 | * @returns {string} Returns the unescaped character.
17 | */
18 | function unescapeHtmlChar(match) {
19 | return htmlUnescapes[match];
20 | }
21 |
22 | module.exports = unescapeHtmlChar;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/has.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used for native method references */
11 | var objectProto = Object.prototype;
12 |
13 | /** Native method shortcuts */
14 | var hasOwnProperty = objectProto.hasOwnProperty;
15 |
16 | /**
17 | * Checks if the specified property name exists as a direct property of `object`,
18 | * instead of an inherited property.
19 | *
20 | * @static
21 | * @memberOf _
22 | * @category Objects
23 | * @param {Object} object The object to inspect.
24 | * @param {string} key The name of the property to check.
25 | * @returns {boolean} Returns `true` if key is a direct property, else `false`.
26 | * @example
27 | *
28 | * _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
29 | * // => true
30 | */
31 | function has(object, key) {
32 | return object ? hasOwnProperty.call(object, key) : false;
33 | }
34 |
35 | module.exports = has;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/invert.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('./keys');
10 |
11 | /**
12 | * Creates an object composed of the inverted keys and values of the given object.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Objects
17 | * @param {Object} object The object to invert.
18 | * @returns {Object} Returns the created inverted object.
19 | * @example
20 | *
21 | * _.invert({ 'first': 'fred', 'second': 'barney' });
22 | * // => { 'fred': 'first', 'barney': 'second' }
23 | */
24 | function invert(object) {
25 | var index = -1,
26 | props = keys(object),
27 | length = props.length,
28 | result = {};
29 |
30 | while (++index < length) {
31 | var key = props[index];
32 | result[object[key]] = key;
33 | }
34 | return result;
35 | }
36 |
37 | module.exports = invert;
38 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/isDate.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** `Object#toString` result shortcuts */
11 | var dateClass = '[object Date]';
12 |
13 | /** Used for native method references */
14 | var objectProto = Object.prototype;
15 |
16 | /** Used to resolve the internal [[Class]] of values */
17 | var toString = objectProto.toString;
18 |
19 | /**
20 | * Checks if `value` is a date.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @category Objects
25 | * @param {*} value The value to check.
26 | * @returns {boolean} Returns `true` if the `value` is a date, else `false`.
27 | * @example
28 | *
29 | * _.isDate(new Date);
30 | * // => true
31 | */
32 | function isDate(value) {
33 | return value && typeof value == 'object' && toString.call(value) == dateClass || false;
34 | }
35 |
36 | module.exports = isDate;
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/isElement.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is a DOM element.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is a DOM element, else `false`.
18 | * @example
19 | *
20 | * _.isElement(document.body);
21 | * // => true
22 | */
23 | function isElement(value) {
24 | return value && value.nodeType === 1 || false;
25 | }
26 |
27 | module.exports = isElement;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/isNull.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is `null`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is `null`, else `false`.
18 | * @example
19 | *
20 | * _.isNull(null);
21 | * // => true
22 | *
23 | * _.isNull(undefined);
24 | * // => false
25 | */
26 | function isNull(value) {
27 | return value === null;
28 | }
29 |
30 | module.exports = isNull;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/isString.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** `Object#toString` result shortcuts */
11 | var stringClass = '[object String]';
12 |
13 | /** Used for native method references */
14 | var objectProto = Object.prototype;
15 |
16 | /** Used to resolve the internal [[Class]] of values */
17 | var toString = objectProto.toString;
18 |
19 | /**
20 | * Checks if `value` is a string.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @category Objects
25 | * @param {*} value The value to check.
26 | * @returns {boolean} Returns `true` if the `value` is a string, else `false`.
27 | * @example
28 | *
29 | * _.isString('fred');
30 | * // => true
31 | */
32 | function isString(value) {
33 | return typeof value == 'string' ||
34 | value && typeof value == 'object' && toString.call(value) == stringClass || false;
35 | }
36 |
37 | module.exports = isString;
38 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/isUndefined.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is `undefined`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is `undefined`, else `false`.
18 | * @example
19 | *
20 | * _.isUndefined(void 0);
21 | * // => true
22 | */
23 | function isUndefined(value) {
24 | return typeof value == 'undefined';
25 | }
26 |
27 | module.exports = isUndefined;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/objects/values.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('./keys');
10 |
11 | /**
12 | * Creates an array composed of the own enumerable property values of `object`.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Objects
17 | * @param {Object} object The object to inspect.
18 | * @returns {Array} Returns an array of property values.
19 | * @example
20 | *
21 | * _.values({ 'one': 1, 'two': 2, 'three': 3 });
22 | * // => [1, 2, 3] (property order is not guaranteed across environments)
23 | */
24 | function values(object) {
25 | var index = -1,
26 | props = keys(object),
27 | length = props.length,
28 | result = Array(length);
29 |
30 | while (++index < length) {
31 | result[index] = object[props[index]];
32 | }
33 | return result;
34 | }
35 |
36 | module.exports = values;
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/constant.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Creates a function that returns `value`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @param {*} value The value to return from the new function.
17 | * @returns {Function} Returns the new function.
18 | * @example
19 | *
20 | * var object = { 'name': 'fred' };
21 | * var getter = _.constant(object);
22 | * getter() === object;
23 | * // => true
24 | */
25 | function constant(value) {
26 | return function() {
27 | return value;
28 | };
29 | }
30 |
31 | module.exports = constant;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/escape.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var escapeHtmlChar = require('../internals/escapeHtmlChar'),
10 | keys = require('../objects/keys'),
11 | reUnescapedHtml = require('../internals/reUnescapedHtml');
12 |
13 | /**
14 | * Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their
15 | * corresponding HTML entities.
16 | *
17 | * @static
18 | * @memberOf _
19 | * @category Utilities
20 | * @param {string} string The string to escape.
21 | * @returns {string} Returns the escaped string.
22 | * @example
23 | *
24 | * _.escape('Fred, Wilma, & Pebbles');
25 | * // => 'Fred, Wilma, & Pebbles'
26 | */
27 | function escape(string) {
28 | return string == null ? '' : String(string).replace(reUnescapedHtml, escapeHtmlChar);
29 | }
30 |
31 | module.exports = escape;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/identity.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * This method returns the first argument provided to it.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @param {*} value Any value.
17 | * @returns {*} Returns `value`.
18 | * @example
19 | *
20 | * var object = { 'name': 'fred' };
21 | * _.identity(object) === object;
22 | * // => true
23 | */
24 | function identity(value) {
25 | return value;
26 | }
27 |
28 | module.exports = identity;
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/noConflict.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to restore the original `_` reference in `noConflict` */
11 | var oldDash = global._;
12 |
13 | /**
14 | * Reverts the '_' variable to its previous value and returns a reference to
15 | * the `lodash` function.
16 | *
17 | * @static
18 | * @memberOf _
19 | * @category Utilities
20 | * @returns {Function} Returns the `lodash` function.
21 | * @example
22 | *
23 | * var lodash = _.noConflict();
24 | */
25 | function noConflict() {
26 | global._ = oldDash;
27 | return this;
28 | }
29 |
30 | module.exports = noConflict;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/noop.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * A no-operation function.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @example
17 | *
18 | * var object = { 'name': 'fred' };
19 | * _.noop(object) === undefined;
20 | * // => true
21 | */
22 | function noop() {
23 | // no operation performed
24 | }
25 |
26 | module.exports = noop;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/now.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var isNative = require('../internals/isNative');
10 |
11 | /**
12 | * Gets the number of milliseconds that have elapsed since the Unix epoch
13 | * (1 January 1970 00:00:00 UTC).
14 | *
15 | * @static
16 | * @memberOf _
17 | * @category Utilities
18 | * @example
19 | *
20 | * var stamp = _.now();
21 | * _.defer(function() { console.log(_.now() - stamp); });
22 | * // => logs the number of milliseconds it took for the deferred function to be called
23 | */
24 | var now = isNative(now = Date.now) && now || function() {
25 | return new Date().getTime();
26 | };
27 |
28 | module.exports = now;
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/unescape.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('../objects/keys'),
10 | reEscapedHtml = require('../internals/reEscapedHtml'),
11 | unescapeHtmlChar = require('../internals/unescapeHtmlChar');
12 |
13 | /**
14 | * The inverse of `_.escape` this method converts the HTML entities
15 | * `&`, `<`, `>`, `"`, and `'` in `string` to their
16 | * corresponding characters.
17 | *
18 | * @static
19 | * @memberOf _
20 | * @category Utilities
21 | * @param {string} string The string to unescape.
22 | * @returns {string} Returns the unescaped string.
23 | * @example
24 | *
25 | * _.unescape('Fred, Barney & Pebbles');
26 | * // => 'Fred, Barney & Pebbles'
27 | */
28 | function unescape(string) {
29 | return string == null ? '' : String(string).replace(reEscapedHtml, unescapeHtmlChar);
30 | }
31 |
32 | module.exports = unescape;
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/compat/utilities/uniqueId.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize exports="node" -o ./compat/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to generate unique IDs */
11 | var idCounter = 0;
12 |
13 | /**
14 | * Generates a unique ID. If `prefix` is provided the ID will be appended to it.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Utilities
19 | * @param {string} [prefix] The value to prefix the ID with.
20 | * @returns {string} Returns the unique ID.
21 | * @example
22 | *
23 | * _.uniqueId('contact_');
24 | * // => 'contact_104'
25 | *
26 | * _.uniqueId();
27 | * // => '105'
28 | */
29 | function uniqueId(prefix) {
30 | var id = ++idCounter;
31 | return String(prefix == null ? '' : prefix) + id;
32 | }
33 |
34 | module.exports = uniqueId;
35 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/arrays/compact.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Creates an array with all falsey values removed. The values `false`, `null`,
12 | * `0`, `""`, `undefined`, and `NaN` are all falsey.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Arrays
17 | * @param {Array} array The array to compact.
18 | * @returns {Array} Returns a new array of filtered values.
19 | * @example
20 | *
21 | * _.compact([0, 1, false, 2, '', 3]);
22 | * // => [1, 2, 3]
23 | */
24 | function compact(array) {
25 | var index = -1,
26 | length = array ? array.length : 0,
27 | result = [];
28 |
29 | while (++index < length) {
30 | var value = array[index];
31 | if (value) {
32 | result.push(value);
33 | }
34 | }
35 | return result;
36 | }
37 |
38 | module.exports = compact;
39 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/arrays/difference.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | baseFlatten = require('../internals/baseFlatten');
11 |
12 | /**
13 | * Creates an array excluding all values of the provided arrays using strict
14 | * equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to process.
20 | * @param {...Array} [values] The arrays of values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
25 | * // => [1, 3, 4]
26 | */
27 | function difference(array) {
28 | return baseDifference(array, baseFlatten(arguments, true, true, 1));
29 | }
30 |
31 | module.exports = difference;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/arrays/union.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseFlatten = require('../internals/baseFlatten'),
10 | baseUniq = require('../internals/baseUniq');
11 |
12 | /**
13 | * Creates an array of unique values, in order, of the provided arrays using
14 | * strict equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {...Array} [array] The arrays to inspect.
20 | * @returns {Array} Returns an array of combined values.
21 | * @example
22 | *
23 | * _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
24 | * // => [1, 2, 3, 5, 4]
25 | */
26 | function union() {
27 | return baseUniq(baseFlatten(arguments, true, true));
28 | }
29 |
30 | module.exports = union;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/arrays/without.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | slice = require('../internals/slice');
11 |
12 | /**
13 | * Creates an array excluding all provided values using strict equality for
14 | * comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to filter.
20 | * @param {...*} [value] The values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
25 | * // => [2, 3, 4]
26 | */
27 | function without(array) {
28 | return baseDifference(array, slice(arguments, 1));
29 | }
30 |
31 | module.exports = without;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/chaining.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | module.exports = {
11 | 'chain': require('./chaining/chain'),
12 | 'tap': require('./chaining/tap'),
13 | 'value': require('./chaining/wrapperValueOf'),
14 | 'wrapperChain': require('./chaining/wrapperChain'),
15 | 'wrapperToString': require('./chaining/wrapperToString'),
16 | 'wrapperValueOf': require('./chaining/wrapperValueOf')
17 | };
18 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/chaining/tap.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Invokes `interceptor` with the `value` as the first argument and then
12 | * returns `value`. The purpose of this method is to "tap into" a method
13 | * chain in order to perform operations on intermediate results within
14 | * the chain.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Chaining
19 | * @param {*} value The value to provide to `interceptor`.
20 | * @param {Function} interceptor The function to invoke.
21 | * @returns {*} Returns `value`.
22 | * @example
23 | *
24 | * _([1, 2, 3, 4])
25 | * .tap(function(array) { array.pop(); })
26 | * .reverse()
27 | * .value();
28 | * // => [3, 2, 1]
29 | */
30 | function tap(value, interceptor) {
31 | interceptor(value);
32 | return value;
33 | }
34 |
35 | module.exports = tap;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/chaining/wrapperChain.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Enables explicit method chaining on the wrapper object.
12 | *
13 | * @name chain
14 | * @memberOf _
15 | * @category Chaining
16 | * @returns {*} Returns the wrapper object.
17 | * @example
18 | *
19 | * var characters = [
20 | * { 'name': 'barney', 'age': 36 },
21 | * { 'name': 'fred', 'age': 40 }
22 | * ];
23 | *
24 | * // without explicit chaining
25 | * _(characters).first();
26 | * // => { 'name': 'barney', 'age': 36 }
27 | *
28 | * // with explicit chaining
29 | * _(characters).chain()
30 | * .first()
31 | * .pick('age')
32 | * .value();
33 | * // => { 'age': 36 }
34 | */
35 | function wrapperChain() {
36 | this.__chain__ = true;
37 | return this;
38 | }
39 |
40 | module.exports = wrapperChain;
41 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/chaining/wrapperToString.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Produces the `toString` result of the wrapped value.
12 | *
13 | * @name toString
14 | * @memberOf _
15 | * @category Chaining
16 | * @returns {string} Returns the string result.
17 | * @example
18 | *
19 | * _([1, 2, 3]).toString();
20 | * // => '1,2,3'
21 | */
22 | function wrapperToString() {
23 | return String(this.__wrapped__);
24 | }
25 |
26 | module.exports = wrapperToString;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/chaining/wrapperValueOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var forEach = require('../collections/forEach'),
10 | support = require('../support');
11 |
12 | /**
13 | * Extracts the wrapped value.
14 | *
15 | * @name valueOf
16 | * @memberOf _
17 | * @alias value
18 | * @category Chaining
19 | * @returns {*} Returns the wrapped value.
20 | * @example
21 | *
22 | * _([1, 2, 3]).valueOf();
23 | * // => [1, 2, 3]
24 | */
25 | function wrapperValueOf() {
26 | return this.__wrapped__;
27 | }
28 |
29 | module.exports = wrapperValueOf;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/collections/pluck.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var map = require('./map');
10 |
11 | /**
12 | * Retrieves the value of a specified property from all elements in the collection.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @type Function
17 | * @category Collections
18 | * @param {Array|Object|string} collection The collection to iterate over.
19 | * @param {string} property The name of the property to pluck.
20 | * @returns {Array} Returns a new array of property values.
21 | * @example
22 | *
23 | * var characters = [
24 | * { 'name': 'barney', 'age': 36 },
25 | * { 'name': 'fred', 'age': 40 }
26 | * ];
27 | *
28 | * _.pluck(characters, 'name');
29 | * // => ['barney', 'fred']
30 | */
31 | var pluck = map;
32 |
33 | module.exports = pluck;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/collections/toArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var isString = require('../objects/isString'),
10 | slice = require('../internals/slice'),
11 | values = require('../objects/values');
12 |
13 | /**
14 | * Converts the `collection` to an array.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Collections
19 | * @param {Array|Object|string} collection The collection to convert.
20 | * @returns {Array} Returns the new converted array.
21 | * @example
22 | *
23 | * (function() { return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
24 | * // => [2, 3, 4]
25 | */
26 | function toArray(collection) {
27 | if (collection && typeof collection.length == 'number') {
28 | return slice(collection);
29 | }
30 | return values(collection);
31 | }
32 |
33 | module.exports = toArray;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/functions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | module.exports = {
11 | 'after': require('./functions/after'),
12 | 'bind': require('./functions/bind'),
13 | 'bindAll': require('./functions/bindAll'),
14 | 'bindKey': require('./functions/bindKey'),
15 | 'compose': require('./functions/compose'),
16 | 'createCallback': require('./functions/createCallback'),
17 | 'curry': require('./functions/curry'),
18 | 'debounce': require('./functions/debounce'),
19 | 'defer': require('./functions/defer'),
20 | 'delay': require('./functions/delay'),
21 | 'memoize': require('./functions/memoize'),
22 | 'once': require('./functions/once'),
23 | 'partial': require('./functions/partial'),
24 | 'partialRight': require('./functions/partialRight'),
25 | 'throttle': require('./functions/throttle'),
26 | 'wrap': require('./functions/wrap')
27 | };
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/arrayPool.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to pool arrays and objects used internally */
11 | var arrayPool = [];
12 |
13 | module.exports = arrayPool;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/baseIndexOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * The base implementation of `_.indexOf` without support for binary searches
12 | * or `fromIndex` constraints.
13 | *
14 | * @private
15 | * @param {Array} array The array to search.
16 | * @param {*} value The value to search for.
17 | * @param {number} [fromIndex=0] The index to search from.
18 | * @returns {number} Returns the index of the matched value or `-1`.
19 | */
20 | function baseIndexOf(array, value, fromIndex) {
21 | var index = (fromIndex || 0) - 1,
22 | length = array ? array.length : 0;
23 |
24 | while (++index < length) {
25 | if (array[index] === value) {
26 | return index;
27 | }
28 | }
29 | return -1;
30 | }
31 |
32 | module.exports = baseIndexOf;
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/baseRandom.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Native method shortcuts */
11 | var floor = Math.floor;
12 |
13 | /* Native method shortcuts for methods with the same name as other `lodash` methods */
14 | var nativeRandom = Math.random;
15 |
16 | /**
17 | * The base implementation of `_.random` without argument juggling or support
18 | * for returning floating-point numbers.
19 | *
20 | * @private
21 | * @param {number} min The minimum possible value.
22 | * @param {number} max The maximum possible value.
23 | * @returns {number} Returns a random number.
24 | */
25 | function baseRandom(min, max) {
26 | return min + floor(nativeRandom() * (max - min + 1));
27 | }
28 |
29 | module.exports = baseRandom;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/cachePush.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keyPrefix = require('./keyPrefix');
10 |
11 | /**
12 | * Adds a given value to the corresponding cache object.
13 | *
14 | * @private
15 | * @param {*} value The value to add to the cache.
16 | */
17 | function cachePush(value) {
18 | var cache = this.cache,
19 | type = typeof value;
20 |
21 | if (type == 'boolean' || value == null) {
22 | cache[value] = true;
23 | } else {
24 | if (type != 'number' && type != 'string') {
25 | type = 'object';
26 | }
27 | var key = type == 'number' ? value : keyPrefix + value,
28 | typeCache = cache[type] || (cache[type] = {});
29 |
30 | if (type == 'object') {
31 | (typeCache[key] || (typeCache[key] = [])).push(value);
32 | } else {
33 | typeCache[key] = true;
34 | }
35 | }
36 | }
37 |
38 | module.exports = cachePush;
39 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/charAtCallback.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Used by `_.max` and `_.min` as the default callback when a given
12 | * collection is a string value.
13 | *
14 | * @private
15 | * @param {string} value The character to inspect.
16 | * @returns {number} Returns the code unit of given character.
17 | */
18 | function charAtCallback(value) {
19 | return value.charCodeAt(0);
20 | }
21 |
22 | module.exports = charAtCallback;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/escapeHtmlChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes');
10 |
11 | /**
12 | * Used by `escape` to convert characters to HTML entities.
13 | *
14 | * @private
15 | * @param {string} match The matched character to escape.
16 | * @returns {string} Returns the escaped character.
17 | */
18 | function escapeHtmlChar(match) {
19 | return htmlEscapes[match];
20 | }
21 |
22 | module.exports = escapeHtmlChar;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/escapeStringChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to escape characters for inclusion in compiled string literals */
11 | var stringEscapes = {
12 | '\\': '\\',
13 | "'": "'",
14 | '\n': 'n',
15 | '\r': 'r',
16 | '\t': 't',
17 | '\u2028': 'u2028',
18 | '\u2029': 'u2029'
19 | };
20 |
21 | /**
22 | * Used by `template` to escape characters for inclusion in compiled
23 | * string literals.
24 | *
25 | * @private
26 | * @param {string} match The matched character to escape.
27 | * @returns {string} Returns the escaped character.
28 | */
29 | function escapeStringChar(match) {
30 | return '\\' + stringEscapes[match];
31 | }
32 |
33 | module.exports = escapeStringChar;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/getArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var arrayPool = require('./arrayPool');
10 |
11 | /**
12 | * Gets an array from the array pool or creates a new one if the pool is empty.
13 | *
14 | * @private
15 | * @returns {Array} The array from the pool.
16 | */
17 | function getArray() {
18 | return arrayPool.pop() || [];
19 | }
20 |
21 | module.exports = getArray;
22 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/getObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var objectPool = require('./objectPool');
10 |
11 | /**
12 | * Gets an object from the object pool or creates a new one if the pool is empty.
13 | *
14 | * @private
15 | * @returns {Object} The object from the pool.
16 | */
17 | function getObject() {
18 | return objectPool.pop() || {
19 | 'array': null,
20 | 'cache': null,
21 | 'criteria': null,
22 | 'false': false,
23 | 'index': 0,
24 | 'null': false,
25 | 'number': null,
26 | 'object': null,
27 | 'push': null,
28 | 'string': null,
29 | 'true': false,
30 | 'undefined': false,
31 | 'value': null
32 | };
33 | }
34 |
35 | module.exports = getObject;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/htmlEscapes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Used to convert characters to HTML entities:
12 | *
13 | * Though the `>` character is escaped for symmetry, characters like `>` and `/`
14 | * don't require escaping in HTML and have no special meaning unless they're part
15 | * of a tag or an unquoted attribute value.
16 | * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact")
17 | */
18 | var htmlEscapes = {
19 | '&': '&',
20 | '<': '<',
21 | '>': '>',
22 | '"': '"',
23 | "'": '''
24 | };
25 |
26 | module.exports = htmlEscapes;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/htmlUnescapes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes'),
10 | invert = require('../objects/invert');
11 |
12 | /** Used to convert HTML entities to characters */
13 | var htmlUnescapes = invert(htmlEscapes);
14 |
15 | module.exports = htmlUnescapes;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/isNative.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used for native method references */
11 | var objectProto = Object.prototype;
12 |
13 | /** Used to resolve the internal [[Class]] of values */
14 | var toString = objectProto.toString;
15 |
16 | /** Used to detect if a method is native */
17 | var reNative = RegExp('^' +
18 | String(toString)
19 | .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
20 | .replace(/toString| for [^\]]+/g, '.*?') + '$'
21 | );
22 |
23 | /**
24 | * Checks if `value` is a native function.
25 | *
26 | * @private
27 | * @param {*} value The value to check.
28 | * @returns {boolean} Returns `true` if the `value` is a native function, else `false`.
29 | */
30 | function isNative(value) {
31 | return typeof value == 'function' && reNative.test(value);
32 | }
33 |
34 | module.exports = isNative;
35 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/keyPrefix.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to prefix keys to avoid issues with `__proto__` and properties on `Object.prototype` */
11 | var keyPrefix = +new Date + '';
12 |
13 | module.exports = keyPrefix;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/largeArraySize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used as the size when optimizations are enabled for large arrays */
11 | var largeArraySize = 75;
12 |
13 | module.exports = largeArraySize;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/lodashWrapper.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * A fast path for creating `lodash` wrapper objects.
12 | *
13 | * @private
14 | * @param {*} value The value to wrap in a `lodash` instance.
15 | * @param {boolean} chainAll A flag to enable chaining for all methods
16 | * @returns {Object} Returns a `lodash` instance.
17 | */
18 | function lodashWrapper(value, chainAll) {
19 | this.__chain__ = !!chainAll;
20 | this.__wrapped__ = value;
21 | }
22 |
23 | module.exports = lodashWrapper;
24 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/maxPoolSize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used as the max size of the `arrayPool` and `objectPool` */
11 | var maxPoolSize = 40;
12 |
13 | module.exports = maxPoolSize;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/objectPool.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to pool arrays and objects used internally */
11 | var objectPool = [];
12 |
13 | module.exports = objectPool;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/objectTypes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to determine if values are of the language type Object */
11 | var objectTypes = {
12 | 'boolean': false,
13 | 'function': true,
14 | 'object': true,
15 | 'number': false,
16 | 'string': false,
17 | 'undefined': false
18 | };
19 |
20 | module.exports = objectTypes;
21 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/reEscapedHtml.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlUnescapes = require('./htmlUnescapes'),
10 | keys = require('../objects/keys');
11 |
12 | /** Used to match HTML entities and HTML characters */
13 | var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g');
14 |
15 | module.exports = reEscapedHtml;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/reInterpolate.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to match "interpolate" template delimiters */
11 | var reInterpolate = /<%=([\s\S]+?)%>/g;
12 |
13 | module.exports = reInterpolate;
14 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/reUnescapedHtml.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlEscapes = require('./htmlEscapes'),
10 | keys = require('../objects/keys');
11 |
12 | /** Used to match HTML entities and HTML characters */
13 | var reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g');
14 |
15 | module.exports = reUnescapedHtml;
16 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/releaseArray.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var arrayPool = require('./arrayPool'),
10 | maxPoolSize = require('./maxPoolSize');
11 |
12 | /**
13 | * Releases the given array back to the array pool.
14 | *
15 | * @private
16 | * @param {Array} [array] The array to release.
17 | */
18 | function releaseArray(array) {
19 | array.length = 0;
20 | if (arrayPool.length < maxPoolSize) {
21 | arrayPool.push(array);
22 | }
23 | }
24 |
25 | module.exports = releaseArray;
26 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/releaseObject.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var maxPoolSize = require('./maxPoolSize'),
10 | objectPool = require('./objectPool');
11 |
12 | /**
13 | * Releases the given object back to the object pool.
14 | *
15 | * @private
16 | * @param {Object} [object] The object to release.
17 | */
18 | function releaseObject(object) {
19 | var cache = object.cache;
20 | if (cache) {
21 | releaseObject(cache);
22 | }
23 | object.array = object.cache = object.criteria = object.object = object.number = object.string = object.value = null;
24 | if (objectPool.length < maxPoolSize) {
25 | objectPool.push(object);
26 | }
27 | }
28 |
29 | module.exports = releaseObject;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/internals/unescapeHtmlChar.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var htmlUnescapes = require('./htmlUnescapes');
10 |
11 | /**
12 | * Used by `unescape` to convert HTML entities to characters.
13 | *
14 | * @private
15 | * @param {string} match The matched character to unescape.
16 | * @returns {string} Returns the unescaped character.
17 | */
18 | function unescapeHtmlChar(match) {
19 | return htmlUnescapes[match];
20 | }
21 |
22 | module.exports = unescapeHtmlChar;
23 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/has.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used for native method references */
11 | var objectProto = Object.prototype;
12 |
13 | /** Native method shortcuts */
14 | var hasOwnProperty = objectProto.hasOwnProperty;
15 |
16 | /**
17 | * Checks if the specified property name exists as a direct property of `object`,
18 | * instead of an inherited property.
19 | *
20 | * @static
21 | * @memberOf _
22 | * @category Objects
23 | * @param {Object} object The object to inspect.
24 | * @param {string} key The name of the property to check.
25 | * @returns {boolean} Returns `true` if key is a direct property, else `false`.
26 | * @example
27 | *
28 | * _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
29 | * // => true
30 | */
31 | function has(object, key) {
32 | return object ? hasOwnProperty.call(object, key) : false;
33 | }
34 |
35 | module.exports = has;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/invert.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('./keys');
10 |
11 | /**
12 | * Creates an object composed of the inverted keys and values of the given object.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Objects
17 | * @param {Object} object The object to invert.
18 | * @returns {Object} Returns the created inverted object.
19 | * @example
20 | *
21 | * _.invert({ 'first': 'fred', 'second': 'barney' });
22 | * // => { 'fred': 'first', 'barney': 'second' }
23 | */
24 | function invert(object) {
25 | var index = -1,
26 | props = keys(object),
27 | length = props.length,
28 | result = {};
29 |
30 | while (++index < length) {
31 | var key = props[index];
32 | result[object[key]] = key;
33 | }
34 | return result;
35 | }
36 |
37 | module.exports = invert;
38 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isDate.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** `Object#toString` result shortcuts */
11 | var dateClass = '[object Date]';
12 |
13 | /** Used for native method references */
14 | var objectProto = Object.prototype;
15 |
16 | /** Used to resolve the internal [[Class]] of values */
17 | var toString = objectProto.toString;
18 |
19 | /**
20 | * Checks if `value` is a date.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @category Objects
25 | * @param {*} value The value to check.
26 | * @returns {boolean} Returns `true` if the `value` is a date, else `false`.
27 | * @example
28 | *
29 | * _.isDate(new Date);
30 | * // => true
31 | */
32 | function isDate(value) {
33 | return value && typeof value == 'object' && toString.call(value) == dateClass || false;
34 | }
35 |
36 | module.exports = isDate;
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isElement.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is a DOM element.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is a DOM element, else `false`.
18 | * @example
19 | *
20 | * _.isElement(document.body);
21 | * // => true
22 | */
23 | function isElement(value) {
24 | return value && value.nodeType === 1 || false;
25 | }
26 |
27 | module.exports = isElement;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isFunction.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is a function.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is a function, else `false`.
18 | * @example
19 | *
20 | * _.isFunction(_);
21 | * // => true
22 | */
23 | function isFunction(value) {
24 | return typeof value == 'function';
25 | }
26 |
27 | module.exports = isFunction;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isNull.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is `null`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is `null`, else `false`.
18 | * @example
19 | *
20 | * _.isNull(null);
21 | * // => true
22 | *
23 | * _.isNull(undefined);
24 | * // => false
25 | */
26 | function isNull(value) {
27 | return value === null;
28 | }
29 |
30 | module.exports = isNull;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isRegExp.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** `Object#toString` result shortcuts */
11 | var regexpClass = '[object RegExp]';
12 |
13 | /** Used for native method references */
14 | var objectProto = Object.prototype;
15 |
16 | /** Used to resolve the internal [[Class]] of values */
17 | var toString = objectProto.toString;
18 |
19 | /**
20 | * Checks if `value` is a regular expression.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @category Objects
25 | * @param {*} value The value to check.
26 | * @returns {boolean} Returns `true` if the `value` is a regular expression, else `false`.
27 | * @example
28 | *
29 | * _.isRegExp(/fred/);
30 | * // => true
31 | */
32 | function isRegExp(value) {
33 | return value && typeof value == 'object' && toString.call(value) == regexpClass || false;
34 | }
35 |
36 | module.exports = isRegExp;
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isString.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** `Object#toString` result shortcuts */
11 | var stringClass = '[object String]';
12 |
13 | /** Used for native method references */
14 | var objectProto = Object.prototype;
15 |
16 | /** Used to resolve the internal [[Class]] of values */
17 | var toString = objectProto.toString;
18 |
19 | /**
20 | * Checks if `value` is a string.
21 | *
22 | * @static
23 | * @memberOf _
24 | * @category Objects
25 | * @param {*} value The value to check.
26 | * @returns {boolean} Returns `true` if the `value` is a string, else `false`.
27 | * @example
28 | *
29 | * _.isString('fred');
30 | * // => true
31 | */
32 | function isString(value) {
33 | return typeof value == 'string' ||
34 | value && typeof value == 'object' && toString.call(value) == stringClass || false;
35 | }
36 |
37 | module.exports = isString;
38 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/isUndefined.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Checks if `value` is `undefined`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Objects
16 | * @param {*} value The value to check.
17 | * @returns {boolean} Returns `true` if the `value` is `undefined`, else `false`.
18 | * @example
19 | *
20 | * _.isUndefined(void 0);
21 | * // => true
22 | */
23 | function isUndefined(value) {
24 | return typeof value == 'undefined';
25 | }
26 |
27 | module.exports = isUndefined;
28 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/objects/values.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('./keys');
10 |
11 | /**
12 | * Creates an array composed of the own enumerable property values of `object`.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Objects
17 | * @param {Object} object The object to inspect.
18 | * @returns {Array} Returns an array of property values.
19 | * @example
20 | *
21 | * _.values({ 'one': 1, 'two': 2, 'three': 3 });
22 | * // => [1, 2, 3] (property order is not guaranteed across environments)
23 | */
24 | function values(object) {
25 | var index = -1,
26 | props = keys(object),
27 | length = props.length,
28 | result = Array(length);
29 |
30 | while (++index < length) {
31 | result[index] = object[props[index]];
32 | }
33 | return result;
34 | }
35 |
36 | module.exports = values;
37 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/constant.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Creates a function that returns `value`.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @param {*} value The value to return from the new function.
17 | * @returns {Function} Returns the new function.
18 | * @example
19 | *
20 | * var object = { 'name': 'fred' };
21 | * var getter = _.constant(object);
22 | * getter() === object;
23 | * // => true
24 | */
25 | function constant(value) {
26 | return function() {
27 | return value;
28 | };
29 | }
30 |
31 | module.exports = constant;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/escape.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var escapeHtmlChar = require('../internals/escapeHtmlChar'),
10 | keys = require('../objects/keys'),
11 | reUnescapedHtml = require('../internals/reUnescapedHtml');
12 |
13 | /**
14 | * Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their
15 | * corresponding HTML entities.
16 | *
17 | * @static
18 | * @memberOf _
19 | * @category Utilities
20 | * @param {string} string The string to escape.
21 | * @returns {string} Returns the escaped string.
22 | * @example
23 | *
24 | * _.escape('Fred, Wilma, & Pebbles');
25 | * // => 'Fred, Wilma, & Pebbles'
26 | */
27 | function escape(string) {
28 | return string == null ? '' : String(string).replace(reUnescapedHtml, escapeHtmlChar);
29 | }
30 |
31 | module.exports = escape;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/identity.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * This method returns the first argument provided to it.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @param {*} value Any value.
17 | * @returns {*} Returns `value`.
18 | * @example
19 | *
20 | * var object = { 'name': 'fred' };
21 | * _.identity(object) === object;
22 | * // => true
23 | */
24 | function identity(value) {
25 | return value;
26 | }
27 |
28 | module.exports = identity;
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/noConflict.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to restore the original `_` reference in `noConflict` */
11 | var oldDash = global._;
12 |
13 | /**
14 | * Reverts the '_' variable to its previous value and returns a reference to
15 | * the `lodash` function.
16 | *
17 | * @static
18 | * @memberOf _
19 | * @category Utilities
20 | * @returns {Function} Returns the `lodash` function.
21 | * @example
22 | *
23 | * var lodash = _.noConflict();
24 | */
25 | function noConflict() {
26 | global._ = oldDash;
27 | return this;
28 | }
29 |
30 | module.exports = noConflict;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/noop.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * A no-operation function.
12 | *
13 | * @static
14 | * @memberOf _
15 | * @category Utilities
16 | * @example
17 | *
18 | * var object = { 'name': 'fred' };
19 | * _.noop(object) === undefined;
20 | * // => true
21 | */
22 | function noop() {
23 | // no operation performed
24 | }
25 |
26 | module.exports = noop;
27 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/now.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var isNative = require('../internals/isNative');
10 |
11 | /**
12 | * Gets the number of milliseconds that have elapsed since the Unix epoch
13 | * (1 January 1970 00:00:00 UTC).
14 | *
15 | * @static
16 | * @memberOf _
17 | * @category Utilities
18 | * @example
19 | *
20 | * var stamp = _.now();
21 | * _.defer(function() { console.log(_.now() - stamp); });
22 | * // => logs the number of milliseconds it took for the deferred function to be called
23 | */
24 | var now = isNative(now = Date.now) && now || function() {
25 | return new Date().getTime();
26 | };
27 |
28 | module.exports = now;
29 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/unescape.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var keys = require('../objects/keys'),
10 | reEscapedHtml = require('../internals/reEscapedHtml'),
11 | unescapeHtmlChar = require('../internals/unescapeHtmlChar');
12 |
13 | /**
14 | * The inverse of `_.escape` this method converts the HTML entities
15 | * `&`, `<`, `>`, `"`, and `'` in `string` to their
16 | * corresponding characters.
17 | *
18 | * @static
19 | * @memberOf _
20 | * @category Utilities
21 | * @param {string} string The string to unescape.
22 | * @returns {string} Returns the unescaped string.
23 | * @example
24 | *
25 | * _.unescape('Fred, Barney & Pebbles');
26 | * // => 'Fred, Barney & Pebbles'
27 | */
28 | function unescape(string) {
29 | return string == null ? '' : String(string).replace(reEscapedHtml, unescapeHtmlChar);
30 | }
31 |
32 | module.exports = unescape;
33 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/modern/utilities/uniqueId.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize modern exports="node" -o ./modern/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /** Used to generate unique IDs */
11 | var idCounter = 0;
12 |
13 | /**
14 | * Generates a unique ID. If `prefix` is provided the ID will be appended to it.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Utilities
19 | * @param {string} [prefix] The value to prefix the ID with.
20 | * @returns {string} Returns the unique ID.
21 | * @example
22 | *
23 | * _.uniqueId('contact_');
24 | * // => 'contact_104'
25 | *
26 | * _.uniqueId();
27 | * // => '105'
28 | */
29 | function uniqueId(prefix) {
30 | var id = ++idCounter;
31 | return String(prefix == null ? '' : prefix) + id;
32 | }
33 |
34 | module.exports = uniqueId;
35 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/arrays/compact.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Creates an array with all falsey values removed. The values `false`, `null`,
12 | * `0`, `""`, `undefined`, and `NaN` are all falsey.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @category Arrays
17 | * @param {Array} array The array to compact.
18 | * @returns {Array} Returns a new array of filtered values.
19 | * @example
20 | *
21 | * _.compact([0, 1, false, 2, '', 3]);
22 | * // => [1, 2, 3]
23 | */
24 | function compact(array) {
25 | var index = -1,
26 | length = array ? array.length : 0,
27 | result = [];
28 |
29 | while (++index < length) {
30 | var value = array[index];
31 | if (value) {
32 | result.push(value);
33 | }
34 | }
35 | return result;
36 | }
37 |
38 | module.exports = compact;
39 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/arrays/difference.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | baseFlatten = require('../internals/baseFlatten');
11 |
12 | /**
13 | * Creates an array excluding all values of the provided arrays using strict
14 | * equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to process.
20 | * @param {...Array} [values] The arrays of values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
25 | * // => [1, 3, 4]
26 | */
27 | function difference(array) {
28 | return baseDifference(array, baseFlatten(arguments, true, true, 1));
29 | }
30 |
31 | module.exports = difference;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/arrays/union.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseFlatten = require('../internals/baseFlatten'),
10 | baseUniq = require('../internals/baseUniq');
11 |
12 | /**
13 | * Creates an array of unique values, in order, of the provided arrays using
14 | * strict equality for comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {...Array} [array] The arrays to inspect.
20 | * @returns {Array} Returns an array of combined values.
21 | * @example
22 | *
23 | * _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
24 | * // => [1, 2, 3, 5, 4]
25 | */
26 | function union() {
27 | return baseUniq(baseFlatten(arguments, true, true));
28 | }
29 |
30 | module.exports = union;
31 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/arrays/without.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var baseDifference = require('../internals/baseDifference'),
10 | slice = require('../internals/slice');
11 |
12 | /**
13 | * Creates an array excluding all provided values using strict equality for
14 | * comparisons, i.e. `===`.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Arrays
19 | * @param {Array} array The array to filter.
20 | * @param {...*} [value] The values to exclude.
21 | * @returns {Array} Returns a new array of filtered values.
22 | * @example
23 | *
24 | * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
25 | * // => [2, 3, 4]
26 | */
27 | function without(array) {
28 | return baseDifference(array, slice(arguments, 1));
29 | }
30 |
31 | module.exports = without;
32 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/chaining.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | module.exports = {
11 | 'chain': require('./chaining/chain'),
12 | 'tap': require('./chaining/tap'),
13 | 'value': require('./chaining/wrapperValueOf'),
14 | 'wrapperChain': require('./chaining/wrapperChain'),
15 | 'wrapperValueOf': require('./chaining/wrapperValueOf')
16 | };
17 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/chaining/tap.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Invokes `interceptor` with the `value` as the first argument and then
12 | * returns `value`. The purpose of this method is to "tap into" a method
13 | * chain in order to perform operations on intermediate results within
14 | * the chain.
15 | *
16 | * @static
17 | * @memberOf _
18 | * @category Chaining
19 | * @param {*} value The value to provide to `interceptor`.
20 | * @param {Function} interceptor The function to invoke.
21 | * @returns {*} Returns `value`.
22 | * @example
23 | *
24 | * _([1, 2, 3, 4])
25 | * .tap(function(array) { array.pop(); })
26 | * .reverse()
27 | * .value();
28 | * // => [3, 2, 1]
29 | */
30 | function tap(value, interceptor) {
31 | interceptor(value);
32 | return value;
33 | }
34 |
35 | module.exports = tap;
36 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/chaining/wrapperChain.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 |
10 | /**
11 | * Enables explicit method chaining on the wrapper object.
12 | *
13 | * @name chain
14 | * @memberOf _
15 | * @category Chaining
16 | * @returns {*} Returns the wrapper object.
17 | * @example
18 | *
19 | * var characters = [
20 | * { 'name': 'barney', 'age': 36 },
21 | * { 'name': 'fred', 'age': 40 }
22 | * ];
23 | *
24 | * // without explicit chaining
25 | * _(characters).first();
26 | * // => { 'name': 'barney', 'age': 36 }
27 | *
28 | * // with explicit chaining
29 | * _(characters).chain()
30 | * .first()
31 | * .pick('age')
32 | * .value();
33 | * // => { 'age': 36 }
34 | */
35 | function wrapperChain() {
36 | this.__chain__ = true;
37 | return this;
38 | }
39 |
40 | module.exports = wrapperChain;
41 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/chaining/wrapperValueOf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var forEach = require('../collections/forEach'),
10 | support = require('../support');
11 |
12 | /**
13 | * Extracts the wrapped value.
14 | *
15 | * @name valueOf
16 | * @memberOf _
17 | * @alias value
18 | * @category Chaining
19 | * @returns {*} Returns the wrapped value.
20 | * @example
21 | *
22 | * _([1, 2, 3]).valueOf();
23 | * // => [1, 2, 3]
24 | */
25 | function wrapperValueOf() {
26 | return this.__wrapped__;
27 | }
28 |
29 | module.exports = wrapperValueOf;
30 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/collections/pluck.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)
3 | * Build: `lodash modularize underscore exports="node" -o ./underscore/`
4 | * Copyright 2012-2013 The Dojo Foundation
5 | * Based on Underscore.js 1.5.2
6 | * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7 | * Available under MIT license
8 | */
9 | var map = require('./map');
10 |
11 | /**
12 | * Retrieves the value of a specified property from all elements in the collection.
13 | *
14 | * @static
15 | * @memberOf _
16 | * @type Function
17 | * @category Collections
18 | * @param {Array|Object|string} collection The collection to iterate over.
19 | * @param {string} property The name of the property to pluck.
20 | * @returns {Array} Returns a new array of property values.
21 | * @example
22 | *
23 | * var characters = [
24 | * { 'name': 'barney', 'age': 36 },
25 | * { 'name': 'fred', 'age': 40 }
26 | * ];
27 | *
28 | * _.pluck(characters, 'name');
29 | * // => ['barney', 'fred']
30 | */
31 | var pluck = map;
32 |
33 | module.exports = pluck;
34 |
--------------------------------------------------------------------------------
/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash-node/underscore/functions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Lo-Dash 2.4.1 (Custom Build)