From 6fd54e315175e01fffb0b988c0254feb388869f8 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 10 Mar 2020 23:20:34 +0100 Subject: [PATCH] update dependency after merge from master --- node_modules/@actions/core/README.md | 6 + node_modules/@actions/core/lib/core.d.ts | 4 + node_modules/@actions/core/lib/core.js | 7 + node_modules/@actions/core/lib/core.js.map | 2 +- node_modules/@actions/core/package.json | 69 ++++------ node_modules/xmldom/.travis.yml | 15 --- node_modules/xmldom/CHANGELOG.md | 92 ++++++++++++++ node_modules/xmldom/LICENSE | 8 -- node_modules/xmldom/LICENSE.md | 4 + node_modules/xmldom/__package__.js | 4 - node_modules/xmldom/changelog | 14 -- node_modules/xmldom/component.json | 10 -- node_modules/xmldom/{ => lib}/dom-parser.js | 15 +-- node_modules/xmldom/{ => lib}/dom.js | 16 +++ node_modules/xmldom/{ => lib}/entities.js | 5 +- node_modules/xmldom/{ => lib}/sax.js | 0 node_modules/xmldom/package.json | 134 +++++++++----------- node_modules/xmldom/readme.md | 4 +- node_modules/xpath/package.json | 66 +++------- 19 files changed, 244 insertions(+), 231 deletions(-) delete mode 100644 node_modules/xmldom/.travis.yml create mode 100644 node_modules/xmldom/CHANGELOG.md delete mode 100644 node_modules/xmldom/LICENSE create mode 100644 node_modules/xmldom/LICENSE.md delete mode 100644 node_modules/xmldom/__package__.js delete mode 100644 node_modules/xmldom/changelog delete mode 100644 node_modules/xmldom/component.json rename node_modules/xmldom/{ => lib}/dom-parser.js (99%) rename node_modules/xmldom/{ => lib}/dom.js (98%) rename node_modules/xmldom/{ => lib}/entities.js (98%) rename node_modules/xmldom/{ => lib}/sax.js (100%) diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 457f73cc..5ad27eed 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -82,6 +82,12 @@ try { core.warning('myInput was not set'); } + if (core.isDebug()) { + // curl -v https://github.com + } else { + // curl https://github.com + } + // Do stuff } catch (err) { diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index 6483c3ca..8fcc31ba 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -55,6 +55,10 @@ export declare function setOutput(name: string, value: string): void; * @param message add error issue message */ export declare function setFailed(message: string): void; +/** + * Gets whether Actions Step Debug is on or not + */ +export declare function isDebug(): boolean; /** * Writes debug message to user log * @param message debug message diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index b99e1dee..b7ec8ab4 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -104,6 +104,13 @@ exports.setFailed = setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; /** * Writes debug message to user log * @param message debug message diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index 33c62688..fb93bd38 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAE7C,uCAAwB;AACxB,2CAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAW;IACtD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACvB,sBAAY,CAAC,SAAS,EAAE,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G;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAa;IACnD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 0f3cd220..951dd7bd 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,40 +1,16 @@ { - "_args": [ - [ - "@actions/core@1.2.2", - "." - ] - ], - "_from": "@actions/core@1.2.2", - "_id": "@actions/core@1.2.2", - "_inBundle": false, - "_integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg==", - "_location": "/@actions/core", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "@actions/core@1.2.2", - "name": "@actions/core", - "escapedName": "@actions%2fcore", - "scope": "@actions", - "rawSpec": "1.2.2", - "saveSpec": null, - "fetchSpec": "1.2.2" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz", - "_spec": "1.2.2", - "_where": ".", - "bugs": { - "url": "https://github.com/actions/toolkit/issues" - }, + "name": "@actions/core", + "version": "1.2.3", "description": "Actions core lib", - "devDependencies": { - "@types/node": "^12.0.2" - }, + "keywords": [ + "github", + "actions", + "core" + ], + "homepage": "https://github.com/actions/toolkit/tree/master/packages/core", + "license": "MIT", + "main": "lib/core.js", + "types": "lib/core.d.ts", "directories": { "lib": "lib", "test": "__tests__" @@ -42,15 +18,6 @@ "files": [ "lib" ], - "homepage": "https://github.com/actions/toolkit/tree/master/packages/core", - "keywords": [ - "github", - "actions", - "core" - ], - "license": "MIT", - "main": "lib/core.js", - "name": "@actions/core", "publishConfig": { "access": "public" }, @@ -64,6 +31,14 @@ "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "types": "lib/core.d.ts", - "version": "1.2.2" -} + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "devDependencies": { + "@types/node": "^12.0.2" + } + +,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz" +,"_integrity": "sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w==" +,"_from": "@actions/core@1.2.3" +} \ No newline at end of file diff --git a/node_modules/xmldom/.travis.yml b/node_modules/xmldom/.travis.yml deleted file mode 100644 index 114c3722..00000000 --- a/node_modules/xmldom/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js - -cache: - npm: false - -node_js: - - '0.10' - -branches: - only: - - master - - proof - - travis-ci - -script: npm test diff --git a/node_modules/xmldom/CHANGELOG.md b/node_modules/xmldom/CHANGELOG.md new file mode 100644 index 00000000..9bb29ec4 --- /dev/null +++ b/node_modules/xmldom/CHANGELOG.md @@ -0,0 +1,92 @@ +## 0.3.0 + +- Node >=10.x now required. +- Added getElementsByClassName method. +- Added Node to the list of exports +- Added lowercase of åäö in entityMap. +- Moved existing sources into `lib` subdirectory. +- Removed `.npmignore` in favor of `files` entry in package.json. +- More `package.json` refactoring. +- Replaced CHANGELOG with more rigorous file. +- Replaced LICENSE with more rigorous file. +- Removed component.json (deprecated package manager https://github.com/componentjs/guide) +- `proof` devDep updated to latest. +- Fixed CI. +- README updates. + +## 0.2.1 + +- More package.json refactoring. + +## 0.2.0 + +- Now publishing under xmldom npm package again; retiring xmldom-alpha. +- Remove coveralls. +- Disable cache in travis. +- Other refactoring. + +## 0.1.28 (via xmldom-alpha npm package) + +- Removed __proto__ accessor. +- Appended HTML entities defaults. + +## 0.1.27 (via xmldom-alpha npm package) + +- Various bug fixes. +- Don't ask why 0.1.26 and 0.1.25 were skipped. `¯\_(ツ)_/¯` + +## 0.1.24 (via xmldom-alpha package) + +- Added node filter. + +## 0.1.23 (via xmldom-alpha npm package) + +- Added namespace support for nest node serialize. +- Various other bug fixes. + +## 0.1.22 + +- Merge XMLNS serialization. +- Removed \r from source string. +- Print namespaces for child elements. +- Switch references to nodeType to use named constants. +- Add nodelist toString support. + +## 0.1.21 + +- Fixed serialize bug. + +## 0.1.20 + +- Optimized invalid XML support. +- Added toString sorter for attributes output. +- Added html self closed node button. +- Added `*` NS support for getElementsByTagNameNS. +- Converted attribute's value to string in setAttributeNS. +- Added support for HTML entities for HTML docs only. +- Fixed TypeError when Document is created with DocumentType. + +## 0.1.19 + +- Fixed issue #68, infinite loop on unclosed comment. +- Added error report for unclosed tag. +- Various other fixes. + +## 0.1.18 + +- Added default `ns` support. +- parseFromString now renders entirely plain text documents as textNode. +- Enabled option to ignore white space on parsing. + +## 0.1.16 + +- Correctly handle multibyte Unicode greater than two byts. #57. #56. +- Initial unit testing and test coverage. #53. #46. #19. +- Create Bower `component.json` #52. + +## 0.1.8 + +- Add: some test case from node-o3-xml(excludes xpath support) +- Fix: remove existed attribute before setting (bug introduced in v0.1.5) +- Fix: index direct access for childNodes and any NodeList collection(not w3c standard) +- Fix: remove last child bug diff --git a/node_modules/xmldom/LICENSE b/node_modules/xmldom/LICENSE deleted file mode 100644 index 68a9b5e1..00000000 --- a/node_modules/xmldom/LICENSE +++ /dev/null @@ -1,8 +0,0 @@ -You can choose any one of those: - -The MIT License (MIT): - -link:http://opensource.org/licenses/MIT - -LGPL: -http://www.gnu.org/licenses/lgpl.html diff --git a/node_modules/xmldom/LICENSE.md b/node_modules/xmldom/LICENSE.md new file mode 100644 index 00000000..dc140c79 --- /dev/null +++ b/node_modules/xmldom/LICENSE.md @@ -0,0 +1,4 @@ +You can choose any one of these licenses: + +- MIT: https://opensource.org/licenses/MIT +- LGPL: http://www.gnu.org/licenses/lgpl.html diff --git a/node_modules/xmldom/__package__.js b/node_modules/xmldom/__package__.js deleted file mode 100644 index b4cad289..00000000 --- a/node_modules/xmldom/__package__.js +++ /dev/null @@ -1,4 +0,0 @@ -this.addScript('dom.js',['DOMImplementation','XMLSerializer']); -this.addScript('dom-parser.js',['DOMHandler','DOMParser'], - ['DOMImplementation','XMLReader']); -this.addScript('sax.js','XMLReader'); \ No newline at end of file diff --git a/node_modules/xmldom/changelog b/node_modules/xmldom/changelog deleted file mode 100644 index ab815bb8..00000000 --- a/node_modules/xmldom/changelog +++ /dev/null @@ -1,14 +0,0 @@ -### Version 0.1.16 - -Sat May 4 14:58:03 UTC 2013 - - * Correctly handle multibyte Unicode greater than two byts. #57. #56. - * Initial unit testing and test coverage. #53. #46. #19. - * Create Bower `component.json` #52. - -### Version 0.1.8 - - * Add: some test case from node-o3-xml(excludes xpath support) - * Fix: remove existed attribute before setting (bug introduced in v0.1.5) - * Fix: index direct access for childNodes and any NodeList collection(not w3c standard) - * Fix: remove last child bug diff --git a/node_modules/xmldom/component.json b/node_modules/xmldom/component.json deleted file mode 100644 index 93b4d570..00000000 --- a/node_modules/xmldom/component.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "xmldom", - "version": "0.1.15", - "main": "dom-parser.js", - "ignore": [ - "**/.*", - "node_modules", - "components" - ] -} diff --git a/node_modules/xmldom/dom-parser.js b/node_modules/xmldom/lib/dom-parser.js similarity index 99% rename from node_modules/xmldom/dom-parser.js rename to node_modules/xmldom/lib/dom-parser.js index e45dd476..92937fdc 100644 --- a/node_modules/xmldom/dom-parser.js +++ b/node_modules/xmldom/lib/dom-parser.js @@ -1,6 +1,5 @@ function DOMParser(options){ this.options = options ||{locator:{}}; - } DOMParser.prototype.parseFromString = function(source,mimeType){ @@ -15,7 +14,7 @@ DOMParser.prototype.parseFromString = function(source,mimeType){ if(locator){ domBuilder.setDocumentLocator(locator) } - + sax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator); sax.domBuilder = options.domBuilder || domBuilder; if(isHTML){ @@ -58,8 +57,8 @@ function buildErrorHandler(errorImpl,domBuilder,locator){ /** * +ContentHandler+ErrorHandler * +LexicalHandler+EntityResolver2 - * -DeclHandler-DTDHandler - * + * -DeclHandler-DTDHandler + * * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2 * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html @@ -74,7 +73,7 @@ function position(locator,node){ /** * @see org.xml.sax.ContentHandler#startDocument * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html - */ + */ DOMHandler.prototype = { startDocument : function() { this.doc = new DOMImplementation().createDocument(null, null, null); @@ -88,7 +87,7 @@ DOMHandler.prototype = { var len = attrs.length; appendElement(this, el); this.currentElement = el; - + this.locator && position(this.locator,el) for (var i = 0 ; i < len; i++) { var namespaceURI = attrs.getURI(i); @@ -151,7 +150,7 @@ DOMHandler.prototype = { this.locator && position(this.locator,comm) appendElement(this, comm); }, - + startCDATA:function() { //used in characters() methods this.cdata = true; @@ -159,7 +158,7 @@ DOMHandler.prototype = { endCDATA:function() { this.cdata = false; }, - + startDTD:function(name, publicId, systemId) { var impl = this.doc.implementation; if (impl && impl.createDocumentType) { diff --git a/node_modules/xmldom/dom.js b/node_modules/xmldom/lib/dom.js similarity index 98% rename from node_modules/xmldom/dom.js rename to node_modules/xmldom/lib/dom.js index b13b3719..01794c8b 100644 --- a/node_modules/xmldom/dom.js +++ b/node_modules/xmldom/lib/dom.js @@ -608,6 +608,21 @@ Document.prototype = { return rtv; }, + getElementsByClassName: function(className) { + const pattern = new RegExp(`(^|\\s)${className}(\\s|$)`); + return new LiveNodeList(this, base => { + var ls = []; + _visitNode(base.documentElement, node => { + if(node !== base && node.nodeType == ELEMENT_NODE) { + if(pattern.test(node.getAttribute('class'))) { + ls.push(node); + } + } + }); + return ls; + }); + }, + //document factory method: createElement : function(tagName){ var node = new Element(); @@ -1235,6 +1250,7 @@ try{ } //if(typeof require == 'function'){ + exports.Node = Node; exports.DOMImplementation = DOMImplementation; exports.XMLSerializer = XMLSerializer; //} diff --git a/node_modules/xmldom/entities.js b/node_modules/xmldom/lib/entities.js similarity index 98% rename from node_modules/xmldom/entities.js rename to node_modules/xmldom/lib/entities.js index 1f7d605f..81d70820 100644 --- a/node_modules/xmldom/entities.js +++ b/node_modules/xmldom/lib/entities.js @@ -9,7 +9,9 @@ exports.entityMap = { Acirc: "Â", Atilde: "Ã", Auml: "Ä", + auml: "ä", Aring: "Å", + aring: "å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", @@ -27,6 +29,7 @@ exports.entityMap = { Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", + ouml: "ö", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", @@ -241,4 +244,4 @@ exports.entityMap = { hearts: "♥", diams: "♦" }; -//for(var n in exports.entityMap){console.log(exports.entityMap[n].charCodeAt())} \ No newline at end of file +//for(var n in exports.entityMap){console.log(exports.entityMap[n].charCodeAt())} diff --git a/node_modules/xmldom/sax.js b/node_modules/xmldom/lib/sax.js similarity index 100% rename from node_modules/xmldom/sax.js rename to node_modules/xmldom/lib/sax.js diff --git a/node_modules/xmldom/package.json b/node_modules/xmldom/package.json index e203da3b..f0260c66 100644 --- a/node_modules/xmldom/package.json +++ b/node_modules/xmldom/package.json @@ -1,67 +1,7 @@ { - "_args": [ - [ - "xmldom@0.2.1", - "." - ] - ], - "_from": "xmldom@0.2.1", - "_id": "xmldom@0.2.1", - "_inBundle": false, - "_integrity": "sha512-kXXiYvmblIgEemGeB75y97FyaZavx6SQhGppLw5TKWAD2Wd0KAly0g23eVLh17YcpxZpnFym1Qk/eaRjy1APPg==", - "_location": "/xmldom", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "xmldom@0.2.1", - "name": "xmldom", - "escapedName": "xmldom", - "rawSpec": "0.2.1", - "saveSpec": null, - "fetchSpec": "0.2.1" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.2.1.tgz", - "_spec": "0.2.1", - "_where": ".", - "author": { - "name": "jindw", - "email": "jindw@xidea.org", - "url": "http://www.xidea.org" - }, - "bugs": { - "url": "http://github.com/xmldom/xmldom/issues", - "email": "jindw@xidea.org" - }, - "contributors": [ - { - "name": "Yaron Naveh", - "email": "yaronn01@gmail.com", - "url": "http://webservices20.blogspot.com/" - }, - { - "name": "Harutyun Amirjanyan", - "email": "amirjanyan@gmail.com", - "url": "https://github.com/nightwing" - }, - { - "name": "Alan Gutierrez", - "email": "alan@prettyrobots.com", - "url": "http://www.prettyrobots.com/" - } - ], - "dependencies": {}, - "description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).", - "devDependencies": { - "proof": "0.0.28" - }, - "engines": { - "node": ">=0.1" - }, - "homepage": "https://github.com/xmldom/xmldom", + "name": "xmldom", + "version": "0.3.0", + "description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.", "keywords": [ "w3c", "dom", @@ -71,22 +11,66 @@ "DOMParser", "XMLSerializer" ], - "license": "(LGPL-2.0 or MIT)", - "main": "./dom-parser.js", - "maintainers": [ - { - "name": "jindw", - "email": "jindw@xidea.org", - "url": "http://www.xidea.org" - } - ], - "name": "xmldom", + "author": "jindw (http://www.xidea.org)", + "homepage": "https://github.com/xmldom/xmldom", "repository": { "type": "git", "url": "git://github.com/xmldom/xmldom.git" }, + "main": "lib/dom-parser.js", + "files": [ + "lib" + ], "scripts": { "test": "proof platform win32 && proof test */*/*.t.js || t/test" }, - "version": "0.2.1" -} + "engines": { + "node": ">=10.0.0" + }, + "dependencies": {}, + "devDependencies": { + "proof": "~7.0.9" + }, + "maintainers": [ + { + "name": "brodybits", + "email": "chris@brody.consulting", + "url": "https://github.com/brodybits" + } + ], + "contributors": [ + { + "name": "jindw", + "email": "jindw@xidea.org", + "url": "http://www.xidea.org" + }, + { + "name": "Yaron Naveh", + "email": "yaronn01@gmail.com", + "web": "http://webservices20.blogspot.com/" + }, + { + "name": "Harutyun Amirjanyan", + "email": "amirjanyan@gmail.com", + "web": "https://github.com/nightwing" + }, + { + "name": "Alan Gutierrez", + "email": "alan@prettyrobots.com", + "web": "http://www.prettyrobots.com/" + }, + { + "name": "Eric Newport", + "email": "kethinov@gmail.com", + "web": "https://github.com/kethinov" + } + ], + "bugs": { + "url": "https://github.com/xmldom/xmldom/issues" + }, + "license": "(LGPL-2.0 OR MIT)" + +,"_resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.3.0.tgz" +,"_integrity": "sha512-z9s6k3wxE+aZHgXYxSTpGDo7BYOUfJsIRyoZiX6HTjwpwfS2wpQBQKa2fD+ShLyPkqDYo5ud7KitmLZ2Cd6r0g==" +,"_from": "xmldom@0.3.0" +} \ No newline at end of file diff --git a/node_modules/xmldom/readme.md b/node_modules/xmldom/readme.md index f832c448..14a516b8 100644 --- a/node_modules/xmldom/readme.md +++ b/node_modules/xmldom/readme.md @@ -1,9 +1,11 @@ -# XMLDOM [![Build Status](https://secure.travis-ci.org/bigeasy/xmldom.png?branch=master)](http://travis-ci.org/bigeasy/xmldom) [![Coverage Status](https://coveralls.io/repos/bigeasy/xmldom/badge.png?branch=master)](https://coveralls.io/r/bigeasy/xmldom) [![NPM version](https://badge.fury.io/js/xmldom.png)](http://badge.fury.io/js/xmldom) +# XMLDOM [![Build Status](https://secure.travis-ci.org/xmldom/xmldom.png?branch=master)](http://travis-ci.org/xmldom/xmldom) [![NPM version](https://badge.fury.io/js/xmldom.png)](http://badge.fury.io/js/xmldom) A JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully compatible with `W3C DOM level2`; and some compatible with `level3`. Supports `DOMParser` and `XMLSerializer` interface such as in browser. +**Original project location:** + Install: ------- >npm install xmldom diff --git a/node_modules/xpath/package.json b/node_modules/xpath/package.json index faed2b70..8d908148 100644 --- a/node_modules/xpath/package.json +++ b/node_modules/xpath/package.json @@ -1,38 +1,13 @@ { - "_args": [ - [ - "xpath@0.0.27", - "." - ] - ], - "_from": "xpath@0.0.27", - "_id": "xpath@0.0.27", - "_inBundle": false, - "_integrity": "sha512-fg03WRxtkCV6ohClePNAECYsmpKKTv5L8y/X3Dn1hQrec3POx2jHZ/0P2qQ6HvsrU1BmeqXcof3NGGueG6LxwQ==", - "_location": "/xpath", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "xpath@0.0.27", - "name": "xpath", - "escapedName": "xpath", - "rawSpec": "0.0.27", - "saveSpec": null, - "fetchSpec": "0.0.27" + "name": "xpath", + "version": "0.0.27", + "description": "DOM 3 XPath implemention and helper for node.js.", + "engines": { + "node": ">=0.6.0" }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.27.tgz", - "_spec": "0.0.27", - "_where": ".", "author": { "name": "Cameron McCormack" }, - "bugs": { - "url": "https://github.com/goto100/xpath/issues" - }, "contributors": [ { "name": "goto100" @@ -42,29 +17,26 @@ } ], "dependencies": {}, - "description": "DOM 3 XPath implemention and helper for node.js.", "devDependencies": { "nodeunit": ">=0.6.4", "xmldom": "^0.1.19" }, - "engines": { - "node": ">=0.6.0" + "typings": "./xpath.d.ts", + "scripts": { + "test": "./node_modules/.bin/nodeunit test.js" }, - "homepage": "https://github.com/goto100/xpath#readme", + "repository": { + "type": "git", + "url": "https://github.com/goto100/xpath.git" + }, + "main": "./xpath.js", "keywords": [ "xpath", "xml" ], - "license": "MIT", - "main": "./xpath.js", - "name": "xpath", - "repository": { - "type": "git", - "url": "git+https://github.com/goto100/xpath.git" - }, - "scripts": { - "test": "nodeunit test.js" - }, - "typings": "./xpath.d.ts", - "version": "0.0.27" -} + "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.27.tgz" +,"_integrity": "sha512-fg03WRxtkCV6ohClePNAECYsmpKKTv5L8y/X3Dn1hQrec3POx2jHZ/0P2qQ6HvsrU1BmeqXcof3NGGueG6LxwQ==" +,"_from": "xpath@0.0.27" +} \ No newline at end of file