diff --git a/.gitignore b/.gitignore
index 09b4fb5..e9ba59e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,6 @@ outputs/
node_modules/
.vscode/
.cache/
-uploads/
\ No newline at end of file
+uploads/
+.cache/
+.vscode/
\ No newline at end of file
diff --git a/.php-ini b/.php-ini
deleted file mode 100644
index 104cf3f..0000000
--- a/.php-ini
+++ /dev/null
@@ -1 +0,0 @@
-/var/www/vhosts/system/viabiliza.sothis.com.br/etc/php.ini
\ No newline at end of file
diff --git a/.php-version b/.php-version
deleted file mode 100644
index 0dc0f32..0000000
--- a/.php-version
+++ /dev/null
@@ -1 +0,0 @@
-8.2
\ No newline at end of file
diff --git a/app.js b/app.js
index 0b06d0e..6b94179 100644
--- a/app.js
+++ b/app.js
@@ -1,3 +1,5 @@
+const requireAuth = require('./middlewares/requireAuth');
+const authRoutes = require('./routes/authRoutes');
const express = require('express');
const path = require('path');
const session = require('express-session');
@@ -19,17 +21,37 @@ app.use(session({
cookie: { secure: false } // secure should be true behind HTTPS in prod
}));
+// Registrar authRoutes primeiro (rotas de login)
+app.use(authRoutes);
+
// Dev bypass for Microsoft auth / session (only when explicitly enabled)
+// MUST come before the global protection middleware so it can insert req.session.user
if (process.env.NODE_ENV === 'development' && process.env.DEV_SKIP_AUTH === 'true') {
app.use((req, res, next) => {
if (!req.session) return next();
- // mark a simple user in session so handlers that expect auth work in dev
- req.session.user = req.session.user || { id: 'dev', name: 'developer' };
+ // note: property must be `authenticated` (with 'h') so requireAuth recognizes it
+ req.session.user = req.session.user || { authenticated: true, id: 'dev', name: 'developer' };
next();
});
}
-// Serve static assets (UI)
+// Note: static assets must be served AFTER the global protection middleware
+// when you want the site to redirect to /login before delivering the UI.
+
+// Proteção global (após static + dev bypass)
+app.use((req, res, next) => {
+ if (
+ req.path.startsWith('/auth') ||
+ req.path === '/login' ||
+ req.path === '/health'
+ ) {
+ return next();
+ }
+
+ return requireAuth(req, res, next);
+});
+
+// Serve static assets (UI) AFTER protection so the app redirects to /login first
app.use(express.static(path.join(__dirname, 'public')));
// Mount API routes
diff --git a/middlewares/requireAuth.js b/middlewares/requireAuth.js
new file mode 100644
index 0000000..ceced9a
--- /dev/null
+++ b/middlewares/requireAuth.js
@@ -0,0 +1,12 @@
+module.exports = function requireAuth(req, res, next) {
+ if (req.session?.user?.authenticated) {
+ return next();
+ }
+
+ // chamadas AJAX / API
+ if (req.xhr || req.headers.accept?.includes('application/json')) {
+ return res.status(401).json({ error: 'not_authenticated' });
+ }
+
+ return res.redirect('/login');
+};
diff --git a/node_modules/.bin/csv-parser b/node_modules/.bin/csv-parser
deleted file mode 100644
index 18b7764..0000000
--- a/node_modules/.bin/csv-parser
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*|*MINGW*|*MSYS*)
- if command -v cygpath > /dev/null 2>&1; then
- basedir=`cygpath -w "$basedir"`
- fi
- ;;
-esac
-
-if [ -x "$basedir/node" ]; then
- exec "$basedir/node" "$basedir/../csv-parser/bin/csv-parser" "$@"
-else
- exec node "$basedir/../csv-parser/bin/csv-parser" "$@"
-fi
diff --git a/node_modules/.bin/csv-parser.cmd b/node_modules/.bin/csv-parser.cmd
deleted file mode 100644
index c6bcc9d..0000000
--- a/node_modules/.bin/csv-parser.cmd
+++ /dev/null
@@ -1,17 +0,0 @@
-@ECHO off
-GOTO start
-:find_dp0
-SET dp0=%~dp0
-EXIT /b
-:start
-SETLOCAL
-CALL :find_dp0
-
-IF EXIST "%dp0%\node.exe" (
- SET "_prog=%dp0%\node.exe"
-) ELSE (
- SET "_prog=node"
- SET PATHEXT=%PATHEXT:;.JS;=;%
-)
-
-endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\csv-parser\bin\csv-parser" %*
diff --git a/node_modules/.bin/csv-parser.ps1 b/node_modules/.bin/csv-parser.ps1
deleted file mode 100644
index 34496c2..0000000
--- a/node_modules/.bin/csv-parser.ps1
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env pwsh
-$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
-
-$exe=""
-if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
- # Fix case when both the Windows and Linux builds of Node
- # are installed in the same directory
- $exe=".exe"
-}
-$ret=0
-if (Test-Path "$basedir/node$exe") {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "$basedir/node$exe" "$basedir/../csv-parser/bin/csv-parser" $args
- } else {
- & "$basedir/node$exe" "$basedir/../csv-parser/bin/csv-parser" $args
- }
- $ret=$LASTEXITCODE
-} else {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "node$exe" "$basedir/../csv-parser/bin/csv-parser" $args
- } else {
- & "node$exe" "$basedir/../csv-parser/bin/csv-parser" $args
- }
- $ret=$LASTEXITCODE
-}
-exit $ret
diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime
deleted file mode 100644
index 7751de3..0000000
--- a/node_modules/.bin/mime
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*|*MINGW*|*MSYS*)
- if command -v cygpath > /dev/null 2>&1; then
- basedir=`cygpath -w "$basedir"`
- fi
- ;;
-esac
-
-if [ -x "$basedir/node" ]; then
- exec "$basedir/node" "$basedir/../mime/cli.js" "$@"
-else
- exec node "$basedir/../mime/cli.js" "$@"
-fi
diff --git a/node_modules/.bin/mime.cmd b/node_modules/.bin/mime.cmd
deleted file mode 100644
index a9e48f1..0000000
--- a/node_modules/.bin/mime.cmd
+++ /dev/null
@@ -1,17 +0,0 @@
-@ECHO off
-GOTO start
-:find_dp0
-SET dp0=%~dp0
-EXIT /b
-:start
-SETLOCAL
-CALL :find_dp0
-
-IF EXIST "%dp0%\node.exe" (
- SET "_prog=%dp0%\node.exe"
-) ELSE (
- SET "_prog=node"
- SET PATHEXT=%PATHEXT:;.JS;=;%
-)
-
-endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %*
diff --git a/node_modules/.bin/mime.ps1 b/node_modules/.bin/mime.ps1
deleted file mode 100644
index 2222f40..0000000
--- a/node_modules/.bin/mime.ps1
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env pwsh
-$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
-
-$exe=""
-if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
- # Fix case when both the Windows and Linux builds of Node
- # are installed in the same directory
- $exe=".exe"
-}
-$ret=0
-if (Test-Path "$basedir/node$exe") {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
- } else {
- & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
- }
- $ret=$LASTEXITCODE
-} else {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "node$exe" "$basedir/../mime/cli.js" $args
- } else {
- & "node$exe" "$basedir/../mime/cli.js" $args
- }
- $ret=$LASTEXITCODE
-}
-exit $ret
diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp
deleted file mode 100644
index 1ab9c81..0000000
--- a/node_modules/.bin/mkdirp
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*|*MINGW*|*MSYS*)
- if command -v cygpath > /dev/null 2>&1; then
- basedir=`cygpath -w "$basedir"`
- fi
- ;;
-esac
-
-if [ -x "$basedir/node" ]; then
- exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
-else
- exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
-fi
diff --git a/node_modules/.bin/mkdirp.cmd b/node_modules/.bin/mkdirp.cmd
deleted file mode 100644
index 351da9d..0000000
--- a/node_modules/.bin/mkdirp.cmd
+++ /dev/null
@@ -1,17 +0,0 @@
-@ECHO off
-GOTO start
-:find_dp0
-SET dp0=%~dp0
-EXIT /b
-:start
-SETLOCAL
-CALL :find_dp0
-
-IF EXIST "%dp0%\node.exe" (
- SET "_prog=%dp0%\node.exe"
-) ELSE (
- SET "_prog=node"
- SET PATHEXT=%PATHEXT:;.JS;=;%
-)
-
-endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
diff --git a/node_modules/.bin/mkdirp.ps1 b/node_modules/.bin/mkdirp.ps1
deleted file mode 100644
index 911e854..0000000
--- a/node_modules/.bin/mkdirp.ps1
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env pwsh
-$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
-
-$exe=""
-if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
- # Fix case when both the Windows and Linux builds of Node
- # are installed in the same directory
- $exe=".exe"
-}
-$ret=0
-if (Test-Path "$basedir/node$exe") {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
- } else {
- & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
- }
- $ret=$LASTEXITCODE
-} else {
- # Support pipeline input
- if ($MyInvocation.ExpectingInput) {
- $input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
- } else {
- & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
- }
- $ret=$LASTEXITCODE
-}
-exit $ret
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
deleted file mode 100644
index 7f30b00..0000000
--- a/node_modules/.package-lock.json
+++ /dev/null
@@ -1,1290 +0,0 @@
-{
- "name": "aplicacao_viabilidade",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "node_modules/@fast-csv/format": {
- "version": "4.3.5",
- "resolved": "https://registry.npmjs.org/@fast-csv/format/-/format-4.3.5.tgz",
- "integrity": "sha512-8iRn6QF3I8Ak78lNAa+Gdl5MJJBM5vRHivFtMRUWINdevNo00K7OXxS2PshawLKTejVwieIlPmK5YlLu6w4u8A==",
- "license": "MIT",
- "dependencies": {
- "@types/node": "^14.0.1",
- "lodash.escaperegexp": "^4.1.2",
- "lodash.isboolean": "^3.0.3",
- "lodash.isequal": "^4.5.0",
- "lodash.isfunction": "^3.0.9",
- "lodash.isnil": "^4.0.0"
- }
- },
- "node_modules/@fast-csv/parse": {
- "version": "4.3.6",
- "resolved": "https://registry.npmjs.org/@fast-csv/parse/-/parse-4.3.6.tgz",
- "integrity": "sha512-uRsLYksqpbDmWaSmzvJcuApSEe38+6NQZBUsuAyMZKqHxH0g1wcJgsKUvN3WC8tewaqFjBMMGrkHmC+T7k8LvA==",
- "license": "MIT",
- "dependencies": {
- "@types/node": "^14.0.1",
- "lodash.escaperegexp": "^4.1.2",
- "lodash.groupby": "^4.6.0",
- "lodash.isfunction": "^3.0.9",
- "lodash.isnil": "^4.0.0",
- "lodash.isundefined": "^3.0.1",
- "lodash.uniq": "^4.5.0"
- }
- },
- "node_modules/@types/node": {
- "version": "14.18.63",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz",
- "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==",
- "license": "MIT"
- },
- "node_modules/accepts": {
- "version": "1.3.8",
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
- "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
- "license": "MIT",
- "dependencies": {
- "mime-types": "~2.1.34",
- "negotiator": "0.6.3"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/append-field": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
- "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
- "license": "MIT"
- },
- "node_modules/array-flatten": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
- "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
- "license": "MIT"
- },
- "node_modules/asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
- "license": "MIT"
- },
- "node_modules/axios": {
- "version": "1.12.2",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz",
- "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
- "license": "MIT",
- "dependencies": {
- "follow-redirects": "^1.15.6",
- "form-data": "^4.0.4",
- "proxy-from-env": "^1.1.0"
- }
- },
- "node_modules/body-parser": {
- "version": "1.20.3",
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
- "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
- "license": "MIT",
- "dependencies": {
- "bytes": "3.1.2",
- "content-type": "~1.0.5",
- "debug": "2.6.9",
- "depd": "2.0.0",
- "destroy": "1.2.0",
- "http-errors": "2.0.0",
- "iconv-lite": "0.4.24",
- "on-finished": "2.4.1",
- "qs": "6.13.0",
- "raw-body": "2.5.2",
- "type-is": "~1.6.18",
- "unpipe": "1.0.0"
- },
- "engines": {
- "node": ">= 0.8",
- "npm": "1.2.8000 || >= 1.4.16"
- }
- },
- "node_modules/buffer-from": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
- "license": "MIT"
- },
- "node_modules/busboy": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
- "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
- "dependencies": {
- "streamsearch": "^1.1.0"
- },
- "engines": {
- "node": ">=10.16.0"
- }
- },
- "node_modules/bytes": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/call-bind-apply-helpers": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/call-bound": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
- "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.2",
- "get-intrinsic": "^1.3.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "license": "MIT",
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/concat-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
- "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
- "engines": [
- "node >= 6.0"
- ],
- "license": "MIT",
- "dependencies": {
- "buffer-from": "^1.0.0",
- "inherits": "^2.0.3",
- "readable-stream": "^3.0.2",
- "typedarray": "^0.0.6"
- }
- },
- "node_modules/content-disposition": {
- "version": "0.5.4",
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
- "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
- "license": "MIT",
- "dependencies": {
- "safe-buffer": "5.2.1"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/content-type": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/cookie": {
- "version": "0.7.1",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
- "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/cookie-signature": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
- "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
- "license": "MIT"
- },
- "node_modules/cors": {
- "version": "2.8.5",
- "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
- "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
- "license": "MIT",
- "dependencies": {
- "object-assign": "^4",
- "vary": "^1"
- },
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/csv-parser": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/csv-parser/-/csv-parser-3.2.0.tgz",
- "integrity": "sha512-fgKbp+AJbn1h2dcAHKIdKNSSjfp43BZZykXsCjzALjKy80VXQNHPFJ6T9Afwdzoj24aMkq8GwDS7KGcDPpejrA==",
- "license": "MIT",
- "bin": {
- "csv-parser": "bin/csv-parser"
- },
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "license": "MIT",
- "dependencies": {
- "ms": "2.0.0"
- }
- },
- "node_modules/delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
- "license": "MIT",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/depd": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
- "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/destroy": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
- "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8",
- "npm": "1.2.8000 || >= 1.4.16"
- }
- },
- "node_modules/dotenv": {
- "version": "17.2.3",
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz",
- "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==",
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://dotenvx.com"
- }
- },
- "node_modules/dunder-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.1",
- "es-errors": "^1.3.0",
- "gopd": "^1.2.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/ee-first": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
- "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
- "license": "MIT"
- },
- "node_modules/encodeurl": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/es-define-property": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-errors": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-object-atoms": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/es-set-tostringtag": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.6",
- "has-tostringtag": "^1.0.2",
- "hasown": "^2.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/escape-html": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
- "license": "MIT"
- },
- "node_modules/etag": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/express": {
- "version": "4.21.2",
- "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
- "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
- "license": "MIT",
- "dependencies": {
- "accepts": "~1.3.8",
- "array-flatten": "1.1.1",
- "body-parser": "1.20.3",
- "content-disposition": "0.5.4",
- "content-type": "~1.0.4",
- "cookie": "0.7.1",
- "cookie-signature": "1.0.6",
- "debug": "2.6.9",
- "depd": "2.0.0",
- "encodeurl": "~2.0.0",
- "escape-html": "~1.0.3",
- "etag": "~1.8.1",
- "finalhandler": "1.3.1",
- "fresh": "0.5.2",
- "http-errors": "2.0.0",
- "merge-descriptors": "1.0.3",
- "methods": "~1.1.2",
- "on-finished": "2.4.1",
- "parseurl": "~1.3.3",
- "path-to-regexp": "0.1.12",
- "proxy-addr": "~2.0.7",
- "qs": "6.13.0",
- "range-parser": "~1.2.1",
- "safe-buffer": "5.2.1",
- "send": "0.19.0",
- "serve-static": "1.16.2",
- "setprototypeof": "1.2.0",
- "statuses": "2.0.1",
- "type-is": "~1.6.18",
- "utils-merge": "1.0.1",
- "vary": "~1.1.2"
- },
- "engines": {
- "node": ">= 0.10.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/express-session": {
- "version": "1.18.2",
- "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.2.tgz",
- "integrity": "sha512-SZjssGQC7TzTs9rpPDuUrR23GNZ9+2+IkA/+IJWmvQilTr5OSliEHGF+D9scbIpdC6yGtTI0/VhaHoVes2AN/A==",
- "license": "MIT",
- "dependencies": {
- "cookie": "0.7.2",
- "cookie-signature": "1.0.7",
- "debug": "2.6.9",
- "depd": "~2.0.0",
- "on-headers": "~1.1.0",
- "parseurl": "~1.3.3",
- "safe-buffer": "5.2.1",
- "uid-safe": "~2.1.5"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/express-session/node_modules/cookie": {
- "version": "0.7.2",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
- "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/express-session/node_modules/cookie-signature": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
- "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
- "license": "MIT"
- },
- "node_modules/fast-csv": {
- "version": "4.3.6",
- "resolved": "https://registry.npmjs.org/fast-csv/-/fast-csv-4.3.6.tgz",
- "integrity": "sha512-2RNSpuwwsJGP0frGsOmTb9oUF+VkFSM4SyLTDgwf2ciHWTarN0lQTC+F2f/t5J9QjW+c65VFIAAu85GsvMIusw==",
- "license": "MIT",
- "dependencies": {
- "@fast-csv/format": "4.3.5",
- "@fast-csv/parse": "4.3.6"
- },
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/finalhandler": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
- "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
- "license": "MIT",
- "dependencies": {
- "debug": "2.6.9",
- "encodeurl": "~2.0.0",
- "escape-html": "~1.0.3",
- "on-finished": "2.4.1",
- "parseurl": "~1.3.3",
- "statuses": "2.0.1",
- "unpipe": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/follow-redirects": {
- "version": "1.15.11",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
- "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
- "funding": [
- {
- "type": "individual",
- "url": "https://github.com/sponsors/RubenVerborgh"
- }
- ],
- "license": "MIT",
- "engines": {
- "node": ">=4.0"
- },
- "peerDependenciesMeta": {
- "debug": {
- "optional": true
- }
- }
- },
- "node_modules/form-data": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
- "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
- "license": "MIT",
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "es-set-tostringtag": "^2.1.0",
- "hasown": "^2.0.2",
- "mime-types": "^2.1.12"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/forwarded": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/fresh": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
- "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/function-bind": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-intrinsic": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.2",
- "es-define-property": "^1.0.1",
- "es-errors": "^1.3.0",
- "es-object-atoms": "^1.1.1",
- "function-bind": "^1.1.2",
- "get-proto": "^1.0.1",
- "gopd": "^1.2.0",
- "has-symbols": "^1.1.0",
- "hasown": "^2.0.2",
- "math-intrinsics": "^1.1.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-proto": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
- "license": "MIT",
- "dependencies": {
- "dunder-proto": "^1.0.1",
- "es-object-atoms": "^1.0.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/gopd": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-symbols": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/has-tostringtag": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
- "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
- "license": "MIT",
- "dependencies": {
- "has-symbols": "^1.0.3"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/hasown": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
- "license": "MIT",
- "dependencies": {
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/http-errors": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
- "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
- "license": "MIT",
- "dependencies": {
- "depd": "2.0.0",
- "inherits": "2.0.4",
- "setprototypeof": "1.2.0",
- "statuses": "2.0.1",
- "toidentifier": "1.0.1"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
- "license": "MIT",
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "license": "ISC"
- },
- "node_modules/ipaddr.js": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz",
- "integrity": "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==",
- "license": "MIT",
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/lodash.escaperegexp": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz",
- "integrity": "sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==",
- "license": "MIT"
- },
- "node_modules/lodash.groupby": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz",
- "integrity": "sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw==",
- "license": "MIT"
- },
- "node_modules/lodash.isboolean": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
- "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
- "license": "MIT"
- },
- "node_modules/lodash.isequal": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
- "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==",
- "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.",
- "license": "MIT"
- },
- "node_modules/lodash.isfunction": {
- "version": "3.0.9",
- "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.9.tgz",
- "integrity": "sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==",
- "license": "MIT"
- },
- "node_modules/lodash.isnil": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/lodash.isnil/-/lodash.isnil-4.0.0.tgz",
- "integrity": "sha512-up2Mzq3545mwVnMhTDMdfoG1OurpA/s5t88JmQX809eH3C8491iu2sfKhTfhQtKY78oPNhiaHJUpT/dUDAAtng==",
- "license": "MIT"
- },
- "node_modules/lodash.isundefined": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/lodash.isundefined/-/lodash.isundefined-3.0.1.tgz",
- "integrity": "sha512-MXB1is3s899/cD8jheYYE2V9qTHwKvt+npCwpD+1Sxm3Q3cECXCiYHjeHWXNwr6Q0SOBPrYUDxendrO6goVTEA==",
- "license": "MIT"
- },
- "node_modules/lodash.uniq": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
- "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==",
- "license": "MIT"
- },
- "node_modules/math-intrinsics": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/media-typer": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
- "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/merge-descriptors": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
- "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/methods": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
- "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
- "license": "MIT",
- "bin": {
- "mime": "cli.js"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "license": "MIT",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/minimist": {
- "version": "1.2.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/mkdirp": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
- "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
- "license": "MIT",
- "dependencies": {
- "minimist": "^1.2.6"
- },
- "bin": {
- "mkdirp": "bin/cmd.js"
- }
- },
- "node_modules/ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
- "license": "MIT"
- },
- "node_modules/multer": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz",
- "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==",
- "license": "MIT",
- "dependencies": {
- "append-field": "^1.0.0",
- "busboy": "^1.6.0",
- "concat-stream": "^2.0.0",
- "mkdirp": "^0.5.6",
- "object-assign": "^4.1.1",
- "type-is": "^1.6.18",
- "xtend": "^4.0.2"
- },
- "engines": {
- "node": ">= 10.16.0"
- }
- },
- "node_modules/negotiator": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
- "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/object-inspect": {
- "version": "1.13.4",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
- "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/on-finished": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
- "license": "MIT",
- "dependencies": {
- "ee-first": "1.1.1"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/on-headers": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz",
- "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/parseurl": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/path-to-regexp": {
- "version": "0.1.12",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
- "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
- "license": "MIT"
- },
- "node_modules/proxy-addr": {
- "version": "2.0.7",
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
- "license": "MIT",
- "dependencies": {
- "forwarded": "0.2.0",
- "ipaddr.js": "1.9.1"
- },
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/proxy-addr/node_modules/ipaddr.js": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/proxy-from-env": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
- "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
- "license": "MIT"
- },
- "node_modules/qs": {
- "version": "6.13.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
- "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
- "license": "BSD-3-Clause",
- "dependencies": {
- "side-channel": "^1.0.6"
- },
- "engines": {
- "node": ">=0.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/querystring": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz",
- "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==",
- "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.",
- "license": "MIT",
- "engines": {
- "node": ">=0.4.x"
- }
- },
- "node_modules/random-bytes": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz",
- "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/range-parser": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/raw-body": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
- "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
- "license": "MIT",
- "dependencies": {
- "bytes": "3.1.2",
- "http-errors": "2.0.0",
- "iconv-lite": "0.4.24",
- "unpipe": "1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/readable-stream": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "license": "MIT",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT"
- },
- "node_modules/safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
- "license": "MIT"
- },
- "node_modules/send": {
- "version": "0.19.0",
- "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
- "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
- "license": "MIT",
- "dependencies": {
- "debug": "2.6.9",
- "depd": "2.0.0",
- "destroy": "1.2.0",
- "encodeurl": "~1.0.2",
- "escape-html": "~1.0.3",
- "etag": "~1.8.1",
- "fresh": "0.5.2",
- "http-errors": "2.0.0",
- "mime": "1.6.0",
- "ms": "2.1.3",
- "on-finished": "2.4.1",
- "range-parser": "~1.2.1",
- "statuses": "2.0.1"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/send/node_modules/encodeurl": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
- "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/send/node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "license": "MIT"
- },
- "node_modules/serve-static": {
- "version": "1.16.2",
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
- "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
- "license": "MIT",
- "dependencies": {
- "encodeurl": "~2.0.0",
- "escape-html": "~1.0.3",
- "parseurl": "~1.3.3",
- "send": "0.19.0"
- },
- "engines": {
- "node": ">= 0.8.0"
- }
- },
- "node_modules/setprototypeof": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
- "license": "ISC"
- },
- "node_modules/side-channel": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
- "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "object-inspect": "^1.13.3",
- "side-channel-list": "^1.0.0",
- "side-channel-map": "^1.0.1",
- "side-channel-weakmap": "^1.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/side-channel-list": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
- "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "object-inspect": "^1.13.3"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/side-channel-map": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
- "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
- "license": "MIT",
- "dependencies": {
- "call-bound": "^1.0.2",
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.5",
- "object-inspect": "^1.13.3"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/side-channel-weakmap": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
- "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
- "license": "MIT",
- "dependencies": {
- "call-bound": "^1.0.2",
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.5",
- "object-inspect": "^1.13.3",
- "side-channel-map": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/statuses": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
- "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/streamsearch": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
- "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "license": "MIT",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/toidentifier": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
- "license": "MIT",
- "engines": {
- "node": ">=0.6"
- }
- },
- "node_modules/type-is": {
- "version": "1.6.18",
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
- "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
- "license": "MIT",
- "dependencies": {
- "media-typer": "0.3.0",
- "mime-types": "~2.1.24"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/typedarray": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
- "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
- "license": "MIT"
- },
- "node_modules/uid-safe": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz",
- "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",
- "license": "MIT",
- "dependencies": {
- "random-bytes": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/unpipe": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
- "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
- "license": "MIT"
- },
- "node_modules/utils-merge": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
- "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.4.0"
- }
- },
- "node_modules/vary": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/xtend": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
- "license": "MIT",
- "engines": {
- "node": ">=0.4"
- }
- }
- }
-}
diff --git a/node_modules/@fast-csv/format/CHANGELOG.md b/node_modules/@fast-csv/format/CHANGELOG.md
deleted file mode 100644
index 28d9c3c..0000000
--- a/node_modules/@fast-csv/format/CHANGELOG.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-## [4.3.5](https://github.com/C2FO/fast-csv/compare/v4.3.4...v4.3.5) (2020-11-03)
-
-
-### Bug Fixes
-
-* **formatting,#446:** Do not quote fields that do not contain a quote ([13e688c](https://github.com/C2FO/fast-csv/commit/13e688cb38dcb67c7182211968c794146be54692)), closes [#446](https://github.com/C2FO/fast-csv/issues/446)
-
-
-
-
-
-## [4.3.4](https://github.com/C2FO/fast-csv/compare/v4.3.3...v4.3.4) (2020-11-03)
-
-
-### Bug Fixes
-
-* **formatter,#503:** Do not ignore rows when headers is false ([1560564](https://github.com/C2FO/fast-csv/commit/1560564819c8b1254ca4ad43487830a4296570f6)), closes [#503](https://github.com/C2FO/fast-csv/issues/503)
-
-
-
-
-
-## [4.3.3](https://github.com/C2FO/fast-csv/compare/v4.3.2...v4.3.3) (2020-10-30)
-
-**Note:** Version bump only for package @fast-csv/format
-
-
-
-
-
-## [4.3.1](https://github.com/C2FO/fast-csv/compare/v4.3.0...v4.3.1) (2020-06-23)
-
-**Note:** Version bump only for package @fast-csv/format
-
-
-
-
-
-# [4.3.0](https://github.com/C2FO/fast-csv/compare/v4.2.0...v4.3.0) (2020-05-27)
-
-**Note:** Version bump only for package @fast-csv/format
-
-
-
-
-
-# [4.2.0](https://github.com/C2FO/fast-csv/compare/v4.1.6...v4.2.0) (2020-05-19)
-
-
-### Features
-
-* **parsing:** Less restrictive row parsing type [#356](https://github.com/C2FO/fast-csv/issues/356) ([87d74ec](https://github.com/C2FO/fast-csv/commit/87d74ecd2cb16f3700b1942ebbbec221afe38790))
-
-
-
-
-
-## [4.1.5](https://github.com/C2FO/fast-csv/compare/v4.1.4...v4.1.5) (2020-05-15)
-
-**Note:** Version bump only for package @fast-csv/format
-
-
-
-
-
-## [4.1.4](https://github.com/C2FO/fast-csv/compare/v4.1.3...v4.1.4) (2020-05-15)
-
-**Note:** Version bump only for package @fast-csv/format
diff --git a/node_modules/@fast-csv/format/LICENSE b/node_modules/@fast-csv/format/LICENSE
deleted file mode 100644
index 34de49d..0000000
--- a/node_modules/@fast-csv/format/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2011-2019 C2FO
-
-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.
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/README.md b/node_modules/@fast-csv/format/README.md
deleted file mode 100644
index c02da11..0000000
--- a/node_modules/@fast-csv/format/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-[](https://www.npmjs.org/package/@fast-csv/format)
-[](https://travis-ci.org/C2FO/fast-csv)
-[](https://coveralls.io/github/C2FO/fast-csv?branch=master)
-[](https://snyk.io/test/github/C2FO/fast-csv?targetFile=packages/format/package.json)
-
-# `@fast-csv/format`
-
-`fast-csv` package to format CSVs.
-
-## Installation
-
-[Install Guide](https://c2fo.io/fast-csv/docs/introduction/install)
-
-## Usage
-
-To get started with `@fast-csv/format` [check out the docs](https://c2fo.io/fast-csv/docs/formatting/getting-started)
diff --git a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.d.ts b/node_modules/@fast-csv/format/build/src/CsvFormatterStream.d.ts
deleted file mode 100644
index 2ee8f57..0000000
--- a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-///
-import { Transform, TransformCallback } from 'stream';
-import { FormatterOptions } from './FormatterOptions';
-import { Row, RowTransformFunction } from './types';
-export declare class CsvFormatterStream extends Transform {
- private formatterOptions;
- private rowFormatter;
- private hasWrittenBOM;
- constructor(formatterOptions: FormatterOptions);
- transform(transformFunction: RowTransformFunction): CsvFormatterStream;
- _transform(row: I, encoding: string, cb: TransformCallback): void;
- _flush(cb: TransformCallback): void;
-}
diff --git a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js b/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js
deleted file mode 100644
index d414614..0000000
--- a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js
+++ /dev/null
@@ -1,63 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.CsvFormatterStream = void 0;
-const stream_1 = require("stream");
-const formatter_1 = require("./formatter");
-class CsvFormatterStream extends stream_1.Transform {
- constructor(formatterOptions) {
- super({ writableObjectMode: formatterOptions.objectMode });
- this.hasWrittenBOM = false;
- this.formatterOptions = formatterOptions;
- this.rowFormatter = new formatter_1.RowFormatter(formatterOptions);
- // if writeBOM is false then set to true
- // if writeBOM is true then set to false by default so it is written out
- this.hasWrittenBOM = !formatterOptions.writeBOM;
- }
- transform(transformFunction) {
- this.rowFormatter.rowTransform = transformFunction;
- return this;
- }
- _transform(row, encoding, cb) {
- let cbCalled = false;
- try {
- if (!this.hasWrittenBOM) {
- this.push(this.formatterOptions.BOM);
- this.hasWrittenBOM = true;
- }
- this.rowFormatter.format(row, (err, rows) => {
- if (err) {
- cbCalled = true;
- return cb(err);
- }
- if (rows) {
- rows.forEach((r) => {
- this.push(Buffer.from(r, 'utf8'));
- });
- }
- cbCalled = true;
- return cb();
- });
- }
- catch (e) {
- if (cbCalled) {
- throw e;
- }
- cb(e);
- }
- }
- _flush(cb) {
- this.rowFormatter.finish((err, rows) => {
- if (err) {
- return cb(err);
- }
- if (rows) {
- rows.forEach((r) => {
- this.push(Buffer.from(r, 'utf8'));
- });
- }
- return cb();
- });
- }
-}
-exports.CsvFormatterStream = CsvFormatterStream;
-//# sourceMappingURL=CsvFormatterStream.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js.map b/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js.map
deleted file mode 100644
index 1ee124b..0000000
--- a/node_modules/@fast-csv/format/build/src/CsvFormatterStream.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CsvFormatterStream.js","sourceRoot":"","sources":["../../src/CsvFormatterStream.ts"],"names":[],"mappings":";;;AAAA,mCAAsD;AAGtD,2CAA2C;AAE3C,MAAa,kBAAiD,SAAQ,kBAAS;IAO3E,YAAmB,gBAAwC;QACvD,KAAK,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC;QAHvD,kBAAa,GAAG,KAAK,CAAC;QAI1B,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAY,CAAC,gBAA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E;YACzC,IAAI,GAAG,EAAE;gBACL,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;aAClB;YACD,IAAI,IAAI,EAAE;gBACN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAQ,EAAE;oBACrB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;gBACtC,CAAC,CAAC,CAAC;aACN;YACD,OAAO,EAAE,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA9DD,gDA8DC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/FormatterOptions.d.ts b/node_modules/@fast-csv/format/build/src/FormatterOptions.d.ts
deleted file mode 100644
index b9e1c0e..0000000
--- a/node_modules/@fast-csv/format/build/src/FormatterOptions.d.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { Row, RowTransformFunction } from './types';
-interface QuoteColumnMap {
- [s: string]: boolean;
-}
-declare type QuoteColumns = boolean | boolean[] | QuoteColumnMap;
-export interface FormatterOptionsArgs {
- objectMode?: boolean;
- delimiter?: string;
- rowDelimiter?: string;
- quote?: string | boolean;
- escape?: string;
- quoteColumns?: QuoteColumns;
- quoteHeaders?: QuoteColumns;
- headers?: null | boolean | string[];
- writeHeaders?: boolean;
- includeEndRowDelimiter?: boolean;
- writeBOM?: boolean;
- transform?: RowTransformFunction;
- alwaysWriteHeaders?: boolean;
-}
-export declare class FormatterOptions {
- readonly objectMode: boolean;
- readonly delimiter: string;
- readonly rowDelimiter: string;
- readonly quote: string;
- readonly escape: string;
- readonly quoteColumns: QuoteColumns;
- readonly quoteHeaders: QuoteColumns;
- readonly headers: null | string[];
- readonly includeEndRowDelimiter: boolean;
- readonly transform?: RowTransformFunction;
- readonly shouldWriteHeaders: boolean;
- readonly writeBOM: boolean;
- readonly escapedQuote: string;
- readonly BOM: string;
- readonly alwaysWriteHeaders: boolean;
- constructor(opts?: FormatterOptionsArgs);
-}
-export {};
diff --git a/node_modules/@fast-csv/format/build/src/FormatterOptions.js b/node_modules/@fast-csv/format/build/src/FormatterOptions.js
deleted file mode 100644
index cf9ed98..0000000
--- a/node_modules/@fast-csv/format/build/src/FormatterOptions.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.FormatterOptions = void 0;
-class FormatterOptions {
- constructor(opts = {}) {
- var _a;
- this.objectMode = true;
- this.delimiter = ',';
- this.rowDelimiter = '\n';
- this.quote = '"';
- this.escape = this.quote;
- this.quoteColumns = false;
- this.quoteHeaders = this.quoteColumns;
- this.headers = null;
- this.includeEndRowDelimiter = false;
- this.writeBOM = false;
- this.BOM = '\ufeff';
- this.alwaysWriteHeaders = false;
- Object.assign(this, opts || {});
- if (typeof (opts === null || opts === void 0 ? void 0 : opts.quoteHeaders) === 'undefined') {
- this.quoteHeaders = this.quoteColumns;
- }
- if ((opts === null || opts === void 0 ? void 0 : opts.quote) === true) {
- this.quote = '"';
- }
- else if ((opts === null || opts === void 0 ? void 0 : opts.quote) === false) {
- this.quote = '';
- }
- if (typeof (opts === null || opts === void 0 ? void 0 : opts.escape) !== 'string') {
- this.escape = this.quote;
- }
- this.shouldWriteHeaders = !!this.headers && ((_a = opts.writeHeaders) !== null && _a !== void 0 ? _a : true);
- this.headers = Array.isArray(this.headers) ? this.headers : null;
- this.escapedQuote = `${this.escape}${this.quote}`;
- }
-}
-exports.FormatterOptions = FormatterOptions;
-//# sourceMappingURL=FormatterOptions.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/FormatterOptions.js.map b/node_modules/@fast-csv/format/build/src/FormatterOptions.js.map
deleted file mode 100644
index da56fee..0000000
--- a/node_modules/@fast-csv/format/build/src/FormatterOptions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FormatterOptions.js","sourceRoot":"","sources":["../../src/FormatterOptions.ts"],"names":[],"mappings":";;;AAwBA,MAAa,gBAAgB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AAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,YAAY,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IACtD,CAAC;CACJ;AAjDD,4CAiDC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.d.ts b/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.d.ts
deleted file mode 100644
index f824b34..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { FormatterOptions } from '../FormatterOptions';
-import { Row } from '../types';
-export declare class FieldFormatter {
- private readonly formatterOptions;
- private _headers;
- private readonly REPLACE_REGEXP;
- private readonly ESCAPE_REGEXP;
- constructor(formatterOptions: FormatterOptions);
- set headers(headers: string[]);
- private shouldQuote;
- format(field: string, fieldIndex: number, isHeader: boolean): string;
- private quoteField;
-}
diff --git a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js b/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js
deleted file mode 100644
index 0c9fd89..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.FieldFormatter = void 0;
-const lodash_isboolean_1 = __importDefault(require("lodash.isboolean"));
-const lodash_isnil_1 = __importDefault(require("lodash.isnil"));
-const lodash_escaperegexp_1 = __importDefault(require("lodash.escaperegexp"));
-class FieldFormatter {
- constructor(formatterOptions) {
- this._headers = null;
- this.formatterOptions = formatterOptions;
- if (formatterOptions.headers !== null) {
- this.headers = formatterOptions.headers;
- }
- this.REPLACE_REGEXP = new RegExp(formatterOptions.quote, 'g');
- const escapePattern = `[${formatterOptions.delimiter}${lodash_escaperegexp_1.default(formatterOptions.rowDelimiter)}|\r|\n]`;
- this.ESCAPE_REGEXP = new RegExp(escapePattern);
- }
- set headers(headers) {
- this._headers = headers;
- }
- shouldQuote(fieldIndex, isHeader) {
- const quoteConfig = isHeader ? this.formatterOptions.quoteHeaders : this.formatterOptions.quoteColumns;
- if (lodash_isboolean_1.default(quoteConfig)) {
- return quoteConfig;
- }
- if (Array.isArray(quoteConfig)) {
- return quoteConfig[fieldIndex];
- }
- if (this._headers !== null) {
- return quoteConfig[this._headers[fieldIndex]];
- }
- return false;
- }
- format(field, fieldIndex, isHeader) {
- const preparedField = `${lodash_isnil_1.default(field) ? '' : field}`.replace(/\0/g, '');
- const { formatterOptions } = this;
- if (formatterOptions.quote !== '') {
- const shouldEscape = preparedField.indexOf(formatterOptions.quote) !== -1;
- if (shouldEscape) {
- return this.quoteField(preparedField.replace(this.REPLACE_REGEXP, formatterOptions.escapedQuote));
- }
- }
- const hasEscapeCharacters = preparedField.search(this.ESCAPE_REGEXP) !== -1;
- if (hasEscapeCharacters || this.shouldQuote(fieldIndex, isHeader)) {
- return this.quoteField(preparedField);
- }
- return preparedField;
- }
- quoteField(field) {
- const { quote } = this.formatterOptions;
- return `${quote}${field}${quote}`;
- }
-}
-exports.FieldFormatter = FieldFormatter;
-//# sourceMappingURL=FieldFormatter.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js.map b/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js.map
deleted file mode 100644
index b3a741e..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/FieldFormatter.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FieldFormatter.js","sourceRoot":"","sources":["../../../src/formatter/FieldFormatter.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAyC;AACzC,gEAAiC;AACjC,8EAA+C;AAI/C,MAAa,cAAc;IAS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,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACxE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;QAClC,IAAI,gBAAgB,CAAC,KAAK,KAAK,EAAE,EAAE;YAC/B,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1E,IAAI,YAAY,EAAE;gBACd,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;aACrG;SACJ;QACD,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QAC5E,IAAI,mBAAmB,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE;YAC/D,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACzC;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;IAEO,UAAU,CAAC,KAAa;QAC5B,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC;QACxC,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,EAAE,CAAC;IACtC,CAAC;CACJ;AAzDD,wCAyDC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.d.ts b/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.d.ts
deleted file mode 100644
index fe06d37..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { FormatterOptions } from '../FormatterOptions';
-import { Row, RowArray, RowTransformFunction } from '../types';
-declare type RowFormatterCallback = (error: Error | null, data?: RowArray) => void;
-export declare class RowFormatter {
- private static isRowHashArray;
- private static isRowArray;
- private static gatherHeaders;
- private static createTransform;
- private readonly formatterOptions;
- private readonly fieldFormatter;
- private readonly shouldWriteHeaders;
- private _rowTransform?;
- private headers;
- private hasWrittenHeaders;
- private rowCount;
- constructor(formatterOptions: FormatterOptions);
- set rowTransform(transformFunction: RowTransformFunction);
- format(row: I, cb: RowFormatterCallback): void;
- finish(cb: RowFormatterCallback): void;
- private checkHeaders;
- private gatherColumns;
- private callTransformer;
- private formatColumns;
-}
-export {};
diff --git a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js b/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js
deleted file mode 100644
index fd51bce..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js
+++ /dev/null
@@ -1,168 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RowFormatter = void 0;
-const lodash_isfunction_1 = __importDefault(require("lodash.isfunction"));
-const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
-const FieldFormatter_1 = require("./FieldFormatter");
-const types_1 = require("../types");
-class RowFormatter {
- constructor(formatterOptions) {
- this.rowCount = 0;
- this.formatterOptions = formatterOptions;
- this.fieldFormatter = new FieldFormatter_1.FieldFormatter(formatterOptions);
- this.headers = formatterOptions.headers;
- this.shouldWriteHeaders = formatterOptions.shouldWriteHeaders;
- this.hasWrittenHeaders = false;
- if (this.headers !== null) {
- this.fieldFormatter.headers = this.headers;
- }
- if (formatterOptions.transform) {
- this.rowTransform = formatterOptions.transform;
- }
- }
- static isRowHashArray(row) {
- if (Array.isArray(row)) {
- return Array.isArray(row[0]) && row[0].length === 2;
- }
- return false;
- }
- static isRowArray(row) {
- return Array.isArray(row) && !this.isRowHashArray(row);
- }
- // get headers from a row item
- static gatherHeaders(row) {
- if (RowFormatter.isRowHashArray(row)) {
- // lets assume a multi-dimesional array with item 0 being the header
- return row.map((it) => it[0]);
- }
- if (Array.isArray(row)) {
- return row;
- }
- return Object.keys(row);
- }
- // eslint-disable-next-line @typescript-eslint/no-shadow
- static createTransform(transformFunction) {
- if (types_1.isSyncTransform(transformFunction)) {
- return (row, cb) => {
- let transformedRow = null;
- try {
- transformedRow = transformFunction(row);
- }
- catch (e) {
- return cb(e);
- }
- return cb(null, transformedRow);
- };
- }
- return (row, cb) => {
- transformFunction(row, cb);
- };
- }
- set rowTransform(transformFunction) {
- if (!lodash_isfunction_1.default(transformFunction)) {
- throw new TypeError('The transform should be a function');
- }
- this._rowTransform = RowFormatter.createTransform(transformFunction);
- }
- format(row, cb) {
- this.callTransformer(row, (err, transformedRow) => {
- if (err) {
- return cb(err);
- }
- if (!row) {
- return cb(null);
- }
- const rows = [];
- if (transformedRow) {
- const { shouldFormatColumns, headers } = this.checkHeaders(transformedRow);
- if (this.shouldWriteHeaders && headers && !this.hasWrittenHeaders) {
- rows.push(this.formatColumns(headers, true));
- this.hasWrittenHeaders = true;
- }
- if (shouldFormatColumns) {
- const columns = this.gatherColumns(transformedRow);
- rows.push(this.formatColumns(columns, false));
- }
- }
- return cb(null, rows);
- });
- }
- finish(cb) {
- const rows = [];
- // check if we should write headers and we didnt get any rows
- if (this.formatterOptions.alwaysWriteHeaders && this.rowCount === 0) {
- if (!this.headers) {
- return cb(new Error('`alwaysWriteHeaders` option is set to true but `headers` option not provided.'));
- }
- rows.push(this.formatColumns(this.headers, true));
- }
- if (this.formatterOptions.includeEndRowDelimiter) {
- rows.push(this.formatterOptions.rowDelimiter);
- }
- return cb(null, rows);
- }
- // check if we need to write header return true if we should also write a row
- // could be false if headers is true and the header row(first item) is passed in
- checkHeaders(row) {
- if (this.headers) {
- // either the headers were provided by the user or we have already gathered them.
- return { shouldFormatColumns: true, headers: this.headers };
- }
- const headers = RowFormatter.gatherHeaders(row);
- this.headers = headers;
- this.fieldFormatter.headers = headers;
- if (!this.shouldWriteHeaders) {
- // if we are not supposed to write the headers then
- // always format the columns
- return { shouldFormatColumns: true, headers: null };
- }
- // if the row is equal to headers dont format
- return { shouldFormatColumns: !lodash_isequal_1.default(headers, row), headers };
- }
- // todo change this method to unknown[]
- gatherColumns(row) {
- if (this.headers === null) {
- throw new Error('Headers is currently null');
- }
- if (!Array.isArray(row)) {
- return this.headers.map((header) => row[header]);
- }
- if (RowFormatter.isRowHashArray(row)) {
- return this.headers.map((header, i) => {
- const col = row[i];
- if (col) {
- return col[1];
- }
- return '';
- });
- }
- // if its a one dimensional array and headers were not provided
- // then just return the row
- if (RowFormatter.isRowArray(row) && !this.shouldWriteHeaders) {
- return row;
- }
- return this.headers.map((header, i) => row[i]);
- }
- callTransformer(row, cb) {
- if (!this._rowTransform) {
- return cb(null, row);
- }
- return this._rowTransform(row, cb);
- }
- formatColumns(columns, isHeadersRow) {
- const formattedCols = columns
- .map((field, i) => this.fieldFormatter.format(field, i, isHeadersRow))
- .join(this.formatterOptions.delimiter);
- const { rowCount } = this;
- this.rowCount += 1;
- if (rowCount) {
- return [this.formatterOptions.rowDelimiter, formattedCols].join('');
- }
- return formattedCols;
- }
-}
-exports.RowFormatter = RowFormatter;
-//# sourceMappingURL=RowFormatter.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js.map b/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js.map
deleted file mode 100644
index fe18025..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/RowFormatter.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RowFormatter.js","sourceRoot":"","sources":["../../../src/formatter/RowFormatter.ts"],"names":[],"mappings":";;;;;;AAAA,0EAA2C;AAC3C,oEAAqC;AAErC,qDAAkD;AAClD,oCAAoH;AAMpH,MAAa,YAAY;IA0DrB,YAAmB,gBAAwC;QAFnD,aAAQ,GAAG,CAAC,CAAC;QAGjB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,+BAAc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C1D,OAAO,GAAG,CAAC;SACd;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEO,eAAe,CAAC,GAAM,EAAE,EAA2B;QACvD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACrB,OAAO,EAAE,CAAC,IAAI,EAAG,GAAoB,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IAEO,aAAa,CAAC,OAAiB,EAAE,YAAqB;QAC1D,MAAM,aAAa,GAAG,OAAO;aACxB,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAU,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;aAC7E,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;QACnB,IAAI,QAAQ,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACvE;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ;AArLD,oCAqLC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/index.d.ts b/node_modules/@fast-csv/format/build/src/formatter/index.d.ts
deleted file mode 100644
index 1fa7606..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { RowFormatter } from './RowFormatter';
-export { FieldFormatter } from './FieldFormatter';
diff --git a/node_modules/@fast-csv/format/build/src/formatter/index.js b/node_modules/@fast-csv/format/build/src/formatter/index.js
deleted file mode 100644
index bf3c26d..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.FieldFormatter = exports.RowFormatter = void 0;
-var RowFormatter_1 = require("./RowFormatter");
-Object.defineProperty(exports, "RowFormatter", { enumerable: true, get: function () { return RowFormatter_1.RowFormatter; } });
-var FieldFormatter_1 = require("./FieldFormatter");
-Object.defineProperty(exports, "FieldFormatter", { enumerable: true, get: function () { return FieldFormatter_1.FieldFormatter; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/formatter/index.js.map b/node_modules/@fast-csv/format/build/src/formatter/index.js.map
deleted file mode 100644
index f36c547..0000000
--- a/node_modules/@fast-csv/format/build/src/formatter/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/formatter/index.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/index.d.ts b/node_modules/@fast-csv/format/build/src/index.d.ts
deleted file mode 100644
index 235d93f..0000000
--- a/node_modules/@fast-csv/format/build/src/index.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-///
-import * as fs from 'fs';
-import { Row } from './types';
-import { FormatterOptionsArgs } from './FormatterOptions';
-import { CsvFormatterStream } from './CsvFormatterStream';
-export * from './types';
-export { CsvFormatterStream } from './CsvFormatterStream';
-export { FormatterOptions, FormatterOptionsArgs } from './FormatterOptions';
-export declare const format: (options?: FormatterOptionsArgs | undefined) => CsvFormatterStream;
-export declare const write: (rows: I[], options?: FormatterOptionsArgs | undefined) => CsvFormatterStream;
-export declare const writeToStream: (ws: T, rows: I[], options?: FormatterOptionsArgs | undefined) => T;
-export declare const writeToBuffer: (rows: I[], opts?: FormatterOptionsArgs) => Promise;
-export declare const writeToString: (rows: I[], options?: FormatterOptionsArgs | undefined) => Promise;
-export declare const writeToPath: (path: string, rows: I[], options?: FormatterOptionsArgs | undefined) => fs.WriteStream;
diff --git a/node_modules/@fast-csv/format/build/src/index.js b/node_modules/@fast-csv/format/build/src/index.js
deleted file mode 100644
index f1418b8..0000000
--- a/node_modules/@fast-csv/format/build/src/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.writeToPath = exports.writeToString = exports.writeToBuffer = exports.writeToStream = exports.write = exports.format = exports.FormatterOptions = exports.CsvFormatterStream = void 0;
-const util_1 = require("util");
-const stream_1 = require("stream");
-const fs = __importStar(require("fs"));
-const FormatterOptions_1 = require("./FormatterOptions");
-const CsvFormatterStream_1 = require("./CsvFormatterStream");
-__exportStar(require("./types"), exports);
-var CsvFormatterStream_2 = require("./CsvFormatterStream");
-Object.defineProperty(exports, "CsvFormatterStream", { enumerable: true, get: function () { return CsvFormatterStream_2.CsvFormatterStream; } });
-var FormatterOptions_2 = require("./FormatterOptions");
-Object.defineProperty(exports, "FormatterOptions", { enumerable: true, get: function () { return FormatterOptions_2.FormatterOptions; } });
-exports.format = (options) => new CsvFormatterStream_1.CsvFormatterStream(new FormatterOptions_1.FormatterOptions(options));
-exports.write = (rows, options) => {
- const csvStream = exports.format(options);
- const promiseWrite = util_1.promisify((row, cb) => {
- csvStream.write(row, undefined, cb);
- });
- rows.reduce((prev, row) => prev.then(() => promiseWrite(row)), Promise.resolve())
- .then(() => csvStream.end())
- .catch((err) => {
- csvStream.emit('error', err);
- });
- return csvStream;
-};
-exports.writeToStream = (ws, rows, options) => exports.write(rows, options).pipe(ws);
-exports.writeToBuffer = (rows, opts = {}) => {
- const buffers = [];
- const ws = new stream_1.Writable({
- write(data, enc, writeCb) {
- buffers.push(data);
- writeCb();
- },
- });
- return new Promise((res, rej) => {
- ws.on('error', rej).on('finish', () => res(Buffer.concat(buffers)));
- exports.write(rows, opts).pipe(ws);
- });
-};
-exports.writeToString = (rows, options) => exports.writeToBuffer(rows, options).then((buffer) => buffer.toString());
-exports.writeToPath = (path, rows, options) => {
- const stream = fs.createWriteStream(path, { encoding: 'utf8' });
- return exports.write(rows, options).pipe(stream);
-};
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/index.js.map b/node_modules/@fast-csv/format/build/src/index.js.map
deleted file mode 100644
index 57efc76..0000000
--- a/node_modules/@fast-csv/format/build/src/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiC;AACjC,mCAAkC;AAClC,uCAAyB;AAEzB,yDAA4E;AAC5E,6DAA0D;AAE1D,0CAAwB;AACxB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,uDAA4E;AAAnE,oHAAA,gBAAgB,OAAA;AAEZ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AE,CAAC;QACd,CAAC;KACJ,CAAC,CAAC;IACH,OAAO,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAQ,EAAE;QAClC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAS,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1E,aAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEW,QAAA,aAAa,GAAG,CACzB,IAAS,EACT,OAAoC,EACrB,EAAE,CAAC,qBAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAU,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;AAElF,QAAA,WAAW,GAAG,CACvB,IAAY,EACZ,IAAS,EACT,OAAoC,EACtB,EAAE;IAChB,MAAM,MAAM,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAChE,OAAO,aAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/types.d.ts b/node_modules/@fast-csv/format/build/src/types.d.ts
deleted file mode 100644
index c59e099..0000000
--- a/node_modules/@fast-csv/format/build/src/types.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export declare type RowMap = Record;
-export declare type RowHashArray = [string, V][];
-export declare type RowArray = string[];
-export declare type Row = RowArray | RowHashArray | RowMap;
-export declare type RowTransformCallback = (error?: Error | null, row?: R) => void;
-export declare type SyncRowTransform = (row: I) => O;
-export declare type AsyncRowTransform = (row: I, cb: RowTransformCallback) => void;
-export declare type RowTransformFunction = SyncRowTransform | AsyncRowTransform;
-export declare const isSyncTransform: (transform: RowTransformFunction) => transform is SyncRowTransform;
diff --git a/node_modules/@fast-csv/format/build/src/types.js b/node_modules/@fast-csv/format/build/src/types.js
deleted file mode 100644
index 58cdf80..0000000
--- a/node_modules/@fast-csv/format/build/src/types.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-/* eslint-disable @typescript-eslint/no-explicit-any */
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isSyncTransform = void 0;
-exports.isSyncTransform = (transform) => transform.length === 1;
-//# sourceMappingURL=types.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/build/src/types.js.map b/node_modules/@fast-csv/format/build/src/types.js.map
deleted file mode 100644
index c706c03..0000000
--- a/node_modules/@fast-csv/format/build/src/types.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAY1C,QAAA,eAAe,GAAG,CAC3B,SAAqC,EACF,EAAE,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/format/package.json b/node_modules/@fast-csv/format/package.json
deleted file mode 100644
index 9eb5826..0000000
--- a/node_modules/@fast-csv/format/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "@fast-csv/format",
- "version": "4.3.5",
- "description": "fast-csv formatting module",
- "keywords": [
- "csv",
- "format",
- "write"
- ],
- "author": "doug-martin ",
- "homepage": "http://c2fo.github.com/fast-csv/packages/format",
- "license": "MIT",
- "main": "build/src/index.js",
- "types": "build/src/index.d.ts",
- "directories": {
- "lib": "src",
- "test": "__tests__"
- },
- "files": [
- "build/src/**"
- ],
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/C2FO/fast-csv.git",
- "directory": "packages/format"
- },
- "scripts": {
- "prepublishOnly": "npm run build",
- "build": "npm run clean && npm run compile",
- "clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
- "compile": "tsc"
- },
- "bugs": {
- "url": "https://github.com/C2FO/fast-csv/issues"
- },
- "dependencies": {
- "@types/node": "^14.0.1",
- "lodash.escaperegexp": "^4.1.2",
- "lodash.isboolean": "^3.0.3",
- "lodash.isequal": "^4.5.0",
- "lodash.isfunction": "^3.0.9",
- "lodash.isnil": "^4.0.0"
- },
- "devDependencies": {
- "@types/lodash.escaperegexp": "4.1.6",
- "@types/lodash.isboolean": "3.0.6",
- "@types/lodash.isequal": "4.5.5",
- "@types/lodash.isfunction": "3.0.6",
- "@types/lodash.isnil": "4.0.6"
- },
- "gitHead": "b908170cb49398ae12847d050af5c8e5b0dc812f"
-}
diff --git a/node_modules/@fast-csv/parse/CHANGELOG.md b/node_modules/@fast-csv/parse/CHANGELOG.md
deleted file mode 100644
index 3763965..0000000
--- a/node_modules/@fast-csv/parse/CHANGELOG.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file.
-See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
-
-## [4.3.6](https://github.com/C2FO/fast-csv/compare/v4.3.5...v4.3.6) (2020-12-04)
-
-
-### Bug Fixes
-
-* Simplify empty row check by removing complex regex ([4bbd39f](https://github.com/C2FO/fast-csv/commit/4bbd39f26a8cd7382151ab4f5fb102234b2f829e))
-
-
-
-
-
-## [4.3.3](https://github.com/C2FO/fast-csv/compare/v4.3.2...v4.3.3) (2020-10-30)
-
-**Note:** Version bump only for package @fast-csv/parse
-
-
-
-
-
-## [4.3.2](https://github.com/C2FO/fast-csv/compare/v4.3.1...v4.3.2) (2020-09-02)
-
-
-### Bug Fixes
-
-* **parsing, #423:** Prevent callback from being called multiple times ([040febe](https://github.com/C2FO/fast-csv/commit/040febe17f5fe763a00f45b1d83c5acd47bbbe0b)), closes [#423](https://github.com/C2FO/fast-csv/issues/423)
-
-
-
-
-
-## [4.3.1](https://github.com/C2FO/fast-csv/compare/v4.3.0...v4.3.1) (2020-06-23)
-
-
-### Bug Fixes
-
-* **parsing:** Pass errors through callbacks ([84ecdf6](https://github.com/C2FO/fast-csv/commit/84ecdf6ed18b15d68b4ed3e2bfec7eb41b438ad8))
-
-
-
-
-
-# [4.3.0](https://github.com/C2FO/fast-csv/compare/v4.2.0...v4.3.0) (2020-05-27)
-
-**Note:** Version bump only for package @fast-csv/parse
-
-
-
-
-
-# [4.2.0](https://github.com/C2FO/fast-csv/compare/v4.1.6...v4.2.0) (2020-05-19)
-
-
-### Features
-
-* **parsing:** Less restrictive row parsing type [#356](https://github.com/C2FO/fast-csv/issues/356) ([87d74ec](https://github.com/C2FO/fast-csv/commit/87d74ecd2cb16f3700b1942ebbbec221afe38790))
-
-
-
-
-
-## [4.1.6](https://github.com/C2FO/fast-csv/compare/v4.1.5...v4.1.6) (2020-05-15)
-
-
-### Bug Fixes
-
-* **parse:** Handle escaped escape properly [#340](https://github.com/C2FO/fast-csv/issues/340) ([78d9b16](https://github.com/C2FO/fast-csv/commit/78d9b160152ee399f31086cc6b5f66a7ca7f9e24))
-
-
-
-
-
-## [4.1.5](https://github.com/C2FO/fast-csv/compare/v4.1.4...v4.1.5) (2020-05-15)
-
-**Note:** Version bump only for package @fast-csv/parse
-
-
-
-
-
-## [4.1.4](https://github.com/C2FO/fast-csv/compare/v4.1.3...v4.1.4) (2020-05-15)
-
-**Note:** Version bump only for package @fast-csv/parse
diff --git a/node_modules/@fast-csv/parse/LICENSE b/node_modules/@fast-csv/parse/LICENSE
deleted file mode 100644
index 34de49d..0000000
--- a/node_modules/@fast-csv/parse/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2011-2019 C2FO
-
-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.
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/README.md b/node_modules/@fast-csv/parse/README.md
deleted file mode 100644
index a5fba88..0000000
--- a/node_modules/@fast-csv/parse/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-[](https://www.npmjs.org/package/@fast-csv/parse)
-[](https://travis-ci.org/C2FO/fast-csv)
-[](https://coveralls.io/github/C2FO/fast-csv?branch=master)
-[](https://snyk.io/test/github/C2FO/fast-csv?targetFile=packages/parse/package.json)
-
-# `@fast-csv/parse`
-
-`fast-csv` package to parse CSVs.
-
-## Installation
-
-[Install Guide](https://c2fo.io/fast-csv/docs/introduction/install)
-
-## Usage
-
-To get started with `@fast-csv/parse` [check out the docs](https://c2fo.io/fast-csv/docs/parsing/getting-started)
diff --git a/node_modules/@fast-csv/parse/build/src/CsvParserStream.d.ts b/node_modules/@fast-csv/parse/build/src/CsvParserStream.d.ts
deleted file mode 100644
index 757582e..0000000
--- a/node_modules/@fast-csv/parse/build/src/CsvParserStream.d.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-///
-import { Transform, TransformCallback } from 'stream';
-import { ParserOptions } from './ParserOptions';
-import { Row, RowTransformFunction, RowValidate } from './types';
-export declare class CsvParserStream extends Transform {
- private readonly parserOptions;
- private readonly decoder;
- private readonly parser;
- private readonly headerTransformer;
- private readonly rowTransformerValidator;
- private lines;
- private rowCount;
- private parsedRowCount;
- private parsedLineCount;
- private endEmitted;
- private headersEmitted;
- constructor(parserOptions: ParserOptions);
- private get hasHitRowLimit();
- private get shouldEmitRows();
- private get shouldSkipLine();
- transform(transformFunction: RowTransformFunction): CsvParserStream;
- validate(validateFunction: RowValidate): CsvParserStream;
- emit(event: string | symbol, ...rest: any[]): boolean;
- _transform(data: Buffer, encoding: string, done: TransformCallback): void;
- _flush(done: TransformCallback): void;
- private parse;
- private processRows;
- private transformRow;
- private checkAndEmitHeaders;
- private skipRow;
- private pushRow;
- private static wrapDoneCallback;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/CsvParserStream.js b/node_modules/@fast-csv/parse/build/src/CsvParserStream.js
deleted file mode 100644
index c207a00..0000000
--- a/node_modules/@fast-csv/parse/build/src/CsvParserStream.js
+++ /dev/null
@@ -1,212 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.CsvParserStream = void 0;
-const string_decoder_1 = require("string_decoder");
-const stream_1 = require("stream");
-const transforms_1 = require("./transforms");
-const parser_1 = require("./parser");
-class CsvParserStream extends stream_1.Transform {
- constructor(parserOptions) {
- super({ objectMode: parserOptions.objectMode });
- this.lines = '';
- this.rowCount = 0;
- this.parsedRowCount = 0;
- this.parsedLineCount = 0;
- this.endEmitted = false;
- this.headersEmitted = false;
- this.parserOptions = parserOptions;
- this.parser = new parser_1.Parser(parserOptions);
- this.headerTransformer = new transforms_1.HeaderTransformer(parserOptions);
- this.decoder = new string_decoder_1.StringDecoder(parserOptions.encoding);
- this.rowTransformerValidator = new transforms_1.RowTransformerValidator();
- }
- get hasHitRowLimit() {
- return this.parserOptions.limitRows && this.rowCount >= this.parserOptions.maxRows;
- }
- get shouldEmitRows() {
- return this.parsedRowCount > this.parserOptions.skipRows;
- }
- get shouldSkipLine() {
- return this.parsedLineCount <= this.parserOptions.skipLines;
- }
- transform(transformFunction) {
- this.rowTransformerValidator.rowTransform = transformFunction;
- return this;
- }
- validate(validateFunction) {
- this.rowTransformerValidator.rowValidator = validateFunction;
- return this;
- }
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- emit(event, ...rest) {
- if (event === 'end') {
- if (!this.endEmitted) {
- this.endEmitted = true;
- super.emit('end', this.rowCount);
- }
- return false;
- }
- return super.emit(event, ...rest);
- }
- _transform(data, encoding, done) {
- // if we have hit our maxRows parsing limit then skip parsing
- if (this.hasHitRowLimit) {
- return done();
- }
- const wrappedCallback = CsvParserStream.wrapDoneCallback(done);
- try {
- const { lines } = this;
- const newLine = lines + this.decoder.write(data);
- const rows = this.parse(newLine, true);
- return this.processRows(rows, wrappedCallback);
- }
- catch (e) {
- return wrappedCallback(e);
- }
- }
- _flush(done) {
- const wrappedCallback = CsvParserStream.wrapDoneCallback(done);
- // if we have hit our maxRows parsing limit then skip parsing
- if (this.hasHitRowLimit) {
- return wrappedCallback();
- }
- try {
- const newLine = this.lines + this.decoder.end();
- const rows = this.parse(newLine, false);
- return this.processRows(rows, wrappedCallback);
- }
- catch (e) {
- return wrappedCallback(e);
- }
- }
- parse(data, hasMoreData) {
- if (!data) {
- return [];
- }
- const { line, rows } = this.parser.parse(data, hasMoreData);
- this.lines = line;
- return rows;
- }
- processRows(rows, cb) {
- const rowsLength = rows.length;
- const iterate = (i) => {
- const callNext = (err) => {
- if (err) {
- return cb(err);
- }
- if (i % 100 === 0) {
- // incase the transform are sync insert a next tick to prevent stack overflow
- setImmediate(() => iterate(i + 1));
- return undefined;
- }
- return iterate(i + 1);
- };
- this.checkAndEmitHeaders();
- // if we have emitted all rows or we have hit the maxRows limit option
- // then end
- if (i >= rowsLength || this.hasHitRowLimit) {
- return cb();
- }
- this.parsedLineCount += 1;
- if (this.shouldSkipLine) {
- return callNext();
- }
- const row = rows[i];
- this.rowCount += 1;
- this.parsedRowCount += 1;
- const nextRowCount = this.rowCount;
- return this.transformRow(row, (err, transformResult) => {
- if (err) {
- this.rowCount -= 1;
- return callNext(err);
- }
- if (!transformResult) {
- return callNext(new Error('expected transform result'));
- }
- if (!transformResult.isValid) {
- this.emit('data-invalid', transformResult.row, nextRowCount, transformResult.reason);
- }
- else if (transformResult.row) {
- return this.pushRow(transformResult.row, callNext);
- }
- return callNext();
- });
- };
- iterate(0);
- }
- transformRow(parsedRow, cb) {
- try {
- this.headerTransformer.transform(parsedRow, (err, withHeaders) => {
- if (err) {
- return cb(err);
- }
- if (!withHeaders) {
- return cb(new Error('Expected result from header transform'));
- }
- if (!withHeaders.isValid) {
- if (this.shouldEmitRows) {
- return cb(null, { isValid: false, row: parsedRow });
- }
- // skipped because of skipRows option remove from total row count
- return this.skipRow(cb);
- }
- if (withHeaders.row) {
- if (this.shouldEmitRows) {
- return this.rowTransformerValidator.transformAndValidate(withHeaders.row, cb);
- }
- // skipped because of skipRows option remove from total row count
- return this.skipRow(cb);
- }
- // this is a header row dont include in the rowCount or parsedRowCount
- this.rowCount -= 1;
- this.parsedRowCount -= 1;
- return cb(null, { row: null, isValid: true });
- });
- }
- catch (e) {
- cb(e);
- }
- }
- checkAndEmitHeaders() {
- if (!this.headersEmitted && this.headerTransformer.headers) {
- this.headersEmitted = true;
- this.emit('headers', this.headerTransformer.headers);
- }
- }
- skipRow(cb) {
- // skipped because of skipRows option remove from total row count
- this.rowCount -= 1;
- return cb(null, { row: null, isValid: true });
- }
- pushRow(row, cb) {
- try {
- if (!this.parserOptions.objectMode) {
- this.push(JSON.stringify(row));
- }
- else {
- this.push(row);
- }
- cb();
- }
- catch (e) {
- cb(e);
- }
- }
- static wrapDoneCallback(done) {
- let errorCalled = false;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- return (err, ...args) => {
- if (err) {
- if (errorCalled) {
- throw err;
- }
- errorCalled = true;
- done(err);
- return;
- }
- done(...args);
- };
- }
-}
-exports.CsvParserStream = CsvParserStream;
-//# sourceMappingURL=CsvParserStream.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/CsvParserStream.js.map b/node_modules/@fast-csv/parse/build/src/CsvParserStream.js.map
deleted file mode 100644
index 872b48b..0000000
--- a/node_modules/@fast-csv/parse/build/src/CsvParserStream.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CsvParserStream.js","sourceRoot":"","sources":["../../src/CsvParserStream.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAC/C,mCAAsD;AAEtD,6CAA0E;AAC1E,qCAAkC;AAGlC,MAAa,eAA8C,SAAQ,kBAAS;IAuBxE,YAAmB,aAA4B;QAC3C,KAAK,CAAC,EAAE,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;QAb5C,UAAK,GAAG,EAAE,CAAC;QAEX,aAAQ,GAAG,CAAC,CAAC;QAEb,mBAAc,GAAG,CAAC,CAAC;QAEnB,oBAAe,GAAG,CAAC,CAAC;QAEpB,eAAU,GAAG,KAAK,CAAC;QAEnB,mBAAc,GAAG,KAAK,CAAC;QAI3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,aAAa,CAAC,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,IAAI,8BAAiB,CAAC,aAAa,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO,GAAG,IAAI,8BAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACzD,IAAI,CAAC,uBAAuB,GAAG,IAAI,oCAAuB,EAAE,CAAC;IACjE,CAAC;IAED,IAAY,cAAc;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;IACvF,CAAC;IAED,IAAY,cAAc;QACtB,OAAO,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IAC7D,CAAC;IAED,IAAY,c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}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/ParserOptions.d.ts b/node_modules/@fast-csv/parse/build/src/ParserOptions.d.ts
deleted file mode 100644
index d1a15c6..0000000
--- a/node_modules/@fast-csv/parse/build/src/ParserOptions.d.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-///
-import { HeaderArray, HeaderTransformFunction } from './types';
-export interface ParserOptionsArgs {
- objectMode?: boolean;
- delimiter?: string;
- quote?: string | null;
- escape?: string;
- headers?: boolean | HeaderTransformFunction | HeaderArray;
- renameHeaders?: boolean;
- ignoreEmpty?: boolean;
- comment?: string;
- strictColumnHandling?: boolean;
- discardUnmappedColumns?: boolean;
- trim?: boolean;
- ltrim?: boolean;
- rtrim?: boolean;
- encoding?: string;
- maxRows?: number;
- skipLines?: number;
- skipRows?: number;
-}
-export declare class ParserOptions {
- readonly escapedDelimiter: string;
- readonly objectMode: boolean;
- readonly delimiter: string;
- readonly ignoreEmpty: boolean;
- readonly quote: string | null;
- readonly escape: string | null;
- readonly escapeChar: string | null;
- readonly comment: string | null;
- readonly supportsComments: boolean;
- readonly ltrim: boolean;
- readonly rtrim: boolean;
- readonly trim: boolean;
- readonly headers: boolean | HeaderTransformFunction | HeaderArray | null;
- readonly renameHeaders: boolean;
- readonly strictColumnHandling: boolean;
- readonly discardUnmappedColumns: boolean;
- readonly carriageReturn: string;
- readonly NEXT_TOKEN_REGEXP: RegExp;
- readonly encoding: BufferEncoding;
- readonly limitRows: boolean;
- readonly maxRows: number;
- readonly skipLines: number;
- readonly skipRows: number;
- constructor(opts?: ParserOptionsArgs);
-}
diff --git a/node_modules/@fast-csv/parse/build/src/ParserOptions.js b/node_modules/@fast-csv/parse/build/src/ParserOptions.js
deleted file mode 100644
index 9fcbe74..0000000
--- a/node_modules/@fast-csv/parse/build/src/ParserOptions.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ParserOptions = void 0;
-const lodash_escaperegexp_1 = __importDefault(require("lodash.escaperegexp"));
-const lodash_isnil_1 = __importDefault(require("lodash.isnil"));
-class ParserOptions {
- constructor(opts) {
- var _a;
- this.objectMode = true;
- this.delimiter = ',';
- this.ignoreEmpty = false;
- this.quote = '"';
- this.escape = null;
- this.escapeChar = this.quote;
- this.comment = null;
- this.supportsComments = false;
- this.ltrim = false;
- this.rtrim = false;
- this.trim = false;
- this.headers = null;
- this.renameHeaders = false;
- this.strictColumnHandling = false;
- this.discardUnmappedColumns = false;
- this.carriageReturn = '\r';
- this.encoding = 'utf8';
- this.limitRows = false;
- this.maxRows = 0;
- this.skipLines = 0;
- this.skipRows = 0;
- Object.assign(this, opts || {});
- if (this.delimiter.length > 1) {
- throw new Error('delimiter option must be one character long');
- }
- this.escapedDelimiter = lodash_escaperegexp_1.default(this.delimiter);
- this.escapeChar = (_a = this.escape) !== null && _a !== void 0 ? _a : this.quote;
- this.supportsComments = !lodash_isnil_1.default(this.comment);
- this.NEXT_TOKEN_REGEXP = new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`);
- if (this.maxRows > 0) {
- this.limitRows = true;
- }
- }
-}
-exports.ParserOptions = ParserOptions;
-//# sourceMappingURL=ParserOptions.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/ParserOptions.js.map b/node_modules/@fast-csv/parse/build/src/ParserOptions.js.map
deleted file mode 100644
index 85b1f2e..0000000
--- a/node_modules/@fast-csv/parse/build/src/ParserOptions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ParserOptions.js","sourceRoot":"","sources":["../../src/ParserOptions.ts"],"names":[],"mappings":";;;;;;AAAA,8EAA+C;AAC/C,gEAAiC;AAuBjC,MAAa,aAAa;IA+CtB,YAAmB,IAAwB;;QA5C3B,eAAU,GAAY,IAAI,CAAC;QAE3B,cAAS,GAAW,GAAG,C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IAAI,CAAC;SACzB;IACL,CAAC;CACJ;AA7DD,sCA6DC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/index.d.ts b/node_modules/@fast-csv/parse/build/src/index.d.ts
deleted file mode 100644
index 0ec5fad..0000000
--- a/node_modules/@fast-csv/parse/build/src/index.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-///
-import { ParserOptionsArgs } from './ParserOptions';
-import { CsvParserStream } from './CsvParserStream';
-import { Row } from './types';
-export * from './types';
-export { CsvParserStream } from './CsvParserStream';
-export { ParserOptions, ParserOptionsArgs } from './ParserOptions';
-export declare const parse: , O extends Row>(args?: ParserOptionsArgs | undefined) => CsvParserStream;
-export declare const parseStream: , O extends Row>(stream: NodeJS.ReadableStream, options?: ParserOptionsArgs | undefined) => CsvParserStream;
-export declare const parseFile: , O extends Row>(location: string, options?: ParserOptionsArgs) => CsvParserStream;
-export declare const parseString: , O extends Row>(string: string, options?: ParserOptionsArgs | undefined) => CsvParserStream;
diff --git a/node_modules/@fast-csv/parse/build/src/index.js b/node_modules/@fast-csv/parse/build/src/index.js
deleted file mode 100644
index 1a4239f..0000000
--- a/node_modules/@fast-csv/parse/build/src/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.parseString = exports.parseFile = exports.parseStream = exports.parse = exports.ParserOptions = exports.CsvParserStream = void 0;
-const fs = __importStar(require("fs"));
-const stream_1 = require("stream");
-const ParserOptions_1 = require("./ParserOptions");
-const CsvParserStream_1 = require("./CsvParserStream");
-__exportStar(require("./types"), exports);
-var CsvParserStream_2 = require("./CsvParserStream");
-Object.defineProperty(exports, "CsvParserStream", { enumerable: true, get: function () { return CsvParserStream_2.CsvParserStream; } });
-var ParserOptions_2 = require("./ParserOptions");
-Object.defineProperty(exports, "ParserOptions", { enumerable: true, get: function () { return ParserOptions_2.ParserOptions; } });
-exports.parse = (args) => new CsvParserStream_1.CsvParserStream(new ParserOptions_1.ParserOptions(args));
-exports.parseStream = (stream, options) => stream.pipe(new CsvParserStream_1.CsvParserStream(new ParserOptions_1.ParserOptions(options)));
-exports.parseFile = (location, options = {}) => fs.createReadStream(location).pipe(new CsvParserStream_1.CsvParserStream(new ParserOptions_1.ParserOptions(options)));
-exports.parseString = (string, options) => {
- const rs = new stream_1.Readable();
- rs.push(string);
- rs.push(null);
- return rs.pipe(new CsvParserStream_1.CsvParserStream(new ParserOptions_1.ParserOptions(options)));
-};
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/index.js.map b/node_modules/@fast-csv/parse/build/src/index.js.map
deleted file mode 100644
index 5fd268a..0000000
--- a/node_modules/@fast-csv/parse/build/src/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,mCAAkC;AAClC,mDAAmE;AACnE,uDAAoD;AAGpD,0CAAwB;AACxB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,iDAAmE;AAA1D,8GAAA,aAAa,OAAA;AAET,QAAA,KAAK,GAAG,CAA+B,IAAwB,EAAyB,EAAE,CACnG,IAAI,iCAAe,CAAC,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AAEpC,QAAA,WAAW,GAAG,CACvB,MAA6B,EAC7B,OAA2B,EACN,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,iCAAe,CAAC,IAAI,6BAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE5E,QAAA,SAAS,GAAG,CACrB,QAAgB,EAChB,UAA6B,EAAE,EACV,EAAE,CAAC,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,iCAAe,CAAC,IAAI,6BAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEnG,QAAA,WAAW,GAAG,CACvB,MAAc,EACd,OAA2B,EACN,EAAE;IACvB,MAAM,EAAE,GAAG,IAAI,iBAAQ,EAAE,CAAC;IAC1B,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,iCAAe,CAAC,IAAI,6BAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Parser.d.ts b/node_modules/@fast-csv/parse/build/src/parser/Parser.d.ts
deleted file mode 100644
index 4121332..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Parser.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { ParserOptions } from '../ParserOptions';
-export interface ParseResult {
- line: string;
- rows: string[][];
-}
-export declare class Parser {
- private static removeBOM;
- private readonly parserOptions;
- private readonly rowParser;
- constructor(parserOptions: ParserOptions);
- parse(line: string, hasMoreData: boolean): ParseResult;
- private parseWithoutComments;
- private parseWithComments;
- private parseRow;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Parser.js b/node_modules/@fast-csv/parse/build/src/parser/Parser.js
deleted file mode 100644
index 4b3d234..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Parser.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Parser = void 0;
-const Scanner_1 = require("./Scanner");
-const RowParser_1 = require("./RowParser");
-const Token_1 = require("./Token");
-class Parser {
- constructor(parserOptions) {
- this.parserOptions = parserOptions;
- this.rowParser = new RowParser_1.RowParser(this.parserOptions);
- }
- static removeBOM(line) {
- // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
- // conversion translates it to FEFF (UTF-16 BOM)
- if (line && line.charCodeAt(0) === 0xfeff) {
- return line.slice(1);
- }
- return line;
- }
- parse(line, hasMoreData) {
- const scanner = new Scanner_1.Scanner({
- line: Parser.removeBOM(line),
- parserOptions: this.parserOptions,
- hasMoreData,
- });
- if (this.parserOptions.supportsComments) {
- return this.parseWithComments(scanner);
- }
- return this.parseWithoutComments(scanner);
- }
- parseWithoutComments(scanner) {
- const rows = [];
- let shouldContinue = true;
- while (shouldContinue) {
- shouldContinue = this.parseRow(scanner, rows);
- }
- return { line: scanner.line, rows };
- }
- parseWithComments(scanner) {
- const { parserOptions } = this;
- const rows = [];
- for (let nextToken = scanner.nextCharacterToken; nextToken !== null; nextToken = scanner.nextCharacterToken) {
- if (Token_1.Token.isTokenComment(nextToken, parserOptions)) {
- const cursor = scanner.advancePastLine();
- if (cursor === null) {
- return { line: scanner.lineFromCursor, rows };
- }
- if (!scanner.hasMoreCharacters) {
- return { line: scanner.lineFromCursor, rows };
- }
- scanner.truncateToCursor();
- }
- else if (!this.parseRow(scanner, rows)) {
- break;
- }
- }
- return { line: scanner.line, rows };
- }
- parseRow(scanner, rows) {
- const nextToken = scanner.nextNonSpaceToken;
- if (!nextToken) {
- return false;
- }
- const row = this.rowParser.parse(scanner);
- if (row === null) {
- return false;
- }
- if (this.parserOptions.ignoreEmpty && RowParser_1.RowParser.isEmptyRow(row)) {
- return true;
- }
- rows.push(row);
- return true;
- }
-}
-exports.Parser = Parser;
-//# sourceMappingURL=Parser.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Parser.js.map b/node_modules/@fast-csv/parse/build/src/parser/Parser.js.map
deleted file mode 100644
index db36225..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Parser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../../../src/parser/Parser.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,2CAAwC;AAGxC,mCAAgC;AAMhC,MAAa,MAAM;IAcf,YAAmB,aAA4B;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACvD,CAAC;IAhBO,MAAM,CAAC,SAAS,CAAC,IAAY;QACjC,0DAA0D;QAC1D,gDAAgD;QAChD,IAAI,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE;YACvC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACxB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAWM,KAAK,CAAC,IAAY,EAAE,WAAoB;QAC3C,MAAM,OAAO,GAAG,IAAI,iBAAO,CAAC;YACxB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;YAC5B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW;SACd,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE;YACrC,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,oB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AC,iBAAiB,CAAC;QAC5C,IAAI,CAAC,SAAS,EAAE;YACZ,OAAO,KAAK,CAAC;SAChB;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,GAAG,KAAK,IAAI,EAAE;YACd,OAAO,KAAK,CAAC;SAChB;QACD,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,IAAI,qBAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YAC7D,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3ED,wBA2EC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/RowParser.d.ts b/node_modules/@fast-csv/parse/build/src/parser/RowParser.d.ts
deleted file mode 100644
index 49c1f60..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/RowParser.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Scanner } from './Scanner';
-import { ParserOptions } from '../ParserOptions';
-import { RowArray } from '../types';
-export declare class RowParser {
- static isEmptyRow(row: RowArray): boolean;
- private readonly parserOptions;
- private readonly columnParser;
- constructor(parserOptions: ParserOptions);
- parse(scanner: Scanner): RowArray | null;
- private getStartToken;
- private shouldSkipColumnParse;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/RowParser.js b/node_modules/@fast-csv/parse/build/src/parser/RowParser.js
deleted file mode 100644
index 98a326f..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/RowParser.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RowParser = void 0;
-const column_1 = require("./column");
-const Token_1 = require("./Token");
-const EMPTY_STRING = '';
-class RowParser {
- constructor(parserOptions) {
- this.parserOptions = parserOptions;
- this.columnParser = new column_1.ColumnParser(parserOptions);
- }
- static isEmptyRow(row) {
- return row.join(EMPTY_STRING).replace(/\s+/g, EMPTY_STRING) === EMPTY_STRING;
- }
- parse(scanner) {
- const { parserOptions } = this;
- const { hasMoreData } = scanner;
- const currentScanner = scanner;
- const columns = [];
- let currentToken = this.getStartToken(currentScanner, columns);
- while (currentToken) {
- if (Token_1.Token.isTokenRowDelimiter(currentToken)) {
- currentScanner.advancePastToken(currentToken);
- // if ends with CR and there is more data, keep unparsed due to possible
- // coming LF in CRLF
- if (!currentScanner.hasMoreCharacters &&
- Token_1.Token.isTokenCarriageReturn(currentToken, parserOptions) &&
- hasMoreData) {
- return null;
- }
- currentScanner.truncateToCursor();
- return columns;
- }
- if (!this.shouldSkipColumnParse(currentScanner, currentToken, columns)) {
- const item = this.columnParser.parse(currentScanner);
- if (item === null) {
- return null;
- }
- columns.push(item);
- }
- currentToken = currentScanner.nextNonSpaceToken;
- }
- if (!hasMoreData) {
- currentScanner.truncateToCursor();
- return columns;
- }
- return null;
- }
- getStartToken(scanner, columns) {
- const currentToken = scanner.nextNonSpaceToken;
- if (currentToken !== null && Token_1.Token.isTokenDelimiter(currentToken, this.parserOptions)) {
- columns.push('');
- return scanner.nextNonSpaceToken;
- }
- return currentToken;
- }
- shouldSkipColumnParse(scanner, currentToken, columns) {
- const { parserOptions } = this;
- if (Token_1.Token.isTokenDelimiter(currentToken, parserOptions)) {
- scanner.advancePastToken(currentToken);
- // if the delimiter is at the end of a line
- const nextToken = scanner.nextCharacterToken;
- if (!scanner.hasMoreCharacters || (nextToken !== null && Token_1.Token.isTokenRowDelimiter(nextToken))) {
- columns.push('');
- return true;
- }
- if (nextToken !== null && Token_1.Token.isTokenDelimiter(nextToken, parserOptions)) {
- columns.push('');
- return true;
- }
- }
- return false;
- }
-}
-exports.RowParser = RowParser;
-//# sourceMappingURL=RowParser.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/RowParser.js.map b/node_modules/@fast-csv/parse/build/src/parser/RowParser.js.map
deleted file mode 100644
index e6b223e..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/RowParser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RowParser.js","sourceRoot":"","sources":["../../../src/parser/RowParser.ts"],"names":[],"mappings":";;;AACA,qCAAwC;AAGxC,mCAA4C;AAE5C,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAa,SAAS;IASlB,YAAmB,aAA4B;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAY,CAAC,aAAa,CAAC,CAAC;IACxD,CAAC;IAXD,MAAM,CAAC,UAAU,CAAC,GAAa;QAC3B,OAAO,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,YAAY,CAAC;IACjF,CAAC;IAWM,KAAK,CAAC,OAAgB;QACzB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;QAC/B,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,OAAO,GAAqB,EAAE,CAAC;QACrC,IAAI,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QAC/D,OAAO,YAAY,EAAE;YACjB,IAAI,aAAK,CAAC,mBAAmB,CAAC,YAAY,CAAC,EAAE;gBACzC,cAAc,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;gBAC9C,wEAAwE;gBACxE,oBAAoB;gBACpB,IACI,CAAC,cAAc,CAAC,iBAAiB;oBACjC,aAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,aAAa,CAAC;oBACxD,WAAW,EACb;oBACE,OAAO,IAAI,CAAC;iBACf;gBACD,cAAc,CAAC,gBAAgB,EAAE,CAAC;gBAClC,OAAO,OAAO,CAAC;aAClB;YACD,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,c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AC;aACf;YACD,IAAI,SAAS,KAAK,IAAI,IAAI,aAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE;gBACxE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACjB,OAAO,IAAI,CAAC;aACf;SACJ;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AA7ED,8BA6EC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Scanner.d.ts b/node_modules/@fast-csv/parse/build/src/parser/Scanner.d.ts
deleted file mode 100644
index bbd0802..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Scanner.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ParserOptions } from '../ParserOptions';
-import { MaybeToken, Token } from './Token';
-export interface ScannerArgs {
- line: string;
- parserOptions: ParserOptions;
- hasMoreData: boolean;
- cursor?: number;
-}
-export declare class Scanner {
- line: string;
- private readonly parserOptions;
- lineLength: number;
- readonly hasMoreData: boolean;
- cursor: number;
- constructor(args: ScannerArgs);
- get hasMoreCharacters(): boolean;
- get nextNonSpaceToken(): MaybeToken;
- get nextCharacterToken(): MaybeToken;
- get lineFromCursor(): string;
- advancePastLine(): Scanner | null;
- advanceTo(cursor: number): Scanner;
- advanceToToken(token: Token): Scanner;
- advancePastToken(token: Token): Scanner;
- truncateToCursor(): Scanner;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Scanner.js b/node_modules/@fast-csv/parse/build/src/parser/Scanner.js
deleted file mode 100644
index f00c967..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Scanner.js
+++ /dev/null
@@ -1,82 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Scanner = void 0;
-const Token_1 = require("./Token");
-const ROW_DELIMITER = /((?:\r\n)|\n|\r)/;
-class Scanner {
- constructor(args) {
- this.cursor = 0;
- this.line = args.line;
- this.lineLength = this.line.length;
- this.parserOptions = args.parserOptions;
- this.hasMoreData = args.hasMoreData;
- this.cursor = args.cursor || 0;
- }
- get hasMoreCharacters() {
- return this.lineLength > this.cursor;
- }
- get nextNonSpaceToken() {
- const { lineFromCursor } = this;
- const regex = this.parserOptions.NEXT_TOKEN_REGEXP;
- if (lineFromCursor.search(regex) === -1) {
- return null;
- }
- const match = regex.exec(lineFromCursor);
- if (match == null) {
- return null;
- }
- const token = match[1];
- const startCursor = this.cursor + (match.index || 0);
- return new Token_1.Token({
- token,
- startCursor,
- endCursor: startCursor + token.length - 1,
- });
- }
- get nextCharacterToken() {
- const { cursor, lineLength } = this;
- if (lineLength <= cursor) {
- return null;
- }
- return new Token_1.Token({
- token: this.line[cursor],
- startCursor: cursor,
- endCursor: cursor,
- });
- }
- get lineFromCursor() {
- return this.line.substr(this.cursor);
- }
- advancePastLine() {
- const match = ROW_DELIMITER.exec(this.lineFromCursor);
- if (!match) {
- if (this.hasMoreData) {
- return null;
- }
- this.cursor = this.lineLength;
- return this;
- }
- this.cursor += (match.index || 0) + match[0].length;
- return this;
- }
- advanceTo(cursor) {
- this.cursor = cursor;
- return this;
- }
- advanceToToken(token) {
- this.cursor = token.startCursor;
- return this;
- }
- advancePastToken(token) {
- this.cursor = token.endCursor + 1;
- return this;
- }
- truncateToCursor() {
- this.line = this.lineFromCursor;
- this.lineLength = this.line.length;
- this.cursor = 0;
- return this;
- }
-}
-exports.Scanner = Scanner;
-//# sourceMappingURL=Scanner.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Scanner.js.map b/node_modules/@fast-csv/parse/build/src/parser/Scanner.js.map
deleted file mode 100644
index f812311..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Scanner.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Scanner.js","sourceRoot":"","sources":["../../../src/parser/Scanner.ts"],"names":[],"mappings":";;;AACA,mCAA4C;AAE5C,MAAM,aAAa,GAAG,kBAAkB,CAAC;AASzC,MAAa,OAAO;IAWhB,YAAmB,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AAC;IAChB,CAAC;CACJ;AA5FD,0BA4FC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Token.d.ts b/node_modules/@fast-csv/parse/build/src/parser/Token.d.ts
deleted file mode 100644
index 2f2bdf3..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Token.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { ParserOptions } from '../ParserOptions';
-export declare type MaybeToken = Token | null;
-export interface TokenArgs {
- token: string;
- startCursor: number;
- endCursor: number;
-}
-export declare class Token {
- static isTokenRowDelimiter(token: Token): boolean;
- static isTokenCarriageReturn(token: Token, parserOptions: ParserOptions): boolean;
- static isTokenComment(token: Token, parserOptions: ParserOptions): boolean;
- static isTokenEscapeCharacter(token: Token, parserOptions: ParserOptions): boolean;
- static isTokenQuote(token: Token, parserOptions: ParserOptions): boolean;
- static isTokenDelimiter(token: Token, parserOptions: ParserOptions): boolean;
- readonly token: string;
- readonly startCursor: number;
- readonly endCursor: number;
- constructor(tokenArgs: TokenArgs);
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Token.js b/node_modules/@fast-csv/parse/build/src/parser/Token.js
deleted file mode 100644
index d61b23c..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Token.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Token = void 0;
-class Token {
- constructor(tokenArgs) {
- this.token = tokenArgs.token;
- this.startCursor = tokenArgs.startCursor;
- this.endCursor = tokenArgs.endCursor;
- }
- static isTokenRowDelimiter(token) {
- const content = token.token;
- return content === '\r' || content === '\n' || content === '\r\n';
- }
- static isTokenCarriageReturn(token, parserOptions) {
- return token.token === parserOptions.carriageReturn;
- }
- static isTokenComment(token, parserOptions) {
- return parserOptions.supportsComments && !!token && token.token === parserOptions.comment;
- }
- static isTokenEscapeCharacter(token, parserOptions) {
- return token.token === parserOptions.escapeChar;
- }
- static isTokenQuote(token, parserOptions) {
- return token.token === parserOptions.quote;
- }
- static isTokenDelimiter(token, parserOptions) {
- return token.token === parserOptions.delimiter;
- }
-}
-exports.Token = Token;
-//# sourceMappingURL=Token.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/Token.js.map b/node_modules/@fast-csv/parse/build/src/parser/Token.js.map
deleted file mode 100644
index 403e802..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/Token.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../src/parser/Token.ts"],"names":[],"mappings":";;;AAUA,MAAa,KAAK;IAgCd,YAAmB,SAAoB;QACnC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACzC,CAAC;IAnCM,MAAM,CAAC,mBAAmB,CAAC,KAAY;QAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC;QAC5B,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,MAAM,CAAC;IACtE,CAAC;IAEM,MAAM,CAAC,qBAAqB,CAAC,KAAY,EAAE,aAA4B;QAC1E,OAAO,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,cAAc,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,KAAY,EAAE,aAA4B;QACnE,OAAO,aAAa,CAAC,gBAAgB,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,OAAO,CAAC;IAC9F,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,KAAY,EAAE,aAA4B;QAC3E,OAAO,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,UAAU,CAAC;IACpD,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,KAAY,EAAE,aAA4B;QACjE,OAAO,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,gBAAgB,CAAC,KAAY,EAAE,aAA4B;QACrE,OAAO,KAAK,CAAC,KAAK,KAAK,aAAa,CAAC,SAAS,CAAC;IACnD,CAAC;CAaJ;AArCD,sBAqCC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.d.ts b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.d.ts
deleted file mode 100644
index 35be4d9..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { ParserOptions } from '../../ParserOptions';
-export declare class ColumnFormatter {
- readonly format: (col: string) => string;
- constructor(parserOptions: ParserOptions);
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js
deleted file mode 100644
index 721aa12..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ColumnFormatter = void 0;
-class ColumnFormatter {
- constructor(parserOptions) {
- if (parserOptions.trim) {
- this.format = (col) => col.trim();
- }
- else if (parserOptions.ltrim) {
- this.format = (col) => col.trimLeft();
- }
- else if (parserOptions.rtrim) {
- this.format = (col) => col.trimRight();
- }
- else {
- this.format = (col) => col;
- }
- }
-}
-exports.ColumnFormatter = ColumnFormatter;
-//# sourceMappingURL=ColumnFormatter.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js.map b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js.map
deleted file mode 100644
index 331d269..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnFormatter.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ColumnFormatter.js","sourceRoot":"","sources":["../../../../src/parser/column/ColumnFormatter.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAGxB,YAAmB,aAA4B;QAC3C,IAAI,aAAa,CAAC,IAAI,EAAE;YACpB,IAAI,CAAC,MAAM,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SACrD;aAAM,IAAI,aAAa,CAAC,KAAK,EAAE;YAC5B,IAAI,CAAC,MAAM,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;SACzD;aAAM,IAAI,aAAa,CAAC,KAAK,EAAE;YAC5B,IAAI,CAAC,MAAM,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;SAC1D;aAAM;YACH,IAAI,CAAC,MAAM,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC;SAC9C;IACL,CAAC;CACJ;AAdD,0CAcC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.d.ts b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.d.ts
deleted file mode 100644
index 6dd99cd..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { ParserOptions } from '../../ParserOptions';
-import { NonQuotedColumnParser } from './NonQuotedColumnParser';
-import { QuotedColumnParser } from './QuotedColumnParser';
-import { Scanner } from '../Scanner';
-export declare class ColumnParser {
- private readonly parserOptions;
- readonly nonQuotedColumnParser: NonQuotedColumnParser;
- readonly quotedColumnParser: QuotedColumnParser;
- constructor(parserOptions: ParserOptions);
- parse(scanner: Scanner): string | null;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js
deleted file mode 100644
index e811b59..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ColumnParser = void 0;
-const NonQuotedColumnParser_1 = require("./NonQuotedColumnParser");
-const QuotedColumnParser_1 = require("./QuotedColumnParser");
-const Token_1 = require("../Token");
-class ColumnParser {
- constructor(parserOptions) {
- this.parserOptions = parserOptions;
- this.quotedColumnParser = new QuotedColumnParser_1.QuotedColumnParser(parserOptions);
- this.nonQuotedColumnParser = new NonQuotedColumnParser_1.NonQuotedColumnParser(parserOptions);
- }
- parse(scanner) {
- const { nextNonSpaceToken } = scanner;
- if (nextNonSpaceToken !== null && Token_1.Token.isTokenQuote(nextNonSpaceToken, this.parserOptions)) {
- scanner.advanceToToken(nextNonSpaceToken);
- return this.quotedColumnParser.parse(scanner);
- }
- return this.nonQuotedColumnParser.parse(scanner);
- }
-}
-exports.ColumnParser = ColumnParser;
-//# sourceMappingURL=ColumnParser.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js.map b/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js.map
deleted file mode 100644
index 8f7258e..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/ColumnParser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ColumnParser.js","sourceRoot":"","sources":["../../../../src/parser/column/ColumnParser.ts"],"names":[],"mappings":";;;AACA,mEAAgE;AAChE,6DAA0D;AAE1D,oCAAiC;AAEjC,MAAa,YAAY;IAOrB,YAAmB,aAA4B;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,kBAAkB,GAAG,IAAI,uCAAkB,CAAC,aAAa,CAAC,CAAC;QAChE,IAAI,CAAC,qBAAqB,GAAG,IAAI,6CAAqB,CAAC,aAAa,CAAC,CAAC;IAC1E,CAAC;IAEM,KAAK,CAAC,OAAgB;QACzB,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;QACtC,IAAI,iBAAiB,KAAK,IAAI,IAAI,aAAK,CAAC,YAAY,CAAC,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE;YACzF,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SACjD;QACD,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;CACJ;AArBD,oCAqBC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.d.ts b/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.d.ts
deleted file mode 100644
index f06f971..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { ParserOptions } from '../../ParserOptions';
-import { Scanner } from '../Scanner';
-export declare class NonQuotedColumnParser {
- private readonly parserOptions;
- private readonly columnFormatter;
- constructor(parserOptions: ParserOptions);
- parse(scanner: Scanner): string | null;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js b/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js
deleted file mode 100644
index 5bc2fe9..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.NonQuotedColumnParser = void 0;
-const ColumnFormatter_1 = require("./ColumnFormatter");
-const Token_1 = require("../Token");
-class NonQuotedColumnParser {
- constructor(parserOptions) {
- this.parserOptions = parserOptions;
- this.columnFormatter = new ColumnFormatter_1.ColumnFormatter(parserOptions);
- }
- parse(scanner) {
- if (!scanner.hasMoreCharacters) {
- return null;
- }
- const { parserOptions } = this;
- const characters = [];
- let nextToken = scanner.nextCharacterToken;
- for (; nextToken; nextToken = scanner.nextCharacterToken) {
- if (Token_1.Token.isTokenDelimiter(nextToken, parserOptions) || Token_1.Token.isTokenRowDelimiter(nextToken)) {
- break;
- }
- characters.push(nextToken.token);
- scanner.advancePastToken(nextToken);
- }
- return this.columnFormatter.format(characters.join(''));
- }
-}
-exports.NonQuotedColumnParser = NonQuotedColumnParser;
-//# sourceMappingURL=NonQuotedColumnParser.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js.map b/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js.map
deleted file mode 100644
index 0bb118e..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/NonQuotedColumnParser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"NonQuotedColumnParser.js","sourceRoot":"","sources":["../../../../src/parser/column/NonQuotedColumnParser.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,oCAAiC;AAEjC,MAAa,qBAAqB;IAK9B,YAAmB,aAA4B;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,IAAI,iCAAe,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAEM,KAAK,CAAC,OAAgB;QACzB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;YAC5B,OAAO,IAAI,CAAC;SACf;QACD,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;QAC/B,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC;QAC3C,OAAO,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,kBAAkB,EAAE;YACtD,IAAI,aAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,IAAI,aAAK,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE;gBAC1F,MAAM;aACT;YACD,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YACjC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5D,CAAC;CACJ;AA1BD,sDA0BC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.d.ts b/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.d.ts
deleted file mode 100644
index 7983fd9..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { ParserOptions } from '../../ParserOptions';
-import { Scanner } from '../Scanner';
-export declare class QuotedColumnParser {
- private readonly parserOptions;
- private readonly columnFormatter;
- constructor(parserOptions: ParserOptions);
- parse(scanner: Scanner): string | null;
- private gatherDataBetweenQuotes;
- private checkForMalformedColumn;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js b/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js
deleted file mode 100644
index 06ebca1..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.QuotedColumnParser = void 0;
-const ColumnFormatter_1 = require("./ColumnFormatter");
-const Token_1 = require("../Token");
-class QuotedColumnParser {
- constructor(parserOptions) {
- this.parserOptions = parserOptions;
- this.columnFormatter = new ColumnFormatter_1.ColumnFormatter(parserOptions);
- }
- parse(scanner) {
- if (!scanner.hasMoreCharacters) {
- return null;
- }
- const originalCursor = scanner.cursor;
- const { foundClosingQuote, col } = this.gatherDataBetweenQuotes(scanner);
- if (!foundClosingQuote) {
- // reset the cursor to the original
- scanner.advanceTo(originalCursor);
- // if we didnt find a closing quote but we potentially have more data then skip the parsing
- // and return the original scanner.
- if (!scanner.hasMoreData) {
- throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote || ''}' in line: at '${scanner.lineFromCursor.replace(/[\r\n]/g, "\\n'")}'`);
- }
- return null;
- }
- this.checkForMalformedColumn(scanner);
- return col;
- }
- gatherDataBetweenQuotes(scanner) {
- const { parserOptions } = this;
- let foundStartingQuote = false;
- let foundClosingQuote = false;
- const characters = [];
- let nextToken = scanner.nextCharacterToken;
- for (; !foundClosingQuote && nextToken !== null; nextToken = scanner.nextCharacterToken) {
- const isQuote = Token_1.Token.isTokenQuote(nextToken, parserOptions);
- // ignore first quote
- if (!foundStartingQuote && isQuote) {
- foundStartingQuote = true;
- }
- else if (foundStartingQuote) {
- if (Token_1.Token.isTokenEscapeCharacter(nextToken, parserOptions)) {
- // advance past the escape character so we can get the next one in line
- scanner.advancePastToken(nextToken);
- const tokenFollowingEscape = scanner.nextCharacterToken;
- // if the character following the escape is a quote character then just add
- // the quote and advance to that character
- if (tokenFollowingEscape !== null &&
- (Token_1.Token.isTokenQuote(tokenFollowingEscape, parserOptions) ||
- Token_1.Token.isTokenEscapeCharacter(tokenFollowingEscape, parserOptions))) {
- characters.push(tokenFollowingEscape.token);
- nextToken = tokenFollowingEscape;
- }
- else if (isQuote) {
- // if the escape is also a quote then we found our closing quote and finish early
- foundClosingQuote = true;
- }
- else {
- // other wise add the escape token to the characters since it wast escaping anything
- characters.push(nextToken.token);
- }
- }
- else if (isQuote) {
- // we found our closing quote!
- foundClosingQuote = true;
- }
- else {
- // add the token to the characters
- characters.push(nextToken.token);
- }
- }
- scanner.advancePastToken(nextToken);
- }
- return { col: this.columnFormatter.format(characters.join('')), foundClosingQuote };
- }
- checkForMalformedColumn(scanner) {
- const { parserOptions } = this;
- const { nextNonSpaceToken } = scanner;
- if (nextNonSpaceToken) {
- const isNextTokenADelimiter = Token_1.Token.isTokenDelimiter(nextNonSpaceToken, parserOptions);
- const isNextTokenARowDelimiter = Token_1.Token.isTokenRowDelimiter(nextNonSpaceToken);
- if (!(isNextTokenADelimiter || isNextTokenARowDelimiter)) {
- // if the final quote was NOT followed by a column (,) or row(\n) delimiter then its a bad column
- // tldr: only part of the column was quoted
- const linePreview = scanner.lineFromCursor.substr(0, 10).replace(/[\r\n]/g, "\\n'");
- throw new Error(`Parse Error: expected: '${parserOptions.escapedDelimiter}' OR new line got: '${nextNonSpaceToken.token}'. at '${linePreview}`);
- }
- scanner.advanceToToken(nextNonSpaceToken);
- }
- else if (!scanner.hasMoreData) {
- scanner.advancePastLine();
- }
- }
-}
-exports.QuotedColumnParser = QuotedColumnParser;
-//# sourceMappingURL=QuotedColumnParser.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js.map b/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js.map
deleted file mode 100644
index 74eeb40..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/QuotedColumnParser.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"QuotedColumnParser.js","sourceRoot":"","sources":["../../../../src/parser/column/QuotedColumnParser.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAGpD,oCAAiC;AAOjC,MAAa,kBAAkB;IAK3B,YAAmB,aAA4B;QAC3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,IAAI,iCAAe,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAEM,KAAK,CAAC,OAAgB;QACzB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;YAC5B,OAAO,IAAI,CAAC;SACf;QACD,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;QACtC,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,CAAC,iBAAiB,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OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;gBACpF,MAAM,IAAI,KAAK,CACX,2BAA2B,aAAa,CAAC,gBAAgB,uBAAuB,iBAAiB,CAAC,KAAK,UAAU,WAAW,EAAE,CACjI,CAAC;aACL;YACD,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;SAC7C;aAAM,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YAC7B,OAAO,CAAC,eAAe,EAAE,CAAC;SAC7B;IACL,CAAC;CACJ;AAlGD,gDAkGC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/index.d.ts b/node_modules/@fast-csv/parse/build/src/parser/column/index.d.ts
deleted file mode 100644
index 2c574ea..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export { ColumnParser } from './ColumnParser';
-export { NonQuotedColumnParser } from './NonQuotedColumnParser';
-export { QuotedColumnParser } from './QuotedColumnParser';
-export { ColumnFormatter } from './ColumnFormatter';
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/index.js b/node_modules/@fast-csv/parse/build/src/parser/column/index.js
deleted file mode 100644
index d173b45..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.ColumnFormatter = exports.QuotedColumnParser = exports.NonQuotedColumnParser = exports.ColumnParser = void 0;
-var ColumnParser_1 = require("./ColumnParser");
-Object.defineProperty(exports, "ColumnParser", { enumerable: true, get: function () { return ColumnParser_1.ColumnParser; } });
-var NonQuotedColumnParser_1 = require("./NonQuotedColumnParser");
-Object.defineProperty(exports, "NonQuotedColumnParser", { enumerable: true, get: function () { return NonQuotedColumnParser_1.NonQuotedColumnParser; } });
-var QuotedColumnParser_1 = require("./QuotedColumnParser");
-Object.defineProperty(exports, "QuotedColumnParser", { enumerable: true, get: function () { return QuotedColumnParser_1.QuotedColumnParser; } });
-var ColumnFormatter_1 = require("./ColumnFormatter");
-Object.defineProperty(exports, "ColumnFormatter", { enumerable: true, get: function () { return ColumnFormatter_1.ColumnFormatter; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/column/index.js.map b/node_modules/@fast-csv/parse/build/src/parser/column/index.js.map
deleted file mode 100644
index 87996c1..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/column/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/column/index.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/index.d.ts b/node_modules/@fast-csv/parse/build/src/parser/index.d.ts
deleted file mode 100644
index 2f64fcb..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/index.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export { Parser } from './Parser';
-export { RowParser } from './RowParser';
-export { Scanner } from './Scanner';
-export { Token, MaybeToken } from './Token';
-export { ColumnParser, NonQuotedColumnParser, QuotedColumnParser } from './column';
diff --git a/node_modules/@fast-csv/parse/build/src/parser/index.js b/node_modules/@fast-csv/parse/build/src/parser/index.js
deleted file mode 100644
index 658e7e8..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.QuotedColumnParser = exports.NonQuotedColumnParser = exports.ColumnParser = exports.Token = exports.Scanner = exports.RowParser = exports.Parser = void 0;
-var Parser_1 = require("./Parser");
-Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_1.Parser; } });
-var RowParser_1 = require("./RowParser");
-Object.defineProperty(exports, "RowParser", { enumerable: true, get: function () { return RowParser_1.RowParser; } });
-var Scanner_1 = require("./Scanner");
-Object.defineProperty(exports, "Scanner", { enumerable: true, get: function () { return Scanner_1.Scanner; } });
-var Token_1 = require("./Token");
-Object.defineProperty(exports, "Token", { enumerable: true, get: function () { return Token_1.Token; } });
-var column_1 = require("./column");
-Object.defineProperty(exports, "ColumnParser", { enumerable: true, get: function () { return column_1.ColumnParser; } });
-Object.defineProperty(exports, "NonQuotedColumnParser", { enumerable: true, get: function () { return column_1.NonQuotedColumnParser; } });
-Object.defineProperty(exports, "QuotedColumnParser", { enumerable: true, get: function () { return column_1.QuotedColumnParser; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/parser/index.js.map b/node_modules/@fast-csv/parse/build/src/parser/index.js.map
deleted file mode 100644
index 245bcb6..0000000
--- a/node_modules/@fast-csv/parse/build/src/parser/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/parser/index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iCAA4C;AAAnC,8FAAA,KAAK,OAAA;AACd,mCAAmF;AAA1E,sGAAA,YAAY,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAAE,4GAAA,kBAAkB,OAAA"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.d.ts b/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.d.ts
deleted file mode 100644
index 433daa1..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { ParserOptions } from '../ParserOptions';
-import { HeaderArray, Row, RowArray, RowValidatorCallback } from '../types';
-export declare class HeaderTransformer {
- private readonly parserOptions;
- headers: HeaderArray | null;
- private receivedHeaders;
- private readonly shouldUseFirstRow;
- private processedFirstRow;
- private headersLength;
- private readonly headersTransform?;
- constructor(parserOptions: ParserOptions);
- transform(row: RowArray, cb: RowValidatorCallback): void;
- private shouldMapRow;
- private processRow;
- private mapHeaders;
- private setHeaders;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js b/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js
deleted file mode 100644
index dd42491..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js
+++ /dev/null
@@ -1,115 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.HeaderTransformer = void 0;
-const lodash_isundefined_1 = __importDefault(require("lodash.isundefined"));
-const lodash_isfunction_1 = __importDefault(require("lodash.isfunction"));
-const lodash_uniq_1 = __importDefault(require("lodash.uniq"));
-const lodash_groupby_1 = __importDefault(require("lodash.groupby"));
-class HeaderTransformer {
- constructor(parserOptions) {
- this.headers = null;
- this.receivedHeaders = false;
- this.shouldUseFirstRow = false;
- this.processedFirstRow = false;
- this.headersLength = 0;
- this.parserOptions = parserOptions;
- if (parserOptions.headers === true) {
- this.shouldUseFirstRow = true;
- }
- else if (Array.isArray(parserOptions.headers)) {
- this.setHeaders(parserOptions.headers);
- }
- else if (lodash_isfunction_1.default(parserOptions.headers)) {
- this.headersTransform = parserOptions.headers;
- }
- }
- transform(row, cb) {
- if (!this.shouldMapRow(row)) {
- return cb(null, { row: null, isValid: true });
- }
- return cb(null, this.processRow(row));
- }
- shouldMapRow(row) {
- const { parserOptions } = this;
- if (!this.headersTransform && parserOptions.renameHeaders && !this.processedFirstRow) {
- if (!this.receivedHeaders) {
- throw new Error('Error renaming headers: new headers must be provided in an array');
- }
- this.processedFirstRow = true;
- return false;
- }
- if (!this.receivedHeaders && Array.isArray(row)) {
- if (this.headersTransform) {
- this.setHeaders(this.headersTransform(row));
- }
- else if (this.shouldUseFirstRow) {
- this.setHeaders(row);
- }
- else {
- // dont do anything with the headers if we didnt receive a transform or shouldnt use the first row.
- return true;
- }
- return false;
- }
- return true;
- }
- processRow(row) {
- if (!this.headers) {
- return { row: row, isValid: true };
- }
- const { parserOptions } = this;
- if (!parserOptions.discardUnmappedColumns && row.length > this.headersLength) {
- if (!parserOptions.strictColumnHandling) {
- throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${row.length}`);
- }
- return {
- row: row,
- isValid: false,
- reason: `Column header mismatch expected: ${this.headersLength} columns got: ${row.length}`,
- };
- }
- if (parserOptions.strictColumnHandling && row.length < this.headersLength) {
- return {
- row: row,
- isValid: false,
- reason: `Column header mismatch expected: ${this.headersLength} columns got: ${row.length}`,
- };
- }
- return { row: this.mapHeaders(row), isValid: true };
- }
- mapHeaders(row) {
- const rowMap = {};
- const { headers, headersLength } = this;
- for (let i = 0; i < headersLength; i += 1) {
- const header = headers[i];
- if (!lodash_isundefined_1.default(header)) {
- const val = row[i];
- // eslint-disable-next-line no-param-reassign
- if (lodash_isundefined_1.default(val)) {
- rowMap[header] = '';
- }
- else {
- rowMap[header] = val;
- }
- }
- }
- return rowMap;
- }
- setHeaders(headers) {
- var _a;
- const filteredHeaders = headers.filter((h) => !!h);
- if (lodash_uniq_1.default(filteredHeaders).length !== filteredHeaders.length) {
- const grouped = lodash_groupby_1.default(filteredHeaders);
- const duplicates = Object.keys(grouped).filter((dup) => grouped[dup].length > 1);
- throw new Error(`Duplicate headers found ${JSON.stringify(duplicates)}`);
- }
- this.headers = headers;
- this.receivedHeaders = true;
- this.headersLength = ((_a = this.headers) === null || _a === void 0 ? void 0 : _a.length) || 0;
- }
-}
-exports.HeaderTransformer = HeaderTransformer;
-//# sourceMappingURL=HeaderTransformer.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js.map b/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js.map
deleted file mode 100644
index 350999d..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/HeaderTransformer.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"HeaderTransformer.js","sourceRoot":"","sources":["../../../src/transforms/HeaderTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,4EAA6C;AAC7C,0EAA2C;AAC3C,8DAA+B;AAC/B,oEAAqC;AAYrC,MAAa,iBAAiB;IAe1B,YAAmB,aAA4B;QAZ/C,YAAO,GAAuB,IAAI,CAAC;QAE3B,oBAAe,GAAG,KAAK,CAAC;QAEf,sBAAiB,GAAY,KAAK,CAAC;QAE5C,sBAAiB,GAAG,KAAK,CAAC;QAE1B,kBAAa,GAAG,CAAC,CAAC;QAKtB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE;YAChC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;SACjC;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;YAC7C,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC1C;aAAM,IAAI,2BAAU,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;YAC1C,IAAI,CAAC,gBAAgB,GAAG,aAAa,CAAC,OAAO,CAAC;SACjD;IACL,CAAC;IAEM,SAAS,CAAC,GAAa,EAAE,EAA2B;QACvD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE;YACzB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,C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MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,IAAI,qBAAI,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,EAAE;YACzD,MAAM,OAAO,GAAG,wBAAO,CAAC,eAAe,CAAC,CAAC;YACzC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACjF,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;SAC5E;QACD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,KAAI,CAAC,CAAC;IACnD,CAAC;CACJ;AAhHD,8CAgHC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.d.ts b/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.d.ts
deleted file mode 100644
index 55a5173..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Row, RowTransformFunction, RowValidatorCallback, RowValidate } from '../types';
-export declare class RowTransformerValidator {
- private static createTransform;
- private static createValidator;
- private _rowTransform;
- private _rowValidator;
- set rowTransform(transformFunction: RowTransformFunction);
- set rowValidator(validateFunction: RowValidate);
- transformAndValidate(row: I, cb: RowValidatorCallback): void;
- private callTransformer;
- private callValidator;
-}
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js b/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js
deleted file mode 100644
index c7c69f8..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.RowTransformerValidator = void 0;
-const lodash_isfunction_1 = __importDefault(require("lodash.isfunction"));
-const types_1 = require("../types");
-class RowTransformerValidator {
- constructor() {
- this._rowTransform = null;
- this._rowValidator = null;
- }
- // eslint-disable-next-line @typescript-eslint/no-shadow
- static createTransform(transformFunction) {
- if (types_1.isSyncTransform(transformFunction)) {
- return (row, cb) => {
- let transformed = null;
- try {
- transformed = transformFunction(row);
- }
- catch (e) {
- return cb(e);
- }
- return cb(null, transformed);
- };
- }
- return transformFunction;
- }
- static createValidator(validateFunction) {
- if (types_1.isSyncValidate(validateFunction)) {
- return (row, cb) => {
- cb(null, { row, isValid: validateFunction(row) });
- };
- }
- return (row, cb) => {
- validateFunction(row, (err, isValid, reason) => {
- if (err) {
- return cb(err);
- }
- if (isValid) {
- return cb(null, { row, isValid, reason });
- }
- return cb(null, { row, isValid: false, reason });
- });
- };
- }
- set rowTransform(transformFunction) {
- if (!lodash_isfunction_1.default(transformFunction)) {
- throw new TypeError('The transform should be a function');
- }
- this._rowTransform = RowTransformerValidator.createTransform(transformFunction);
- }
- set rowValidator(validateFunction) {
- if (!lodash_isfunction_1.default(validateFunction)) {
- throw new TypeError('The validate should be a function');
- }
- this._rowValidator = RowTransformerValidator.createValidator(validateFunction);
- }
- transformAndValidate(row, cb) {
- return this.callTransformer(row, (transformErr, transformedRow) => {
- if (transformErr) {
- return cb(transformErr);
- }
- if (!transformedRow) {
- return cb(null, { row: null, isValid: true });
- }
- return this.callValidator(transformedRow, (validateErr, validationResult) => {
- if (validateErr) {
- return cb(validateErr);
- }
- if (validationResult && !validationResult.isValid) {
- return cb(null, { row: transformedRow, isValid: false, reason: validationResult.reason });
- }
- return cb(null, { row: transformedRow, isValid: true });
- });
- });
- }
- callTransformer(row, cb) {
- if (!this._rowTransform) {
- return cb(null, row);
- }
- return this._rowTransform(row, cb);
- }
- callValidator(row, cb) {
- if (!this._rowValidator) {
- return cb(null, { row, isValid: true });
- }
- return this._rowValidator(row, cb);
- }
-}
-exports.RowTransformerValidator = RowTransformerValidator;
-//# sourceMappingURL=RowTransformerValidator.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js.map b/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js.map
deleted file mode 100644
index 008e028..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/RowTransformerValidator.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"RowTransformerValidator.js","sourceRoot":"","sources":["../../../src/transforms/RowTransformerValidator.ts"],"names":[],"mappings":";;;;;;AAAA,0EAA2C;AAC3C,oCASkB;AAIlB,MAAa,uBAAuB;IAApC;QAsCY,kBAAa,GAAmC,IAAI,CAAC;QAErD,kBAAa,GAA2B,IAAI,CAAC;IAiDzD,CAAC;IAxFG,wDAAwD;IAChD,MAAM,CAAC,eAAe,CAC1B,iBAA6C;QAE7C,IAAI,uBAAe,CAAC,iBAAiB,CAAC,EAAE;YACpC,OAAO,CAAC,GAAM,EAAE,EAA2B,EAAQ,EAAE;gBACjD,IAAI,WAAW,GAAa,IAAI,CAAC;gBACjC,IAAI;oBACA,WAAW,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;iBACxC;gBAAC,OAAO,CAAC,EAAE;oBACR,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;iBAChB;gBACD,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACjC,CAAC,CAAC;SACL;QACD,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAEO,MAAM,CAAC,eAAe,CAAgB,gBAAgC;QAC1E,IAAI,sBAAc,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AAE,CAAC,CAAC;IACvC,CAAC;CACJ;AAzFD,0DAyFC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/index.d.ts b/node_modules/@fast-csv/parse/build/src/transforms/index.d.ts
deleted file mode 100644
index 26df69b..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export { RowTransformerValidator } from './RowTransformerValidator';
-export { HeaderTransformer } from './HeaderTransformer';
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/index.js b/node_modules/@fast-csv/parse/build/src/transforms/index.js
deleted file mode 100644
index 2b8caf4..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.HeaderTransformer = exports.RowTransformerValidator = void 0;
-var RowTransformerValidator_1 = require("./RowTransformerValidator");
-Object.defineProperty(exports, "RowTransformerValidator", { enumerable: true, get: function () { return RowTransformerValidator_1.RowTransformerValidator; } });
-var HeaderTransformer_1 = require("./HeaderTransformer");
-Object.defineProperty(exports, "HeaderTransformer", { enumerable: true, get: function () { return HeaderTransformer_1.HeaderTransformer; } });
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/transforms/index.js.map b/node_modules/@fast-csv/parse/build/src/transforms/index.js.map
deleted file mode 100644
index dacea91..0000000
--- a/node_modules/@fast-csv/parse/build/src/transforms/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transforms/index.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/types.d.ts b/node_modules/@fast-csv/parse/build/src/types.d.ts
deleted file mode 100644
index 625cb99..0000000
--- a/node_modules/@fast-csv/parse/build/src/types.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export declare type RowMap = Record;
-export declare type RowArray = V[];
-export declare type Row = RowMap | RowArray;
-export interface RowValidationResult {
- row: R | null;
- isValid: boolean;
- reason?: string;
-}
-export declare type RowValidatorCallback = (error: Error | null, result?: RowValidationResult) => void;
-export declare type RowTransformCallback = (error?: Error | null, row?: R) => void;
-export declare type SyncRowTransform = (row: I) => O;
-export declare type AsyncRowTransform = (row: I, cb: RowTransformCallback) => void;
-export declare type RowTransformFunction = SyncRowTransform | AsyncRowTransform;
-export declare const isSyncTransform: , O extends Row>(transform: RowTransformFunction) => transform is SyncRowTransform;
-export declare type RowValidateCallback = (error?: Error | null, isValid?: boolean, reason?: string) => void;
-export declare type SyncRowValidate = (row: R) => boolean;
-export declare type AsyncRowValidate = (row: R, cb: RowValidateCallback) => void;
-export declare type RowValidate = AsyncRowValidate | SyncRowValidate;
-export declare const isSyncValidate: >(validate: RowValidate) => validate is SyncRowValidate;
-export declare type HeaderArray = (string | undefined | null)[];
-export declare type HeaderTransformFunction = (headers: HeaderArray) => HeaderArray;
diff --git a/node_modules/@fast-csv/parse/build/src/types.js b/node_modules/@fast-csv/parse/build/src/types.js
deleted file mode 100644
index 92dc9f7..0000000
--- a/node_modules/@fast-csv/parse/build/src/types.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.isSyncValidate = exports.isSyncTransform = void 0;
-exports.isSyncTransform = (transform) => transform.length === 1;
-exports.isSyncValidate = (validate) => validate.length === 1;
-//# sourceMappingURL=types.js.map
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/build/src/types.js.map b/node_modules/@fast-csv/parse/build/src/types.js.map
deleted file mode 100644
index f335163..0000000
--- a/node_modules/@fast-csv/parse/build/src/types.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAoBa,QAAA,eAAe,GAAG,CAC3B,SAAqC,EACF,EAAE,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;AAQpD,QAAA,cAAc,GAAG,CAAgB,QAAwB,EAAkC,EAAE,CACtG,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@fast-csv/parse/package.json b/node_modules/@fast-csv/parse/package.json
deleted file mode 100644
index 1fda641..0000000
--- a/node_modules/@fast-csv/parse/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "@fast-csv/parse",
- "version": "4.3.6",
- "description": "fast-csv parsing package",
- "keywords": [
- "csv",
- "parse",
- "fast-csv",
- "parser"
- ],
- "author": "doug-martin ",
- "homepage": "http://c2fo.github.com/fast-csv/packages/parse",
- "license": "MIT",
- "main": "build/src/index.js",
- "types": "build/src/index.d.ts",
- "directories": {
- "lib": "src",
- "test": "__tests__"
- },
- "files": [
- "build/src/**"
- ],
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/C2FO/fast-csv.git",
- "directory": "packages/parse"
- },
- "scripts": {
- "prepublishOnly": "npm run build",
- "build": "npm run clean && npm run compile",
- "clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
- "compile": "tsc"
- },
- "bugs": {
- "url": "https://github.com/C2FO/fast-csv/issues"
- },
- "dependencies": {
- "@types/node": "^14.0.1",
- "lodash.escaperegexp": "^4.1.2",
- "lodash.groupby": "^4.6.0",
- "lodash.isfunction": "^3.0.9",
- "lodash.isnil": "^4.0.0",
- "lodash.isundefined": "^3.0.1",
- "lodash.uniq": "^4.5.0"
- },
- "devDependencies": {
- "@types/lodash.escaperegexp": "4.1.6",
- "@types/lodash.groupby": "4.6.6",
- "@types/lodash.isfunction": "3.0.6",
- "@types/lodash.isnil": "4.0.6",
- "@types/lodash.isundefined": "3.0.6",
- "@types/lodash.partition": "4.6.6",
- "@types/lodash.uniq": "4.5.6",
- "@types/sinon": "9.0.9",
- "lodash.partition": "4.6.0",
- "sinon": "9.2.1"
- },
- "gitHead": "3dc859edb19924b315051e4c87d6273808a0de73"
-}
diff --git a/node_modules/@types/node/LICENSE b/node_modules/@types/node/LICENSE
deleted file mode 100644
index 9e841e7..0000000
--- a/node_modules/@types/node/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
- MIT License
-
- Copyright (c) Microsoft Corporation.
-
- 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/@types/node/README.md b/node_modules/@types/node/README.md
deleted file mode 100644
index 8f85988..0000000
--- a/node_modules/@types/node/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/node`
-
-# Summary
-This package contains type definitions for Node.js (https://nodejs.org/).
-
-# Details
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
-
-### Additional Details
- * Last updated: Sat, 23 Sep 2023 20:38:33 GMT
- * Dependencies: none
- * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
-
-# Credits
-These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [Bond](https://github.com/bondz), and [Linus Unnebäck](https://github.com/LinusU).
diff --git a/node_modules/@types/node/assert.d.ts b/node_modules/@types/node/assert.d.ts
deleted file mode 100644
index e1d8d92..0000000
--- a/node_modules/@types/node/assert.d.ts
+++ /dev/null
@@ -1,130 +0,0 @@
-declare module "assert" {
- /** An alias of `assert.ok()`. */
- function assert(value: any, message?: string | Error): asserts value;
- namespace assert {
- class AssertionError extends Error {
- actual: any;
- expected: any;
- operator: string;
- generatedMessage: boolean;
- code: "ERR_ASSERTION";
-
- constructor(options?: {
- /** If provided, the error message is set to this value. */
- message?: string | undefined;
- /** The `actual` property on the error instance. */
- actual?: any;
- /** The `expected` property on the error instance. */
- expected?: any;
- /** The `operator` property on the error instance. */
- operator?: string | undefined;
- /** If provided, the generated stack trace omits frames before this function. */
- // tslint:disable-next-line:ban-types
- stackStartFn?: Function | undefined;
- });
- }
-
- class CallTracker {
- calls(exact?: number): () => void;
- calls any>(fn?: Func, exact?: number): Func;
- report(): CallTrackerReportInformation[];
- verify(): void;
- }
- interface CallTrackerReportInformation {
- message: string;
- /** The actual number of times the function was called. */
- actual: number;
- /** The number of times the function was expected to be called. */
- expected: number;
- /** The name of the function that is wrapped. */
- operator: string;
- /** A stack trace of the function. */
- stack: object;
- }
-
- type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error;
-
- function fail(message?: string | Error): never;
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
- function fail(
- actual: any,
- expected: any,
- message?: string | Error,
- operator?: string,
- // tslint:disable-next-line:ban-types
- stackStartFn?: Function,
- ): never;
- function ok(value: any, message?: string | Error): asserts value;
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
- function equal(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
- function notEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
- function deepEqual(actual: any, expected: any, message?: string | Error): void;
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
- function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
- function strictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
- function deepStrictEqual(actual: any, expected: T, message?: string | Error): asserts actual is T;
- function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
-
- function throws(block: () => any, message?: string | Error): void;
- function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
- function doesNotThrow(block: () => any, message?: string | Error): void;
- function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
-
- function ifError(value: any): asserts value is null | undefined;
-
- function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function rejects(
- block: (() => Promise) | Promise,
- error: AssertPredicate,
- message?: string | Error,
- ): Promise;
- function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise;
- function doesNotReject(
- block: (() => Promise) | Promise,
- error: AssertPredicate,
- message?: string | Error,
- ): Promise;
-
- function match(value: string, regExp: RegExp, message?: string | Error): void;
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
-
- const strict:
- & Omit<
- typeof assert,
- | "equal"
- | "notEqual"
- | "deepEqual"
- | "notDeepEqual"
- | "ok"
- | "strictEqual"
- | "deepStrictEqual"
- | "ifError"
- | "strict"
- >
- & {
- (value: any, message?: string | Error): asserts value;
- equal: typeof strictEqual;
- notEqual: typeof notStrictEqual;
- deepEqual: typeof deepStrictEqual;
- notDeepEqual: typeof notDeepStrictEqual;
-
- // Mapped types and assertion functions are incompatible?
- // TS2775: Assertions require every name in the call target
- // to be declared with an explicit type annotation.
- ok: typeof ok;
- strictEqual: typeof strictEqual;
- deepStrictEqual: typeof deepStrictEqual;
- ifError: typeof ifError;
- strict: typeof strict;
- };
- }
-
- export = assert;
-}
-declare module "node:assert" {
- import assert = require("assert");
- export = assert;
-}
diff --git a/node_modules/@types/node/async_hooks.d.ts b/node_modules/@types/node/async_hooks.d.ts
deleted file mode 100644
index ec1dad9..0000000
--- a/node_modules/@types/node/async_hooks.d.ts
+++ /dev/null
@@ -1,237 +0,0 @@
-/**
- * Async Hooks module: https://nodejs.org/api/async_hooks.html
- */
-declare module "async_hooks" {
- /**
- * Returns the asyncId of the current execution context.
- */
- function executionAsyncId(): number;
-
- /**
- * The resource representing the current execution.
- * Useful to store data within the resource.
- *
- * Resource objects returned by `executionAsyncResource()` are most often internal
- * Node.js handle objects with undocumented APIs. Using any functions or properties
- * on the object is likely to crash your application and should be avoided.
- *
- * Using `executionAsyncResource()` in the top-level execution context will
- * return an empty object as there is no handle or request object to use,
- * but having an object representing the top-level can be helpful.
- */
- function executionAsyncResource(): object;
-
- /**
- * Returns the ID of the resource responsible for calling the callback that is currently being executed.
- */
- function triggerAsyncId(): number;
-
- interface HookCallbacks {
- /**
- * Called when a class is constructed that has the possibility to emit an asynchronous event.
- * @param asyncId a unique ID for the async resource
- * @param type the type of the async resource
- * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created
- * @param resource reference to the resource representing the async operation, needs to be released during destroy
- */
- init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
-
- /**
- * When an asynchronous operation is initiated or completes a callback is called to notify the user.
- * The before callback is called just before said callback is executed.
- * @param asyncId the unique identifier assigned to the resource about to execute the callback.
- */
- before?(asyncId: number): void;
-
- /**
- * Called immediately after the callback specified in before is completed.
- * @param asyncId the unique identifier assigned to the resource which has executed the callback.
- */
- after?(asyncId: number): void;
-
- /**
- * Called when a promise has resolve() called. This may not be in the same execution id
- * as the promise itself.
- * @param asyncId the unique id for the promise that was resolve()d.
- */
- promiseResolve?(asyncId: number): void;
-
- /**
- * Called after the resource corresponding to asyncId is destroyed
- * @param asyncId a unique ID for the async resource
- */
- destroy?(asyncId: number): void;
- }
-
- interface AsyncHook {
- /**
- * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
- */
- enable(): this;
-
- /**
- * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
- */
- disable(): this;
- }
-
- /**
- * Registers functions to be called for different lifetime events of each async operation.
- * @param options the callbacks to register
- * @return an AsyncHooks instance used for disabling and enabling hooks
- */
- function createHook(options: HookCallbacks): AsyncHook;
-
- interface AsyncResourceOptions {
- /**
- * The ID of the execution context that created this async event.
- * @default executionAsyncId()
- */
- triggerAsyncId?: number | undefined;
-
- /**
- * Disables automatic `emitDestroy` when the object is garbage collected.
- * This usually does not need to be set (even if `emitDestroy` is called
- * manually), unless the resource's `asyncId` is retrieved and the
- * sensitive API's `emitDestroy` is called with it.
- * @default false
- */
- requireManualDestroy?: boolean | undefined;
- }
-
- /**
- * The class AsyncResource was designed to be extended by the embedder's async resources.
- * Using this users can easily trigger the lifetime events of their own resources.
- */
- class AsyncResource {
- /**
- * AsyncResource() is meant to be extended. Instantiating a
- * new AsyncResource() also triggers init. If triggerAsyncId is omitted then
- * async_hook.executionAsyncId() is used.
- * @param type The type of async event.
- * @param triggerAsyncId The ID of the execution context that created
- * this async event (default: `executionAsyncId()`), or an
- * AsyncResourceOptions object (since v9.3.0)
- */
- constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
-
- /**
- * Binds the given function to the current execution context.
- * @param fn The function to bind to the current execution context.
- * @param type An optional name to associate with the underlying `AsyncResource`.
- */
- static bind any>(
- fn: Func,
- type?: string,
- ): Func & { asyncResource: AsyncResource };
-
- /**
- * Binds the given function to execute to this `AsyncResource`'s scope.
- * @param fn The function to bind to the current `AsyncResource`.
- */
- bind any>(fn: Func): Func & { asyncResource: AsyncResource };
-
- /**
- * Call the provided function with the provided arguments in the
- * execution context of the async resource. This will establish the
- * context, trigger the AsyncHooks before callbacks, call the function,
- * trigger the AsyncHooks after callbacks, and then restore the original
- * execution context.
- * @param fn The function to call in the execution context of this
- * async resource.
- * @param thisArg The receiver to be used for the function call.
- * @param args Optional arguments to pass to the function.
- */
- runInAsyncScope(
- fn: (this: This, ...args: any[]) => Result,
- thisArg?: This,
- ...args: any[]
- ): Result;
-
- /**
- * Call AsyncHooks destroy callbacks.
- */
- emitDestroy(): this;
-
- /**
- * @return the unique ID assigned to this AsyncResource instance.
- */
- asyncId(): number;
-
- /**
- * @return the trigger ID for this AsyncResource instance.
- */
- triggerAsyncId(): number;
- }
-
- /**
- * When having multiple instances of `AsyncLocalStorage`, they are independent
- * from each other. It is safe to instantiate this class multiple times.
- */
- class AsyncLocalStorage {
- /**
- * This method disables the instance of `AsyncLocalStorage`. All subsequent calls
- * to `asyncLocalStorage.getStore()` will return `undefined` until
- * `asyncLocalStorage.run()` is called again.
- *
- * When calling `asyncLocalStorage.disable()`, all current contexts linked to the
- * instance will be exited.
- *
- * Calling `asyncLocalStorage.disable()` is required before the
- * `asyncLocalStorage` can be garbage collected. This does not apply to stores
- * provided by the `asyncLocalStorage`, as those objects are garbage collected
- * along with the corresponding async resources.
- *
- * This method is to be used when the `asyncLocalStorage` is not in use anymore
- * in the current process.
- */
- disable(): void;
-
- /**
- * This method returns the current store. If this method is called outside of an
- * asynchronous context initialized by calling `asyncLocalStorage.run`, it will
- * return `undefined`.
- */
- getStore(): T | undefined;
-
- /**
- * This methods runs a function synchronously within a context and return its
- * return value. The store is not accessible outside of the callback function or
- * the asynchronous operations created within the callback.
- *
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
- *
- * I the callback function throws an error, it will be thrown by `run` too. The
- * stacktrace will not be impacted by this call and the context will be exited.
- */
- // TODO: Apply generic vararg once available
- run(store: T, callback: () => R): R;
- run(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
-
- /**
- * This methods runs a function synchronously outside of a context and return its
- * return value. The store is not accessible within the callback function or the
- * asynchronous operations created within the callback.
- *
- * Optionally, arguments can be passed to the function. They will be passed to the
- * callback function.
- *
- * If the callback function throws an error, it will be thrown by `exit` too. The
- * stacktrace will not be impacted by this call and the context will be
- * re-entered.
- */
- // TODO: Apply generic vararg once available
- exit(callback: (...args: any[]) => R, ...args: any[]): R;
-
- /**
- * Calling `asyncLocalStorage.enterWith(store)` will transition into the context
- * for the remainder of the current synchronous execution and will persist
- * through any following asynchronous calls.
- */
- enterWith(store: T): void;
- }
-}
-declare module "node:async_hooks" {
- export * from "async_hooks";
-}
diff --git a/node_modules/@types/node/buffer.d.ts b/node_modules/@types/node/buffer.d.ts
deleted file mode 100644
index 112b034..0000000
--- a/node_modules/@types/node/buffer.d.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-declare module "buffer" {
- import { BinaryLike } from "node:crypto";
- export const INSPECT_MAX_BYTES: number;
- export const kMaxLength: number;
- export const kStringMaxLength: number;
- export const constants: {
- MAX_LENGTH: number;
- MAX_STRING_LENGTH: number;
- };
- const BuffType: typeof Buffer;
-
- export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
-
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
-
- export const SlowBuffer: {
- /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
- new(size: number): Buffer;
- prototype: Buffer;
- };
- /**
- * @experimental
- */
- export interface BlobOptions {
- /**
- * @default 'utf8'
- */
- encoding?: BufferEncoding | undefined;
- /**
- * The Blob content-type. The intent is for `type` to convey
- * the MIME media type of the data, however no validation of the type format
- * is performed.
- */
- type?: string | undefined;
- }
- /**
- * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
- * multiple worker threads.
- * @since v14.18.0
- * @experimental
- */
- export class Blob {
- /**
- * The total size of the `Blob` in bytes.
- * @since v14.18.0
- */
- readonly size: number;
- /**
- * The content-type of the `Blob`.
- * @since v14.18.0
- */
- readonly type: string;
- /**
- * Creates a new `Blob` object containing a concatenation of the given sources.
- *
- * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
- * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
- *
- * String sources are also copied into the `Blob`.
- */
- constructor(sources: Array, options?: BlobOptions);
- /**
- * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
- * the `Blob` data.
- * @since v14.18.0
- */
- arrayBuffer(): Promise;
- /**
- * Creates and returns a new `Blob` containing a subset of this `Blob` objects
- * data. The original `Blob` is not altered.
- * @since v14.18.0
- * @param start The starting index.
- * @param end The ending index.
- * @param type The content-type for the new `Blob`
- */
- slice(start?: number, end?: number, type?: string): Blob;
- /**
- * Returns a promise that fulfills with the contents of the `Blob` decoded as a
- * UTF-8 string.
- * @since v14.18.0
- */
- text(): Promise;
- }
-
- export { BuffType as Buffer };
-}
-declare module "node:buffer" {
- export * from "buffer";
-}
diff --git a/node_modules/@types/node/child_process.d.ts b/node_modules/@types/node/child_process.d.ts
deleted file mode 100644
index e86922b..0000000
--- a/node_modules/@types/node/child_process.d.ts
+++ /dev/null
@@ -1,682 +0,0 @@
-declare module "child_process" {
- import { BaseEncodingOptions } from "fs";
- import * as events from "events";
- import * as net from "net";
- import { Pipe, Readable, Stream, Writable } from "stream";
-
- type Serializable = string | object | number | boolean;
- type SendHandle = net.Socket | net.Server;
-
- interface ChildProcess extends events.EventEmitter {
- stdin: Writable | null;
- stdout: Readable | null;
- stderr: Readable | null;
- readonly channel?: Pipe | null | undefined;
- readonly stdio: [
- Writable | null, // stdin
- Readable | null, // stdout
- Readable | null, // stderr
- Readable | Writable | null | undefined, // extra
- Readable | Writable | null | undefined, // extra
- ];
- readonly killed: boolean;
- readonly pid: number;
- readonly connected: boolean;
- readonly exitCode: number | null;
- readonly signalCode: NodeJS.Signals | null;
- readonly spawnargs: string[];
- readonly spawnfile: string;
- kill(signal?: NodeJS.Signals | number): boolean;
- send(message: Serializable, callback?: (error: Error | null) => void): boolean;
- send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
- send(
- message: Serializable,
- sendHandle?: SendHandle,
- options?: MessageOptions,
- callback?: (error: Error | null) => void,
- ): boolean;
- disconnect(): void;
- unref(): void;
- ref(): void;
-
- /**
- * events.EventEmitter
- * 1. close
- * 2. disconnect
- * 3. error
- * 4. exit
- * 5. message
- */
-
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (err: Error) => void): this;
- addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", err: Error): boolean;
- emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
- emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (err: Error) => void): this;
- on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (err: Error) => void): this;
- once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (err: Error) => void): this;
- prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
- prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(
- event: "close",
- listener: (code: number | null, signal: NodeJS.Signals | null) => void,
- ): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
- prependOnceListener(
- event: "exit",
- listener: (code: number | null, signal: NodeJS.Signals | null) => void,
- ): this;
- prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
- }
-
- // return this object when stdio option is undefined or not specified
- interface ChildProcessWithoutNullStreams extends ChildProcess {
- stdin: Writable;
- stdout: Readable;
- stderr: Readable;
- readonly stdio: [
- Writable, // stdin
- Readable, // stdout
- Readable, // stderr
- Readable | Writable | null | undefined, // extra, no modification
- Readable | Writable | null | undefined, // extra, no modification
- ];
- }
-
- // return this object when stdio option is a tuple of 3
- interface ChildProcessByStdio<
- I extends null | Writable,
- O extends null | Readable,
- E extends null | Readable,
- > extends ChildProcess {
- stdin: I;
- stdout: O;
- stderr: E;
- readonly stdio: [
- I,
- O,
- E,
- Readable | Writable | null | undefined, // extra, no modification
- Readable | Writable | null | undefined, // extra, no modification
- ];
- }
-
- interface MessageOptions {
- keepOpen?: boolean | undefined;
- }
-
- type StdioOptions =
- | "pipe"
- | "ignore"
- | "inherit"
- | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>;
-
- type SerializationType = "json" | "advanced";
-
- interface MessagingOptions {
- /**
- * Specify the kind of serialization used for sending messages between processes.
- * @default 'json'
- */
- serialization?: SerializationType | undefined;
- }
-
- interface ProcessEnvOptions {
- uid?: number | undefined;
- gid?: number | undefined;
- cwd?: string | undefined;
- env?: NodeJS.ProcessEnv | undefined;
- }
-
- interface CommonOptions extends ProcessEnvOptions {
- /**
- * @default false
- */
- windowsHide?: boolean | undefined;
- /**
- * @default 0
- */
- timeout?: number | undefined;
- }
-
- interface CommonSpawnOptions extends CommonOptions, MessagingOptions {
- argv0?: string | undefined;
- /**
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
- * If passed as an array, the first element is used for `stdin`, the second for
- * `stdout`, and the third for `stderr`. A fourth element can be used to
- * specify the `stdio` behavior beyond the standard streams. See
- * {@link ChildProcess.stdio} for more information.
- *
- * @default 'pipe'
- */
- stdio?: StdioOptions | undefined;
- shell?: boolean | string | undefined;
- windowsVerbatimArguments?: boolean | undefined;
- }
-
- interface SpawnOptions extends CommonSpawnOptions {
- detached?: boolean | undefined;
- }
-
- interface SpawnOptionsWithoutStdio extends SpawnOptions {
- stdio?: "pipe" | Array | undefined;
- }
-
- type StdioNull = "inherit" | "ignore" | Stream;
- type StdioPipe = undefined | null | "pipe";
-
- interface SpawnOptionsWithStdioTuple<
- Stdin extends StdioNull | StdioPipe,
- Stdout extends StdioNull | StdioPipe,
- Stderr extends StdioNull | StdioPipe,
- > extends SpawnOptions {
- stdio: [Stdin, Stdout, Stderr];
- }
-
- // overloads of spawn without 'args'
- function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
- function spawn(command: string, options: SpawnOptions): ChildProcess;
-
- // overloads of spawn with 'args'
- function spawn(
- command: string,
- args?: ReadonlyArray,
- options?: SpawnOptionsWithoutStdio,
- ): ChildProcessWithoutNullStreams;
-
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
- function spawn(
- command: string,
- args: ReadonlyArray,
- options: SpawnOptionsWithStdioTuple,
- ): ChildProcessByStdio;
-
- function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess;
-
- interface ExecOptions extends CommonOptions {
- shell?: string | undefined;
- maxBuffer?: number | undefined;
- killSignal?: NodeJS.Signals | number | undefined;
- }
-
- interface ExecOptionsWithStringEncoding extends ExecOptions {
- encoding: BufferEncoding;
- }
-
- interface ExecOptionsWithBufferEncoding extends ExecOptions {
- encoding: BufferEncoding | null; // specify `null`.
- }
-
- interface ExecException extends Error {
- cmd?: string | undefined;
- killed?: boolean | undefined;
- code?: number | undefined;
- signal?: NodeJS.Signals | undefined;
- }
-
- // no `options` definitely means stdout/stderr are `string`.
- function exec(
- command: string,
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
- function exec(
- command: string,
- options: { encoding: "buffer" | null } & ExecOptions,
- callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
- ): ChildProcess;
-
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
- function exec(
- command: string,
- options: { encoding: BufferEncoding } & ExecOptions,
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
- function exec(
- command: string,
- options: { encoding: BufferEncoding } & ExecOptions,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
- function exec(
- command: string,
- options: ExecOptions,
- callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
- function exec(
- command: string,
- options: (BaseEncodingOptions & ExecOptions) | undefined | null,
- callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- interface PromiseWithChild extends Promise {
- child: ChildProcess;
- }
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace exec {
- function __promisify__(command: string): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- command: string,
- options: { encoding: "buffer" | null } & ExecOptions,
- ): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
- function __promisify__(
- command: string,
- options: { encoding: BufferEncoding } & ExecOptions,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- command: string,
- options: ExecOptions,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- command: string,
- options?: (BaseEncodingOptions & ExecOptions) | null,
- ): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
- }
-
- interface ExecFileOptions extends CommonOptions {
- maxBuffer?: number | undefined;
- killSignal?: NodeJS.Signals | number | undefined;
- windowsVerbatimArguments?: boolean | undefined;
- shell?: boolean | string | undefined;
- }
- interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
- encoding: BufferEncoding;
- }
- interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
- encoding: "buffer" | null;
- }
- interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
- encoding: BufferEncoding;
- }
- type ExecFileException =
- & Omit
- & Omit
- & { code?: string | number | undefined | null };
-
- function execFile(file: string): ChildProcess;
- function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
- function execFile(file: string, args?: ReadonlyArray | null): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- ): ChildProcess;
-
- // no `options` definitely means stdout/stderr are `string`.
- function execFile(
- file: string,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
- function execFile(
- file: string,
- options: ExecFileOptionsWithBufferEncoding,
- callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithBufferEncoding,
- callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
- ): ChildProcess;
-
- // `options` with well known `encoding` means stdout/stderr are definitely `string`.
- function execFile(
- file: string,
- options: ExecFileOptionsWithStringEncoding,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithStringEncoding,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
- // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
- function execFile(
- file: string,
- options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithOtherEncoding,
- callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
- ): ChildProcess;
-
- // `options` without an `encoding` means stdout/stderr are definitely `string`.
- function execFile(
- file: string,
- options: ExecFileOptions,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptions,
- callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
- ): ChildProcess;
-
- // fallback if nothing else matches. Worst case is always `string | Buffer`.
- function execFile(
- file: string,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- callback:
- | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
- | undefined
- | null,
- ): ChildProcess;
- function execFile(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- callback:
- | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
- | undefined
- | null,
- ): ChildProcess;
-
- // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
- namespace execFile {
- function __promisify__(file: string): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- options: ExecFileOptionsWithBufferEncoding,
- ): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithBufferEncoding,
- ): PromiseWithChild<{ stdout: Buffer; stderr: Buffer }>;
- function __promisify__(
- file: string,
- options: ExecFileOptionsWithStringEncoding,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithStringEncoding,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- options: ExecFileOptionsWithOtherEncoding,
- ): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptionsWithOtherEncoding,
- ): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
- function __promisify__(
- file: string,
- options: ExecFileOptions,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: ExecFileOptions,
- ): PromiseWithChild<{ stdout: string; stderr: string }>;
- function __promisify__(
- file: string,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- ): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
- function __promisify__(
- file: string,
- args: ReadonlyArray | undefined | null,
- options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
- ): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer }>;
- }
-
- interface ForkOptions extends ProcessEnvOptions, MessagingOptions {
- execPath?: string | undefined;
- execArgv?: string[] | undefined;
- silent?: boolean | undefined;
- /**
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
- * If passed as an array, the first element is used for `stdin`, the second for
- * `stdout`, and the third for `stderr`. A fourth element can be used to
- * specify the `stdio` behavior beyond the standard streams. See
- * {@link ChildProcess.stdio} for more information.
- *
- * @default 'pipe'
- */
- stdio?: StdioOptions | undefined;
- detached?: boolean | undefined;
- windowsVerbatimArguments?: boolean | undefined;
- }
- function fork(modulePath: string, options?: ForkOptions): ChildProcess;
- function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess;
-
- interface SpawnSyncOptions extends CommonSpawnOptions {
- input?: string | NodeJS.ArrayBufferView | undefined;
- killSignal?: NodeJS.Signals | number | undefined;
- maxBuffer?: number | undefined;
- encoding?: BufferEncoding | "buffer" | null | undefined;
- }
- interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
- encoding: BufferEncoding;
- }
- interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
- encoding?: "buffer" | null | undefined;
- }
- interface SpawnSyncReturns {
- pid: number;
- output: Array;
- stdout: T;
- stderr: T;
- status: number | null;
- signal: NodeJS.Signals | null;
- error?: Error | undefined;
- }
- function spawnSync(command: string): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns;
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns;
- function spawnSync(
- command: string,
- args?: ReadonlyArray,
- options?: SpawnSyncOptionsWithStringEncoding,
- ): SpawnSyncReturns;
- function spawnSync(
- command: string,
- args?: ReadonlyArray,
- options?: SpawnSyncOptionsWithBufferEncoding,
- ): SpawnSyncReturns;
- function spawnSync(
- command: string,
- args?: ReadonlyArray,
- options?: SpawnSyncOptions,
- ): SpawnSyncReturns;
-
- interface ExecSyncOptions extends CommonOptions {
- input?: string | Uint8Array | undefined;
- /**
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
- * If passed as an array, the first element is used for `stdin`, the second for
- * `stdout`, and the third for `stderr`. A fourth element can be used to
- * specify the `stdio` behavior beyond the standard streams. See
- * {@link ChildProcess.stdio} for more information.
- *
- * @default 'pipe'
- */
- stdio?: StdioOptions | undefined;
- shell?: string | undefined;
- killSignal?: NodeJS.Signals | number | undefined;
- maxBuffer?: number | undefined;
- encoding?: BufferEncoding | "buffer" | null | undefined;
- }
- interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
- encoding: BufferEncoding;
- }
- interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
- encoding?: "buffer" | null | undefined;
- }
- function execSync(command: string): Buffer;
- function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
- function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
- function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
-
- interface ExecFileSyncOptions extends CommonOptions {
- input?: string | NodeJS.ArrayBufferView | undefined;
- /**
- * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
- * If passed as an array, the first element is used for `stdin`, the second for
- * `stdout`, and the third for `stderr`. A fourth element can be used to
- * specify the `stdio` behavior beyond the standard streams. See
- * {@link ChildProcess.stdio} for more information.
- *
- * @default 'pipe'
- */
- stdio?: StdioOptions | undefined;
- killSignal?: NodeJS.Signals | number | undefined;
- maxBuffer?: number | undefined;
- encoding?: BufferEncoding | undefined;
- shell?: boolean | string | undefined;
- }
- interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
- encoding: BufferEncoding;
- }
- interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
- encoding: BufferEncoding; // specify `null`.
- }
- function execFileSync(command: string): Buffer;
- function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
- function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
- function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
- function execFileSync(command: string, args: ReadonlyArray): Buffer;
- function execFileSync(
- command: string,
- args: ReadonlyArray,
- options: ExecFileSyncOptionsWithStringEncoding,
- ): string;
- function execFileSync(
- command: string,
- args: ReadonlyArray,
- options: ExecFileSyncOptionsWithBufferEncoding,
- ): Buffer;
- function execFileSync(
- command: string,
- args?: ReadonlyArray,
- options?: ExecFileSyncOptions,
- ): string | Buffer;
-}
-declare module "node:child_process" {
- export * from "child_process";
-}
diff --git a/node_modules/@types/node/cluster.d.ts b/node_modules/@types/node/cluster.d.ts
deleted file mode 100644
index 29eb984..0000000
--- a/node_modules/@types/node/cluster.d.ts
+++ /dev/null
@@ -1,300 +0,0 @@
-declare module "cluster" {
- import * as child from "child_process";
- import EventEmitter = require("events");
- import * as net from "net";
-
- // interfaces
- type SerializationType = "json" | "advanced";
- interface ClusterSettings {
- execArgv?: string[] | undefined; // default: process.execArgv
- exec?: string | undefined;
- args?: string[] | undefined;
- silent?: boolean | undefined;
- stdio?: any[] | undefined;
- uid?: number | undefined;
- gid?: number | undefined;
- inspectPort?: number | (() => number) | undefined;
- serialization?: SerializationType | undefined;
- cwd?: string | undefined;
- windowsHide?: boolean | undefined;
- }
-
- interface Address {
- address: string;
- port: number;
- addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
- }
-
- class Worker extends EventEmitter {
- id: number;
- process: child.ChildProcess;
- send(
- message: child.Serializable,
- sendHandle?: child.SendHandle,
- callback?: (error: Error | null) => void,
- ): boolean;
- kill(signal?: string): void;
- destroy(signal?: string): void;
- disconnect(): void;
- isConnected(): boolean;
- isDead(): boolean;
- exitedAfterDisconnect: boolean;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. error
- * 3. exit
- * 4. listening
- * 5. message
- * 6. online
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "disconnect", listener: () => void): this;
- addListener(event: "error", listener: (error: Error) => void): this;
- addListener(event: "exit", listener: (code: number, signal: string) => void): this;
- addListener(event: "listening", listener: (address: Address) => void): this;
- addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: () => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "disconnect"): boolean;
- emit(event: "error", error: Error): boolean;
- emit(event: "exit", code: number, signal: string): boolean;
- emit(event: "listening", address: Address): boolean;
- emit(event: "message", message: any, handle: net.Socket | net.Server): boolean;
- emit(event: "online"): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "disconnect", listener: () => void): this;
- on(event: "error", listener: (error: Error) => void): this;
- on(event: "exit", listener: (code: number, signal: string) => void): this;
- on(event: "listening", listener: (address: Address) => void): this;
- on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: () => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "disconnect", listener: () => void): this;
- once(event: "error", listener: (error: Error) => void): this;
- once(event: "exit", listener: (code: number, signal: string) => void): this;
- once(event: "listening", listener: (address: Address) => void): this;
- once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: () => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "disconnect", listener: () => void): this;
- prependListener(event: "error", listener: (error: Error) => void): this;
- prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependListener(event: "listening", listener: (address: Address) => void): this;
- prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: () => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "disconnect", listener: () => void): this;
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
- prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
- prependOnceListener(event: "listening", listener: (address: Address) => void): this;
- prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(event: "online", listener: () => void): this;
- }
-
- interface Cluster extends EventEmitter {
- Worker: Worker;
- disconnect(callback?: () => void): void;
- fork(env?: any): Worker;
- isMaster: boolean;
- isWorker: boolean;
- schedulingPolicy: number;
- settings: ClusterSettings;
- setupMaster(settings?: ClusterSettings): void;
- worker?: Worker | undefined;
- workers?: NodeJS.Dict | undefined;
-
- readonly SCHED_NONE: number;
- readonly SCHED_RR: number;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- addListener(event: string, listener: (...args: any[]) => void): this;
- addListener(event: "disconnect", listener: (worker: Worker) => void): this;
- addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- addListener(event: "fork", listener: (worker: Worker) => void): this;
- addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- addListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): this; // the handle is a net.Socket or net.Server object, or undefined.
- addListener(event: "online", listener: (worker: Worker) => void): this;
- addListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "disconnect", worker: Worker): boolean;
- emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
- emit(event: "fork", worker: Worker): boolean;
- emit(event: "listening", worker: Worker, address: Address): boolean;
- emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
- emit(event: "online", worker: Worker): boolean;
- emit(event: "setup", settings: ClusterSettings): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
- on(event: "disconnect", listener: (worker: Worker) => void): this;
- on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- on(event: "fork", listener: (worker: Worker) => void): this;
- on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- on(event: "online", listener: (worker: Worker) => void): this;
- on(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
- once(event: "disconnect", listener: (worker: Worker) => void): this;
- once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- once(event: "fork", listener: (worker: Worker) => void): this;
- once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
- once(event: "online", listener: (worker: Worker) => void): this;
- once(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
- prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependListener(event: "fork", listener: (worker: Worker) => void): this;
- prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- prependListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): this; // the handle is a net.Socket or net.Server object, or undefined.
- prependListener(event: "online", listener: (worker: Worker) => void): this;
- prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
- prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
- prependOnceListener(event: "fork", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
- // the handle is a net.Socket or net.Server object, or undefined.
- prependOnceListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): this;
- prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
- prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
- }
-
- const SCHED_NONE: number;
- const SCHED_RR: number;
-
- function disconnect(callback?: () => void): void;
- function fork(env?: any): Worker;
- const isMaster: boolean;
- const isWorker: boolean;
- let schedulingPolicy: number;
- const settings: ClusterSettings;
- function setupMaster(settings?: ClusterSettings): void;
- const worker: Worker;
- const workers: NodeJS.Dict;
-
- /**
- * events.EventEmitter
- * 1. disconnect
- * 2. exit
- * 3. fork
- * 4. listening
- * 5. message
- * 6. online
- * 7. setup
- */
- function addListener(event: string, listener: (...args: any[]) => void): Cluster;
- function addListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function addListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function addListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): Cluster;
- function addListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function addListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function emit(event: string | symbol, ...args: any[]): boolean;
- function emit(event: "disconnect", worker: Worker): boolean;
- function emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
- function emit(event: "fork", worker: Worker): boolean;
- function emit(event: "listening", worker: Worker, address: Address): boolean;
- function emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
- function emit(event: "online", worker: Worker): boolean;
- function emit(event: "setup", settings: ClusterSettings): boolean;
-
- function on(event: string, listener: (...args: any[]) => void): Cluster;
- function on(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function on(event: "fork", listener: (worker: Worker) => void): Cluster;
- function on(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- function on(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- function on(event: "online", listener: (worker: Worker) => void): Cluster;
- function on(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function once(event: string, listener: (...args: any[]) => void): Cluster;
- function once(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function once(event: "fork", listener: (worker: Worker) => void): Cluster;
- function once(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- function once(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): Cluster; // the handle is a net.Socket or net.Server object, or undefined.
- function once(event: "online", listener: (worker: Worker) => void): Cluster;
- function once(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function removeListener(event: string, listener: (...args: any[]) => void): Cluster;
- function removeAllListeners(event?: string): Cluster;
- function setMaxListeners(n: number): Cluster;
- function getMaxListeners(): number;
- function listeners(event: string): Function[];
- function listenerCount(type: string): number;
-
- function prependListener(event: string, listener: (...args: any[]) => void): Cluster;
- function prependListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): Cluster;
- function prependListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function prependListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): Cluster;
- function prependListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function prependListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function prependOnceListener(event: string, listener: (...args: any[]) => void): Cluster;
- function prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(
- event: "exit",
- listener: (worker: Worker, code: number, signal: string) => void,
- ): Cluster;
- function prependOnceListener(event: "fork", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): Cluster;
- // the handle is a net.Socket or net.Server object, or undefined.
- function prependOnceListener(
- event: "message",
- listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
- ): Cluster;
- function prependOnceListener(event: "online", listener: (worker: Worker) => void): Cluster;
- function prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): Cluster;
-
- function eventNames(): string[];
-}
-declare module "node:cluster" {
- export * from "cluster";
-}
diff --git a/node_modules/@types/node/console.d.ts b/node_modules/@types/node/console.d.ts
deleted file mode 100644
index 016f646..0000000
--- a/node_modules/@types/node/console.d.ts
+++ /dev/null
@@ -1,142 +0,0 @@
-declare module "console" {
- import console = require("node:console");
- export = console;
-}
-declare module "node:console" {
- import { InspectOptions } from "util";
-
- global {
- // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
- interface Console {
- Console: NodeJS.ConsoleConstructor;
- /**
- * A simple assertion test that verifies whether `value` is truthy.
- * If it is not, an `AssertionError` is thrown.
- * If provided, the error `message` is formatted using `util.format()` and used as the error message.
- */
- assert(value: any, message?: string, ...optionalParams: any[]): void;
- /**
- * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the TTY.
- * When `stdout` is not a TTY, this method does nothing.
- */
- clear(): void;
- /**
- * Maintains an internal counter specific to `label` and outputs to `stdout` the number of times `console.count()` has been called with the given `label`.
- */
- count(label?: string): void;
- /**
- * Resets the internal counter specific to `label`.
- */
- countReset(label?: string): void;
- /**
- * The `console.debug()` function is an alias for {@link console.log}.
- */
- debug(message?: any, ...optionalParams: any[]): void;
- /**
- * Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`.
- * This function bypasses any custom `inspect()` function defined on `obj`.
- */
- dir(obj: any, options?: InspectOptions): void;
- /**
- * This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting
- */
- dirxml(...data: any[]): void;
- /**
- * Prints to `stderr` with newline.
- */
- error(message?: any, ...optionalParams: any[]): void;
- /**
- * Increases indentation of subsequent lines by two spaces.
- * If one or more `label`s are provided, those are printed first without the additional indentation.
- */
- group(...label: any[]): void;
- /**
- * The `console.groupCollapsed()` function is an alias for {@link console.group}.
- */
- groupCollapsed(...label: any[]): void;
- /**
- * Decreases indentation of subsequent lines by two spaces.
- */
- groupEnd(): void;
- /**
- * The {@link console.info} function is an alias for {@link console.log}.
- */
- info(message?: any, ...optionalParams: any[]): void;
- /**
- * Prints to `stdout` with newline.
- */
- log(message?: any, ...optionalParams: any[]): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Prints to `stdout` the array `array` formatted as a table.
- */
- table(tabularData: any, properties?: ReadonlyArray): void;
- /**
- * Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`.
- */
- time(label?: string): void;
- /**
- * Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`.
- */
- timeEnd(label?: string): void;
- /**
- * For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`.
- */
- timeLog(label?: string, ...data: any[]): void;
- /**
- * Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code.
- */
- trace(message?: any, ...optionalParams: any[]): void;
- /**
- * The {@link console.warn} function is an alias for {@link console.error}.
- */
- warn(message?: any, ...optionalParams: any[]): void;
-
- // --- Inspector mode only ---
- /**
- * This method does not display anything unless used in the inspector.
- * Starts a JavaScript CPU profile with an optional label.
- */
- profile(label?: string): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
- */
- profileEnd(label?: string): void;
- /**
- * This method does not display anything unless used in the inspector.
- * Adds an event with the label `label` to the Timeline panel of the inspector.
- */
- timeStamp(label?: string): void;
- }
-
- var console: Console;
-
- namespace NodeJS {
- interface ConsoleConstructorOptions {
- stdout: WritableStream;
- stderr?: WritableStream | undefined;
- ignoreErrors?: boolean | undefined;
- colorMode?: boolean | "auto" | undefined;
- inspectOptions?: InspectOptions | undefined;
- /**
- * Set group indentation
- * @default 2
- */
- groupIndentation?: number | undefined;
- }
-
- interface ConsoleConstructor {
- prototype: Console;
- new(stdout: WritableStream, stderr?: WritableStream, ignoreErrors?: boolean): Console;
- new(options: ConsoleConstructorOptions): Console;
- }
-
- interface Global {
- console: typeof console;
- }
- }
- }
-
- export = console;
-}
diff --git a/node_modules/@types/node/constants.d.ts b/node_modules/@types/node/constants.d.ts
deleted file mode 100644
index 8793423..0000000
--- a/node_modules/@types/node/constants.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
-declare module "constants" {
- import { constants as osConstants, SignalConstants } from "os";
- import { constants as cryptoConstants } from "crypto";
- import { constants as fsConstants } from "fs";
-
- const exp:
- & typeof osConstants.errno
- & typeof osConstants.priority
- & SignalConstants
- & typeof cryptoConstants
- & typeof fsConstants;
- export = exp;
-}
-
-declare module "node:constants" {
- import constants = require("constants");
- export = constants;
-}
diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts
deleted file mode 100644
index 96eb3dd..0000000
--- a/node_modules/@types/node/crypto.d.ts
+++ /dev/null
@@ -1,1287 +0,0 @@
-declare module "crypto" {
- import * as stream from "stream";
-
- interface Certificate {
- /**
- * @param spkac
- * @returns The challenge component of the `spkac` data structure,
- * which includes a public key and a challenge.
- */
- exportChallenge(spkac: BinaryLike): Buffer;
- /**
- * @param spkac
- * @param encoding The encoding of the spkac string.
- * @returns The public key component of the `spkac` data structure,
- * which includes a public key and a challenge.
- */
- exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
- /**
- * @param spkac
- * @returns `true` if the given `spkac` data structure is valid,
- * `false` otherwise.
- */
- verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
- }
- const Certificate: Certificate & {
- /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
- new(): Certificate;
- /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
- (): Certificate;
- };
-
- namespace constants {
- // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants
- const OPENSSL_VERSION_NUMBER: number;
-
- /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
- const SSL_OP_ALL: number;
- /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
- const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
- /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
- const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
- /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
- const SSL_OP_CISCO_ANYCONNECT: number;
- /** Instructs OpenSSL to turn on cookie exchange. */
- const SSL_OP_COOKIE_EXCHANGE: number;
- /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
- const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
- /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
- const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
- /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */
- const SSL_OP_EPHEMERAL_RSA: number;
- /** Allows initial connection to servers that do not support RI. */
- const SSL_OP_LEGACY_SERVER_CONNECT: number;
- const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
- const SSL_OP_MICROSOFT_SESS_ID_BUG: number;
- /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */
- const SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
- const SSL_OP_NETSCAPE_CA_DN_BUG: number;
- const SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
- const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
- const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
- /** Instructs OpenSSL to disable support for SSL/TLS compression. */
- const SSL_OP_NO_COMPRESSION: number;
- const SSL_OP_NO_QUERY_MTU: number;
- /** Instructs OpenSSL to always start a new session when performing renegotiation. */
- const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
- const SSL_OP_NO_SSLv2: number;
- const SSL_OP_NO_SSLv3: number;
- const SSL_OP_NO_TICKET: number;
- const SSL_OP_NO_TLSv1: number;
- const SSL_OP_NO_TLSv1_1: number;
- const SSL_OP_NO_TLSv1_2: number;
- const SSL_OP_PKCS1_CHECK_1: number;
- const SSL_OP_PKCS1_CHECK_2: number;
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */
- const SSL_OP_SINGLE_DH_USE: number;
- /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */
- const SSL_OP_SINGLE_ECDH_USE: number;
- const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
- const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
- const SSL_OP_TLS_BLOCK_PADDING_BUG: number;
- const SSL_OP_TLS_D5_BUG: number;
- /** Instructs OpenSSL to disable version rollback attack detection. */
- const SSL_OP_TLS_ROLLBACK_BUG: number;
-
- const ENGINE_METHOD_RSA: number;
- const ENGINE_METHOD_DSA: number;
- const ENGINE_METHOD_DH: number;
- const ENGINE_METHOD_RAND: number;
- const ENGINE_METHOD_EC: number;
- const ENGINE_METHOD_CIPHERS: number;
- const ENGINE_METHOD_DIGESTS: number;
- const ENGINE_METHOD_PKEY_METHS: number;
- const ENGINE_METHOD_PKEY_ASN1_METHS: number;
- const ENGINE_METHOD_ALL: number;
- const ENGINE_METHOD_NONE: number;
-
- const DH_CHECK_P_NOT_SAFE_PRIME: number;
- const DH_CHECK_P_NOT_PRIME: number;
- const DH_UNABLE_TO_CHECK_GENERATOR: number;
- const DH_NOT_SUITABLE_GENERATOR: number;
-
- const ALPN_ENABLED: number;
-
- const RSA_PKCS1_PADDING: number;
- const RSA_SSLV23_PADDING: number;
- const RSA_NO_PADDING: number;
- const RSA_PKCS1_OAEP_PADDING: number;
- const RSA_X931_PADDING: number;
- const RSA_PKCS1_PSS_PADDING: number;
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
- const RSA_PSS_SALTLEN_DIGEST: number;
- /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
- const RSA_PSS_SALTLEN_MAX_SIGN: number;
- /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
- const RSA_PSS_SALTLEN_AUTO: number;
-
- const POINT_CONVERSION_COMPRESSED: number;
- const POINT_CONVERSION_UNCOMPRESSED: number;
- const POINT_CONVERSION_HYBRID: number;
-
- /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
- const defaultCoreCipherList: string;
- /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */
- const defaultCipherList: string;
- }
-
- interface HashOptions extends stream.TransformOptions {
- /**
- * For XOF hash functions such as `shake256`, the
- * outputLength option can be used to specify the desired output length in bytes.
- */
- outputLength?: number | undefined;
- }
-
- /** @deprecated since v10.0.0 */
- const fips: boolean;
-
- function createHash(algorithm: string, options?: HashOptions): Hash;
- function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
-
- // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
- type BinaryToTextEncoding = "base64" | "base64url" | "hex";
- type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "latin1";
- type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
-
- type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
-
- type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
-
- class Hash extends stream.Transform {
- private constructor();
- copy(): Hash;
- update(data: BinaryLike): Hash;
- update(data: string, input_encoding: Encoding): Hash;
- digest(): Buffer;
- digest(encoding: BinaryToTextEncoding): string;
- }
- class Hmac extends stream.Transform {
- private constructor();
- update(data: BinaryLike): Hmac;
- update(data: string, input_encoding: Encoding): Hmac;
- digest(): Buffer;
- digest(encoding: BinaryToTextEncoding): string;
- }
-
- type KeyObjectType = "secret" | "public" | "private";
-
- interface KeyExportOptions {
- type: "pkcs1" | "spki" | "pkcs8" | "sec1";
- format: T;
- cipher?: string | undefined;
- passphrase?: string | Buffer | undefined;
- }
-
- class KeyObject {
- private constructor();
- asymmetricKeyType?: KeyType | undefined;
- /**
- * For asymmetric keys, this property represents the size of the embedded key in
- * bytes. This property is `undefined` for symmetric keys.
- */
- asymmetricKeySize?: number | undefined;
- export(options: KeyExportOptions<"pem">): string | Buffer;
- export(options?: KeyExportOptions<"der">): Buffer;
- symmetricKeySize?: number | undefined;
- type: KeyObjectType;
- }
-
- type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
- type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
- type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
-
- type BinaryLike = string | NodeJS.ArrayBufferView;
-
- type CipherKey = BinaryLike | KeyObject;
-
- interface CipherCCMOptions extends stream.TransformOptions {
- authTagLength: number;
- }
- interface CipherGCMOptions extends stream.TransformOptions {
- authTagLength?: number | undefined;
- }
- interface CipherOCBOptions extends stream.TransformOptions {
- authTagLength: number;
- }
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
- /** @deprecated since v10.0.0 use `createCipheriv()` */
- function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
-
- function createCipheriv(
- algorithm: CipherCCMTypes,
- key: CipherKey,
- iv: BinaryLike,
- options: CipherCCMOptions,
- ): CipherCCM;
- function createCipheriv(
- algorithm: CipherOCBTypes,
- key: CipherKey,
- iv: BinaryLike,
- options: CipherOCBOptions,
- ): CipherOCB;
- function createCipheriv(
- algorithm: CipherGCMTypes,
- key: CipherKey,
- iv: BinaryLike,
- options?: CipherGCMOptions,
- ): CipherGCM;
- function createCipheriv(
- algorithm: string,
- key: CipherKey,
- iv: BinaryLike | null,
- options?: stream.TransformOptions,
- ): Cipher;
-
- class Cipher extends stream.Transform {
- private constructor();
- update(data: BinaryLike): Buffer;
- update(data: string, input_encoding: Encoding): Buffer;
- update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string;
- update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string;
- final(): Buffer;
- final(output_encoding: BufferEncoding): string;
- setAutoPadding(auto_padding?: boolean): this;
- // getAuthTag(): Buffer;
- // setAAD(buffer: NodeJS.ArrayBufferView): this;
- }
- interface CipherCCM extends Cipher {
- setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
- getAuthTag(): Buffer;
- }
- interface CipherGCM extends Cipher {
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- getAuthTag(): Buffer;
- }
- interface CipherOCB extends Cipher {
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- getAuthTag(): Buffer;
- }
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
- function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
-
- function createDecipheriv(
- algorithm: CipherCCMTypes,
- key: CipherKey,
- iv: BinaryLike,
- options: CipherCCMOptions,
- ): DecipherCCM;
- function createDecipheriv(
- algorithm: CipherOCBTypes,
- key: CipherKey,
- iv: BinaryLike,
- options: CipherOCBOptions,
- ): DecipherOCB;
- function createDecipheriv(
- algorithm: CipherGCMTypes,
- key: CipherKey,
- iv: BinaryLike,
- options?: CipherGCMOptions,
- ): DecipherGCM;
- function createDecipheriv(
- algorithm: string,
- key: CipherKey,
- iv: BinaryLike | null,
- options?: stream.TransformOptions,
- ): Decipher;
-
- class Decipher extends stream.Transform {
- private constructor();
- update(data: NodeJS.ArrayBufferView): Buffer;
- update(data: string, input_encoding: Encoding): Buffer;
- update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string;
- update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string;
- final(): Buffer;
- final(output_encoding: BufferEncoding): string;
- setAutoPadding(auto_padding?: boolean): this;
- // setAuthTag(tag: NodeJS.ArrayBufferView): this;
- // setAAD(buffer: NodeJS.ArrayBufferView): this;
- }
- interface DecipherCCM extends Decipher {
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
- setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
- }
- interface DecipherGCM extends Decipher {
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- }
- interface DecipherOCB extends Decipher {
- setAuthTag(buffer: NodeJS.ArrayBufferView): this;
- setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
- }
-
- interface PrivateKeyInput {
- key: string | Buffer;
- format?: KeyFormat | undefined;
- type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
- passphrase?: string | Buffer | undefined;
- }
-
- interface PublicKeyInput {
- key: string | Buffer;
- format?: KeyFormat | undefined;
- type?: "pkcs1" | "spki" | undefined;
- }
-
- function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
- function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
-
- function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
-
- type DSAEncoding = "der" | "ieee-p1363";
-
- interface SigningOptions {
- /**
- * @see crypto.constants.RSA_PKCS1_PADDING
- */
- padding?: number | undefined;
- saltLength?: number | undefined;
- dsaEncoding?: DSAEncoding | undefined;
- }
-
- interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
- interface SignKeyObjectInput extends SigningOptions {
- key: KeyObject;
- }
- interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
- interface VerifyKeyObjectInput extends SigningOptions {
- key: KeyObject;
- }
-
- type KeyLike = string | Buffer | KeyObject;
-
- class Sign extends stream.Writable {
- private constructor();
-
- update(data: BinaryLike): Sign;
- update(data: string, input_encoding: Encoding): Sign;
- sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
- sign(
- private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
- output_format: BinaryToTextEncoding,
- ): string;
- }
-
- function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
- class Verify extends stream.Writable {
- private constructor();
-
- update(data: BinaryLike): Verify;
- update(data: string, input_encoding: Encoding): Verify;
- verify(
- object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
- signature: NodeJS.ArrayBufferView,
- ): boolean;
- verify(
- object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
- signature: string,
- signature_format?: BinaryToTextEncoding,
- ): boolean;
- // https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
- // The signature field accepts a TypedArray type, but it is only available starting ES2017
- }
- function createDiffieHellman(prime_length: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman;
- function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman;
- function createDiffieHellman(prime: string, prime_encoding: BinaryToTextEncoding): DiffieHellman;
- function createDiffieHellman(
- prime: string,
- prime_encoding: BinaryToTextEncoding,
- generator: number | NodeJS.ArrayBufferView,
- ): DiffieHellman;
- function createDiffieHellman(
- prime: string,
- prime_encoding: BinaryToTextEncoding,
- generator: string,
- generator_encoding: BinaryToTextEncoding,
- ): DiffieHellman;
- class DiffieHellman {
- private constructor();
- generateKeys(): Buffer;
- generateKeys(encoding: BinaryToTextEncoding): string;
- computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
- computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
- computeSecret(
- otherPublicKey: NodeJS.ArrayBufferView,
- inputEncoding: null,
- outputEncoding: BinaryToTextEncoding,
- ): string;
- computeSecret(
- other_public_key: string,
- input_encoding: BinaryToTextEncoding,
- output_encoding: BinaryToTextEncoding,
- ): string;
- getPrime(): Buffer;
- getPrime(encoding: BinaryToTextEncoding): string;
- getGenerator(): Buffer;
- getGenerator(encoding: BinaryToTextEncoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: BinaryToTextEncoding): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: BinaryToTextEncoding): string;
- setPublicKey(public_key: NodeJS.ArrayBufferView): void;
- setPublicKey(public_key: string, encoding: BufferEncoding): void;
- setPrivateKey(private_key: NodeJS.ArrayBufferView): void;
- setPrivateKey(private_key: string, encoding: BufferEncoding): void;
- verifyError: number;
- }
- /**
- * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
- * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
- * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
- *
- * ```js
- * const { createDiffieHellmanGroup } = await import('node:crypto');
- * const dh = createDiffieHellmanGroup('modp1');
- * ```
- * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
- * ```bash
- * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
- * modp1 # 768 bits
- * modp2 # 1024 bits
- * modp5 # 1536 bits
- * modp14 # 2048 bits
- * modp15 # etc.
- * modp16
- * modp17
- * modp18
- * ```
- * @since v0.7.5
- */
- const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
- interface DiffieHellmanGroupConstructor {
- new(name: string): DiffieHellmanGroup;
- (name: string): DiffieHellmanGroup;
- readonly prototype: DiffieHellmanGroup;
- }
- type DiffieHellmanGroup = Omit;
- function getDiffieHellman(groupName: string): DiffieHellmanGroup;
- /**
- * An alias for {@link getDiffieHellman}
- * @since v0.9.3
- */
- function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
- function pbkdf2(
- password: BinaryLike,
- salt: BinaryLike,
- iterations: number,
- keylen: number,
- digest: string,
- callback: (err: Error | null, derivedKey: Buffer) => any,
- ): void;
- function pbkdf2Sync(
- password: BinaryLike,
- salt: BinaryLike,
- iterations: number,
- keylen: number,
- digest: string,
- ): Buffer;
-
- function randomBytes(size: number): Buffer;
- function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
- function pseudoRandomBytes(size: number): Buffer;
- function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
-
- function randomInt(max: number): number;
- function randomInt(min: number, max: number): number;
- function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
- function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
-
- function randomFillSync(buffer: T, offset?: number, size?: number): T;
- function randomFill(
- buffer: T,
- callback: (err: Error | null, buf: T) => void,
- ): void;
- function randomFill(
- buffer: T,
- offset: number,
- callback: (err: Error | null, buf: T) => void,
- ): void;
- function randomFill(
- buffer: T,
- offset: number,
- size: number,
- callback: (err: Error | null, buf: T) => void,
- ): void;
-
- interface RandomUUIDOptions {
- /**
- * By default, to improve performance,
- * Node.js will pre-emptively generate and persistently cache enough
- * random data to generate up to 128 random UUIDs. To generate a UUID
- * without using the cache, set `disableEntropyCache` to `true`.
- *
- * @default `false`
- */
- disableEntropyCache?: boolean | undefined;
- }
- type UUID = `${string}-${string}-${string}-${string}-${string}`;
- function randomUUID(options?: RandomUUIDOptions): UUID;
-
- interface ScryptOptions {
- cost?: number | undefined;
- blockSize?: number | undefined;
- parallelization?: number | undefined;
- N?: number | undefined;
- r?: number | undefined;
- p?: number | undefined;
- maxmem?: number | undefined;
- }
- function scrypt(
- password: BinaryLike,
- salt: BinaryLike,
- keylen: number,
- callback: (err: Error | null, derivedKey: Buffer) => void,
- ): void;
- function scrypt(
- password: BinaryLike,
- salt: BinaryLike,
- keylen: number,
- options: ScryptOptions,
- callback: (err: Error | null, derivedKey: Buffer) => void,
- ): void;
- function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
-
- interface RsaPublicKey {
- key: KeyLike;
- padding?: number | undefined;
- }
- interface RsaPrivateKey {
- key: KeyLike;
- passphrase?: string | undefined;
- /**
- * @default 'sha1'
- */
- oaepHash?: string | undefined;
- oaepLabel?: NodeJS.TypedArray | undefined;
- padding?: number | undefined;
- }
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function privateDecrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function privateEncrypt(private_key: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
- function getCiphers(): string[];
- function getCurves(): string[];
- function getFips(): 1 | 0;
- /**
- * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. Throws an error if FIPS mode is not available.
- * @since v10.0.0
- * @param bool `true` to enable FIPS mode.
- */
- function setFips(bool: boolean): void;
- function getHashes(): string[];
- class ECDH {
- private constructor();
- static convertKey(
- key: BinaryLike,
- curve: string,
- inputEncoding?: BinaryToTextEncoding,
- outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
- format?: "uncompressed" | "compressed" | "hybrid",
- ): Buffer | string;
- generateKeys(): Buffer;
- generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
- computeSecret(other_public_key: NodeJS.ArrayBufferView): Buffer;
- computeSecret(other_public_key: string, input_encoding: BinaryToTextEncoding): Buffer;
- computeSecret(other_public_key: NodeJS.ArrayBufferView, output_encoding: BinaryToTextEncoding): string;
- computeSecret(
- other_public_key: string,
- input_encoding: BinaryToTextEncoding,
- output_encoding: BinaryToTextEncoding,
- ): string;
- getPrivateKey(): Buffer;
- getPrivateKey(encoding: BinaryToTextEncoding): string;
- getPublicKey(): Buffer;
- getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
- setPrivateKey(private_key: NodeJS.ArrayBufferView): void;
- setPrivateKey(private_key: string, encoding: BinaryToTextEncoding): void;
- }
- function createECDH(curve_name: string): ECDH;
- function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
- /** @deprecated since v10.0.0 */
- const DEFAULT_ENCODING: BufferEncoding;
-
- type KeyType = "rsa" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
- type KeyFormat = "pem" | "der";
-
- interface BasePrivateKeyEncodingOptions {
- format: T;
- cipher?: string | undefined;
- passphrase?: string | undefined;
- }
-
- interface KeyPairKeyObjectResult {
- publicKey: KeyObject;
- privateKey: KeyObject;
- }
-
- interface ED25519KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface ED448KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface X25519KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface X448KeyPairKeyObjectOptions {
- /**
- * No options.
- */
- }
-
- interface ECKeyPairKeyObjectOptions {
- /**
- * Name of the curve to use.
- */
- namedCurve: string;
- }
-
- interface RSAKeyPairKeyObjectOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
-
- /**
- * @default 0x10001
- */
- publicExponent?: number | undefined;
- }
-
- interface DSAKeyPairKeyObjectOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
-
- /**
- * Size of q in bits
- */
- divisorLength: number;
- }
-
- interface RSAKeyPairOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
- /**
- * @default 0x10001
- */
- publicExponent?: number | undefined;
-
- publicKeyEncoding: {
- type: "pkcs1" | "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs1" | "pkcs8";
- };
- }
-
- interface DSAKeyPairOptions {
- /**
- * Key size in bits
- */
- modulusLength: number;
- /**
- * Size of q in bits
- */
- divisorLength: number;
-
- publicKeyEncoding: {
- type: "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs8";
- };
- }
-
- interface ECKeyPairOptions {
- /**
- * Name of the curve to use.
- */
- namedCurve: string;
-
- publicKeyEncoding: {
- type: "pkcs1" | "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "sec1" | "pkcs8";
- };
- }
-
- interface ED25519KeyPairOptions {
- publicKeyEncoding: {
- type: "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs8";
- };
- }
-
- interface ED448KeyPairOptions {
- publicKeyEncoding: {
- type: "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs8";
- };
- }
-
- interface X25519KeyPairOptions {
- publicKeyEncoding: {
- type: "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs8";
- };
- }
-
- interface X448KeyPairOptions {
- publicKeyEncoding: {
- type: "spki";
- format: PubF;
- };
- privateKeyEncoding: BasePrivateKeyEncodingOptions & {
- type: "pkcs8";
- };
- }
-
- interface KeyPairSyncResult {
- publicKey: T1;
- privateKey: T2;
- }
-
- function generateKeyPairSync(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "ec",
- options: ECKeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ec",
- options: ECKeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ec",
- options: ECKeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ec",
- options: ECKeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "ed25519",
- options: ED25519KeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed25519",
- options: ED25519KeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed25519",
- options: ED25519KeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed25519",
- options: ED25519KeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "ed448",
- options: ED448KeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed448",
- options: ED448KeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed448",
- options: ED448KeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "ed448",
- options: ED448KeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "x25519",
- options: X25519KeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x25519",
- options: X25519KeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x25519",
- options: X25519KeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x25519",
- options: X25519KeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPairSync(
- type: "x448",
- options: X448KeyPairOptions<"pem", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x448",
- options: X448KeyPairOptions<"pem", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x448",
- options: X448KeyPairOptions<"der", "pem">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(
- type: "x448",
- options: X448KeyPairOptions<"der", "der">,
- ): KeyPairSyncResult;
- function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
-
- function generateKeyPair(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "rsa",
- options: RSAKeyPairKeyObjectOptions,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "dsa",
- options: DSAKeyPairKeyObjectOptions,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "ec",
- options: ECKeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ec",
- options: ECKeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ec",
- options: ECKeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ec",
- options: ECKeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ec",
- options: ECKeyPairKeyObjectOptions,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "ed25519",
- options: ED25519KeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ed25519",
- options: ED25519KeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ed25519",
- options: ED25519KeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ed25519",
- options: ED25519KeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ed25519",
- options: ED25519KeyPairKeyObjectOptions | undefined,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "ed448",
- options: ED448KeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ed448",
- options: ED448KeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ed448",
- options: ED448KeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "ed448",
- options: ED448KeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "ed448",
- options: ED448KeyPairKeyObjectOptions | undefined,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "x25519",
- options: X25519KeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "x25519",
- options: X25519KeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "x25519",
- options: X25519KeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "x25519",
- options: X25519KeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "x25519",
- options: X25519KeyPairKeyObjectOptions | undefined,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- function generateKeyPair(
- type: "x448",
- options: X448KeyPairOptions<"pem", "pem">,
- callback: (err: Error | null, publicKey: string, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "x448",
- options: X448KeyPairOptions<"pem", "der">,
- callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "x448",
- options: X448KeyPairOptions<"der", "pem">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
- ): void;
- function generateKeyPair(
- type: "x448",
- options: X448KeyPairOptions<"der", "der">,
- callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
- ): void;
- function generateKeyPair(
- type: "x448",
- options: X448KeyPairKeyObjectOptions | undefined,
- callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
- ): void;
-
- namespace generateKeyPair {
- function __promisify__(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "pem">,
- ): Promise<{ publicKey: string; privateKey: string }>;
- function __promisify__(
- type: "rsa",
- options: RSAKeyPairOptions<"pem", "der">,
- ): Promise<{ publicKey: string; privateKey: Buffer }>;
- function __promisify__(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "pem">,
- ): Promise<{ publicKey: Buffer; privateKey: string }>;
- function __promisify__(
- type: "rsa",
- options: RSAKeyPairOptions<"der", "der">,
- ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
- function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise;
-
- function __promisify__(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "pem">,
- ): Promise<{ publicKey: string; privateKey: string }>;
- function __promisify__(
- type: "dsa",
- options: DSAKeyPairOptions<"pem", "der">,
- ): Promise<{ publicKey: string; privateKey: Buffer }>;
- function __promisify__(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "pem">,
- ): Promise<{ publicKey: Buffer; privateKey: string }>;
- function __promisify__(
- type: "dsa",
- options: DSAKeyPairOptions<"der", "der">,
- ): Promise<{ publicKey: Buffer; privateKey: Buffer }>;
- function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise