This commit is contained in:
Konrad Pabjan 2019-11-05 17:38:12 -05:00
parent bbc52402b0
commit 3d91cc2674
4 changed files with 614 additions and 45 deletions

4
.gitignore vendored
View File

@ -1,6 +1,10 @@
# Ignore node_modules, ncc is used to compile nodejs modules into a single file in the releases branch # Ignore node_modules, ncc is used to compile nodejs modules into a single file in the releases branch
node_modules/
__tests__/runner/* __tests__/runner/*
# Ignore js files that are transpiled from ts files in src/
lib/
# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore # Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs # Logs
logs logs

572
dist/index.js vendored
View File

@ -150,6 +150,310 @@ module.exports = __webpack_require__(211);
/***/ 264: /***/ 264:
/***/ (function(module, __unusedexports, __nested_webpack_require_1759__) { /***/ (function(module, __unusedexports, __nested_webpack_require_1759__) {
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(264);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({
/***/ 16:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(16);
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(87);
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(129);
/***/ }),
/***/ 211:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(211);
/***/ }),
/***/ 264:
/***/ (function(module, __unusedexports, __nested_webpack_require_1759__) {
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(264);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({
/***/ 16:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(16);
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(87);
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(129);
/***/ }),
/***/ 211:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(211);
/***/ }),
/***/ 264:
/***/ (function(module, __unusedexports, __nested_webpack_require_1759__) {
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(264);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({
/***/ 16:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(16);
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(87);
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(129);
/***/ }),
/***/ 211:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(211);
/***/ }),
/***/ 264:
/***/ (function(module, __unusedexports, __nested_webpack_require_1759__) {
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(264);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({
/***/ 16:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(16);
/***/ }),
/***/ 87:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(87);
/***/ }),
/***/ 129:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(129);
/***/ }),
/***/ 211:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(211);
/***/ }),
/***/ 264:
/***/ (function(module, __unusedexports, __nested_webpack_require_1759__) {
module.exports = module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap /******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict"; /******/ "use strict";
@ -4675,6 +4979,274 @@ function copyFile(srcFile, destFile, force) {
/***/ 357: /***/ 357:
/***/ (function(module) { /***/ (function(module) {
module.exports = __nested_webpack_require_1759__(357);
/***/ }),
/***/ 417:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(417);
/***/ }),
/***/ 605:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(605);
/***/ }),
/***/ 614:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(614);
/***/ }),
/***/ 622:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(622);
/***/ }),
/***/ 631:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(631);
/***/ }),
/***/ 669:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(669);
/***/ }),
/***/ 747:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(747);
/***/ }),
/***/ 835:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(835);
/***/ })
/******/ });
/***/ }),
/***/ 357:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(357);
/***/ }),
/***/ 417:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(417);
/***/ }),
/***/ 605:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(605);
/***/ }),
/***/ 614:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(614);
/***/ }),
/***/ 622:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(622);
/***/ }),
/***/ 631:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(631);
/***/ }),
/***/ 669:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(669);
/***/ }),
/***/ 747:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(747);
/***/ }),
/***/ 835:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(835);
/***/ })
/******/ });
/***/ }),
/***/ 357:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(357);
/***/ }),
/***/ 417:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(417);
/***/ }),
/***/ 605:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(605);
/***/ }),
/***/ 614:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(614);
/***/ }),
/***/ 622:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(622);
/***/ }),
/***/ 631:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(631);
/***/ }),
/***/ 669:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(669);
/***/ }),
/***/ 747:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(747);
/***/ }),
/***/ 835:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(835);
/***/ })
/******/ });
/***/ }),
/***/ 357:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(357);
/***/ }),
/***/ 417:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(417);
/***/ }),
/***/ 605:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(605);
/***/ }),
/***/ 614:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(614);
/***/ }),
/***/ 622:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(622);
/***/ }),
/***/ 631:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(631);
/***/ }),
/***/ 669:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(669);
/***/ }),
/***/ 747:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(747);
/***/ }),
/***/ 835:
/***/ (function(module) {
module.exports = __nested_webpack_require_1759__(835);
/***/ })
/******/ });
/***/ }),
/***/ 357:
/***/ (function(module) {
module.exports = __webpack_require__(357); module.exports = __webpack_require__(357);
/***/ }), /***/ }),

78
package-lock.json generated
View File

@ -560,6 +560,12 @@
"integrity": "sha512-SOhuU4wNBxhhTHxYaiG5NY4HBhDIDnJF60GU+2LqHAdKKer86//e4yg69aENCtQ04n0ovz+tq2YPME5t5yp4pw==", "integrity": "sha512-SOhuU4wNBxhhTHxYaiG5NY4HBhDIDnJF60GU+2LqHAdKKer86//e4yg69aENCtQ04n0ovz+tq2YPME5t5yp4pw==",
"dev": true "dev": true
}, },
"@zeit/ncc": {
"version": "0.20.5",
"resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.20.5.tgz",
"integrity": "sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw==",
"dev": true
},
"abab": { "abab": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz",
@ -1735,8 +1741,7 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
@ -1757,14 +1762,12 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -1779,20 +1782,17 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@ -1909,8 +1909,7 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@ -1922,7 +1921,6 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@ -1937,7 +1935,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@ -1945,14 +1942,12 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@ -1971,7 +1966,6 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@ -2052,8 +2046,7 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@ -2065,7 +2058,6 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@ -2151,8 +2143,7 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
@ -2188,7 +2179,6 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
@ -2208,7 +2198,6 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
@ -2252,14 +2241,12 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
} }
} }
}, },
@ -2445,19 +2432,20 @@
} }
}, },
"husky": { "husky": {
"version": "2.7.0", "version": "3.0.9",
"resolved": "https://registry.npmjs.org/husky/-/husky-2.7.0.tgz", "resolved": "https://registry.npmjs.org/husky/-/husky-3.0.9.tgz",
"integrity": "sha512-LIi8zzT6PyFpcYKdvWRCn/8X+6SuG2TgYYMrM6ckEYhlp44UcEduVymZGIZNLiwOUjrEud+78w/AsAiqJA/kRg==", "integrity": "sha512-Yolhupm7le2/MqC1VYLk/cNmYxsSsqKkTyBhzQHhPK1jFnC89mmmNVuGtLNabjDI6Aj8UNIr0KpRNuBkiC4+sg==",
"dev": true, "dev": true,
"requires": { "requires": {
"cosmiconfig": "^5.2.0", "chalk": "^2.4.2",
"ci-info": "^2.0.0",
"cosmiconfig": "^5.2.1",
"execa": "^1.0.0", "execa": "^1.0.0",
"find-up": "^3.0.0",
"get-stdin": "^7.0.0", "get-stdin": "^7.0.0",
"is-ci": "^2.0.0", "opencollective-postinstall": "^2.0.2",
"pkg-dir": "^4.1.0", "pkg-dir": "^4.2.0",
"please-upgrade-node": "^3.1.1", "please-upgrade-node": "^3.2.0",
"read-pkg": "^5.1.1", "read-pkg": "^5.2.0",
"run-node": "^1.0.0", "run-node": "^1.0.0",
"slash": "^3.0.0" "slash": "^3.0.0"
} }
@ -3900,6 +3888,12 @@
"wrappy": "1" "wrappy": "1"
} }
}, },
"opencollective-postinstall": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz",
"integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
},
"optimist": { "optimist": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
@ -4130,9 +4124,9 @@
} }
}, },
"please-upgrade-node": { "please-upgrade-node": {
"version": "3.1.1", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz", "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz",
"integrity": "sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ==", "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==",
"dev": true, "dev": true,
"requires": { "requires": {
"semver-compare": "^1.0.0" "semver-compare": "^1.0.0"

View File

@ -33,7 +33,7 @@
"@types/node": "^12.0.4", "@types/node": "^12.0.4",
"@types/semver": "^6.0.0", "@types/semver": "^6.0.0",
"@zeit/ncc": "^0.20.5", "@zeit/ncc": "^0.20.5",
"husky": "^2.3.0", "husky": "^3.0.9",
"jest": "^24.8.0", "jest": "^24.8.0",
"jest-circus": "^24.7.1", "jest-circus": "^24.7.1",
"prettier": "^1.17.1", "prettier": "^1.17.1",
@ -43,8 +43,7 @@
"husky": { "husky": {
"skipCI": true, "skipCI": true,
"hooks": { "hooks": {
"pre-commit": "npm run build && npm run format", "pre-commit": "npm run build && npm run format && npm run format-check"
"post-commit": "npm prune --production && git add node_modules/* && git commit -m \"Husky commit correct node modules\""
} }
} }
} }