From bca5b604483a3718ac63e0cf385d35d9956369d4 Mon Sep 17 00:00:00 2001 From: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:50:32 -0400 Subject: [PATCH] Flag '--external encode' in ncc build --- dist/index.js | 16 ++++++++-------- dist/licenses.txt | 10 ---------- package.json | 2 +- 3 files changed, 9 insertions(+), 19 deletions(-) diff --git a/dist/index.js b/dist/index.js index dbbbd3b..2ddf511 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1986,7 +1986,7 @@ FetchError.prototype.name = 'FetchError'; let convert; try { - convert = (__nccwpck_require__(2877).convert); + convert = (__nccwpck_require__(3975).convert); } catch (e) {} const INTERNALS = Symbol('Body internals'); @@ -13391,27 +13391,27 @@ if (require.main === require.cache[eval('__filename')]) { /***/ }), -/***/ 2877: +/***/ 9491: /***/ ((module) => { -module.exports = eval("require")("encoding"); - +"use strict"; +module.exports = require("assert"); /***/ }), -/***/ 9491: +/***/ 6113: /***/ ((module) => { "use strict"; -module.exports = require("assert"); +module.exports = require("crypto"); /***/ }), -/***/ 6113: +/***/ 3975: /***/ ((module) => { "use strict"; -module.exports = require("crypto"); +module.exports = require("encoding"); /***/ }), diff --git a/dist/licenses.txt b/dist/licenses.txt index f7ebb20..36b86f9 100644 --- a/dist/licenses.txt +++ b/dist/licenses.txt @@ -35,16 +35,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vercel/ncc -MIT -Copyright 2018 ZEIT, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - isomorphic-fetch MIT The MIT License (MIT) diff --git a/package.json b/package.json index 177c1ac..5143a63 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "format:write": "prettier --write **/*.js", "format:check": "prettier --check **/*.js", "lint": "npx eslint . -c ./.github/linters/.eslintrc.yml", - "package": "ncc build src/index.js --license licenses.txt", + "package": "ncc build src/index.js --license licenses.txt --external encoding", "package:watch": "npm run package -- --watch", "test": "(jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg", "all": "npm install && npm run format:write && npm run lint && npm run test && npm run package"