diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
new file mode 100644
index 0000000..2284b93
--- /dev/null
+++ b/.github/workflows/node.js.yml
@@ -0,0 +1,31 @@
+# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
+
+name: Node.js CI
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [18.x, 20.x, 22.x]
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: 'npm'
+ - run: npm ci
+ - run: npm run build --if-present
+ - run: npm test
diff --git a/node_modules/.mf/cf.json b/node_modules/.mf/cf.json
new file mode 100644
index 0000000..db8ffd5
--- /dev/null
+++ b/node_modules/.mf/cf.json
@@ -0,0 +1 @@
+{"clientTcpRtt":168,"longitude":"121.45810","latitude":"31.22220","tlsCipher":"AEAD-AES256-GCM-SHA384","continent":"AS","asn":24400,"clientAcceptEncoding":"br, gzip, deflate","country":"CN","tlsClientAuth":{"certIssuerDNLegacy":"","certIssuerSKI":"","certSubjectDNRFC2253":"","certSubjectDNLegacy":"","certFingerprintSHA256":"","certNotBefore":"","certSKI":"","certSerial":"","certIssuerDN":"","certVerified":"NONE","certNotAfter":"","certSubjectDN":"","certPresented":"0","certRevoked":"0","certIssuerSerial":"","certIssuerDNRFC2253":"","certFingerprintSHA1":""},"verifiedBotCategory":"","tlsExportedAuthenticator":{"clientFinished":"1c9cd1ad9a116a002e873f6ef20cefa91a11fd416d5102a5906d23622f94e0ed34cc7b9ae4b48e39eed897e2a6c13f54","clientHandshake":"052cfd9ede2c2d61b5a0f2ef39d639ad50dca44b377f34fd775868c11d88939062062e13ac51bd82c7f8212105dcf210","serverHandshake":"f3dcefe0d489b8beaff2bd13b530187d769688ebc384a381ae793c72e31df7b2e9c5e69424752848404fc0e840e629d5","serverFinished":"e773323d1654c350c31db690c7ad73e45b81eece17ce62a2f10fbc1ff6c7c9bc1126261a98281f2cea1677e48857b7dd"},"tlsVersion":"TLSv1.3","colo":"HKG","timezone":"Asia/Shanghai","tlsClientHelloLength":"386","edgeRequestKeepAliveStatus":1,"requestPriority":"","tlsClientExtensionsSha1":"Y7DIC8A6G0/aXviZ8ie/xDbJb7g=","region":"Shanghai","city":"Shanghai","regionCode":"SH","asOrganization":"Shanghai Mobile Communications Co.","tlsClientRandom":"ZDCS/NxQNfxfsm/vgBjPELtA8/l6u8auy7wD7Vip9ss=","httpProtocol":"HTTP/1.1","botManagement":{"corporateProxy":false,"verifiedBot":false,"jsDetection":{"passed":false},"staticResource":false,"detectionIds":{},"score":99}}
\ No newline at end of file
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index e75971c..9702d9a 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -1,12 +1,12 @@
{
- "name": "message-board-backend",
+ "name": "yg-task-list",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/accepts": {
"version": "1.3.8",
- "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
"dependencies": {
"mime-types": "~2.1.34",
@@ -18,12 +18,12 @@
},
"node_modules/array-flatten": {
"version": "1.1.1",
- "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
},
"node_modules/body-parser": {
"version": "1.20.3",
- "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.3.tgz",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
"dependencies": {
"bytes": "3.1.2",
@@ -46,32 +46,15 @@
},
"node_modules/bytes": {
"version": "3.1.2",
- "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
"engines": {
"node": ">= 0.8"
}
},
- "node_modules/call-bind": {
- "version": "1.0.8",
- "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.8.tgz",
- "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
- "es-define-property": "^1.0.0",
- "get-intrinsic": "^1.2.4",
- "set-function-length": "^1.2.2"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/call-bind-apply-helpers": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
"integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -82,12 +65,12 @@
}
},
"node_modules/call-bound": {
- "version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.2.tgz",
- "integrity": "sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
+ "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
"dependencies": {
- "call-bind": "^1.0.8",
- "get-intrinsic": "^1.2.5"
+ "call-bind-apply-helpers": "^1.0.1",
+ "get-intrinsic": "^1.2.6"
},
"engines": {
"node": ">= 0.4"
@@ -98,7 +81,7 @@
},
"node_modules/content-disposition": {
"version": "0.5.4",
- "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
"dependencies": {
"safe-buffer": "5.2.1"
@@ -109,7 +92,7 @@
},
"node_modules/content-type": {
"version": "1.0.5",
- "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
"engines": {
"node": ">= 0.6"
@@ -117,7 +100,7 @@
},
"node_modules/cookie": {
"version": "0.7.1",
- "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
"engines": {
"node": ">= 0.6"
@@ -125,12 +108,12 @@
},
"node_modules/cookie-signature": {
"version": "1.0.6",
- "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
},
"node_modules/cors": {
"version": "2.8.5",
- "resolved": "https://registry.npmmirror.com/cors/-/cors-2.8.5.tgz",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
"dependencies": {
"object-assign": "^4",
@@ -142,31 +125,15 @@
},
"node_modules/debug": {
"version": "2.6.9",
- "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"dependencies": {
"ms": "2.0.0"
}
},
- "node_modules/define-data-property": {
- "version": "1.1.4",
- "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
- "dependencies": {
- "es-define-property": "^1.0.0",
- "es-errors": "^1.3.0",
- "gopd": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/depd": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"engines": {
"node": ">= 0.8"
@@ -174,7 +141,7 @@
},
"node_modules/destroy": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
"engines": {
"node": ">= 0.8",
@@ -182,11 +149,11 @@
}
},
"node_modules/dunder-proto": {
- "version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.0.tgz",
- "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
"dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
+ "call-bind-apply-helpers": "^1.0.1",
"es-errors": "^1.3.0",
"gopd": "^1.2.0"
},
@@ -196,12 +163,12 @@
},
"node_modules/ee-first": {
"version": "1.1.1",
- "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/encodeurl": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
"engines": {
"node": ">= 0.8"
@@ -209,7 +176,7 @@
},
"node_modules/es-define-property": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"engines": {
"node": ">= 0.4"
@@ -217,7 +184,7 @@
},
"node_modules/es-errors": {
"version": "1.3.0",
- "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
"engines": {
"node": ">= 0.4"
@@ -225,7 +192,7 @@
},
"node_modules/es-object-atoms": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
"integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
"dependencies": {
"es-errors": "^1.3.0"
@@ -236,12 +203,12 @@
},
"node_modules/escape-html": {
"version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
},
"node_modules/etag": {
"version": "1.8.1",
- "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
"engines": {
"node": ">= 0.6"
@@ -249,7 +216,7 @@
},
"node_modules/express": {
"version": "4.21.2",
- "resolved": "https://registry.npmmirror.com/express/-/express-4.21.2.tgz",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
"dependencies": {
"accepts": "~1.3.8",
@@ -294,7 +261,7 @@
},
"node_modules/finalhandler": {
"version": "1.3.1",
- "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.3.1.tgz",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
"dependencies": {
"debug": "2.6.9",
@@ -311,7 +278,7 @@
},
"node_modules/forwarded": {
"version": "0.2.0",
- "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
"engines": {
"node": ">= 0.6"
@@ -319,7 +286,7 @@
},
"node_modules/fresh": {
"version": "0.5.2",
- "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
"engines": {
"node": ">= 0.6"
@@ -327,7 +294,7 @@
},
"node_modules/function-bind": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -335,7 +302,7 @@
},
"node_modules/get-intrinsic": {
"version": "1.2.6",
- "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.6.tgz",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz",
"integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
@@ -358,7 +325,7 @@
},
"node_modules/gopd": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"engines": {
"node": ">= 0.4"
@@ -367,20 +334,9 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/has-property-descriptors": {
- "version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
- "dependencies": {
- "es-define-property": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/has-symbols": {
"version": "1.1.0",
- "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"engines": {
"node": ">= 0.4"
@@ -391,7 +347,7 @@
},
"node_modules/hasown": {
"version": "2.0.2",
- "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"dependencies": {
"function-bind": "^1.1.2"
@@ -402,7 +358,7 @@
},
"node_modules/http-errors": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
"dependencies": {
"depd": "2.0.0",
@@ -417,7 +373,7 @@
},
"node_modules/iconv-lite": {
"version": "0.4.24",
- "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
@@ -428,12 +384,12 @@
},
"node_modules/inherits": {
"version": "2.0.4",
- "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"node_modules/ipaddr.js": {
"version": "1.9.1",
- "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
"engines": {
"node": ">= 0.10"
@@ -441,7 +397,7 @@
},
"node_modules/math-intrinsics": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz",
"integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==",
"engines": {
"node": ">= 0.4"
@@ -449,7 +405,7 @@
},
"node_modules/media-typer": {
"version": "0.3.0",
- "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
"engines": {
"node": ">= 0.6"
@@ -457,7 +413,7 @@
},
"node_modules/merge-descriptors": {
"version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -465,7 +421,7 @@
},
"node_modules/methods": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
"engines": {
"node": ">= 0.6"
@@ -473,7 +429,7 @@
},
"node_modules/mime": {
"version": "1.6.0",
- "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"bin": {
"mime": "cli.js"
@@ -484,7 +440,7 @@
},
"node_modules/mime-db": {
"version": "1.52.0",
- "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"engines": {
"node": ">= 0.6"
@@ -492,7 +448,7 @@
},
"node_modules/mime-types": {
"version": "2.1.35",
- "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dependencies": {
"mime-db": "1.52.0"
@@ -503,12 +459,12 @@
},
"node_modules/ms": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
},
"node_modules/negotiator": {
"version": "0.6.3",
- "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
"engines": {
"node": ">= 0.6"
@@ -516,7 +472,7 @@
},
"node_modules/object-assign": {
"version": "4.1.1",
- "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"engines": {
"node": ">=0.10.0"
@@ -524,7 +480,7 @@
},
"node_modules/object-inspect": {
"version": "1.13.3",
- "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.3.tgz",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
"integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
"engines": {
"node": ">= 0.4"
@@ -535,7 +491,7 @@
},
"node_modules/on-finished": {
"version": "2.4.1",
- "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
"dependencies": {
"ee-first": "1.1.1"
@@ -546,7 +502,7 @@
},
"node_modules/parseurl": {
"version": "1.3.3",
- "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
"engines": {
"node": ">= 0.8"
@@ -554,12 +510,12 @@
},
"node_modules/path-to-regexp": {
"version": "0.1.12",
- "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
},
"node_modules/proxy-addr": {
"version": "2.0.7",
- "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
"dependencies": {
"forwarded": "0.2.0",
@@ -571,7 +527,7 @@
},
"node_modules/qs": {
"version": "6.13.0",
- "resolved": "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
"dependencies": {
"side-channel": "^1.0.6"
@@ -585,7 +541,7 @@
},
"node_modules/range-parser": {
"version": "1.2.1",
- "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
"engines": {
"node": ">= 0.6"
@@ -593,7 +549,7 @@
},
"node_modules/raw-body": {
"version": "2.5.2",
- "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
"dependencies": {
"bytes": "3.1.2",
@@ -607,7 +563,7 @@
},
"node_modules/safe-buffer": {
"version": "5.2.1",
- "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"funding": [
{
@@ -626,12 +582,12 @@
},
"node_modules/safer-buffer": {
"version": "2.1.2",
- "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"node_modules/send": {
"version": "0.19.0",
- "resolved": "https://registry.npmmirror.com/send/-/send-0.19.0.tgz",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
"dependencies": {
"debug": "2.6.9",
@@ -654,7 +610,7 @@
},
"node_modules/send/node_modules/encodeurl": {
"version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
"engines": {
"node": ">= 0.8"
@@ -662,12 +618,12 @@
},
"node_modules/send/node_modules/ms": {
"version": "2.1.3",
- "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
},
"node_modules/serve-static": {
"version": "1.16.2",
- "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.16.2.tgz",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
"dependencies": {
"encodeurl": "~2.0.0",
@@ -679,30 +635,14 @@
"node": ">= 0.8.0"
}
},
- "node_modules/set-function-length": {
- "version": "1.2.2",
- "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz",
- "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
- "dependencies": {
- "define-data-property": "^1.1.4",
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.4",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
"node_modules/setprototypeof": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
},
"node_modules/side-channel": {
"version": "1.1.0",
- "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -720,7 +660,7 @@
},
"node_modules/side-channel-list": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -735,7 +675,7 @@
},
"node_modules/side-channel-map": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
"dependencies": {
"call-bound": "^1.0.2",
@@ -752,7 +692,7 @@
},
"node_modules/side-channel-weakmap": {
"version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"dependencies": {
"call-bound": "^1.0.2",
@@ -770,7 +710,7 @@
},
"node_modules/statuses": {
"version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
"engines": {
"node": ">= 0.8"
@@ -778,7 +718,7 @@
},
"node_modules/toidentifier": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
"engines": {
"node": ">=0.6"
@@ -786,7 +726,7 @@
},
"node_modules/type-is": {
"version": "1.6.18",
- "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
"dependencies": {
"media-typer": "0.3.0",
@@ -798,7 +738,7 @@
},
"node_modules/unpipe": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
"engines": {
"node": ">= 0.8"
@@ -806,7 +746,7 @@
},
"node_modules/utils-merge": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
"engines": {
"node": ">= 0.4.0"
@@ -814,11 +754,19 @@
},
"node_modules/vary": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
"engines": {
"node": ">= 0.8"
}
+ },
+ "node_modules/xmlhttprequest": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz",
+ "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==",
+ "engines": {
+ "node": ">=0.4.0"
+ }
}
}
}
diff --git a/node_modules/call-bind/.eslintignore b/node_modules/call-bind/.eslintignore
deleted file mode 100644
index 404abb2..0000000
--- a/node_modules/call-bind/.eslintignore
+++ /dev/null
@@ -1 +0,0 @@
-coverage/
diff --git a/node_modules/call-bind/.eslintrc b/node_modules/call-bind/.eslintrc
deleted file mode 100644
index dfa9a6c..0000000
--- a/node_modules/call-bind/.eslintrc
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "func-name-matching": 0,
- "id-length": 0,
- "new-cap": [2, {
- "capIsNewExceptions": [
- "GetIntrinsic",
- ],
- }],
- "no-magic-numbers": 0,
- },
-}
diff --git a/node_modules/call-bind/.github/FUNDING.yml b/node_modules/call-bind/.github/FUNDING.yml
deleted file mode 100644
index c70c2ec..0000000
--- a/node_modules/call-bind/.github/FUNDING.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# These are supported funding model platforms
-
-github: [ljharb]
-patreon: # Replace with a single Patreon username
-open_collective: # Replace with a single Open Collective username
-ko_fi: # Replace with a single Ko-fi username
-tidelift: npm/call-bind
-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
-liberapay: # Replace with a single Liberapay username
-issuehunt: # Replace with a single IssueHunt username
-otechie: # Replace with a single Otechie username
-custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/call-bind/.nycrc b/node_modules/call-bind/.nycrc
deleted file mode 100644
index bdd626c..0000000
--- a/node_modules/call-bind/.nycrc
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "all": true,
- "check-coverage": false,
- "reporter": ["text-summary", "text", "html", "json"],
- "exclude": [
- "coverage",
- "test"
- ]
-}
diff --git a/node_modules/call-bind/CHANGELOG.md b/node_modules/call-bind/CHANGELOG.md
deleted file mode 100644
index be0de99..0000000
--- a/node_modules/call-bind/CHANGELOG.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [v1.0.8](https://github.com/ljharb/call-bind/compare/v1.0.7...v1.0.8) - 2024-12-05
-
-### Commits
-
-- [Refactor] extract out some helpers and avoid get-intrinsic usage [`407fd5e`](https://github.com/ljharb/call-bind/commit/407fd5eec34ec58394522a6ce3badfa4788fd5ae)
-- [Refactor] replace code with extracted `call-bind-apply-helpers` [`81018fb`](https://github.com/ljharb/call-bind/commit/81018fb78902ff5acbc6c09300780e97f0db6a34)
-- [Tests] use `set-function-length/env` [`0fc311d`](https://github.com/ljharb/call-bind/commit/0fc311de0e115cfa6b02969b23a42ad45aadf224)
-- [actions] split out node 10-20, and 20+ [`77a0cad`](https://github.com/ljharb/call-bind/commit/77a0cad75f83f5b8050dc13baef4fa2cff537fa3)
-- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-value-fixtures`, `gopd`, `object-inspect`, `tape` [`a145d10`](https://github.com/ljharb/call-bind/commit/a145d10fe847f350e11094f8541848b028ee8c91)
-- [Tests] replace `aud` with `npm audit` [`30ca3dd`](https://github.com/ljharb/call-bind/commit/30ca3dd7234648eb029947477d06b17879e10727)
-- [Deps] update `set-function-length` [`57c79a3`](https://github.com/ljharb/call-bind/commit/57c79a3666022ea797cc2a4a3b43fe089bc97d1b)
-- [Dev Deps] add missing peer dep [`601cfa5`](https://github.com/ljharb/call-bind/commit/601cfa5540066b6206039ceb9496cecbd134ff7b)
-
-## [v1.0.7](https://github.com/ljharb/call-bind/compare/v1.0.6...v1.0.7) - 2024-02-12
-
-### Commits
-
-- [Refactor] use `es-define-property` [`09b76a0`](https://github.com/ljharb/call-bind/commit/09b76a01634440461d44a80c9924ec4b500f3b03)
-- [Deps] update `get-intrinsic`, `set-function-length` [`ad5136d`](https://github.com/ljharb/call-bind/commit/ad5136ddda2a45c590959829ad3dce0c9f4e3590)
-
-## [v1.0.6](https://github.com/ljharb/call-bind/compare/v1.0.5...v1.0.6) - 2024-02-05
-
-### Commits
-
-- [Dev Deps] update `aud`, `npmignore`, `tape` [`d564d5c`](https://github.com/ljharb/call-bind/commit/d564d5ce3e06a19df4d499c77f8d1a9da44e77aa)
-- [Deps] update `get-intrinsic`, `set-function-length` [`cfc2bdc`](https://github.com/ljharb/call-bind/commit/cfc2bdca7b633df0e0e689e6b637f668f1c6792e)
-- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`64cd289`](https://github.com/ljharb/call-bind/commit/64cd289ae5862c250a4ca80aa8d461047c166af5)
-- [meta] add missing `engines.node` [`32a4038`](https://github.com/ljharb/call-bind/commit/32a4038857b62179f7f9b7b3df2c5260036be582)
-
-## [v1.0.5](https://github.com/ljharb/call-bind/compare/v1.0.4...v1.0.5) - 2023-10-19
-
-### Commits
-
-- [Fix] throw an error on non-functions as early as possible [`f262408`](https://github.com/ljharb/call-bind/commit/f262408f822c840fbc268080f3ad7c429611066d)
-- [Deps] update `set-function-length` [`3fff271`](https://github.com/ljharb/call-bind/commit/3fff27145a1e3a76a5b74f1d7c3c43d0fa3b9871)
-
-## [v1.0.4](https://github.com/ljharb/call-bind/compare/v1.0.3...v1.0.4) - 2023-10-19
-
-## [v1.0.3](https://github.com/ljharb/call-bind/compare/v1.0.2...v1.0.3) - 2023-10-19
-
-### Commits
-
-- [actions] reuse common workflows [`a994df6`](https://github.com/ljharb/call-bind/commit/a994df69f401f4bf735a4ccd77029b85d1549453)
-- [meta] use `npmignore` to autogenerate an npmignore file [`eef3ef2`](https://github.com/ljharb/call-bind/commit/eef3ef21e1f002790837fedb8af2679c761fbdf5)
-- [readme] flesh out content [`1845ccf`](https://github.com/ljharb/call-bind/commit/1845ccfd9976a607884cfc7157c93192cc16cf22)
-- [actions] use `node/install` instead of `node/run`; use `codecov` action [`5b47d53`](https://github.com/ljharb/call-bind/commit/5b47d53d2fd74af5ea0a44f1d51e503cd42f7a90)
-- [Refactor] use `set-function-length` [`a0e165c`](https://github.com/ljharb/call-bind/commit/a0e165c5dc61db781cbc919b586b1c2b8da0b150)
-- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9c50103`](https://github.com/ljharb/call-bind/commit/9c50103f44137279a817317cf6cc421a658f85b4)
-- [meta] simplify "exports" [`019c6d0`](https://github.com/ljharb/call-bind/commit/019c6d06b0e1246ceed8e579f57e44441cbbf6d9)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`23bd718`](https://github.com/ljharb/call-bind/commit/23bd718a288d3b03042062b4ef5153b3cea83f11)
-- [actions] update codecov uploader [`62552d7`](https://github.com/ljharb/call-bind/commit/62552d79cc79e05825e99aaba134ae5b37f33da5)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ec81665`](https://github.com/ljharb/call-bind/commit/ec81665b300f87eabff597afdc8b8092adfa7afd)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`35d67fc`](https://github.com/ljharb/call-bind/commit/35d67fcea883e686650f736f61da5ddca2592de8)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`0266d8d`](https://github.com/ljharb/call-bind/commit/0266d8d2a45086a922db366d0c2932fa463662ff)
-- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`43a5b28`](https://github.com/ljharb/call-bind/commit/43a5b28a444e710e1bbf92adb8afb5cf7523a223)
-- [Deps] update `define-data-property`, `function-bind`, `get-intrinsic` [`780eb36`](https://github.com/ljharb/call-bind/commit/780eb36552514f8cc99c70821ce698697c2726a5)
-- [Dev Deps] update `aud`, `tape` [`90d50ad`](https://github.com/ljharb/call-bind/commit/90d50ad03b061e0268b3380b0065fcaec183dc05)
-- [meta] use `prepublishOnly` script for npm 7+ [`44c5433`](https://github.com/ljharb/call-bind/commit/44c5433b7980e02b4870007046407cf6fc543329)
-- [Deps] update `get-intrinsic` [`86bfbfc`](https://github.com/ljharb/call-bind/commit/86bfbfcf34afdc6eabc93ce3d408548d0e27d958)
-- [Deps] update `get-intrinsic` [`5c53354`](https://github.com/ljharb/call-bind/commit/5c5335489be0294c18cd7a8bb6e08226ee019ff5)
-- [actions] update checkout action [`4c393a8`](https://github.com/ljharb/call-bind/commit/4c393a8173b3c8e5b30d5b3297b3b94d48bf87f3)
-- [Deps] update `get-intrinsic` [`4e70bde`](https://github.com/ljharb/call-bind/commit/4e70bdec0626acb11616d66250fc14565e716e91)
-- [Deps] update `get-intrinsic` [`55ae803`](https://github.com/ljharb/call-bind/commit/55ae803a920bd93c369cd798c20de31f91e9fc60)
-
-## [v1.0.2](https://github.com/ljharb/call-bind/compare/v1.0.1...v1.0.2) - 2021-01-11
-
-### Commits
-
-- [Fix] properly include the receiver in the bound length [`dbae7bc`](https://github.com/ljharb/call-bind/commit/dbae7bc676c079a0d33c0a43e9ef92cb7b01345d)
-
-## [v1.0.1](https://github.com/ljharb/call-bind/compare/v1.0.0...v1.0.1) - 2021-01-08
-
-### Commits
-
-- [Tests] migrate tests to Github Actions [`b6db284`](https://github.com/ljharb/call-bind/commit/b6db284c36f8ccd195b88a6764fe84b7223a0da1)
-- [meta] do not publish github action workflow files [`ec7fe46`](https://github.com/ljharb/call-bind/commit/ec7fe46e60cfa4764ee943d2755f5e5a366e578e)
-- [Fix] preserve original function’s length when possible [`adbceaa`](https://github.com/ljharb/call-bind/commit/adbceaa3cac4b41ea78bb19d7ccdbaaf7e0bdadb)
-- [Tests] gather coverage data on every job [`d69e23c`](https://github.com/ljharb/call-bind/commit/d69e23cc65f101ba1d4c19bb07fa8eb0ec624be8)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`2fd3586`](https://github.com/ljharb/call-bind/commit/2fd3586c5d47b335364c14293114c6b625ae1f71)
-- [Deps] update `get-intrinsic` [`f23e931`](https://github.com/ljharb/call-bind/commit/f23e9318cc271c2add8bb38cfded85ee7baf8eee)
-- [Deps] update `get-intrinsic` [`72d9f44`](https://github.com/ljharb/call-bind/commit/72d9f44e184465ba8dd3fb48260bbcff234985f2)
-- [meta] fix FUNDING.yml [`e723573`](https://github.com/ljharb/call-bind/commit/e723573438c5a68dcec31fb5d96ea6b7e4a93be8)
-- [eslint] ignore coverage output [`15e76d2`](https://github.com/ljharb/call-bind/commit/15e76d28a5f43e504696401e5b31ebb78ee1b532)
-- [meta] add Automatic Rebase and Require Allow Edits workflows [`8fa4dab`](https://github.com/ljharb/call-bind/commit/8fa4dabb23ba3dd7bb92c9571c1241c08b56e4b6)
-
-## v1.0.0 - 2020-10-30
-
-### Commits
-
-- Initial commit [`306cf98`](https://github.com/ljharb/call-bind/commit/306cf98c7ec9e7ef66b653ec152277ac1381eb50)
-- Tests [`e10d0bb`](https://github.com/ljharb/call-bind/commit/e10d0bbdadc7a10ecedc9a1c035112d3e368b8df)
-- Implementation [`43852ed`](https://github.com/ljharb/call-bind/commit/43852eda0f187327b7fad2423ca972149a52bd65)
-- npm init [`408f860`](https://github.com/ljharb/call-bind/commit/408f860b773a2f610805fd3613d0d71bac1b6249)
-- [meta] add Automatic Rebase and Require Allow Edits workflows [`fb349b2`](https://github.com/ljharb/call-bind/commit/fb349b2e48defbec8b5ec8a8395cc8f69f220b13)
-- [meta] add `auto-changelog` [`c4001fc`](https://github.com/ljharb/call-bind/commit/c4001fc43031799ef908211c98d3b0fb2b60fde4)
-- [meta] add "funding"; create `FUNDING.yml` [`d4d6d29`](https://github.com/ljharb/call-bind/commit/d4d6d2974a14bc2e98830468eda7fe6d6a776717)
-- [Tests] add `npm run lint` [`dedfb98`](https://github.com/ljharb/call-bind/commit/dedfb98bd0ecefb08ddb9a94061bd10cde4332af)
-- Only apps should have lockfiles [`54ac776`](https://github.com/ljharb/call-bind/commit/54ac77653db45a7361dc153d2f478e743f110650)
-- [meta] add `safe-publish-latest` [`9ea8e43`](https://github.com/ljharb/call-bind/commit/9ea8e435b950ce9b705559cd651039f9bf40140f)
diff --git a/node_modules/call-bind/LICENSE b/node_modules/call-bind/LICENSE
deleted file mode 100644
index 48f05d0..0000000
--- a/node_modules/call-bind/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Jordan Harband
-
-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.
diff --git a/node_modules/call-bind/README.md b/node_modules/call-bind/README.md
deleted file mode 100644
index 48e9047..0000000
--- a/node_modules/call-bind/README.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# call-bind [![Version Badge][npm-version-svg]][package-url]
-
-[![github actions][actions-image]][actions-url]
-[![coverage][codecov-image]][codecov-url]
-[![dependency status][deps-svg]][deps-url]
-[![dev dependency status][dev-deps-svg]][dev-deps-url]
-[![License][license-image]][license-url]
-[![Downloads][downloads-image]][downloads-url]
-
-[![npm badge][npm-badge-png]][package-url]
-
-Robustly `.call.bind()` a function.
-
-## Getting started
-
-```sh
-npm install --save call-bind
-```
-
-## Usage/Examples
-
-```js
-const assert = require('assert');
-const callBind = require('call-bind');
-const callBound = require('call-bind/callBound');
-
-function f(a, b) {
- assert.equal(this, 1);
- assert.equal(a, 2);
- assert.equal(b, 3);
- assert.equal(arguments.length, 2);
-}
-
-const fBound = callBind(f);
-
-const slice = callBound('Array.prototype.slice');
-
-delete Function.prototype.call;
-delete Function.prototype.bind;
-
-fBound(1, 2, 3);
-
-assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
-```
-
-## Tests
-
-Clone the repo, `npm install`, and run `npm test`
-
-[package-url]: https://npmjs.org/package/call-bind
-[npm-version-svg]: https://versionbadg.es/ljharb/call-bind.svg
-[deps-svg]: https://david-dm.org/ljharb/call-bind.svg
-[deps-url]: https://david-dm.org/ljharb/call-bind
-[dev-deps-svg]: https://david-dm.org/ljharb/call-bind/dev-status.svg
-[dev-deps-url]: https://david-dm.org/ljharb/call-bind#info=devDependencies
-[npm-badge-png]: https://nodei.co/npm/call-bind.png?downloads=true&stars=true
-[license-image]: https://img.shields.io/npm/l/call-bind.svg
-[license-url]: LICENSE
-[downloads-image]: https://img.shields.io/npm/dm/call-bind.svg
-[downloads-url]: https://npm-stat.com/charts.html?package=call-bind
-[codecov-image]: https://codecov.io/gh/ljharb/call-bind/branch/main/graphs/badge.svg
-[codecov-url]: https://app.codecov.io/gh/ljharb/call-bind/
-[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind
-[actions-url]: https://github.com/ljharb/call-bind/actions
diff --git a/node_modules/call-bind/callBound.js b/node_modules/call-bind/callBound.js
deleted file mode 100644
index 8374adf..0000000
--- a/node_modules/call-bind/callBound.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('get-intrinsic');
-
-var callBind = require('./');
-
-var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
-
-module.exports = function callBoundIntrinsic(name, allowMissing) {
- var intrinsic = GetIntrinsic(name, !!allowMissing);
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
- return callBind(intrinsic);
- }
- return intrinsic;
-};
diff --git a/node_modules/call-bind/index.js b/node_modules/call-bind/index.js
deleted file mode 100644
index b642339..0000000
--- a/node_modules/call-bind/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var setFunctionLength = require('set-function-length');
-
-var $defineProperty = require('es-define-property');
-
-var callBindBasic = require('call-bind-apply-helpers');
-var applyBind = require('call-bind-apply-helpers/applyBind');
-
-module.exports = function callBind(originalFunction) {
- var func = callBindBasic(arguments);
- var adjustedLength = originalFunction.length - (arguments.length - 1);
- return setFunctionLength(
- func,
- 1 + (adjustedLength > 0 ? adjustedLength : 0),
- true
- );
-};
-
-if ($defineProperty) {
- $defineProperty(module.exports, 'apply', { value: applyBind });
-} else {
- module.exports.apply = applyBind;
-}
diff --git a/node_modules/call-bind/package.json b/node_modules/call-bind/package.json
deleted file mode 100644
index 3642a37..0000000
--- a/node_modules/call-bind/package.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "name": "call-bind",
- "version": "1.0.8",
- "description": "Robustly `.call.bind()` a function",
- "main": "index.js",
- "exports": {
- ".": "./index.js",
- "./callBound": "./callBound.js",
- "./package.json": "./package.json"
- },
- "scripts": {
- "prepack": "npmignore --auto --commentLines=auto",
- "prepublish": "not-in-publish || npm run prepublishOnly",
- "prepublishOnly": "safe-publish-latest",
- "lint": "eslint --ext=.js,.mjs .",
- "postlint": "evalmd README.md",
- "pretest": "npm run lint",
- "tests-only": "nyc tape 'test/**/*.js'",
- "test": "npm run tests-only",
- "posttest": "npx npm@'>=10.2' audit --production",
- "version": "auto-changelog && git add CHANGELOG.md",
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ljharb/call-bind.git"
- },
- "keywords": [
- "javascript",
- "ecmascript",
- "es",
- "js",
- "callbind",
- "callbound",
- "call",
- "bind",
- "bound",
- "call-bind",
- "call-bound",
- "function",
- "es-abstract"
- ],
- "author": "Jordan Harband ",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- },
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/ljharb/call-bind/issues"
- },
- "homepage": "https://github.com/ljharb/call-bind#readme",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
- "es-define-property": "^1.0.0",
- "get-intrinsic": "^1.2.4",
- "set-function-length": "^1.2.2"
- },
- "devDependencies": {
- "@ljharb/eslint-config": "^21.1.1",
- "auto-changelog": "^2.5.0",
- "encoding": "^0.1.13",
- "es-value-fixtures": "^1.5.0",
- "eslint": "=8.8.0",
- "evalmd": "^0.0.19",
- "for-each": "^0.3.3",
- "has-strict-mode": "^1.0.1",
- "in-publish": "^2.0.1",
- "npmignore": "^0.3.1",
- "nyc": "^10.3.2",
- "object-inspect": "^1.13.3",
- "safe-publish-latest": "^2.0.0",
- "tape": "^5.9.0"
- },
- "testling": {
- "files": "test/index.js"
- },
- "auto-changelog": {
- "output": "CHANGELOG.md",
- "template": "keepachangelog",
- "unreleased": false,
- "commitLimit": false,
- "backfillLimit": false,
- "hideCredit": true
- },
- "publishConfig": {
- "ignore": [
- ".github/workflows"
- ]
- },
- "engines": {
- "node": ">= 0.4"
- }
-}
diff --git a/node_modules/call-bind/test/callBound.js b/node_modules/call-bind/test/callBound.js
deleted file mode 100644
index c32319d..0000000
--- a/node_modules/call-bind/test/callBound.js
+++ /dev/null
@@ -1,54 +0,0 @@
-'use strict';
-
-var test = require('tape');
-
-var callBound = require('../callBound');
-
-test('callBound', function (t) {
- // static primitive
- t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself');
- t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself');
-
- // static non-function object
- t.equal(callBound('Array.prototype'), Array.prototype, 'Array.prototype yields itself');
- t.equal(callBound('%Array.prototype%'), Array.prototype, '%Array.prototype% yields itself');
- t.equal(callBound('Array.constructor'), Array.constructor, 'Array.constructor yields itself');
- t.equal(callBound('%Array.constructor%'), Array.constructor, '%Array.constructor% yields itself');
-
- // static function
- t.equal(callBound('Date.parse'), Date.parse, 'Date.parse yields itself');
- t.equal(callBound('%Date.parse%'), Date.parse, '%Date.parse% yields itself');
-
- // prototype primitive
- t.equal(callBound('Error.prototype.message'), Error.prototype.message, 'Error.prototype.message yields itself');
- t.equal(callBound('%Error.prototype.message%'), Error.prototype.message, '%Error.prototype.message% yields itself');
-
- // prototype function
- t.notEqual(callBound('Object.prototype.toString'), Object.prototype.toString, 'Object.prototype.toString does not yield itself');
- t.notEqual(callBound('%Object.prototype.toString%'), Object.prototype.toString, '%Object.prototype.toString% does not yield itself');
- t.equal(callBound('Object.prototype.toString')(true), Object.prototype.toString.call(true), 'call-bound Object.prototype.toString calls into the original');
- t.equal(callBound('%Object.prototype.toString%')(true), Object.prototype.toString.call(true), 'call-bound %Object.prototype.toString% calls into the original');
-
- t['throws'](
- function () { callBound('does not exist'); },
- SyntaxError,
- 'nonexistent intrinsic throws'
- );
- t['throws'](
- function () { callBound('does not exist', true); },
- SyntaxError,
- 'allowMissing arg still throws for unknown intrinsic'
- );
-
- t.test('real but absent intrinsic', { skip: typeof WeakRef !== 'undefined' }, function (st) {
- st['throws'](
- function () { callBound('WeakRef'); },
- TypeError,
- 'real but absent intrinsic throws'
- );
- st.equal(callBound('WeakRef', true), undefined, 'allowMissing arg avoids exception');
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/call-bind/test/index.js b/node_modules/call-bind/test/index.js
deleted file mode 100644
index f6d096a..0000000
--- a/node_modules/call-bind/test/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict';
-
-var callBind = require('../');
-var hasStrictMode = require('has-strict-mode')();
-var forEach = require('for-each');
-var inspect = require('object-inspect');
-var v = require('es-value-fixtures');
-
-var test = require('tape');
-
-/*
- * older engines have length nonconfigurable
- * in io.js v3, it is configurable except on bound functions, hence the .bind()
- */
-var boundFnsHaveConfigurableLengths = require('set-function-length/env').boundFnsHaveConfigurableLengths;
-
-test('callBind', function (t) {
- forEach(v.nonFunctions, function (nonFunction) {
- t['throws'](
- function () { callBind(nonFunction); },
- TypeError,
- inspect(nonFunction) + ' is not a function'
- );
- });
-
- var sentinel = { sentinel: true };
- var func = function (a, b) {
- // eslint-disable-next-line no-invalid-this
- return [!hasStrictMode && this === global ? undefined : this, a, b];
- };
- t.equal(func.length, 2, 'original function length is 2');
- t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
- t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
- t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
-
- var bound = callBind(func);
- t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths });
- t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with too few args');
- t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func with right args');
- t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args');
-
- var boundR = callBind(func, sentinel);
- t.equal(boundR.length, func.length, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths });
- t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args');
- t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args');
- t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args');
-
- var boundArg = callBind(func, sentinel, 1);
- t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths });
- t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args');
- t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg');
- t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args');
-
- t.test('callBind.apply', function (st) {
- var aBound = callBind.apply(func);
- st.deepEqual(aBound(sentinel), [sentinel, undefined, undefined], 'apply-bound func with no args');
- st.deepEqual(aBound(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
- st.deepEqual(aBound(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
-
- var aBoundArg = callBind.apply(func);
- st.deepEqual(aBoundArg(sentinel, [1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with too many args');
- st.deepEqual(aBoundArg(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
- st.deepEqual(aBoundArg(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
-
- var aBoundR = callBind.apply(func, sentinel);
- st.deepEqual(aBoundR([1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with receiver and too many args');
- st.deepEqual(aBoundR([1, 2], 4), [sentinel, 1, 2], 'apply-bound func with receiver and right args');
- st.deepEqual(aBoundR([1], 4), [sentinel, 1, undefined], 'apply-bound func with receiver and too few args');
-
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/call-bound/CHANGELOG.md b/node_modules/call-bound/CHANGELOG.md
index dcc5732..25fa7a5 100644
--- a/node_modules/call-bound/CHANGELOG.md
+++ b/node_modules/call-bound/CHANGELOG.md
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [v1.0.3](https://github.com/ljharb/call-bound/compare/v1.0.2...v1.0.3) - 2024-12-15
+
+### Commits
+
+- [Refactor] use `call-bind-apply-helpers` instead of `call-bind` [`5e0b134`](https://github.com/ljharb/call-bound/commit/5e0b13496df14fb7d05dae9412f088da8d3f75be)
+- [Deps] update `get-intrinsic` [`41fc967`](https://github.com/ljharb/call-bound/commit/41fc96732a22c7b7e8f381f93ccc54bb6293be2e)
+- [readme] fix example [`79a0137`](https://github.com/ljharb/call-bound/commit/79a0137723f7c6d09c9c05452bbf8d5efb5d6e49)
+- [meta] add `sideEffects` flag [`08b07be`](https://github.com/ljharb/call-bound/commit/08b07be7f1c03f67dc6f3cdaf0906259771859f7)
+
## [v1.0.2](https://github.com/ljharb/call-bound/compare/v1.0.1...v1.0.2) - 2024-12-10
### Commits
diff --git a/node_modules/call-bound/README.md b/node_modules/call-bound/README.md
index daebbb0..a44e43e 100644
--- a/node_modules/call-bound/README.md
+++ b/node_modules/call-bound/README.md
@@ -21,7 +21,7 @@ npm install --save call-bound
```js
const assert = require('assert');
-const callBound = require('call-bind/callBound');
+const callBound = require('call-bound');
const slice = callBound('Array.prototype.slice');
diff --git a/node_modules/call-bound/index.d.ts b/node_modules/call-bound/index.d.ts
index d3fc88c..e3d772c 100644
--- a/node_modules/call-bound/index.d.ts
+++ b/node_modules/call-bound/index.d.ts
@@ -1,5 +1,13 @@
import callBind from 'call-bind-apply-helpers';
-declare function callBoundIntrinsic(name: string, allowMissing?: boolean): ReturnType;
+declare function callBoundIntrinsic(
+ name: string,
+ allowMissing?: false
+): ReturnType;
+
+declare function callBoundIntrinsic(
+ name: string,
+ allowMissing: true
+): undefined | ReturnType;
export = callBoundIntrinsic;
\ No newline at end of file
diff --git a/node_modules/call-bound/index.js b/node_modules/call-bound/index.js
index f9345d6..3bb4012 100644
--- a/node_modules/call-bound/index.js
+++ b/node_modules/call-bound/index.js
@@ -2,17 +2,17 @@
var GetIntrinsic = require('get-intrinsic');
-var callBind = require('call-bind');
+var callBindBasic = require('call-bind-apply-helpers');
-// eslint-disable-next-line no-extra-parens
-var $indexOf = callBind(/** @type {typeof String.prototype.indexOf} */ (GetIntrinsic('String.prototype.indexOf')));
+/** @type {(thisArg: string, searchString: string, position?: number) => number} */
+var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
/** @type {import('.')} */
module.exports = function callBoundIntrinsic(name, allowMissing) {
// eslint-disable-next-line no-extra-parens
- var intrinsic = /** @type {Parameters[0]} */ (GetIntrinsic(name, !!allowMissing));
+ var intrinsic = /** @type {Parameters[0][0]} */ (GetIntrinsic(name, !!allowMissing));
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
- return callBind(intrinsic);
+ return callBindBasic([intrinsic]);
}
return intrinsic;
};
diff --git a/node_modules/call-bound/package.json b/node_modules/call-bound/package.json
index 6ed94fd..2893ed1 100644
--- a/node_modules/call-bound/package.json
+++ b/node_modules/call-bound/package.json
@@ -1,12 +1,13 @@
{
"name": "call-bound",
- "version": "1.0.2",
+ "version": "1.0.3",
"description": "Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.",
"main": "index.js",
"exports": {
".": "./index.js",
"./package.json": "./package.json"
},
+ "sideEffects": false,
"scripts": {
"prepack": "npmignore --auto --commentLines=auto",
"prepublish": "not-in-publish || npm run prepublishOnly",
@@ -50,8 +51,8 @@
},
"homepage": "https://github.com/ljharb/call-bound#readme",
"dependencies": {
- "call-bind": "^1.0.8",
- "get-intrinsic": "^1.2.5"
+ "call-bind-apply-helpers": "^1.0.1",
+ "get-intrinsic": "^1.2.6"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
diff --git a/node_modules/define-data-property/.eslintrc b/node_modules/define-data-property/.eslintrc
deleted file mode 100644
index 75443e8..0000000
--- a/node_modules/define-data-property/.eslintrc
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "complexity": 0,
- "id-length": 0,
- "new-cap": ["error", {
- "capIsNewExceptions": [
- "GetIntrinsic",
- ],
- }],
- },
-
- "overrides": [
- {
- "files": "test/**",
- "rules": {
- "max-lines-per-function": "off",
- },
- },
- ],
-}
diff --git a/node_modules/define-data-property/.github/FUNDING.yml b/node_modules/define-data-property/.github/FUNDING.yml
deleted file mode 100644
index 3e17725..0000000
--- a/node_modules/define-data-property/.github/FUNDING.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# These are supported funding model platforms
-
-github: [ljharb]
-patreon: # Replace with a single Patreon username
-open_collective: # Replace with a single Open Collective username
-ko_fi: # Replace with a single Ko-fi username
-tidelift: npm/define-data-property
-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
-liberapay: # Replace with a single Liberapay username
-issuehunt: # Replace with a single IssueHunt username
-otechie: # Replace with a single Otechie username
-custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/define-data-property/.nycrc b/node_modules/define-data-property/.nycrc
deleted file mode 100644
index 1826526..0000000
--- a/node_modules/define-data-property/.nycrc
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "all": true,
- "check-coverage": false,
- "reporter": ["text-summary", "text", "html", "json"],
- "lines": 86,
- "statements": 85.93,
- "functions": 82.43,
- "branches": 76.06,
- "exclude": [
- "coverage",
- "test"
- ]
-}
diff --git a/node_modules/define-data-property/CHANGELOG.md b/node_modules/define-data-property/CHANGELOG.md
deleted file mode 100644
index 4eed75e..0000000
--- a/node_modules/define-data-property/CHANGELOG.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [v1.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13
-
-### Commits
-
-- [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453)
-- [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153)
-
-## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12
-
-### Commits
-
-- [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318)
-- [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e)
-- [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc)
-- [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd)
-- [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804)
-- [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de)
-
-## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
-
-### Commits
-
-- [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
-- [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
-- [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
-- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
-- [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
-- [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
-
-## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
-
-### Commits
-
-- [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94)
-- [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3)
-- [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548)
-- [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0)
-- [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142)
-
-## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
-
-### Commits
-
-- [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
-- [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
-
-## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
-
-### Commits
-
-- [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
-- [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
-- [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
-
-## v1.0.0 - 2023-09-12
-
-### Commits
-
-- Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
-- Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
-- npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
-- Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
-- [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)
diff --git a/node_modules/define-data-property/LICENSE b/node_modules/define-data-property/LICENSE
deleted file mode 100644
index b4213ac..0000000
--- a/node_modules/define-data-property/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2023 Jordan Harband
-
-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.
diff --git a/node_modules/define-data-property/README.md b/node_modules/define-data-property/README.md
deleted file mode 100644
index f2304da..0000000
--- a/node_modules/define-data-property/README.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# define-data-property [![Version Badge][npm-version-svg]][package-url]
-
-[![github actions][actions-image]][actions-url]
-[![coverage][codecov-image]][codecov-url]
-[![License][license-image]][license-url]
-[![Downloads][downloads-image]][downloads-url]
-
-[![npm badge][npm-badge-png]][package-url]
-
-Define a data property on an object. Will fall back to assignment in an engine without descriptors.
-
-The three `non*` argument can also be passed `null`, which will use the existing state if available.
-
-The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.
-
-## Usage
-
-```javascript
-var defineDataProperty = require('define-data-property');
-var assert = require('assert');
-
-var obj = {};
-defineDataProperty(obj, 'key', 'value');
-defineDataProperty(
- obj,
- 'key2',
- 'value',
- true, // nonEnumerable, optional
- false, // nonWritable, optional
- true, // nonConfigurable, optional
- false // loose, optional
-);
-
-assert.deepEqual(
- Object.getOwnPropertyDescriptors(obj),
- {
- key: {
- configurable: true,
- enumerable: true,
- value: 'value',
- writable: true,
- },
- key2: {
- configurable: false,
- enumerable: false,
- value: 'value',
- writable: true,
- },
- }
-);
-```
-
-[package-url]: https://npmjs.org/package/define-data-property
-[npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg
-[deps-svg]: https://david-dm.org/ljharb/define-data-property.svg
-[deps-url]: https://david-dm.org/ljharb/define-data-property
-[dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg
-[dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies
-[npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true
-[license-image]: https://img.shields.io/npm/l/define-data-property.svg
-[license-url]: LICENSE
-[downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg
-[downloads-url]: https://npm-stat.com/charts.html?package=define-data-property
-[codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg
-[codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/
-[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property
-[actions-url]: https://github.com/ljharb/define-data-property/actions
diff --git a/node_modules/define-data-property/index.d.ts b/node_modules/define-data-property/index.d.ts
deleted file mode 100644
index b56a77d..0000000
--- a/node_modules/define-data-property/index.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-
-declare function defineDataProperty(
- obj: Record,
- property: keyof typeof obj,
- value: typeof obj[typeof property],
- nonEnumerable?: boolean | null,
- nonWritable?: boolean | null,
- nonConfigurable?: boolean | null,
- loose?: boolean
-): void;
-
-export = defineDataProperty;
\ No newline at end of file
diff --git a/node_modules/define-data-property/index.js b/node_modules/define-data-property/index.js
deleted file mode 100644
index e1a38c0..0000000
--- a/node_modules/define-data-property/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-
-var $defineProperty = require('es-define-property');
-
-var $SyntaxError = require('es-errors/syntax');
-var $TypeError = require('es-errors/type');
-
-var gopd = require('gopd');
-
-/** @type {import('.')} */
-module.exports = function defineDataProperty(
- obj,
- property,
- value
-) {
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
- throw new $TypeError('`obj` must be an object or a function`');
- }
- if (typeof property !== 'string' && typeof property !== 'symbol') {
- throw new $TypeError('`property` must be a string or a symbol`');
- }
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
- }
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
- throw new $TypeError('`loose`, if provided, must be a boolean');
- }
-
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
- var loose = arguments.length > 6 ? arguments[6] : false;
-
- /* @type {false | TypedPropertyDescriptor} */
- var desc = !!gopd && gopd(obj, property);
-
- if ($defineProperty) {
- $defineProperty(obj, property, {
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
- value: value,
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
- });
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
- obj[property] = value; // eslint-disable-line no-param-reassign
- } else {
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
- }
-};
diff --git a/node_modules/define-data-property/package.json b/node_modules/define-data-property/package.json
deleted file mode 100644
index eec4097..0000000
--- a/node_modules/define-data-property/package.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "name": "define-data-property",
- "version": "1.1.4",
- "description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.",
- "main": "index.js",
- "types": "./index.d.ts",
- "exports": {
- ".": "./index.js",
- "./package.json": "./package.json"
- },
- "sideEffects": false,
- "scripts": {
- "prepack": "npmignore --auto --commentLines=autogenerated",
- "prepublish": "not-in-publish || npm run prepublishOnly",
- "prepublishOnly": "safe-publish-latest",
- "tsc": "tsc -p .",
- "prelint": "evalmd README.md",
- "lint": "eslint --ext=js,mjs .",
- "postlint": "npm run tsc",
- "pretest": "npm run lint",
- "tests-only": "nyc tape 'test/**/*.js'",
- "test": "npm run tests-only",
- "posttest": "aud --production",
- "version": "auto-changelog && git add CHANGELOG.md",
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ljharb/define-data-property.git"
- },
- "keywords": [
- "define",
- "data",
- "property",
- "object",
- "accessor",
- "javascript",
- "ecmascript",
- "enumerable",
- "configurable",
- "writable"
- ],
- "author": "Jordan Harband ",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- },
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/ljharb/define-data-property/issues"
- },
- "homepage": "https://github.com/ljharb/define-data-property#readme",
- "dependencies": {
- "es-define-property": "^1.0.0",
- "es-errors": "^1.3.0",
- "gopd": "^1.0.1"
- },
- "devDependencies": {
- "@ljharb/eslint-config": "^21.1.0",
- "@types/call-bind": "^1.0.5",
- "@types/define-properties": "^1.1.5",
- "@types/es-value-fixtures": "^1.4.4",
- "@types/for-each": "^0.3.3",
- "@types/get-intrinsic": "^1.2.2",
- "@types/gopd": "^1.0.3",
- "@types/has-property-descriptors": "^1.0.3",
- "@types/object-inspect": "^1.8.4",
- "@types/object.getownpropertydescriptors": "^2.1.4",
- "@types/tape": "^5.6.4",
- "aud": "^2.0.4",
- "auto-changelog": "^2.4.0",
- "es-value-fixtures": "^1.4.2",
- "eslint": "=8.8.0",
- "evalmd": "^0.0.19",
- "for-each": "^0.3.3",
- "hasown": "^2.0.1",
- "in-publish": "^2.0.1",
- "npmignore": "^0.3.1",
- "nyc": "^10.3.2",
- "object-inspect": "^1.13.1",
- "object.getownpropertydescriptors": "^2.1.7",
- "reflect.ownkeys": "^1.1.4",
- "safe-publish-latest": "^2.0.0",
- "tape": "^5.7.4",
- "typescript": "next"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "testling": {
- "files": "test/index.js"
- },
- "auto-changelog": {
- "output": "CHANGELOG.md",
- "template": "keepachangelog",
- "unreleased": false,
- "commitLimit": false,
- "backfillLimit": false,
- "hideCredit": true
- },
- "publishConfig": {
- "ignore": [
- ".github/workflows",
- "types/reflect.ownkeys"
- ]
- }
-}
diff --git a/node_modules/define-data-property/test/index.js b/node_modules/define-data-property/test/index.js
deleted file mode 100644
index 68204c6..0000000
--- a/node_modules/define-data-property/test/index.js
+++ /dev/null
@@ -1,392 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var v = require('es-value-fixtures');
-var forEach = require('for-each');
-var inspect = require('object-inspect');
-var hasOwn = require('hasown');
-var hasPropertyDescriptors = require('has-property-descriptors')();
-var getOwnPropertyDescriptors = require('object.getownpropertydescriptors');
-var ownKeys = require('reflect.ownkeys');
-
-var defineDataProperty = require('../');
-
-test('defineDataProperty', function (t) {
- t.test('argument validation', function (st) {
- forEach(v.primitives, function (nonObject) {
- st['throws'](
- // @ts-expect-error
- function () { defineDataProperty(nonObject, 'key', 'value'); },
- TypeError,
- 'throws on non-object input: ' + inspect(nonObject)
- );
- });
-
- forEach(v.nonPropertyKeys, function (nonPropertyKey) {
- st['throws'](
- // @ts-expect-error
- function () { defineDataProperty({}, nonPropertyKey, 'value'); },
- TypeError,
- 'throws on non-PropertyKey input: ' + inspect(nonPropertyKey)
- );
- });
-
- forEach(v.nonBooleans, function (nonBoolean) {
- if (nonBoolean !== null) {
- st['throws'](
- // @ts-expect-error
- function () { defineDataProperty({}, 'key', 'value', nonBoolean); },
- TypeError,
- 'throws on non-boolean nonEnumerable: ' + inspect(nonBoolean)
- );
-
- st['throws'](
- // @ts-expect-error
- function () { defineDataProperty({}, 'key', 'value', false, nonBoolean); },
- TypeError,
- 'throws on non-boolean nonWritable: ' + inspect(nonBoolean)
- );
-
- st['throws'](
- // @ts-expect-error
- function () { defineDataProperty({}, 'key', 'value', false, false, nonBoolean); },
- TypeError,
- 'throws on non-boolean nonConfigurable: ' + inspect(nonBoolean)
- );
- }
- });
-
- st.end();
- });
-
- t.test('normal data property', function (st) {
- /** @type {Record} */
- var obj = { existing: 'existing property' };
- st.ok(hasOwn(obj, 'existing'), 'has initial own property');
- st.equal(obj.existing, 'existing property', 'has expected initial value');
-
- var res = defineDataProperty(obj, 'added', 'added property');
- st.equal(res, void undefined, 'returns `undefined`');
- st.ok(hasOwn(obj, 'added'), 'has expected own property');
- st.equal(obj.added, 'added property', 'has expected value');
-
- defineDataProperty(obj, 'existing', 'new value');
- st.ok(hasOwn(obj, 'existing'), 'still has expected own property');
- st.equal(obj.existing, 'new value', 'has new expected value');
-
- defineDataProperty(obj, 'explicit1', 'new value', false);
- st.ok(hasOwn(obj, 'explicit1'), 'has expected own property (explicit enumerable)');
- st.equal(obj.explicit1, 'new value', 'has new expected value (explicit enumerable)');
-
- defineDataProperty(obj, 'explicit2', 'new value', false, false);
- st.ok(hasOwn(obj, 'explicit2'), 'has expected own property (explicit writable)');
- st.equal(obj.explicit2, 'new value', 'has new expected value (explicit writable)');
-
- defineDataProperty(obj, 'explicit3', 'new value', false, false, false);
- st.ok(hasOwn(obj, 'explicit3'), 'has expected own property (explicit configurable)');
- st.equal(obj.explicit3, 'new value', 'has new expected value (explicit configurable)');
-
- st.end();
- });
-
- t.test('loose mode', { skip: !hasPropertyDescriptors }, function (st) {
- var obj = { existing: 'existing property' };
-
- defineDataProperty(obj, 'added', 'added value 1', true, null, null, true);
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- existing: {
- configurable: true,
- enumerable: true,
- value: 'existing property',
- writable: true
- },
- added: {
- configurable: true,
- enumerable: !hasPropertyDescriptors,
- value: 'added value 1',
- writable: true
- }
- },
- 'in loose mode, obj still adds property 1'
- );
-
- defineDataProperty(obj, 'added', 'added value 2', false, true, null, true);
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- existing: {
- configurable: true,
- enumerable: true,
- value: 'existing property',
- writable: true
- },
- added: {
- configurable: true,
- enumerable: true,
- value: 'added value 2',
- writable: !hasPropertyDescriptors
- }
- },
- 'in loose mode, obj still adds property 2'
- );
-
- defineDataProperty(obj, 'added', 'added value 3', false, false, true, true);
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- existing: {
- configurable: true,
- enumerable: true,
- value: 'existing property',
- writable: true
- },
- added: {
- configurable: !hasPropertyDescriptors,
- enumerable: true,
- value: 'added value 3',
- writable: true
- }
- },
- 'in loose mode, obj still adds property 3'
- );
-
- st.end();
- });
-
- t.test('non-normal data property, ES3', { skip: hasPropertyDescriptors }, function (st) {
- /** @type {Record} */
- var obj = { existing: 'existing property' };
-
- st['throws'](
- function () { defineDataProperty(obj, 'added', 'added value', true); },
- SyntaxError,
- 'nonEnumerable throws a Syntax Error'
- );
-
- st['throws'](
- function () { defineDataProperty(obj, 'added', 'added value', false, true); },
- SyntaxError,
- 'nonWritable throws a Syntax Error'
- );
-
- st['throws'](
- function () { defineDataProperty(obj, 'added', 'added value', false, false, true); },
- SyntaxError,
- 'nonWritable throws a Syntax Error'
- );
-
- st.deepEqual(
- ownKeys(obj),
- ['existing'],
- 'obj still has expected keys'
- );
- st.equal(obj.existing, 'existing property', 'obj still has expected values');
-
- st.end();
- });
-
- t.test('new non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
- /** @type {Record} */
- var obj = { existing: 'existing property' };
-
- defineDataProperty(obj, 'nonEnum', null, true);
- defineDataProperty(obj, 'nonWrit', null, false, true);
- defineDataProperty(obj, 'nonConf', null, false, false, true);
-
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- existing: {
- configurable: true,
- enumerable: true,
- value: 'existing property',
- writable: true
- },
- nonEnum: {
- configurable: true,
- enumerable: false,
- value: null,
- writable: true
- },
- nonWrit: {
- configurable: true,
- enumerable: true,
- value: null,
- writable: false
- },
- nonConf: {
- configurable: false,
- enumerable: true,
- value: null,
- writable: true
- }
- },
- 'obj has expected property descriptors'
- );
-
- st.end();
- });
-
- t.test('existing non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
- // test case changing an existing non-normal property
-
- /** @type {Record} */
- var obj = {};
- Object.defineProperty(obj, 'nonEnum', { configurable: true, enumerable: false, value: null, writable: true });
- Object.defineProperty(obj, 'nonWrit', { configurable: true, enumerable: true, value: null, writable: false });
- Object.defineProperty(obj, 'nonConf', { configurable: false, enumerable: true, value: null, writable: true });
-
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- nonEnum: {
- configurable: true,
- enumerable: false,
- value: null,
- writable: true
- },
- nonWrit: {
- configurable: true,
- enumerable: true,
- value: null,
- writable: false
- },
- nonConf: {
- configurable: false,
- enumerable: true,
- value: null,
- writable: true
- }
- },
- 'obj initially has expected property descriptors'
- );
-
- defineDataProperty(obj, 'nonEnum', 'new value', false);
- defineDataProperty(obj, 'nonWrit', 'new value', false, false);
- st['throws'](
- function () { defineDataProperty(obj, 'nonConf', 'new value', false, false, false); },
- TypeError,
- 'can not alter a nonconfigurable property'
- );
-
- st.deepEqual(
- getOwnPropertyDescriptors(obj),
- {
- nonEnum: {
- configurable: true,
- enumerable: true,
- value: 'new value',
- writable: true
- },
- nonWrit: {
- configurable: true,
- enumerable: true,
- value: 'new value',
- writable: true
- },
- nonConf: {
- configurable: false,
- enumerable: true,
- value: null,
- writable: true
- }
- },
- 'obj ends up with expected property descriptors'
- );
-
- st.end();
- });
-
- t.test('frozen object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
- var frozen = Object.freeze({ existing: true });
-
- st['throws'](
- function () { defineDataProperty(frozen, 'existing', 'new value'); },
- TypeError,
- 'frozen object can not modify an existing property'
- );
-
- st['throws'](
- function () { defineDataProperty(frozen, 'new', 'new property'); },
- TypeError,
- 'frozen object can not add a new property'
- );
-
- st.end();
- });
-
- t.test('sealed object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
- var sealed = Object.seal({ existing: true });
- st.deepEqual(
- Object.getOwnPropertyDescriptor(sealed, 'existing'),
- {
- configurable: false,
- enumerable: true,
- value: true,
- writable: true
- },
- 'existing value on sealed object has expected descriptor'
- );
-
- defineDataProperty(sealed, 'existing', 'new value');
-
- st.deepEqual(
- Object.getOwnPropertyDescriptor(sealed, 'existing'),
- {
- configurable: false,
- enumerable: true,
- value: 'new value',
- writable: true
- },
- 'existing value on sealed object has changed descriptor'
- );
-
- st['throws'](
- function () { defineDataProperty(sealed, 'new', 'new property'); },
- TypeError,
- 'sealed object can not add a new property'
- );
-
- st.end();
- });
-
- t.test('nonextensible object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
- var nonExt = Object.preventExtensions({ existing: true });
-
- st.deepEqual(
- Object.getOwnPropertyDescriptor(nonExt, 'existing'),
- {
- configurable: true,
- enumerable: true,
- value: true,
- writable: true
- },
- 'existing value on non-extensible object has expected descriptor'
- );
-
- defineDataProperty(nonExt, 'existing', 'new value', true);
-
- st.deepEqual(
- Object.getOwnPropertyDescriptor(nonExt, 'existing'),
- {
- configurable: true,
- enumerable: false,
- value: 'new value',
- writable: true
- },
- 'existing value on non-extensible object has changed descriptor'
- );
-
- st['throws'](
- function () { defineDataProperty(nonExt, 'new', 'new property'); },
- TypeError,
- 'non-extensible object can not add a new property'
- );
-
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/define-data-property/tsconfig.json b/node_modules/define-data-property/tsconfig.json
deleted file mode 100644
index 69f060d..0000000
--- a/node_modules/define-data-property/tsconfig.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "compilerOptions": {
- /* Visit https://aka.ms/tsconfig to read more about this file */
-
- /* Projects */
-
- /* Language and Environment */
- "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
- "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
-
- /* Modules */
- "module": "commonjs", /* Specify what module code is generated. */
- // "rootDir": "./", /* Specify the root folder within your source files. */
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
- "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
- "resolveJsonModule": true, /* Enable importing .json files. */
-
- /* JavaScript Support */
- "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
- "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
- "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
-
- /* Emit */
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
- "declarationMap": true, /* Create sourcemaps for d.ts files. */
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
- "noEmit": true, /* Disable emitting files from a compilation. */
-
- /* Interop Constraints */
- "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
-
- /* Type Checking */
- "strict": true, /* Enable all strict type-checking options. */
- "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
- "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
- "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
- "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
- "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
- "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
- "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
- "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
- "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
-
- /* Completeness */
- // "skipLibCheck": true /* Skip type checking all .d.ts files. */
- },
- "exclude": [
- "coverage"
- ]
-}
diff --git a/node_modules/dunder-proto/CHANGELOG.md b/node_modules/dunder-proto/CHANGELOG.md
index 012288c..9b8b2f8 100644
--- a/node_modules/dunder-proto/CHANGELOG.md
+++ b/node_modules/dunder-proto/CHANGELOG.md
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [v1.0.1](https://github.com/es-shims/dunder-proto/compare/v1.0.0...v1.0.1) - 2024-12-16
+
+### Commits
+
+- [Fix] do not crash when `--disable-proto=throw` [`6c367d9`](https://github.com/es-shims/dunder-proto/commit/6c367d919bc1604778689a297bbdbfea65752847)
+- [Tests] ensure noproto tests only use the current version of dunder-proto [`b02365b`](https://github.com/es-shims/dunder-proto/commit/b02365b9cf889c4a2cac7be0c3cfc90a789af36c)
+- [Dev Deps] update `@arethetypeswrong/cli`, `@types/tape` [`e3c5c3b`](https://github.com/es-shims/dunder-proto/commit/e3c5c3bd81cf8cef7dff2eca19e558f0e307f666)
+- [Deps] update `call-bind-apply-helpers` [`19f1da0`](https://github.com/es-shims/dunder-proto/commit/19f1da028b8dd0d05c85bfd8f7eed2819b686450)
+
## v1.0.0 - 2024-12-06
### Commits
diff --git a/node_modules/dunder-proto/get.js b/node_modules/dunder-proto/get.js
index 4412f35..45093df 100644
--- a/node_modules/dunder-proto/get.js
+++ b/node_modules/dunder-proto/get.js
@@ -3,11 +3,18 @@
var callBind = require('call-bind-apply-helpers');
var gOPD = require('gopd');
-// eslint-disable-next-line no-extra-parens, no-proto
-var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
+var hasProtoAccessor;
+try {
+ // eslint-disable-next-line no-extra-parens, no-proto
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
+} catch (e) {
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
+ throw e;
+ }
+}
// eslint-disable-next-line no-extra-parens
-var desc = hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
+var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
var $Object = Object;
var $getPrototypeOf = $Object.getPrototypeOf;
diff --git a/node_modules/dunder-proto/package.json b/node_modules/dunder-proto/package.json
index f3cc526..04a4036 100644
--- a/node_modules/dunder-proto/package.json
+++ b/node_modules/dunder-proto/package.json
@@ -1,6 +1,6 @@
{
"name": "dunder-proto",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "If available, the `Object.prototype.__proto__` accessor and mutator, call-bound",
"main": false,
"exports": {
@@ -34,15 +34,15 @@
},
"homepage": "https://github.com/es-shims/dunder-proto#readme",
"dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
+ "call-bind-apply-helpers": "^1.0.1",
"es-errors": "^1.3.0",
"gopd": "^1.2.0"
},
"devDependencies": {
- "@arethetypeswrong/cli": "^0.17.0",
+ "@arethetypeswrong/cli": "^0.17.1",
"@ljharb/eslint-config": "^21.1.1",
"@ljharb/tsconfig": "^0.2.2",
- "@types/tape": "^5.6.5",
+ "@types/tape": "^5.7.0",
"auto-changelog": "^2.5.0",
"encoding": "^0.1.13",
"eslint": "=8.8.0",
diff --git a/node_modules/dunder-proto/set.js b/node_modules/dunder-proto/set.js
index fcacf32..6085b6e 100644
--- a/node_modules/dunder-proto/set.js
+++ b/node_modules/dunder-proto/set.js
@@ -6,7 +6,13 @@ var $TypeError = require('es-errors/type');
/** @type {{ __proto__?: object | null }} */
var obj = {};
-obj.__proto__ = null; // eslint-disable-line no-proto
+try {
+ obj.__proto__ = null; // eslint-disable-line no-proto
+} catch (e) {
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
+ throw e;
+ }
+}
var hasProtoMutator = !('toString' in obj);
diff --git a/node_modules/dunder-proto/test/set.js b/node_modules/dunder-proto/test/set.js
index f9b5923..c3bfe4d 100644
--- a/node_modules/dunder-proto/test/set.js
+++ b/node_modules/dunder-proto/test/set.js
@@ -35,7 +35,16 @@ test('setDunderProto', { skip: !setDunderProto }, function (t) {
});
test('no dunder proto', { skip: !!setDunderProto }, function (t) {
- t.notOk('__proto__' in Object.prototype, 'no __proto__ in Object.prototype');
+ if ('__proto__' in Object.prototype) {
+ t['throws'](
+ // @ts-expect-error
+ function () { ({}).__proto__ = null; }, // eslint-disable-line no-proto
+ Error,
+ 'throws when setting Object.prototype.__proto__'
+ );
+ } else {
+ t.notOk('__proto__' in Object.prototype, 'no __proto__ in Object.prototype');
+ }
t.end();
});
diff --git a/node_modules/has-property-descriptors/.eslintrc b/node_modules/has-property-descriptors/.eslintrc
deleted file mode 100644
index 2fcc002..0000000
--- a/node_modules/has-property-descriptors/.eslintrc
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "func-name-matching": 0,
- "id-length": 0,
- "new-cap": [2, {
- "capIsNewExceptions": ["GetIntrinsic"],
- }],
- },
-}
diff --git a/node_modules/has-property-descriptors/.github/FUNDING.yml b/node_modules/has-property-descriptors/.github/FUNDING.yml
deleted file mode 100644
index 817aacf..0000000
--- a/node_modules/has-property-descriptors/.github/FUNDING.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# These are supported funding model platforms
-
-github: [ljharb]
-patreon: # Replace with a single Patreon username
-open_collective: # Replace with a single Open Collective username
-ko_fi: # Replace with a single Ko-fi username
-tidelift: npm/has-property-descriptors
-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
-liberapay: # Replace with a single Liberapay username
-issuehunt: # Replace with a single IssueHunt username
-otechie: # Replace with a single Otechie username
-custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/has-property-descriptors/.nycrc b/node_modules/has-property-descriptors/.nycrc
deleted file mode 100644
index bdd626c..0000000
--- a/node_modules/has-property-descriptors/.nycrc
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "all": true,
- "check-coverage": false,
- "reporter": ["text-summary", "text", "html", "json"],
- "exclude": [
- "coverage",
- "test"
- ]
-}
diff --git a/node_modules/has-property-descriptors/CHANGELOG.md b/node_modules/has-property-descriptors/CHANGELOG.md
deleted file mode 100644
index 19c8a95..0000000
--- a/node_modules/has-property-descriptors/CHANGELOG.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [v1.0.2](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.1...v1.0.2) - 2024-02-12
-
-### Commits
-
-- [Refactor] use `es-define-property` [`f93a8c8`](https://github.com/inspect-js/has-property-descriptors/commit/f93a8c85eba70cbceab500f2619fb5cce73a1805)
-- [Dev Deps] update `aud`, `npmignore`, `tape` [`42b0c9d`](https://github.com/inspect-js/has-property-descriptors/commit/42b0c9d1c23e747755f0f2924923c418ea34a9ee)
-- [Deps] update `get-intrinsic` [`35e9b46`](https://github.com/inspect-js/has-property-descriptors/commit/35e9b46a7f14331bf0de98b644dd803676746037)
-
-## [v1.0.1](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.0...v1.0.1) - 2023-10-20
-
-### Commits
-
-- [meta] use `npmignore` to autogenerate an npmignore file [`5bbf4da`](https://github.com/inspect-js/has-property-descriptors/commit/5bbf4dae1b58950d87bb3af508bee7513e640868)
-- [actions] update rebase action to use reusable workflow [`3a5585b`](https://github.com/inspect-js/has-property-descriptors/commit/3a5585bf74988f71a8f59e67a07d594e62c51fd8)
-- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e5c1212`](https://github.com/inspect-js/has-property-descriptors/commit/e5c1212048a8fda549794c47863724ca60b89cae)
-- [Dev Deps] update `aud`, `tape` [`e942917`](https://github.com/inspect-js/has-property-descriptors/commit/e942917b6c2f7c090d5623048989cf20d0834ebf)
-- [Deps] update `get-intrinsic` [`f4a44ec`](https://github.com/inspect-js/has-property-descriptors/commit/f4a44ec6d94146fa6c550d3c15c31a2062c83ef4)
-- [Deps] update `get-intrinsic` [`eeb275b`](https://github.com/inspect-js/has-property-descriptors/commit/eeb275b473e5d72ca843b61ca25cfcb06a5d4300)
-
-## v1.0.0 - 2022-04-14
-
-### Commits
-
-- Initial implementation, tests [`303559f`](https://github.com/inspect-js/has-property-descriptors/commit/303559f2a72dfe7111573a1aec475ed4a184c35a)
-- Initial commit [`3a7ca2d`](https://github.com/inspect-js/has-property-descriptors/commit/3a7ca2dc49f1fff0279a28bb16265e7615e14749)
-- read me [`dd73dce`](https://github.com/inspect-js/has-property-descriptors/commit/dd73dce09d89d0f7a4a6e3b1e562a506f979a767)
-- npm init [`c1e6557`](https://github.com/inspect-js/has-property-descriptors/commit/c1e655779de632d68cb944c50da6b71bcb7b8c85)
-- Only apps should have lockfiles [`e72f7c6`](https://github.com/inspect-js/has-property-descriptors/commit/e72f7c68de534b2d273ee665f8b18d4ecc7f70b0)
diff --git a/node_modules/has-property-descriptors/LICENSE b/node_modules/has-property-descriptors/LICENSE
deleted file mode 100644
index 2e7b9a3..0000000
--- a/node_modules/has-property-descriptors/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2022 Inspect JS
-
-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.
diff --git a/node_modules/has-property-descriptors/README.md b/node_modules/has-property-descriptors/README.md
deleted file mode 100644
index d81fbd9..0000000
--- a/node_modules/has-property-descriptors/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# has-property-descriptors [![Version Badge][npm-version-svg]][package-url]
-
-[![github actions][actions-image]][actions-url]
-[![coverage][codecov-image]][codecov-url]
-[![dependency status][deps-svg]][deps-url]
-[![dev dependency status][dev-deps-svg]][dev-deps-url]
-[![License][license-image]][license-url]
-[![Downloads][downloads-image]][downloads-url]
-
-[![npm badge][npm-badge-png]][package-url]
-
-Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
-
-## Example
-
-```js
-var hasPropertyDescriptors = require('has-property-descriptors');
-var assert = require('assert');
-
-assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines
-
-// Arrays can not have their length `[[Defined]]` in some engines
-assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6
-```
-
-## Tests
-Simply clone the repo, `npm install`, and run `npm test`
-
-[package-url]: https://npmjs.org/package/has-property-descriptors
-[npm-version-svg]: https://versionbadg.es/inspect-js/has-property-descriptors.svg
-[deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors.svg
-[deps-url]: https://david-dm.org/inspect-js/has-property-descriptors
-[dev-deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors/dev-status.svg
-[dev-deps-url]: https://david-dm.org/inspect-js/has-property-descriptors#info=devDependencies
-[npm-badge-png]: https://nodei.co/npm/has-property-descriptors.png?downloads=true&stars=true
-[license-image]: https://img.shields.io/npm/l/has-property-descriptors.svg
-[license-url]: LICENSE
-[downloads-image]: https://img.shields.io/npm/dm/has-property-descriptors.svg
-[downloads-url]: https://npm-stat.com/charts.html?package=has-property-descriptors
-[codecov-image]: https://codecov.io/gh/inspect-js/has-property-descriptors/branch/main/graphs/badge.svg
-[codecov-url]: https://app.codecov.io/gh/inspect-js/has-property-descriptors/
-[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-property-descriptors
-[actions-url]: https://github.com/inspect-js/has-property-descriptors/actions
diff --git a/node_modules/has-property-descriptors/index.js b/node_modules/has-property-descriptors/index.js
deleted file mode 100644
index 0480437..0000000
--- a/node_modules/has-property-descriptors/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var $defineProperty = require('es-define-property');
-
-var hasPropertyDescriptors = function hasPropertyDescriptors() {
- return !!$defineProperty;
-};
-
-hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
- // node v0.6 has a bug where array lengths can be Set but not Defined
- if (!$defineProperty) {
- return null;
- }
- try {
- return $defineProperty([], 'length', { value: 1 }).length !== 1;
- } catch (e) {
- // In Firefox 4-22, defining length on an array throws an exception.
- return true;
- }
-};
-
-module.exports = hasPropertyDescriptors;
diff --git a/node_modules/has-property-descriptors/package.json b/node_modules/has-property-descriptors/package.json
deleted file mode 100644
index 7e70218..0000000
--- a/node_modules/has-property-descriptors/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "name": "has-property-descriptors",
- "version": "1.0.2",
- "description": "Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.",
- "main": "index.js",
- "exports": {
- ".": "./index.js",
- "./package.json": "./package.json"
- },
- "sideEffects": false,
- "scripts": {
- "prepack": "npmignore --auto --commentLines=autogenerated",
- "prepublishOnly": "safe-publish-latest",
- "prepublish": "not-in-publish || npm run prepublishOnly",
- "pretest": "npm run lint",
- "prelint": "evalmd README.md",
- "lint": "eslint --ext=js,mjs .",
- "tests-only": "nyc tape 'test/**/*.js'",
- "test": "npm run tests-only",
- "posttest": "aud --production",
- "version": "auto-changelog && git add CHANGELOG.md",
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/inspect-js/has-property-descriptors.git"
- },
- "keywords": [
- "property",
- "descriptors",
- "has",
- "environment",
- "env",
- "defineProperty",
- "getOwnPropertyDescriptor"
- ],
- "author": "Jordan Harband ",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- },
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/inspect-js/has-property-descriptors/issues"
- },
- "homepage": "https://github.com/inspect-js/has-property-descriptors#readme",
- "devDependencies": {
- "@ljharb/eslint-config": "^21.1.0",
- "aud": "^2.0.4",
- "auto-changelog": "^2.4.0",
- "eslint": "=8.8.0",
- "evalmd": "^0.0.19",
- "in-publish": "^2.0.1",
- "npmignore": "^0.3.1",
- "nyc": "^10.3.2",
- "safe-publish-latest": "^2.0.0",
- "tape": "^5.7.4"
- },
- "dependencies": {
- "es-define-property": "^1.0.0"
- },
- "testling": {
- "files": "test/index.js"
- },
- "auto-changelog": {
- "output": "CHANGELOG.md",
- "template": "keepachangelog",
- "unreleased": false,
- "commitLimit": false,
- "backfillLimit": false,
- "hideCredit": true
- },
- "publishConfig": {
- "ignore": [
- ".github/workflows"
- ]
- }
-}
diff --git a/node_modules/has-property-descriptors/test/index.js b/node_modules/has-property-descriptors/test/index.js
deleted file mode 100644
index 7f02bd3..0000000
--- a/node_modules/has-property-descriptors/test/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-'use strict';
-
-var test = require('tape');
-
-var hasPropertyDescriptors = require('../');
-
-var sentinel = {};
-
-test('hasPropertyDescriptors', function (t) {
- t.equal(typeof hasPropertyDescriptors, 'function', 'is a function');
- t.equal(typeof hasPropertyDescriptors.hasArrayLengthDefineBug, 'function', '`hasArrayLengthDefineBug` property is a function');
-
- var yes = hasPropertyDescriptors();
- t.test('property descriptors', { skip: !yes }, function (st) {
- var o = { a: sentinel };
-
- st.deepEqual(
- Object.getOwnPropertyDescriptor(o, 'a'),
- {
- configurable: true,
- enumerable: true,
- value: sentinel,
- writable: true
- },
- 'has expected property descriptor'
- );
-
- Object.defineProperty(o, 'a', { enumerable: false, writable: false });
-
- st.deepEqual(
- Object.getOwnPropertyDescriptor(o, 'a'),
- {
- configurable: true,
- enumerable: false,
- value: sentinel,
- writable: false
- },
- 'has expected property descriptor after [[Define]]'
- );
-
- st.end();
- });
-
- var arrayBug = hasPropertyDescriptors.hasArrayLengthDefineBug();
- t.test('defining array lengths', { skip: !yes || arrayBug }, function (st) {
- var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
- st.equal(arr.length, 3, 'array starts with length 3');
-
- Object.defineProperty(arr, 'length', { value: 5 });
-
- st.equal(arr.length, 5, 'array ends with length 5');
-
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/set-function-length/.eslintrc b/node_modules/set-function-length/.eslintrc
deleted file mode 100644
index 7cff507..0000000
--- a/node_modules/set-function-length/.eslintrc
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "id-length": "off",
- "new-cap": ["error", {
- "capIsNewExceptions": [
- "GetIntrinsic"
- ],
- }],
- "no-extra-parens": "off",
- },
-
- "overrides": [
- {
- "files": ["test/**/*.js"],
- "rules": {
- "id-length": "off",
- "max-lines-per-function": "off",
- "multiline-comment-style": "off",
- "no-empty-function": "off",
- },
- },
- ],
-}
diff --git a/node_modules/set-function-length/.github/FUNDING.yml b/node_modules/set-function-length/.github/FUNDING.yml
deleted file mode 100644
index 92feb6f..0000000
--- a/node_modules/set-function-length/.github/FUNDING.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-# These are supported funding model platforms
-
-github: [ljharb]
-patreon: # Replace with a single Patreon username
-open_collective: # Replace with a single Open Collective username
-ko_fi: # Replace with a single Ko-fi username
-tidelift: npm/set-function-name
-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
-liberapay: # Replace with a single Liberapay username
-issuehunt: # Replace with a single IssueHunt username
-otechie: # Replace with a single Otechie username
-custom: # Replace with a single custom sponsorship URL
diff --git a/node_modules/set-function-length/.nycrc b/node_modules/set-function-length/.nycrc
deleted file mode 100644
index 1826526..0000000
--- a/node_modules/set-function-length/.nycrc
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "all": true,
- "check-coverage": false,
- "reporter": ["text-summary", "text", "html", "json"],
- "lines": 86,
- "statements": 85.93,
- "functions": 82.43,
- "branches": 76.06,
- "exclude": [
- "coverage",
- "test"
- ]
-}
diff --git a/node_modules/set-function-length/CHANGELOG.md b/node_modules/set-function-length/CHANGELOG.md
deleted file mode 100644
index bac439d..0000000
--- a/node_modules/set-function-length/CHANGELOG.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## [v1.2.2](https://github.com/ljharb/set-function-length/compare/v1.2.1...v1.2.2) - 2024-03-09
-
-### Commits
-
-- [types] use shared config [`027032f`](https://github.com/ljharb/set-function-length/commit/027032fe9cc439644a07248ea6a8d813fcc767cb)
-- [actions] remove redundant finisher; use reusable workflow [`1fd4fb1`](https://github.com/ljharb/set-function-length/commit/1fd4fb1c58bd5170f0dcff7e320077c0aa2ffdeb)
-- [types] use a handwritten d.ts file instead of emit [`01b9761`](https://github.com/ljharb/set-function-length/commit/01b9761742c95e1118e8c2d153ce2ae43d9731aa)
-- [Deps] update `define-data-property`, `get-intrinsic`, `has-property-descriptors` [`bee8eaf`](https://github.com/ljharb/set-function-length/commit/bee8eaf7749f325357ade85cffeaeef679e513d4)
-- [Dev Deps] update `call-bind`, `tape` [`5dae579`](https://github.com/ljharb/set-function-length/commit/5dae579fdc3aab91b14ebb58f9c19ee3f509d434)
-- [Tests] use `@arethetypeswrong/cli` [`7e22425`](https://github.com/ljharb/set-function-length/commit/7e22425d15957fd3d6da0b6bca4afc0c8d255d2d)
-
-## [v1.2.1](https://github.com/ljharb/set-function-length/compare/v1.2.0...v1.2.1) - 2024-02-06
-
-### Commits
-
-- [Dev Deps] update `call-bind`, `tape`, `typescript` [`d9a4601`](https://github.com/ljharb/set-function-length/commit/d9a460199c4c1fa37da9ebe055e2c884128f0738)
-- [Deps] update `define-data-property`, `get-intrinsic` [`38d39ae`](https://github.com/ljharb/set-function-length/commit/38d39aed13a757ed36211d5b0437b88485090c6b)
-- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`b4bfe5a`](https://github.com/ljharb/set-function-length/commit/b4bfe5ae0953b906d55b85f867eca5e7f673ebf4)
-
-## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
-
-### Commits
-
-- [New] add types [`f6d9088`](https://github.com/ljharb/set-function-length/commit/f6d9088b9283a3112b21c6776e8bef6d1f30558a)
-- [Fix] ensure `env` properties are always booleans [`0c42f84`](https://github.com/ljharb/set-function-length/commit/0c42f84979086389b3229e1b4272697fd352275a)
-- [Dev Deps] update `aud`, `call-bind`, `npmignore`, `tape` [`2b75f75`](https://github.com/ljharb/set-function-length/commit/2b75f75468093a4bb8ce8ca989b2edd2e80d95d1)
-- [Deps] update `get-intrinsic`, `has-property-descriptors` [`19bf0fc`](https://github.com/ljharb/set-function-length/commit/19bf0fc4ffaa5ad425acbfa150516be9f3b6263a)
-- [meta] add `sideEffects` flag [`8bb9b78`](https://github.com/ljharb/set-function-length/commit/8bb9b78c11c621123f725c9470222f43466c01d0)
-
-## [v1.1.1](https://github.com/ljharb/set-function-length/compare/v1.1.0...v1.1.1) - 2023-10-19
-
-### Fixed
-
-- [Fix] move `define-data-property` to runtime deps [`#2`](https://github.com/ljharb/set-function-length/issues/2)
-
-### Commits
-
-- [Dev Deps] update `object-inspect`; add missing `call-bind` [`5aecf79`](https://github.com/ljharb/set-function-length/commit/5aecf79e7d6400957a5d9bd9ac20d4528908ca18)
-
-## [v1.1.0](https://github.com/ljharb/set-function-length/compare/v1.0.1...v1.1.0) - 2023-10-13
-
-### Commits
-
-- [New] add `env` entry point [`475c87a`](https://github.com/ljharb/set-function-length/commit/475c87aa2f59b700aaed589d980624ec596acdcb)
-- [Tests] add coverage with `nyc` [`14f0bf8`](https://github.com/ljharb/set-function-length/commit/14f0bf8c145ae60bf14a026420a06bb7be132c36)
-- [eslint] fix linting failure [`fb516f9`](https://github.com/ljharb/set-function-length/commit/fb516f93c664057138c53559ef63c8622a093335)
-- [Deps] update `define-data-property` [`d727e7c`](https://github.com/ljharb/set-function-length/commit/d727e7c6c9a40d7bf26797694e500ea68741feea)
-
-## [v1.0.1](https://github.com/ljharb/set-function-length/compare/v1.0.0...v1.0.1) - 2023-10-12
-
-### Commits
-
-- [Refactor] use `get-intrinsic`, since it‘s in the dep graph anyways [`278a954`](https://github.com/ljharb/set-function-length/commit/278a954a06cd849051c569ff7aee56df6798933e)
-- [meta] add `exports` [`72acfe5`](https://github.com/ljharb/set-function-length/commit/72acfe5a0310071fb205a72caba5ecbab24336a0)
-
-## v1.0.0 - 2023-10-12
-
-### Commits
-
-- Initial implementation, tests, readme [`fce14e1`](https://github.com/ljharb/set-function-length/commit/fce14e17586460e4f294405173be72b6ffdf7e5f)
-- Initial commit [`ca7ba85`](https://github.com/ljharb/set-function-length/commit/ca7ba857c7c283f9d26e21f14e71cd388f2cb722)
-- npm init [`6a7e493`](https://github.com/ljharb/set-function-length/commit/6a7e493927736cebcaf5c1a84e69b8e6b7b744d8)
-- Only apps should have lockfiles [`d2bf6c4`](https://github.com/ljharb/set-function-length/commit/d2bf6c43de8a51b02a0aa53e8d62cb50c4a2b0da)
diff --git a/node_modules/set-function-length/LICENSE b/node_modules/set-function-length/LICENSE
deleted file mode 100644
index 0314929..0000000
--- a/node_modules/set-function-length/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) Jordan Harband and contributors
-
-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.
diff --git a/node_modules/set-function-length/README.md b/node_modules/set-function-length/README.md
deleted file mode 100644
index 15e3ac4..0000000
--- a/node_modules/set-function-length/README.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# set-function-length [![Version Badge][npm-version-svg]][package-url]
-
-[![github actions][actions-image]][actions-url]
-[![coverage][codecov-image]][codecov-url]
-[![License][license-image]][license-url]
-[![Downloads][downloads-image]][downloads-url]
-
-[![npm badge][npm-badge-png]][package-url]
-
-Set a function’s length.
-
-Arguments:
- - `fn`: the function
- - `length`: the new length. Must be an integer between 0 and 2**32.
- - `loose`: Optional. If true, and the length fails to be set, do not throw. Default false.
-
-Returns `fn`.
-
-## Usage
-
-```javascript
-var setFunctionLength = require('set-function-length');
-var assert = require('assert');
-
-function zero() {}
-function one(_) {}
-function two(_, __) {}
-
-assert.equal(zero.length, 0);
-assert.equal(one.length, 1);
-assert.equal(two.length, 2);
-
-assert.equal(setFunctionLength(zero, 10), zero);
-assert.equal(setFunctionLength(one, 11), one);
-assert.equal(setFunctionLength(two, 12), two);
-
-assert.equal(zero.length, 10);
-assert.equal(one.length, 11);
-assert.equal(two.length, 12);
-```
-
-[package-url]: https://npmjs.org/package/set-function-length
-[npm-version-svg]: https://versionbadg.es/ljharb/set-function-length.svg
-[deps-svg]: https://david-dm.org/ljharb/set-function-length.svg
-[deps-url]: https://david-dm.org/ljharb/set-function-length
-[dev-deps-svg]: https://david-dm.org/ljharb/set-function-length/dev-status.svg
-[dev-deps-url]: https://david-dm.org/ljharb/set-function-length#info=devDependencies
-[npm-badge-png]: https://nodei.co/npm/set-function-length.png?downloads=true&stars=true
-[license-image]: https://img.shields.io/npm/l/set-function-length.svg
-[license-url]: LICENSE
-[downloads-image]: https://img.shields.io/npm/dm/set-function-length.svg
-[downloads-url]: https://npm-stat.com/charts.html?package=set-function-length
-[codecov-image]: https://codecov.io/gh/ljharb/set-function-length/branch/main/graphs/badge.svg
-[codecov-url]: https://app.codecov.io/gh/ljharb/set-function-length/
-[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/set-function-length
-[actions-url]: https://github.com/ljharb/set-function-length/actions
diff --git a/node_modules/set-function-length/env.d.ts b/node_modules/set-function-length/env.d.ts
deleted file mode 100644
index 970ea53..0000000
--- a/node_modules/set-function-length/env.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-declare const env: {
- __proto__: null,
- boundFnsHaveConfigurableLengths: boolean;
- boundFnsHaveWritableLengths: boolean;
- functionsHaveConfigurableLengths: boolean;
- functionsHaveWritableLengths: boolean;
-};
-
-export = env;
\ No newline at end of file
diff --git a/node_modules/set-function-length/env.js b/node_modules/set-function-length/env.js
deleted file mode 100644
index d9b0a29..0000000
--- a/node_modules/set-function-length/env.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var gOPD = require('gopd');
-var bind = require('function-bind');
-
-var unbound = gOPD && gOPD(function () {}, 'length');
-// @ts-expect-error ts(2555) TS is overly strict with .call
-var bound = gOPD && gOPD(bind.call(function () {}), 'length');
-
-var functionsHaveConfigurableLengths = !!(unbound && unbound.configurable);
-
-var functionsHaveWritableLengths = !!(unbound && unbound.writable);
-
-var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
-
-var boundFnsHaveWritableLengths = !!(bound && bound.writable);
-
-/** @type {import('./env')} */
-module.exports = {
- __proto__: null,
- boundFnsHaveConfigurableLengths: boundFnsHaveConfigurableLengths,
- boundFnsHaveWritableLengths: boundFnsHaveWritableLengths,
- functionsHaveConfigurableLengths: functionsHaveConfigurableLengths,
- functionsHaveWritableLengths: functionsHaveWritableLengths
-};
diff --git a/node_modules/set-function-length/index.d.ts b/node_modules/set-function-length/index.d.ts
deleted file mode 100644
index 0451ecd..0000000
--- a/node_modules/set-function-length/index.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-declare namespace setFunctionLength {
- type Func = (...args: unknown[]) => unknown;
-}
-
-declare function setFunctionLength(fn: T, length: number, loose?: boolean): T;
-
-export = setFunctionLength;
\ No newline at end of file
diff --git a/node_modules/set-function-length/index.js b/node_modules/set-function-length/index.js
deleted file mode 100644
index 14ce74d..0000000
--- a/node_modules/set-function-length/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-
-var GetIntrinsic = require('get-intrinsic');
-var define = require('define-data-property');
-var hasDescriptors = require('has-property-descriptors')();
-var gOPD = require('gopd');
-
-var $TypeError = require('es-errors/type');
-var $floor = GetIntrinsic('%Math.floor%');
-
-/** @type {import('.')} */
-module.exports = function setFunctionLength(fn, length) {
- if (typeof fn !== 'function') {
- throw new $TypeError('`fn` is not a function');
- }
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
- throw new $TypeError('`length` must be a positive 32-bit integer');
- }
-
- var loose = arguments.length > 2 && !!arguments[2];
-
- var functionLengthIsConfigurable = true;
- var functionLengthIsWritable = true;
- if ('length' in fn && gOPD) {
- var desc = gOPD(fn, 'length');
- if (desc && !desc.configurable) {
- functionLengthIsConfigurable = false;
- }
- if (desc && !desc.writable) {
- functionLengthIsWritable = false;
- }
- }
-
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
- if (hasDescriptors) {
- define(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);
- } else {
- define(/** @type {Parameters[0]} */ (fn), 'length', length);
- }
- }
- return fn;
-};
diff --git a/node_modules/set-function-length/package.json b/node_modules/set-function-length/package.json
deleted file mode 100644
index f6b8881..0000000
--- a/node_modules/set-function-length/package.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "name": "set-function-length",
- "version": "1.2.2",
- "description": "Set a function's length property",
- "main": "index.js",
- "exports": {
- ".": "./index.js",
- "./env": "./env.js",
- "./package.json": "./package.json"
- },
- "sideEffects": false,
- "directories": {
- "test": "test"
- },
- "scripts": {
- "prepack": "npmignore --auto --commentLines=autogenerated",
- "prepublish": "not-in-publish || npm run prepublishOnly",
- "prepublishOnly": "safe-publish-latest",
- "tsc": "tsc -p .",
- "posttsc": "attw -P",
- "prelint": "evalmd README.md",
- "lint": "eslint --ext=js,mjs .",
- "postlint": "npm run tsc",
- "pretest": "npm run lint",
- "tests-only": "nyc tape 'test/**/*.js'",
- "test": "npm run tests-only",
- "posttest": "aud --production",
- "version": "auto-changelog && git add CHANGELOG.md",
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ljharb/set-function-length.git"
- },
- "keywords": [
- "javascript",
- "ecmascript",
- "set",
- "function",
- "length",
- "function.length"
- ],
- "author": "Jordan Harband ",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/ljharb/set-function-length/issues"
- },
- "homepage": "https://github.com/ljharb/set-function-length#readme",
- "dependencies": {
- "define-data-property": "^1.1.4",
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.4",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.2"
- },
- "devDependencies": {
- "@arethetypeswrong/cli": "^0.15.1",
- "@ljharb/eslint-config": "^21.1.0",
- "@ljharb/tsconfig": "^0.1.1",
- "@types/call-bind": "^1.0.5",
- "@types/define-properties": "^1.1.5",
- "@types/es-value-fixtures": "^1.4.4",
- "@types/for-each": "^0.3.3",
- "@types/function-bind": "^1.1.10",
- "@types/gopd": "^1.0.3",
- "@types/has-property-descriptors": "^1.0.3",
- "@types/object-inspect": "^1.8.4",
- "@types/tape": "^5.6.4",
- "aud": "^2.0.4",
- "auto-changelog": "^2.4.0",
- "call-bind": "^1.0.7",
- "es-value-fixtures": "^1.4.2",
- "eslint": "=8.8.0",
- "evalmd": "^0.0.19",
- "for-each": "^0.3.3",
- "in-publish": "^2.0.1",
- "npmignore": "^0.3.1",
- "nyc": "^10.3.2",
- "object-inspect": "^1.13.1",
- "safe-publish-latest": "^2.0.0",
- "tape": "^5.7.5",
- "typescript": "next"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "auto-changelog": {
- "output": "CHANGELOG.md",
- "template": "keepachangelog",
- "unreleased": false,
- "commitLimit": false,
- "backfillLimit": false,
- "hideCredit": true
- },
- "publishConfig": {
- "ignore": [
- ".github/workflows",
- "test"
- ]
- }
-}
diff --git a/node_modules/set-function-length/tsconfig.json b/node_modules/set-function-length/tsconfig.json
deleted file mode 100644
index d9a6668..0000000
--- a/node_modules/set-function-length/tsconfig.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "extends": "@ljharb/tsconfig",
- "compilerOptions": {
- "target": "es2021",
- },
- "exclude": [
- "coverage",
- ],
-}
diff --git a/node_modules/xmlhttprequest/.jshintrc b/node_modules/xmlhttprequest/.jshintrc
new file mode 100644
index 0000000..3df2adc
--- /dev/null
+++ b/node_modules/xmlhttprequest/.jshintrc
@@ -0,0 +1,26 @@
+{
+ "node": true,
+ "browser": false,
+ "esnext": true,
+ "bitwise": false,
+ "camelcase": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "immed": true,
+ "indent": 2,
+ "latedef": true,
+ "laxbreak": true,
+ "newcap": true,
+ "noarg": true,
+ "quotmark": "double",
+ "regexp": true,
+ "undef": true,
+ "unused": true,
+ "strict": true,
+ "trailing": true,
+ "smarttabs": true,
+ "globals": {
+ "define": false
+ }
+}
diff --git a/node_modules/xmlhttprequest/.npmignore b/node_modules/xmlhttprequest/.npmignore
new file mode 100644
index 0000000..97b5e9b
--- /dev/null
+++ b/node_modules/xmlhttprequest/.npmignore
@@ -0,0 +1,4 @@
+example
+tests
+
+autotest.watchr
diff --git a/node_modules/xmlhttprequest/LICENSE b/node_modules/xmlhttprequest/LICENSE
new file mode 100644
index 0000000..1c63271
--- /dev/null
+++ b/node_modules/xmlhttprequest/LICENSE
@@ -0,0 +1,22 @@
+ Copyright (c) 2010 passive.ly LLC
+
+ 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.
diff --git a/node_modules/xmlhttprequest/README.md b/node_modules/xmlhttprequest/README.md
new file mode 100644
index 0000000..50039f9
--- /dev/null
+++ b/node_modules/xmlhttprequest/README.md
@@ -0,0 +1,55 @@
+# node-XMLHttpRequest #
+
+node-XMLHttpRequest is a wrapper for the built-in http client to emulate the
+browser XMLHttpRequest object.
+
+This can be used with JS designed for browsers to improve reuse of code and
+allow the use of existing libraries.
+
+Note: This library currently conforms to [XMLHttpRequest 1](http://www.w3.org/TR/XMLHttpRequest/). Version 2.0 will target [XMLHttpRequest Level 2](http://www.w3.org/TR/XMLHttpRequest2/).
+
+## Usage ##
+
+Here's how to include the module in your project and use as the browser-based
+XHR object.
+
+ var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
+ var xhr = new XMLHttpRequest();
+
+Note: use the lowercase string "xmlhttprequest" in your require(). On
+case-sensitive systems (eg Linux) using uppercase letters won't work.
+
+## Versions ##
+
+Prior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to
+the standard major.minor.bugfix. 1.x shouldn't necessarily be considered
+stable just because it's above 0.x.
+
+Since the XMLHttpRequest API is stable this library's API is stable as
+well. Major version numbers indicate significant core code changes.
+Minor versions indicate minor core code changes or better conformity to
+the W3C spec.
+
+## License ##
+
+MIT license. See LICENSE for full details.
+
+## Supports ##
+
+* Async and synchronous requests
+* GET, POST, PUT, and DELETE requests
+* All spec methods (open, send, abort, getRequestHeader,
+ getAllRequestHeaders, event methods)
+* Requests to all domains
+
+## Known Issues / Missing Features ##
+
+For a list of open issues or to report your own visit the [github issues
+page](https://github.com/driverdan/node-XMLHttpRequest/issues).
+
+* Local file access may have unexpected results for non-UTF8 files
+* Synchronous requests don't set headers properly
+* Synchronous requests freeze node while waiting for response (But that's what you want, right? Stick with async!).
+* Some events are missing, such as abort
+* Cookies aren't persisted between requests
+* Missing XML support
diff --git a/node_modules/xmlhttprequest/lib/XMLHttpRequest.js b/node_modules/xmlhttprequest/lib/XMLHttpRequest.js
new file mode 100644
index 0000000..4893913
--- /dev/null
+++ b/node_modules/xmlhttprequest/lib/XMLHttpRequest.js
@@ -0,0 +1,620 @@
+/**
+ * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
+ *
+ * This can be used with JS designed for browsers to improve reuse of code and
+ * allow the use of existing libraries.
+ *
+ * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
+ *
+ * @author Dan DeFelippi
+ * @contributor David Ellis
+ * @license MIT
+ */
+
+var Url = require("url");
+var spawn = require("child_process").spawn;
+var fs = require("fs");
+
+exports.XMLHttpRequest = function() {
+ "use strict";
+
+ /**
+ * Private variables
+ */
+ var self = this;
+ var http = require("http");
+ var https = require("https");
+
+ // Holds http.js objects
+ var request;
+ var response;
+
+ // Request settings
+ var settings = {};
+
+ // Disable header blacklist.
+ // Not part of XHR specs.
+ var disableHeaderCheck = false;
+
+ // Set some default headers
+ var defaultHeaders = {
+ "User-Agent": "node-XMLHttpRequest",
+ "Accept": "*/*",
+ };
+
+ var headers = {};
+ var headersCase = {};
+
+ // These headers are not user setable.
+ // The following are allowed but banned in the spec:
+ // * user-agent
+ var forbiddenRequestHeaders = [
+ "accept-charset",
+ "accept-encoding",
+ "access-control-request-headers",
+ "access-control-request-method",
+ "connection",
+ "content-length",
+ "content-transfer-encoding",
+ "cookie",
+ "cookie2",
+ "date",
+ "expect",
+ "host",
+ "keep-alive",
+ "origin",
+ "referer",
+ "te",
+ "trailer",
+ "transfer-encoding",
+ "upgrade",
+ "via"
+ ];
+
+ // These request methods are not allowed
+ var forbiddenRequestMethods = [
+ "TRACE",
+ "TRACK",
+ "CONNECT"
+ ];
+
+ // Send flag
+ var sendFlag = false;
+ // Error flag, used when errors occur or abort is called
+ var errorFlag = false;
+
+ // Event listeners
+ var listeners = {};
+
+ /**
+ * Constants
+ */
+
+ this.UNSENT = 0;
+ this.OPENED = 1;
+ this.HEADERS_RECEIVED = 2;
+ this.LOADING = 3;
+ this.DONE = 4;
+
+ /**
+ * Public vars
+ */
+
+ // Current state
+ this.readyState = this.UNSENT;
+
+ // default ready state change handler in case one is not set or is set late
+ this.onreadystatechange = null;
+
+ // Result & response
+ this.responseText = "";
+ this.responseXML = "";
+ this.status = null;
+ this.statusText = null;
+
+ // Whether cross-site Access-Control requests should be made using
+ // credentials such as cookies or authorization headers
+ this.withCredentials = false;
+
+ /**
+ * Private methods
+ */
+
+ /**
+ * Check if the specified header is allowed.
+ *
+ * @param string header Header to validate
+ * @return boolean False if not allowed, otherwise true
+ */
+ var isAllowedHttpHeader = function(header) {
+ return disableHeaderCheck || (header && forbiddenRequestHeaders.indexOf(header.toLowerCase()) === -1);
+ };
+
+ /**
+ * Check if the specified method is allowed.
+ *
+ * @param string method Request method to validate
+ * @return boolean False if not allowed, otherwise true
+ */
+ var isAllowedHttpMethod = function(method) {
+ return (method && forbiddenRequestMethods.indexOf(method) === -1);
+ };
+
+ /**
+ * Public methods
+ */
+
+ /**
+ * Open the connection. Currently supports local server requests.
+ *
+ * @param string method Connection method (eg GET, POST)
+ * @param string url URL for the connection.
+ * @param boolean async Asynchronous connection. Default is true.
+ * @param string user Username for basic authentication (optional)
+ * @param string password Password for basic authentication (optional)
+ */
+ this.open = function(method, url, async, user, password) {
+ this.abort();
+ errorFlag = false;
+
+ // Check for valid request method
+ if (!isAllowedHttpMethod(method)) {
+ throw new Error("SecurityError: Request method not allowed");
+ }
+
+ settings = {
+ "method": method,
+ "url": url.toString(),
+ "async": (typeof async !== "boolean" ? true : async),
+ "user": user || null,
+ "password": password || null
+ };
+
+ setState(this.OPENED);
+ };
+
+ /**
+ * Disables or enables isAllowedHttpHeader() check the request. Enabled by default.
+ * This does not conform to the W3C spec.
+ *
+ * @param boolean state Enable or disable header checking.
+ */
+ this.setDisableHeaderCheck = function(state) {
+ disableHeaderCheck = state;
+ };
+
+ /**
+ * Sets a header for the request or appends the value if one is already set.
+ *
+ * @param string header Header name
+ * @param string value Header value
+ */
+ this.setRequestHeader = function(header, value) {
+ if (this.readyState !== this.OPENED) {
+ throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");
+ }
+ if (!isAllowedHttpHeader(header)) {
+ console.warn("Refused to set unsafe header \"" + header + "\"");
+ return;
+ }
+ if (sendFlag) {
+ throw new Error("INVALID_STATE_ERR: send flag is true");
+ }
+ header = headersCase[header.toLowerCase()] || header;
+ headersCase[header.toLowerCase()] = header;
+ headers[header] = headers[header] ? headers[header] + ', ' + value : value;
+ };
+
+ /**
+ * Gets a header from the server response.
+ *
+ * @param string header Name of header to get.
+ * @return string Text of the header or null if it doesn't exist.
+ */
+ this.getResponseHeader = function(header) {
+ if (typeof header === "string"
+ && this.readyState > this.OPENED
+ && response
+ && response.headers
+ && response.headers[header.toLowerCase()]
+ && !errorFlag
+ ) {
+ return response.headers[header.toLowerCase()];
+ }
+
+ return null;
+ };
+
+ /**
+ * Gets all the response headers.
+ *
+ * @return string A string with all response headers separated by CR+LF
+ */
+ this.getAllResponseHeaders = function() {
+ if (this.readyState < this.HEADERS_RECEIVED || errorFlag) {
+ return "";
+ }
+ var result = "";
+
+ for (var i in response.headers) {
+ // Cookie headers are excluded
+ if (i !== "set-cookie" && i !== "set-cookie2") {
+ result += i + ": " + response.headers[i] + "\r\n";
+ }
+ }
+ return result.substr(0, result.length - 2);
+ };
+
+ /**
+ * Gets a request header
+ *
+ * @param string name Name of header to get
+ * @return string Returns the request header or empty string if not set
+ */
+ this.getRequestHeader = function(name) {
+ if (typeof name === "string" && headersCase[name.toLowerCase()]) {
+ return headers[headersCase[name.toLowerCase()]];
+ }
+
+ return "";
+ };
+
+ /**
+ * Sends the request to the server.
+ *
+ * @param string data Optional data to send as request body.
+ */
+ this.send = function(data) {
+ if (this.readyState !== this.OPENED) {
+ throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");
+ }
+
+ if (sendFlag) {
+ throw new Error("INVALID_STATE_ERR: send has already been called");
+ }
+
+ var ssl = false, local = false;
+ var url = Url.parse(settings.url);
+ var host;
+ // Determine the server
+ switch (url.protocol) {
+ case "https:":
+ ssl = true;
+ // SSL & non-SSL both need host, no break here.
+ case "http:":
+ host = url.hostname;
+ break;
+
+ case "file:":
+ local = true;
+ break;
+
+ case undefined:
+ case null:
+ case "":
+ host = "localhost";
+ break;
+
+ default:
+ throw new Error("Protocol not supported.");
+ }
+
+ // Load files off the local filesystem (file://)
+ if (local) {
+ if (settings.method !== "GET") {
+ throw new Error("XMLHttpRequest: Only GET method is supported");
+ }
+
+ if (settings.async) {
+ fs.readFile(url.pathname, "utf8", function(error, data) {
+ if (error) {
+ self.handleError(error);
+ } else {
+ self.status = 200;
+ self.responseText = data;
+ setState(self.DONE);
+ }
+ });
+ } else {
+ try {
+ this.responseText = fs.readFileSync(url.pathname, "utf8");
+ this.status = 200;
+ setState(self.DONE);
+ } catch(e) {
+ this.handleError(e);
+ }
+ }
+
+ return;
+ }
+
+ // Default to port 80. If accessing localhost on another port be sure
+ // to use http://localhost:port/path
+ var port = url.port || (ssl ? 443 : 80);
+ // Add query string if one is used
+ var uri = url.pathname + (url.search ? url.search : "");
+
+ // Set the defaults if they haven't been set
+ for (var name in defaultHeaders) {
+ if (!headersCase[name.toLowerCase()]) {
+ headers[name] = defaultHeaders[name];
+ }
+ }
+
+ // Set the Host header or the server may reject the request
+ headers.Host = host;
+ if (!((ssl && port === 443) || port === 80)) {
+ headers.Host += ":" + url.port;
+ }
+
+ // Set Basic Auth if necessary
+ if (settings.user) {
+ if (typeof settings.password === "undefined") {
+ settings.password = "";
+ }
+ var authBuf = new Buffer(settings.user + ":" + settings.password);
+ headers.Authorization = "Basic " + authBuf.toString("base64");
+ }
+
+ // Set content length header
+ if (settings.method === "GET" || settings.method === "HEAD") {
+ data = null;
+ } else if (data) {
+ headers["Content-Length"] = Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data);
+
+ if (!headers["Content-Type"]) {
+ headers["Content-Type"] = "text/plain;charset=UTF-8";
+ }
+ } else if (settings.method === "POST") {
+ // For a post with no data set Content-Length: 0.
+ // This is required by buggy servers that don't meet the specs.
+ headers["Content-Length"] = 0;
+ }
+
+ var options = {
+ host: host,
+ port: port,
+ path: uri,
+ method: settings.method,
+ headers: headers,
+ agent: false,
+ withCredentials: self.withCredentials
+ };
+
+ // Reset error flag
+ errorFlag = false;
+
+ // Handle async requests
+ if (settings.async) {
+ // Use the proper protocol
+ var doRequest = ssl ? https.request : http.request;
+
+ // Request is being sent, set send flag
+ sendFlag = true;
+
+ // As per spec, this is called here for historical reasons.
+ self.dispatchEvent("readystatechange");
+
+ // Handler for the response
+ var responseHandler = function responseHandler(resp) {
+ // Set response var to the response we got back
+ // This is so it remains accessable outside this scope
+ response = resp;
+ // Check for redirect
+ // @TODO Prevent looped redirects
+ if (response.statusCode === 301 || response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
+ // Change URL to the redirect location
+ settings.url = response.headers.location;
+ var url = Url.parse(settings.url);
+ // Set host var in case it's used later
+ host = url.hostname;
+ // Options for the new request
+ var newOptions = {
+ hostname: url.hostname,
+ port: url.port,
+ path: url.path,
+ method: response.statusCode === 303 ? "GET" : settings.method,
+ headers: headers,
+ withCredentials: self.withCredentials
+ };
+
+ // Issue the new request
+ request = doRequest(newOptions, responseHandler).on("error", errorHandler);
+ request.end();
+ // @TODO Check if an XHR event needs to be fired here
+ return;
+ }
+
+ response.setEncoding("utf8");
+
+ setState(self.HEADERS_RECEIVED);
+ self.status = response.statusCode;
+
+ response.on("data", function(chunk) {
+ // Make sure there's some data
+ if (chunk) {
+ self.responseText += chunk;
+ }
+ // Don't emit state changes if the connection has been aborted.
+ if (sendFlag) {
+ setState(self.LOADING);
+ }
+ });
+
+ response.on("end", function() {
+ if (sendFlag) {
+ // Discard the end event if the connection has been aborted
+ setState(self.DONE);
+ sendFlag = false;
+ }
+ });
+
+ response.on("error", function(error) {
+ self.handleError(error);
+ });
+ };
+
+ // Error handler for the request
+ var errorHandler = function errorHandler(error) {
+ self.handleError(error);
+ };
+
+ // Create the request
+ request = doRequest(options, responseHandler).on("error", errorHandler);
+
+ // Node 0.4 and later won't accept empty data. Make sure it's needed.
+ if (data) {
+ request.write(data);
+ }
+
+ request.end();
+
+ self.dispatchEvent("loadstart");
+ } else { // Synchronous
+ // Create a temporary file for communication with the other Node process
+ var contentFile = ".node-xmlhttprequest-content-" + process.pid;
+ var syncFile = ".node-xmlhttprequest-sync-" + process.pid;
+ fs.writeFileSync(syncFile, "", "utf8");
+ // The async request the other Node process executes
+ var execString = "var http = require('http'), https = require('https'), fs = require('fs');"
+ + "var doRequest = http" + (ssl ? "s" : "") + ".request;"
+ + "var options = " + JSON.stringify(options) + ";"
+ + "var responseText = '';"
+ + "var req = doRequest(options, function(response) {"
+ + "response.setEncoding('utf8');"
+ + "response.on('data', function(chunk) {"
+ + " responseText += chunk;"
+ + "});"
+ + "response.on('end', function() {"
+ + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');"
+ + "fs.unlinkSync('" + syncFile + "');"
+ + "});"
+ + "response.on('error', function(error) {"
+ + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');"
+ + "fs.unlinkSync('" + syncFile + "');"
+ + "});"
+ + "}).on('error', function(error) {"
+ + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');"
+ + "fs.unlinkSync('" + syncFile + "');"
+ + "});"
+ + (data ? "req.write('" + JSON.stringify(data).slice(1,-1).replace(/'/g, "\\'") + "');":"")
+ + "req.end();";
+ // Start the other Node Process, executing this string
+ var syncProc = spawn(process.argv[0], ["-e", execString]);
+ while(fs.existsSync(syncFile)) {
+ // Wait while the sync file is empty
+ }
+ var resp = JSON.parse(fs.readFileSync(contentFile, 'utf8'));
+ // Kill the child process once the file has data
+ syncProc.stdin.end();
+ // Remove the temporary file
+ fs.unlinkSync(contentFile);
+
+ if (resp.err) {
+ self.handleError(resp.err);
+ } else {
+ response = resp.data;
+ self.status = resp.data.statusCode;
+ self.responseText = resp.data.text;
+ setState(self.DONE);
+ }
+ }
+ };
+
+ /**
+ * Called when an error is encountered to deal with it.
+ */
+ this.handleError = function(error) {
+ this.status = 0;
+ this.statusText = error;
+ this.responseText = error.stack;
+ errorFlag = true;
+ setState(this.DONE);
+ this.dispatchEvent('error');
+ };
+
+ /**
+ * Aborts a request.
+ */
+ this.abort = function() {
+ if (request) {
+ request.abort();
+ request = null;
+ }
+
+ headers = defaultHeaders;
+ this.status = 0;
+ this.responseText = "";
+ this.responseXML = "";
+
+ errorFlag = true;
+
+ if (this.readyState !== this.UNSENT
+ && (this.readyState !== this.OPENED || sendFlag)
+ && this.readyState !== this.DONE) {
+ sendFlag = false;
+ setState(this.DONE);
+ }
+ this.readyState = this.UNSENT;
+ this.dispatchEvent('abort');
+ };
+
+ /**
+ * Adds an event listener. Preferred method of binding to events.
+ */
+ this.addEventListener = function(event, callback) {
+ if (!(event in listeners)) {
+ listeners[event] = [];
+ }
+ // Currently allows duplicate callbacks. Should it?
+ listeners[event].push(callback);
+ };
+
+ /**
+ * Remove an event callback that has already been bound.
+ * Only works on the matching funciton, cannot be a copy.
+ */
+ this.removeEventListener = function(event, callback) {
+ if (event in listeners) {
+ // Filter will return a new array with the callback removed
+ listeners[event] = listeners[event].filter(function(ev) {
+ return ev !== callback;
+ });
+ }
+ };
+
+ /**
+ * Dispatch any events, including both "on" methods and events attached using addEventListener.
+ */
+ this.dispatchEvent = function(event) {
+ if (typeof self["on" + event] === "function") {
+ self["on" + event]();
+ }
+ if (event in listeners) {
+ for (var i = 0, len = listeners[event].length; i < len; i++) {
+ listeners[event][i].call(self);
+ }
+ }
+ };
+
+ /**
+ * Changes readyState and calls onreadystatechange.
+ *
+ * @param int state New state
+ */
+ var setState = function(state) {
+ if (state == self.LOADING || self.readyState !== state) {
+ self.readyState = state;
+
+ if (settings.async || self.readyState < self.OPENED || self.readyState === self.DONE) {
+ self.dispatchEvent("readystatechange");
+ }
+
+ if (self.readyState === self.DONE && !errorFlag) {
+ self.dispatchEvent("load");
+ // @TODO figure out InspectorInstrumentation::didLoadXHR(cookie)
+ self.dispatchEvent("loadend");
+ }
+ }
+ };
+};
diff --git a/node_modules/xmlhttprequest/package.json b/node_modules/xmlhttprequest/package.json
new file mode 100644
index 0000000..c14434d
--- /dev/null
+++ b/node_modules/xmlhttprequest/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "xmlhttprequest",
+ "description": "XMLHttpRequest for Node",
+ "version": "1.8.0",
+ "author": {
+ "name": "Dan DeFelippi",
+ "url": "http://driverdan.com"
+ },
+ "keywords": ["xhr", "ajax"],
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/driverdan/node-XMLHttpRequest.git"
+ },
+ "bugs": "http://github.com/driverdan/node-XMLHttpRequest/issues",
+ "engines": {
+ "node": ">=0.4.0"
+ },
+ "directories": {
+ "lib": "./lib",
+ "example": "./example"
+ },
+ "main": "./lib/XMLHttpRequest.js"
+}
diff --git a/package-lock.json b/package-lock.json
index 3820fe2..f06aeb2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,21 +1,22 @@
{
- "name": "message-board-backend",
+ "name": "yg-task-list",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "message-board-backend",
+ "name": "yg-task-list",
"version": "1.0.0",
"dependencies": {
"body-parser": "^1.19.0",
"cors": "^2.8.5",
- "express": "^4.17.1"
+ "express": "^4.17.1",
+ "xmlhttprequest": "^1.8.0"
}
},
"node_modules/accepts": {
"version": "1.3.8",
- "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
"dependencies": {
"mime-types": "~2.1.34",
@@ -27,12 +28,12 @@
},
"node_modules/array-flatten": {
"version": "1.1.1",
- "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
},
"node_modules/body-parser": {
"version": "1.20.3",
- "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.3.tgz",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
"dependencies": {
"bytes": "3.1.2",
@@ -55,32 +56,15 @@
},
"node_modules/bytes": {
"version": "3.1.2",
- "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
"engines": {
"node": ">= 0.8"
}
},
- "node_modules/call-bind": {
- "version": "1.0.8",
- "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.8.tgz",
- "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
- "es-define-property": "^1.0.0",
- "get-intrinsic": "^1.2.4",
- "set-function-length": "^1.2.2"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/call-bind-apply-helpers": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
"integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -91,12 +75,12 @@
}
},
"node_modules/call-bound": {
- "version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.2.tgz",
- "integrity": "sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
+ "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
"dependencies": {
- "call-bind": "^1.0.8",
- "get-intrinsic": "^1.2.5"
+ "call-bind-apply-helpers": "^1.0.1",
+ "get-intrinsic": "^1.2.6"
},
"engines": {
"node": ">= 0.4"
@@ -107,7 +91,7 @@
},
"node_modules/content-disposition": {
"version": "0.5.4",
- "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
"dependencies": {
"safe-buffer": "5.2.1"
@@ -118,7 +102,7 @@
},
"node_modules/content-type": {
"version": "1.0.5",
- "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
"engines": {
"node": ">= 0.6"
@@ -126,7 +110,7 @@
},
"node_modules/cookie": {
"version": "0.7.1",
- "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
"engines": {
"node": ">= 0.6"
@@ -134,12 +118,12 @@
},
"node_modules/cookie-signature": {
"version": "1.0.6",
- "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
},
"node_modules/cors": {
"version": "2.8.5",
- "resolved": "https://registry.npmmirror.com/cors/-/cors-2.8.5.tgz",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
"dependencies": {
"object-assign": "^4",
@@ -151,31 +135,15 @@
},
"node_modules/debug": {
"version": "2.6.9",
- "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"dependencies": {
"ms": "2.0.0"
}
},
- "node_modules/define-data-property": {
- "version": "1.1.4",
- "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
- "dependencies": {
- "es-define-property": "^1.0.0",
- "es-errors": "^1.3.0",
- "gopd": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/depd": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"engines": {
"node": ">= 0.8"
@@ -183,7 +151,7 @@
},
"node_modules/destroy": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
"engines": {
"node": ">= 0.8",
@@ -191,11 +159,11 @@
}
},
"node_modules/dunder-proto": {
- "version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.0.tgz",
- "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
"dependencies": {
- "call-bind-apply-helpers": "^1.0.0",
+ "call-bind-apply-helpers": "^1.0.1",
"es-errors": "^1.3.0",
"gopd": "^1.2.0"
},
@@ -205,12 +173,12 @@
},
"node_modules/ee-first": {
"version": "1.1.1",
- "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/encodeurl": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
"engines": {
"node": ">= 0.8"
@@ -218,7 +186,7 @@
},
"node_modules/es-define-property": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"engines": {
"node": ">= 0.4"
@@ -226,7 +194,7 @@
},
"node_modules/es-errors": {
"version": "1.3.0",
- "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
"engines": {
"node": ">= 0.4"
@@ -234,7 +202,7 @@
},
"node_modules/es-object-atoms": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
"integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
"dependencies": {
"es-errors": "^1.3.0"
@@ -245,12 +213,12 @@
},
"node_modules/escape-html": {
"version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
},
"node_modules/etag": {
"version": "1.8.1",
- "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
"engines": {
"node": ">= 0.6"
@@ -258,7 +226,7 @@
},
"node_modules/express": {
"version": "4.21.2",
- "resolved": "https://registry.npmmirror.com/express/-/express-4.21.2.tgz",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
"dependencies": {
"accepts": "~1.3.8",
@@ -303,7 +271,7 @@
},
"node_modules/finalhandler": {
"version": "1.3.1",
- "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.3.1.tgz",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
"dependencies": {
"debug": "2.6.9",
@@ -320,7 +288,7 @@
},
"node_modules/forwarded": {
"version": "0.2.0",
- "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
"engines": {
"node": ">= 0.6"
@@ -328,7 +296,7 @@
},
"node_modules/fresh": {
"version": "0.5.2",
- "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
"engines": {
"node": ">= 0.6"
@@ -336,7 +304,7 @@
},
"node_modules/function-bind": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -344,7 +312,7 @@
},
"node_modules/get-intrinsic": {
"version": "1.2.6",
- "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.6.tgz",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz",
"integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
@@ -367,7 +335,7 @@
},
"node_modules/gopd": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"engines": {
"node": ">= 0.4"
@@ -376,20 +344,9 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/has-property-descriptors": {
- "version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
- "dependencies": {
- "es-define-property": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
"node_modules/has-symbols": {
"version": "1.1.0",
- "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"engines": {
"node": ">= 0.4"
@@ -400,7 +357,7 @@
},
"node_modules/hasown": {
"version": "2.0.2",
- "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"dependencies": {
"function-bind": "^1.1.2"
@@ -411,7 +368,7 @@
},
"node_modules/http-errors": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
"dependencies": {
"depd": "2.0.0",
@@ -426,7 +383,7 @@
},
"node_modules/iconv-lite": {
"version": "0.4.24",
- "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
@@ -437,12 +394,12 @@
},
"node_modules/inherits": {
"version": "2.0.4",
- "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"node_modules/ipaddr.js": {
"version": "1.9.1",
- "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
"engines": {
"node": ">= 0.10"
@@ -450,7 +407,7 @@
},
"node_modules/math-intrinsics": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz",
"integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==",
"engines": {
"node": ">= 0.4"
@@ -458,7 +415,7 @@
},
"node_modules/media-typer": {
"version": "0.3.0",
- "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
"engines": {
"node": ">= 0.6"
@@ -466,7 +423,7 @@
},
"node_modules/merge-descriptors": {
"version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -474,7 +431,7 @@
},
"node_modules/methods": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
"engines": {
"node": ">= 0.6"
@@ -482,7 +439,7 @@
},
"node_modules/mime": {
"version": "1.6.0",
- "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"bin": {
"mime": "cli.js"
@@ -493,7 +450,7 @@
},
"node_modules/mime-db": {
"version": "1.52.0",
- "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"engines": {
"node": ">= 0.6"
@@ -501,7 +458,7 @@
},
"node_modules/mime-types": {
"version": "2.1.35",
- "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dependencies": {
"mime-db": "1.52.0"
@@ -512,12 +469,12 @@
},
"node_modules/ms": {
"version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
},
"node_modules/negotiator": {
"version": "0.6.3",
- "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
"engines": {
"node": ">= 0.6"
@@ -525,7 +482,7 @@
},
"node_modules/object-assign": {
"version": "4.1.1",
- "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"engines": {
"node": ">=0.10.0"
@@ -533,7 +490,7 @@
},
"node_modules/object-inspect": {
"version": "1.13.3",
- "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.3.tgz",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
"integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
"engines": {
"node": ">= 0.4"
@@ -544,7 +501,7 @@
},
"node_modules/on-finished": {
"version": "2.4.1",
- "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
"dependencies": {
"ee-first": "1.1.1"
@@ -555,7 +512,7 @@
},
"node_modules/parseurl": {
"version": "1.3.3",
- "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
"engines": {
"node": ">= 0.8"
@@ -563,12 +520,12 @@
},
"node_modules/path-to-regexp": {
"version": "0.1.12",
- "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="
},
"node_modules/proxy-addr": {
"version": "2.0.7",
- "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
"dependencies": {
"forwarded": "0.2.0",
@@ -580,7 +537,7 @@
},
"node_modules/qs": {
"version": "6.13.0",
- "resolved": "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
"dependencies": {
"side-channel": "^1.0.6"
@@ -594,7 +551,7 @@
},
"node_modules/range-parser": {
"version": "1.2.1",
- "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
"engines": {
"node": ">= 0.6"
@@ -602,7 +559,7 @@
},
"node_modules/raw-body": {
"version": "2.5.2",
- "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
"dependencies": {
"bytes": "3.1.2",
@@ -616,7 +573,7 @@
},
"node_modules/safe-buffer": {
"version": "5.2.1",
- "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"funding": [
{
@@ -635,12 +592,12 @@
},
"node_modules/safer-buffer": {
"version": "2.1.2",
- "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"node_modules/send": {
"version": "0.19.0",
- "resolved": "https://registry.npmmirror.com/send/-/send-0.19.0.tgz",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
"dependencies": {
"debug": "2.6.9",
@@ -663,7 +620,7 @@
},
"node_modules/send/node_modules/encodeurl": {
"version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
"engines": {
"node": ">= 0.8"
@@ -671,12 +628,12 @@
},
"node_modules/send/node_modules/ms": {
"version": "2.1.3",
- "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
},
"node_modules/serve-static": {
"version": "1.16.2",
- "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.16.2.tgz",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
"dependencies": {
"encodeurl": "~2.0.0",
@@ -688,30 +645,14 @@
"node": ">= 0.8.0"
}
},
- "node_modules/set-function-length": {
- "version": "1.2.2",
- "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz",
- "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
- "dependencies": {
- "define-data-property": "^1.1.4",
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2",
- "get-intrinsic": "^1.2.4",
- "gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
"node_modules/setprototypeof": {
"version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
},
"node_modules/side-channel": {
"version": "1.1.0",
- "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -729,7 +670,7 @@
},
"node_modules/side-channel-list": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
"dependencies": {
"es-errors": "^1.3.0",
@@ -744,7 +685,7 @@
},
"node_modules/side-channel-map": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
"dependencies": {
"call-bound": "^1.0.2",
@@ -761,7 +702,7 @@
},
"node_modules/side-channel-weakmap": {
"version": "1.0.2",
- "resolved": "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"dependencies": {
"call-bound": "^1.0.2",
@@ -779,7 +720,7 @@
},
"node_modules/statuses": {
"version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
"engines": {
"node": ">= 0.8"
@@ -787,7 +728,7 @@
},
"node_modules/toidentifier": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
"engines": {
"node": ">=0.6"
@@ -795,7 +736,7 @@
},
"node_modules/type-is": {
"version": "1.6.18",
- "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
"dependencies": {
"media-typer": "0.3.0",
@@ -807,7 +748,7 @@
},
"node_modules/unpipe": {
"version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
"engines": {
"node": ">= 0.8"
@@ -815,7 +756,7 @@
},
"node_modules/utils-merge": {
"version": "1.0.1",
- "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
"engines": {
"node": ">= 0.4.0"
@@ -823,11 +764,19 @@
},
"node_modules/vary": {
"version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
"engines": {
"node": ">= 0.8"
}
+ },
+ "node_modules/xmlhttprequest": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz",
+ "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==",
+ "engines": {
+ "node": ">=0.4.0"
+ }
}
}
}
diff --git a/package.json b/package.json
index 647ccae..4640726 100644
--- a/package.json
+++ b/package.json
@@ -3,12 +3,16 @@
"version": "1.0.0",
"description": "Backend for yg-task-list",
"main": "src/app.js",
+ "type": "module",
"scripts": {
"start": "node src/app.js"
},
"dependencies": {
"body-parser": "^1.19.0",
"cors": "^2.8.5",
- "express": "^4.17.1"
+ "express": "^4.17.1",
+ "xmlhttprequest": "^1.8.0",
+ "node-fetch": "^2.6.1",
+ "wrangler": "^3.0.0"
}
-}
\ No newline at end of file
+}
diff --git a/script.js b/script.js
index b0dbc88..1e124db 100644
--- a/script.js
+++ b/script.js
@@ -5,8 +5,19 @@ document.addEventListener('DOMContentLoaded', function () {
const messagesDiv = document.getElementById('messages');
const passwordInput = document.getElementById('passwordInput'); // 密码输入框
const container = document.querySelector('.container'); // 容器
-
+ const fetch = require('node-fetch');
+ //workers.test
const correctPassword = '70727'; // 设置正确的密码
+ if (typeof process !== 'undefined' && process.env.NODE_ENV === 'development') {
+ // 开发环境使用 XMLHttpRequest
+ const { XMLHttpRequest } = require('xmlhttprequest');
+ global.XMLHttpRequest = XMLHttpRequest;
+ } else {
+ // 生产环境使用 fetch
+ const makeRequest = async (url, options) => {
+ return fetch(url, options);
+ }
+ }
// 点击按钮时显示密码输入框
showPasswordButton.addEventListener('click', function () {
diff --git a/src/app.js b/src/app.js
index 9f0c9ba..38c5cd6 100644
--- a/src/app.js
+++ b/src/app.js
@@ -12,4 +12,4 @@ app.use('/api/messages', messageRoutes);
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
-});
\ No newline at end of file
+});
diff --git a/src/index.js b/src/index.js
new file mode 100644
index 0000000..0171b43
--- /dev/null
+++ b/src/index.js
@@ -0,0 +1,23 @@
+addEventListener('fetch', event => {
+ event.respondWith(handleRequest(event.request))
+ })
+
+ async function handleRequest(request) {
+ const url = new URL(request.url)
+
+ // 处理静态资源
+ if (url.pathname.startsWith('/static')) {
+ return fetch(request)
+ }
+
+ // 处理 API 请求
+ if (url.pathname.startsWith('/api')) {
+ // 处理您的 API 逻辑
+ return new Response(JSON.stringify({ status: 'ok' }), {
+ headers: { 'Content-Type': 'application/json' }
+ })
+ }
+
+ // 默认返回 index.html
+ return fetch(`${url.origin}/index.html`)
+ }
\ No newline at end of file
diff --git a/src/wrangler.toml b/src/wrangler.toml
new file mode 100644
index 0000000..b7a1af1
--- /dev/null
+++ b/src/wrangler.toml
@@ -0,0 +1,7 @@
+name = "messages-api"
+main = "app.js"
+node_compat = true
+compatibility_date = "2024-11-11"
+workers_dev = true
+account_id = "2bd2e037a56bddc2449360092b62cc21"
+zone_id = "22fc705c7ea57686226166a935e2e88c"
diff --git a/styles.css b/styles.css
index 9753866..b74548d 100644
--- a/styles.css
+++ b/styles.css
@@ -59,7 +59,6 @@ a:hover {
font-size: 0.3em;
font-weight: 700;
letter-spacing: 2px; /* 字母间距 */
- size: 10px; /* 设置尺寸 */
top: 20px;
left: 20px;
background-color: grey; /* 背景颜色 */
diff --git a/wrangler.toml b/wrangler.toml
new file mode 100644
index 0000000..70dd79b
--- /dev/null
+++ b/wrangler.toml
@@ -0,0 +1,14 @@
+name = "messages-api"
+main = "src/app.js"
+node_compat = true
+compatibility_date = "2024-11-11"
+workers_dev = true
+API_KEY = "f-POJIkm9G9zO9rwHRT5VIUMQoqQsvVAM_ROIbqW“
+account_id = "2bd2e037a56bddc2449360092b62cc21"
+zone_id = "22fc705c7ea57686226166a935e2e88c"
+[build]
+command = "npm run build"
+[build.upload]
+format = "service-worker"
+[site]
+bucket = "./public" # 存放静态资源的目录
\ No newline at end of file