From c74d8b64768394bb8b769cc52432c1285bd7ae4a Mon Sep 17 00:00:00 2001 From: SeungKun Shim Date: Sun, 13 Jul 2025 15:00:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=82=AC=EB=82=B4=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=9D=84=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20=ED=91=9C?= =?UTF-8?q?=EC=A4=80=EC=9C=BC=EB=A1=9C=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20(#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - @day1co/* 의존성 제거 및 커뮤니티 표준으로 교체 - TypeScript 설정을 @tsconfig/node20으로 변경 - ESLint 설정을 표준 규칙으로 업데이트 - Prettier 설정을 커뮤니티 표준으로 변경 - 모든 린트 오류 수정 (함수 오버로드, switch fallthrough, 정규식 이스케이프) - 테스트 커버리지 93.97% 유지 - 프로젝트 문서 CLAUDE.md 추가 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- .eslintrc.js | 25 +- .prettierrc.js | 10 +- CLAUDE.md | 53 + GEMINI.md | 53 + package-lock.json | 1220 +---------------- package.json | 8 +- src/array-util/array-util.ts | 7 +- src/crypto-util/crypto-util.spec.ts | 7 +- src/crypto-util/crypto-util.ts | 2 +- src/crypto-util/ezwel-seed.ts | 298 ++-- src/date-util/date-util-base.type.ts | 11 +- src/date-util/date-util.spec.ts | 134 +- src/date-util/date-util.ts | 67 +- src/date-util/index.ts | 8 +- src/exception/index.ts | 7 +- .../server-exception/server-exception.ts | 6 +- src/http-client/http-client.ts | 23 +- src/map-util/map-util.spec.ts | 4 +- src/map-util/map-util.ts | 2 +- src/misc-util/misc-util.ts | 6 +- src/money-util/money-util.ts | 5 +- src/number-util/index.ts | 9 +- src/number-util/number-util.spec.ts | 9 +- src/object-util/object-util.spec.ts | 19 +- src/object-util/object-util.ts | 15 +- src/search-util/search-util.spec.ts | 12 +- src/search-util/search-util.ts | 6 +- src/string-util/string-util.spec.ts | 28 +- src/string-util/string-util.ts | 24 +- src/time-range/time-range.ts | 3 +- src/type-util/type-util.spec.ts | 26 +- .../byte-unit-converter.spec.ts | 36 +- .../money-unit-converter.spec.ts | 220 ++- tsconfig.json | 15 +- 34 files changed, 856 insertions(+), 1522 deletions(-) create mode 100644 CLAUDE.md create mode 100644 GEMINI.md diff --git a/.eslintrc.js b/.eslintrc.js index 68b9d2fb..2db60a3c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,12 +1,27 @@ module.exports = { - env: { jest: true }, - extends: '@day1co/eslint-config/common-ts', + env: { + jest: true, + node: true, + es2021: true + }, + extends: [ + 'eslint:recommended', + 'prettier' + ], parser: '@typescript-eslint/parser', - parserOptions: { ecmaVersion: '2021', sourceType: 'module' }, - plugins: ['import', '@typescript-eslint'], + parserOptions: { + ecmaVersion: 2021, + sourceType: 'module' + }, + plugins: ['@typescript-eslint', 'prettier'], root: true, rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-namespace': 'off', - }, + 'prettier/prettier': 'error', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + 'no-redeclare': 'off', + '@typescript-eslint/no-redeclare': 'error' + } }; diff --git a/.prettierrc.js b/.prettierrc.js index 3d87211a..cb387128 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,3 +1,11 @@ module.exports = { - ...require('@day1co/prettier-config'), + semi: true, + trailingComma: 'es5', + singleQuote: true, + printWidth: 100, + tabWidth: 2, + useTabs: false, + bracketSpacing: true, + arrowParens: 'avoid', + endOfLine: 'lf', }; diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..efc6519f --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,53 @@ +# Pebbles Project Summary + +This document provides a summary of the Pebbles project, a utility library for both frontend and backend development. + +## Project Overview + +Pebbles is a TypeScript-based project that offers a collection of utility modules to streamline common development tasks. The project is well-structured, with each utility module residing in its own directory, complete with its own tests. + +## Key Technologies + +- **Language:** TypeScript +- **Testing:** Jest +- **Linting:** ESLint +- **Formatting:** Prettier + +## Core Modules + +The project is composed of the following utility modules: + +- **array-util:** Provides functions for array manipulation, such as `innerJoin` and `leftJoin`. +- **boolean-util:** Includes functions for boolean parsing, such as `parseBoolean`. +- **crypto-util:** Offers cryptographic functions like `sha256`, `createAesKey`, and base64 encoding/decoding. +- **date-util:** A comprehensive module for date and time manipulation, including formatting, parsing, and calculations. +- **exception:** A set of custom exception classes for handling various error scenarios, categorized into client and server exceptions. +- **http-client:** A wrapper around an HTTP client (likely `axios`) to simplify making HTTP requests. +- **logger:** A logging framework that provides a `LoggerFactory` for creating logger instances. +- **map-util:** Includes functions for grouping and keying data, such as `groupBy` and `groupByKey`. +- **misc-util:** A collection of miscellaneous utility functions, such as `getPagination`, `getRandomInt`, and `sleep`. +- **money-util:** Provides functions for currency formatting, such as `convertLocalCurrencyFormat`. +- **number-util:** Offers functions for number manipulation, including decimal rounding and checking for numeric values. +- **object-util:** A rich module for object operations, such as `deepClone`, `isEmpty`, `isEqualObject`, `merge`, `omit`, and `pick`. +- **search-util:** Includes a `binarySearch` function for efficient searching in sorted arrays. +- **string-util:** Provides a wide range of string manipulation functions, including `compactTextMessage`, `isValidEmail`, `maskPrivacy`, and `renderTemplate`. +- **time-range:** A `TimeRange` class for working with time intervals. +- **type-util:** Contains utility types and functions for working with TypeScript types. +- **unit-util:** Offers unit conversion utilities, such as `byteUnitConverter` and `moneyUnitConverter`. + +## Scripts + +The `package.json` file defines the following scripts: + +- `build`: Compiles the TypeScript code. +- `clean`: Removes the `coverage`, `lib`, and `node_modules` directories. +- `lint`: Lints the source code using ESLint. +- `test`: Runs the tests using Jest. + +## Dependencies + +The project has the following key dependencies: + +- **axios:** A promise-based HTTP client for the browser and Node.js. +- **mustache:** A logic-less template engine. +- **pino:** A fast, low-overhead logger. \ No newline at end of file diff --git a/GEMINI.md b/GEMINI.md new file mode 100644 index 00000000..4a2afd31 --- /dev/null +++ b/GEMINI.md @@ -0,0 +1,53 @@ +# Pebbles Project Summary + +This document provides a summary of the Pebbles project, a utility library for both frontend and backend development. + +## Project Overview + +Pebbles is a TypeScript-based project that offers a collection of utility modules to streamline common development tasks. The project is well-structured, with each utility module residing in its own directory, complete with its own tests. + +## Key Technologies + +- **Language:** TypeScript +- **Testing:** Jest +- **Linting:** ESLint +- **Formatting:** Prettier + +## Core Modules + +The project is composed of the following utility modules: + +- **array-util:** Provides functions for array manipulation, such as `innerJoin` and `leftJoin`. +- **boolean-util:** Includes functions for boolean parsing, such as `parseBoolean`. +- **crypto-util:** Offers cryptographic functions like `sha256`, `createAesKey`, and base64 encoding/decoding. +- **date-util:** A comprehensive module for date and time manipulation, including formatting, parsing, and calculations. +- **exception:** A set of custom exception classes for handling various error scenarios, categorized into client and server exceptions. +- **http-client:** A wrapper around an HTTP client (likely `axios`) to simplify making HTTP requests. +- **logger:** A logging framework that provides a `LoggerFactory` for creating logger instances. +- **map-util:** Includes functions for grouping and keying data, such as `groupBy` and `groupByKey`. +- **misc-util:** A collection of miscellaneous utility functions, such as `getPagination`, `getRandomInt`, and `sleep`. +- **money-util:** Provides functions for currency formatting, such as `convertLocalCurrencyFormat`. +- **number-util:** Offers functions for number manipulation, including decimal rounding and checking for numeric values. +- **object-util:** A rich module for object operations, such as `deepClone`, `isEmpty`, `isEqualObject`, `merge`, `omit`, and `pick`. +- **search-util:** Includes a `binarySearch` function for efficient searching in sorted arrays. +- **string-util:** Provides a wide range of string manipulation functions, including `compactTextMessage`, `isValidEmail`, `maskPrivacy`, and `renderTemplate`. +- **time-range:** A `TimeRange` class for working with time intervals. +- **type-util:** Contains utility types and functions for working with TypeScript types. +- **unit-util:** Offers unit conversion utilities, such as `byteUnitConverter` and `moneyUnitConverter`. + +## Scripts + +The `package.json` file defines the following scripts: + +- `build`: Compiles the TypeScript code. +- `clean`: Removes the `coverage`, `lib`, and `node_modules` directories. +- `lint`: Lints the source code using ESLint. +- `test`: Runs the tests using Jest. + +## Dependencies + +The project has the following key dependencies: + +- **axios:** A promise-based HTTP client for the browser and Node.js. +- **mustache:** A logic-less template engine. +- **pino:** A fast, low-overhead logger. diff --git a/package-lock.json b/package-lock.json index 399dc404..08b971fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,14 +14,10 @@ "pino": "^8.17.1" }, "devDependencies": { - "@day1co/eslint-config": "^1.1.0", - "@day1co/prettier-config": "^1.1.0", - "@day1co/tsconfig": "^1.3.0", - "@tsconfig/node-lts": "^20.1.0", + "@tsconfig/node20": "^20.1.4", "@types/jest": "^29.5.11", "@types/mustache": "^4.2.5", "@types/node": "^20.10.5", - "@types/pino": "^7.0.4", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "eslint": "^8.56.0", @@ -193,35 +189,6 @@ "semver": "bin/semver.js" } }, - "node_modules/@babel/eslint-parser": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.23.3.tgz", - "integrity": "sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==", - "dev": true, - "peer": true, - "dependencies": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || >=14.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.11.0", - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/@babel/eslint-parser/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "peer": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/generator": { "version": "7.23.6", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", @@ -754,40 +721,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@day1co/eslint-config": { - "version": "1.1.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/eslint-config/1.1.0/c8cf8d7f146f6f57e3a6d13e97ecea8a2a112c66", - "integrity": "sha512-gVPcg3U3DNplMe/vnVuvtRmcwYScP2RPQr1qaUYFoJTlufYa78u1SiQCqTgI23YVr+PcncVT4npzBvZqC1neeA==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@babel/eslint-parser": "^7.19.1", - "@typescript-eslint/eslint-plugin": "^6.10.0", - "@typescript-eslint/parser": "^6.10.0", - "eslint-plugin-react": "^7.33.2", - "eslint-plugin-vue": "^9.18.0" - } - }, - "node_modules/@day1co/prettier-config": { - "version": "1.1.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/prettier-config/1.1.0/2016582113cf489e79659a9da3a301f63e4f5a57", - "integrity": "sha512-exEJLXP7XFG4Odx7ZPJKa50bVbmhSXnLJLiyweLSr8Ibtwp5ZF+8yAVg4d0ud0V/3w8PrT+03mkp4ohwAeNoIg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "prettier": "^2.8.8" - } - }, - "node_modules/@day1co/tsconfig": { - "version": "1.3.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/tsconfig/1.3.0/f6ce425c5b7e5e9fa6dcd264488d47698e19b2eb", - "integrity": "sha512-hQES1AfFU5RagCKu8RJ6rJBvt3sDIKVysKPoBSBd2kyy9bx6ZbNeF2h+xzEg3dir32ah7Jcz0A4QcyldpS6uGQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@tsconfig/node20": "~20.1.2" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -1428,16 +1361,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "dev": true, - "peer": true, - "dependencies": { - "eslint-scope": "5.1.1" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1507,17 +1430,12 @@ "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@tsconfig/node-lts": { - "version": "20.1.0", - "resolved": "https://registry.npmjs.org/@tsconfig/node-lts/-/node-lts-20.1.0.tgz", - "integrity": "sha512-3w2D9MfGdqBL51pHB5nGFmGtXBn1gbO+n9xzwcGSvZPArtCn4tElk+6EeelLXispAeqv13GAgbzkgLNHtoxOCQ==", - "dev": true - }, "node_modules/@tsconfig/node20": { - "version": "20.1.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", - "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", - "dev": true + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/babel__core": { "version": "7.20.5", @@ -1630,16 +1548,6 @@ "undici-types": "~5.26.4" } }, - "node_modules/@types/pino": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@types/pino/-/pino-7.0.5.tgz", - "integrity": "sha512-wKoab31pknvILkxAF8ss+v9iNyhw5Iu/0jLtRkUD74cNfOOLJNnqfFKAv0r7wVaTQxRZtWrMpGfShwwBjOcgcg==", - "deprecated": "This is a stub types definition. pino provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "pino": "*" - } - }, "node_modules/@types/semver": { "version": "7.5.6", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", @@ -2088,20 +1996,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz", - "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.2.1" - } - }, "node_modules/arraybuffer.prototype.slice": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", @@ -2123,16 +2017,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asynciterator.prototype": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", - "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", - "dev": true, - "peer": true, - "dependencies": { - "has-symbols": "^1.0.3" - } - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -2322,13 +2206,6 @@ } ] }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true, - "peer": true - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2637,19 +2514,6 @@ "node": ">= 8" } }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "peer": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -2860,29 +2724,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-iterator-helpers": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz", - "integrity": "sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==", - "dev": true, - "peer": true, - "dependencies": { - "asynciterator.prototype": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.1", - "es-set-tostringtag": "^2.0.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.2.1", - "globalthis": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "iterator.prototype": "^1.1.2", - "safe-array-concat": "^1.0.1" - } - }, "node_modules/es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", @@ -3156,134 +2997,6 @@ } } }, - "node_modules/eslint-plugin-react": { - "version": "7.33.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", - "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", - "dev": true, - "peer": true, - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.0.12", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.8" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "peer": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.5", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", - "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", - "dev": true, - "peer": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "peer": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-vue": { - "version": "9.19.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.19.2.tgz", - "integrity": "sha512-CPDqTOG2K4Ni2o4J5wixkLVNwgctKXFu6oBpVJlpNq7f38lh9I80pRTouZSJ2MAebPJlINU/KTFSXyQfBUlymA==", - "dev": true, - "peer": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.1.1", - "postcss-selector-parser": "^6.0.13", - "semver": "^7.5.4", - "vue-eslint-parser": "^9.3.1", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint/node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", @@ -4184,22 +3897,6 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "node_modules/is-async-function": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", - "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", - "dev": true, - "peer": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -4276,19 +3973,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-finalizationregistry": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", - "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -4307,22 +3991,6 @@ "node": ">=6" } }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, - "peer": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -4335,16 +4003,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -4406,16 +4064,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -4485,16 +4133,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -4507,20 +4145,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -4599,20 +4223,6 @@ "node": ">=8" } }, - "node_modules/iterator.prototype": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", - "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", - "dev": true, - "peer": true, - "dependencies": { - "define-properties": "^1.2.1", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "reflect.getprototypeof": "^1.0.4", - "set-function-name": "^2.0.1" - } - }, "node_modules/jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -5345,22 +4955,6 @@ "node": ">=6" } }, - "node_modules/jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "peer": true, - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" - }, - "engines": { - "node": ">=4.0" - } - }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -5450,13 +5044,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true, - "peer": true - }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -5469,19 +5056,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "peer": true, - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -5862,36 +5436,13 @@ "node": ">=8" } }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "dev": true, - "peer": true, - "dependencies": { - "boolbase": "^1.0.0" - }, "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "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==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/object-keys": { @@ -5921,21 +5472,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.entries": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", - "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/object.fromentries": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", @@ -5965,20 +5501,6 @@ "get-intrinsic": "^1.2.1" } }, - "node_modules/object.hasown": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz", - "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==", - "dev": true, - "peer": true, - "dependencies": { - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object.values": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", @@ -6325,20 +5847,6 @@ "node": ">=8" } }, - "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "dev": true, - "peer": true, - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -6427,25 +5935,6 @@ "node": ">= 6" } }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "peer": true, - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "peer": true - }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -6556,27 +6045,6 @@ "node": ">= 12.13.0" } }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", - "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "globalthis": "^1.0.3", - "which-builtin-type": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/regexp.prototype.flags": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", @@ -7065,27 +6533,6 @@ "node": ">=8" } }, - "node_modules/string.prototype.matchall": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz", - "integrity": "sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "regexp.prototype.flags": "^1.5.0", - "set-function-name": "^2.0.0", - "side-channel": "^1.0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/string.prototype.padend": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", @@ -7541,13 +6988,6 @@ "punycode": "^2.1.0" } }, - "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==", - "dev": true, - "peer": true - }, "node_modules/v8-to-istanbul": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", @@ -7572,61 +7012,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "node_modules/vue-eslint-parser": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.3.2.tgz", - "integrity": "sha512-q7tWyCVaV9f8iQyIA5Mkj/S6AoJ9KBN8IeUSf3XEmBrOtxOZnfTg5s4KClbZBCK3GtnT/+RyCLZyDHuZwTuBjg==", - "dev": true, - "peer": true, - "dependencies": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, - "node_modules/vue-eslint-parser/node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/vue-eslint-parser/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -7667,49 +7052,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-builtin-type": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", - "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", - "dev": true, - "peer": true, - "dependencies": { - "function.prototype.name": "^1.1.5", - "has-tostringtag": "^1.0.0", - "is-async-function": "^2.0.0", - "is-date-object": "^1.0.5", - "is-finalizationregistry": "^1.0.2", - "is-generator-function": "^1.0.10", - "is-regex": "^1.1.4", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "peer": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/which-typed-array": { "version": "1.1.13", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", @@ -7783,16 +7125,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=12" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -7970,27 +7302,6 @@ } } }, - "@babel/eslint-parser": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.23.3.tgz", - "integrity": "sha512-9bTuNlyx7oSstodm1cR1bECj4fkiknsDa1YniISkJemMY3DGhJNYBECbe6QD/q54mp2J8VO66jW3/7uP//iFCw==", - "dev": true, - "peer": true, - "requires": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "peer": true - } - } - }, "@babel/generator": { "version": "7.23.6", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", @@ -8394,29 +7705,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "@day1co/eslint-config": { - "version": "1.1.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/eslint-config/1.1.0/c8cf8d7f146f6f57e3a6d13e97ecea8a2a112c66", - "integrity": "sha512-gVPcg3U3DNplMe/vnVuvtRmcwYScP2RPQr1qaUYFoJTlufYa78u1SiQCqTgI23YVr+PcncVT4npzBvZqC1neeA==", - "dev": true, - "requires": {} - }, - "@day1co/prettier-config": { - "version": "1.1.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/prettier-config/1.1.0/2016582113cf489e79659a9da3a301f63e4f5a57", - "integrity": "sha512-exEJLXP7XFG4Odx7ZPJKa50bVbmhSXnLJLiyweLSr8Ibtwp5ZF+8yAVg4d0ud0V/3w8PrT+03mkp4ohwAeNoIg==", - "dev": true, - "requires": {} - }, - "@day1co/tsconfig": { - "version": "1.3.0", - "resolved": "https://npm.pkg.github.com/download/@day1co/tsconfig/1.3.0/f6ce425c5b7e5e9fa6dcd264488d47698e19b2eb", - "integrity": "sha512-hQES1AfFU5RagCKu8RJ6rJBvt3sDIKVysKPoBSBd2kyy9bx6ZbNeF2h+xzEg3dir32ah7Jcz0A4QcyldpS6uGQ==", - "dev": true, - "requires": { - "@tsconfig/node20": "~20.1.2" - } - }, "@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -8901,16 +8189,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "dev": true, - "peer": true, - "requires": { - "eslint-scope": "5.1.1" - } - }, "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -8968,16 +8246,10 @@ "@sinonjs/commons": "^3.0.0" } }, - "@tsconfig/node-lts": { - "version": "20.1.0", - "resolved": "https://registry.npmjs.org/@tsconfig/node-lts/-/node-lts-20.1.0.tgz", - "integrity": "sha512-3w2D9MfGdqBL51pHB5nGFmGtXBn1gbO+n9xzwcGSvZPArtCn4tElk+6EeelLXispAeqv13GAgbzkgLNHtoxOCQ==", - "dev": true - }, "@tsconfig/node20": { - "version": "20.1.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", - "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", + "version": "20.1.6", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", + "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", "dev": true }, "@types/babel__core": { @@ -9091,15 +8363,6 @@ "undici-types": "~5.26.4" } }, - "@types/pino": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@types/pino/-/pino-7.0.5.tgz", - "integrity": "sha512-wKoab31pknvILkxAF8ss+v9iNyhw5Iu/0jLtRkUD74cNfOOLJNnqfFKAv0r7wVaTQxRZtWrMpGfShwwBjOcgcg==", - "dev": true, - "requires": { - "pino": "*" - } - }, "@types/semver": { "version": "7.5.6", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", @@ -9388,20 +8651,6 @@ "es-shim-unscopables": "^1.0.0" } }, - "array.prototype.tosorted": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz", - "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.2.1" - } - }, "arraybuffer.prototype.slice": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", @@ -9417,16 +8666,6 @@ "is-shared-array-buffer": "^1.0.2" } }, - "asynciterator.prototype": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", - "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", - "dev": true, - "peer": true, - "requires": { - "has-symbols": "^1.0.3" - } - }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -9567,13 +8806,6 @@ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true, - "peer": true - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -9779,13 +9011,6 @@ "which": "^2.0.1" } }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "peer": true - }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -9945,29 +9170,6 @@ "which-typed-array": "^1.1.13" } }, - "es-iterator-helpers": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz", - "integrity": "sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==", - "dev": true, - "peer": true, - "requires": { - "asynciterator.prototype": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.1", - "es-set-tostringtag": "^2.0.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.2.1", - "globalthis": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "iterator.prototype": "^1.1.2", - "safe-array-concat": "^1.0.1" - } - }, "es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", @@ -10195,105 +9397,6 @@ "prettier-linter-helpers": "^1.0.0" } }, - "eslint-plugin-react": { - "version": "7.33.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", - "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", - "dev": true, - "peer": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.0.12", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.8" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "peer": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "resolve": { - "version": "2.0.0-next.5", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", - "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", - "dev": true, - "peer": true, - "requires": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "peer": true - } - } - }, - "eslint-plugin-vue": { - "version": "9.19.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.19.2.tgz", - "integrity": "sha512-CPDqTOG2K4Ni2o4J5wixkLVNwgctKXFu6oBpVJlpNq7f38lh9I80pRTouZSJ2MAebPJlINU/KTFSXyQfBUlymA==", - "dev": true, - "peer": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.1.1", - "postcss-selector-parser": "^6.0.13", - "semver": "^7.5.4", - "vue-eslint-parser": "^9.3.1", - "xml-name-validator": "^4.0.0" - } - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "peer": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "peer": true - } - } - }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "peer": true - }, "espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -10909,16 +10012,6 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "is-async-function": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", - "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", - "dev": true, - "peer": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -10968,16 +10061,6 @@ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true }, - "is-finalizationregistry": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", - "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2" - } - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -10990,16 +10073,6 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true }, - "is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, - "peer": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -11009,13 +10082,6 @@ "is-extglob": "^2.1.1" } }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true, - "peer": true - }, "is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -11053,13 +10119,6 @@ "has-tostringtag": "^1.0.0" } }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true, - "peer": true - }, "is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -11102,13 +10161,6 @@ "which-typed-array": "^1.1.11" } }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true, - "peer": true - }, "is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -11118,17 +10170,6 @@ "call-bind": "^1.0.2" } }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, "isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -11192,20 +10233,6 @@ "istanbul-lib-report": "^3.0.0" } }, - "iterator.prototype": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", - "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.2.1", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "reflect.getprototypeof": "^1.0.4", - "set-function-name": "^2.0.1" - } - }, "jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -11769,19 +10796,6 @@ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, - "jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "peer": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" - } - }, "kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -11849,13 +10863,6 @@ "p-locate": "^5.0.0" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true, - "peer": true - }, "lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -11868,16 +10875,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "peer": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, "lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -12173,23 +11170,6 @@ "path-key": "^3.0.0" } }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dev": true, - "peer": true, - "requires": { - "boolbase": "^1.0.0" - } - }, - "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==", - "dev": true, - "peer": true - }, "object-inspect": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", @@ -12214,18 +11194,6 @@ "object-keys": "^1.1.1" } }, - "object.entries": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", - "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - } - }, "object.fromentries": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", @@ -12249,17 +11217,6 @@ "get-intrinsic": "^1.2.1" } }, - "object.hasown": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz", - "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - } - }, "object.values": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", @@ -12511,17 +11468,6 @@ } } }, - "postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "dev": true, - "peer": true, - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -12582,27 +11528,6 @@ "sisteransi": "^1.0.5" } }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "peer": true, - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "peer": true - } - } - }, "proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -12676,21 +11601,6 @@ "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==" }, - "reflect.getprototypeof": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", - "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "globalthis": "^1.0.3", - "which-builtin-type": "^1.1.3" - } - }, "regexp.prototype.flags": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", @@ -13044,24 +11954,6 @@ "strip-ansi": "^6.0.1" } }, - "string.prototype.matchall": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz", - "integrity": "sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "regexp.prototype.flags": "^1.5.0", - "set-function-name": "^2.0.0", - "side-channel": "^1.0.4" - } - }, "string.prototype.padend": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", @@ -13366,13 +12258,6 @@ "punycode": "^2.1.0" } }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "peer": true - }, "v8-to-istanbul": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", @@ -13394,42 +12279,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "vue-eslint-parser": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.3.2.tgz", - "integrity": "sha512-q7tWyCVaV9f8iQyIA5Mkj/S6AoJ9KBN8IeUSf3XEmBrOtxOZnfTg5s4KClbZBCK3GtnT/+RyCLZyDHuZwTuBjg==", - "dev": true, - "peer": true, - "requires": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" - }, - "dependencies": { - "eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "peer": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "peer": true - } - } - }, "walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -13461,40 +12310,6 @@ "is-symbol": "^1.0.3" } }, - "which-builtin-type": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", - "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", - "dev": true, - "peer": true, - "requires": { - "function.prototype.name": "^1.1.5", - "has-tostringtag": "^1.0.0", - "is-async-function": "^2.0.0", - "is-date-object": "^1.0.5", - "is-finalizationregistry": "^1.0.2", - "is-generator-function": "^1.0.10", - "is-regex": "^1.1.4", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - } - }, - "which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "peer": true, - "requires": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - } - }, "which-typed-array": { "version": "1.1.13", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", @@ -13546,13 +12361,6 @@ "signal-exit": "^3.0.7" } }, - "xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, - "peer": true - }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 9d4e4c5d..152e8a9a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "build": "tsc", "clean": "rimraf ./coverage ./lib ./node_modules", "clean:build": "rimraf ./lib", - "lint": "eslint ./src", + "lint": "eslint ./src --ext .ts", "prebuild": "npm-run-all clean:build lint", "prepublishOnly": "npm run build", "serve": "echo no serve", @@ -33,14 +33,10 @@ "pino": "^8.17.1" }, "devDependencies": { - "@day1co/eslint-config": "^1.1.0", - "@day1co/prettier-config": "^1.1.0", - "@day1co/tsconfig": "^1.3.0", - "@tsconfig/node-lts": "^20.1.0", + "@tsconfig/node20": "^20.1.4", "@types/jest": "^29.5.11", "@types/mustache": "^4.2.5", "@types/node": "^20.10.5", - "@types/pino": "^7.0.4", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", "eslint": "^8.56.0", diff --git a/src/array-util/array-util.ts b/src/array-util/array-util.ts index cf17e7a7..753d743b 100644 --- a/src/array-util/array-util.ts +++ b/src/array-util/array-util.ts @@ -32,7 +32,12 @@ export function innerJoin( return result; } -export function leftJoin(arr1: T[], arr2: U[], key1: keyof T, key2: keyof U): Array>; +export function leftJoin( + arr1: T[], + arr2: U[], + key1: keyof T, + key2: keyof U +): Array>; export function leftJoin( arr1: T[], arr2: U[], diff --git a/src/crypto-util/crypto-util.spec.ts b/src/crypto-util/crypto-util.spec.ts index e8459119..8ff5f816 100644 --- a/src/crypto-util/crypto-util.spec.ts +++ b/src/crypto-util/crypto-util.spec.ts @@ -14,8 +14,8 @@ describe('sha256', () => { expect(result).toBeInstanceOf(Uint8Array); expect(result).toEqual( new Uint8Array([ - 185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, 122, 83, 128, 238, - 144, 136, 247, 172, 226, 239, 205, 233, + 185, 77, 39, 185, 147, 77, 62, 8, 165, 46, 82, 215, 218, 125, 171, 250, 196, 132, 239, 227, + 122, 83, 128, 238, 144, 136, 247, 172, 226, 239, 205, 233, ]) ); }); @@ -58,7 +58,8 @@ describe('decodeBase64', () => { describe('ezwelSeed', () => { const decrypted = '{"code": "hello world", "message": "안녕하세요"}'; - const encrypted = 'LUPvDxmJToRCZcl56a7j+b1X1NV+6PMiBLm7SkLALDqyIfqCsHla0jkDuzoIn60GV5BA1t22DaHs1L32r4uw+A=='; + const encrypted = + 'LUPvDxmJToRCZcl56a7j+b1X1NV+6PMiBLm7SkLALDqyIfqCsHla0jkDuzoIn60GV5BA1t22DaHs1L32r4uw+A=='; const seedKey = 'string_x_sixteen'; it('should return encrypted string', () => { diff --git a/src/crypto-util/crypto-util.ts b/src/crypto-util/crypto-util.ts index e54f8f90..fd7b26a3 100644 --- a/src/crypto-util/crypto-util.ts +++ b/src/crypto-util/crypto-util.ts @@ -35,7 +35,7 @@ export const encodeBase64 = (data: Uint8Array | string): string => { }; export const decodeBase64 = (data: string): Uint8Array => { - return Uint8Array.from(atob(data), (c) => c.charCodeAt(0)); + return Uint8Array.from(atob(data), c => c.charCodeAt(0)); }; export const encodeSeedString = (data: string, { seedKey }: { seedKey: string }): string => { diff --git a/src/crypto-util/ezwel-seed.ts b/src/crypto-util/ezwel-seed.ts index 3037c2fc..eabc53a4 100644 --- a/src/crypto-util/ezwel-seed.ts +++ b/src/crypto-util/ezwel-seed.ts @@ -1,134 +1,146 @@ const SS0 = [ - 0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124, 0x1d4d515c, - 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360, 0x28082028, 0x04444044, - 0x20002020, 0x1d8d919c, 0x20c0e0e0, 0x22c2e2e0, 0x08c8c0c8, 0x17071314, 0x2585a1a4, 0x0f8f838c, 0x03030300, - 0x3b4b7378, 0x3b8bb3b8, 0x13031310, 0x12c2d2d0, 0x2ecee2ec, 0x30407070, 0x0c8c808c, 0x3f0f333c, 0x2888a0a8, - 0x32023230, 0x1dcdd1dc, 0x36c6f2f4, 0x34447074, 0x2ccce0ec, 0x15859194, 0x0b0b0308, 0x17475354, 0x1c4c505c, - 0x1b4b5358, 0x3d8db1bc, 0x01010100, 0x24042024, 0x1c0c101c, 0x33437370, 0x18889098, 0x10001010, 0x0cccc0cc, - 0x32c2f2f0, 0x19c9d1d8, 0x2c0c202c, 0x27c7e3e4, 0x32427270, 0x03838380, 0x1b8b9398, 0x11c1d1d0, 0x06868284, - 0x09c9c1c8, 0x20406060, 0x10405050, 0x2383a3a0, 0x2bcbe3e8, 0x0d0d010c, 0x3686b2b4, 0x1e8e929c, 0x0f4f434c, - 0x3787b3b4, 0x1a4a5258, 0x06c6c2c4, 0x38487078, 0x2686a2a4, 0x12021210, 0x2f8fa3ac, 0x15c5d1d4, 0x21416160, - 0x03c3c3c0, 0x3484b0b4, 0x01414140, 0x12425250, 0x3d4d717c, 0x0d8d818c, 0x08080008, 0x1f0f131c, 0x19899198, - 0x00000000, 0x19091118, 0x04040004, 0x13435350, 0x37c7f3f4, 0x21c1e1e0, 0x3dcdf1fc, 0x36467274, 0x2f0f232c, - 0x27072324, 0x3080b0b0, 0x0b8b8388, 0x0e0e020c, 0x2b8ba3a8, 0x2282a2a0, 0x2e4e626c, 0x13839390, 0x0d4d414c, - 0x29496168, 0x3c4c707c, 0x09090108, 0x0a0a0208, 0x3f8fb3bc, 0x2fcfe3ec, 0x33c3f3f0, 0x05c5c1c4, 0x07878384, - 0x14041014, 0x3ecef2fc, 0x24446064, 0x1eced2dc, 0x2e0e222c, 0x0b4b4348, 0x1a0a1218, 0x06060204, 0x21012120, - 0x2b4b6368, 0x26466264, 0x02020200, 0x35c5f1f4, 0x12829290, 0x0a8a8288, 0x0c0c000c, 0x3383b3b0, 0x3e4e727c, - 0x10c0d0d0, 0x3a4a7278, 0x07474344, 0x16869294, 0x25c5e1e4, 0x26062224, 0x00808080, 0x2d8da1ac, 0x1fcfd3dc, - 0x2181a1a0, 0x30003030, 0x37073334, 0x2e8ea2ac, 0x36063234, 0x15051114, 0x22022220, 0x38083038, 0x34c4f0f4, - 0x2787a3a4, 0x05454144, 0x0c4c404c, 0x01818180, 0x29c9e1e8, 0x04848084, 0x17879394, 0x35053134, 0x0bcbc3c8, - 0x0ecec2cc, 0x3c0c303c, 0x31417170, 0x11011110, 0x07c7c3c4, 0x09898188, 0x35457174, 0x3bcbf3f8, 0x1acad2d8, - 0x38c8f0f8, 0x14849094, 0x19495158, 0x02828280, 0x04c4c0c4, 0x3fcff3fc, 0x09494148, 0x39093138, 0x27476364, - 0x00c0c0c0, 0x0fcfc3cc, 0x17c7d3d4, 0x3888b0b8, 0x0f0f030c, 0x0e8e828c, 0x02424240, 0x23032320, 0x11819190, - 0x2c4c606c, 0x1bcbd3d8, 0x2484a0a4, 0x34043034, 0x31c1f1f0, 0x08484048, 0x02c2c2c0, 0x2f4f636c, 0x3d0d313c, - 0x2d0d212c, 0x00404040, 0x3e8eb2bc, 0x3e0e323c, 0x3c8cb0bc, 0x01c1c1c0, 0x2a8aa2a8, 0x3a8ab2b8, 0x0e4e424c, - 0x15455154, 0x3b0b3338, 0x1cccd0dc, 0x28486068, 0x3f4f737c, 0x1c8c909c, 0x18c8d0d8, 0x0a4a4248, 0x16465254, - 0x37477374, 0x2080a0a0, 0x2dcde1ec, 0x06464244, 0x3585b1b4, 0x2b0b2328, 0x25456164, 0x3acaf2f8, 0x23c3e3e0, - 0x3989b1b8, 0x3181b1b0, 0x1f8f939c, 0x1e4e525c, 0x39c9f1f8, 0x26c6e2e4, 0x3282b2b0, 0x31013130, 0x2acae2e8, - 0x2d4d616c, 0x1f4f535c, 0x24c4e0e4, 0x30c0f0f0, 0x0dcdc1cc, 0x08888088, 0x16061214, 0x3a0a3238, 0x18485058, - 0x14c4d0d4, 0x22426260, 0x29092128, 0x07070304, 0x33033330, 0x28c8e0e8, 0x1b0b1318, 0x05050104, 0x39497178, - 0x10809090, 0x2a4a6268, 0x2a0a2228, 0x1a8a9298, + 0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124, + 0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360, + 0x28082028, 0x04444044, 0x20002020, 0x1d8d919c, 0x20c0e0e0, 0x22c2e2e0, 0x08c8c0c8, 0x17071314, + 0x2585a1a4, 0x0f8f838c, 0x03030300, 0x3b4b7378, 0x3b8bb3b8, 0x13031310, 0x12c2d2d0, 0x2ecee2ec, + 0x30407070, 0x0c8c808c, 0x3f0f333c, 0x2888a0a8, 0x32023230, 0x1dcdd1dc, 0x36c6f2f4, 0x34447074, + 0x2ccce0ec, 0x15859194, 0x0b0b0308, 0x17475354, 0x1c4c505c, 0x1b4b5358, 0x3d8db1bc, 0x01010100, + 0x24042024, 0x1c0c101c, 0x33437370, 0x18889098, 0x10001010, 0x0cccc0cc, 0x32c2f2f0, 0x19c9d1d8, + 0x2c0c202c, 0x27c7e3e4, 0x32427270, 0x03838380, 0x1b8b9398, 0x11c1d1d0, 0x06868284, 0x09c9c1c8, + 0x20406060, 0x10405050, 0x2383a3a0, 0x2bcbe3e8, 0x0d0d010c, 0x3686b2b4, 0x1e8e929c, 0x0f4f434c, + 0x3787b3b4, 0x1a4a5258, 0x06c6c2c4, 0x38487078, 0x2686a2a4, 0x12021210, 0x2f8fa3ac, 0x15c5d1d4, + 0x21416160, 0x03c3c3c0, 0x3484b0b4, 0x01414140, 0x12425250, 0x3d4d717c, 0x0d8d818c, 0x08080008, + 0x1f0f131c, 0x19899198, 0x00000000, 0x19091118, 0x04040004, 0x13435350, 0x37c7f3f4, 0x21c1e1e0, + 0x3dcdf1fc, 0x36467274, 0x2f0f232c, 0x27072324, 0x3080b0b0, 0x0b8b8388, 0x0e0e020c, 0x2b8ba3a8, + 0x2282a2a0, 0x2e4e626c, 0x13839390, 0x0d4d414c, 0x29496168, 0x3c4c707c, 0x09090108, 0x0a0a0208, + 0x3f8fb3bc, 0x2fcfe3ec, 0x33c3f3f0, 0x05c5c1c4, 0x07878384, 0x14041014, 0x3ecef2fc, 0x24446064, + 0x1eced2dc, 0x2e0e222c, 0x0b4b4348, 0x1a0a1218, 0x06060204, 0x21012120, 0x2b4b6368, 0x26466264, + 0x02020200, 0x35c5f1f4, 0x12829290, 0x0a8a8288, 0x0c0c000c, 0x3383b3b0, 0x3e4e727c, 0x10c0d0d0, + 0x3a4a7278, 0x07474344, 0x16869294, 0x25c5e1e4, 0x26062224, 0x00808080, 0x2d8da1ac, 0x1fcfd3dc, + 0x2181a1a0, 0x30003030, 0x37073334, 0x2e8ea2ac, 0x36063234, 0x15051114, 0x22022220, 0x38083038, + 0x34c4f0f4, 0x2787a3a4, 0x05454144, 0x0c4c404c, 0x01818180, 0x29c9e1e8, 0x04848084, 0x17879394, + 0x35053134, 0x0bcbc3c8, 0x0ecec2cc, 0x3c0c303c, 0x31417170, 0x11011110, 0x07c7c3c4, 0x09898188, + 0x35457174, 0x3bcbf3f8, 0x1acad2d8, 0x38c8f0f8, 0x14849094, 0x19495158, 0x02828280, 0x04c4c0c4, + 0x3fcff3fc, 0x09494148, 0x39093138, 0x27476364, 0x00c0c0c0, 0x0fcfc3cc, 0x17c7d3d4, 0x3888b0b8, + 0x0f0f030c, 0x0e8e828c, 0x02424240, 0x23032320, 0x11819190, 0x2c4c606c, 0x1bcbd3d8, 0x2484a0a4, + 0x34043034, 0x31c1f1f0, 0x08484048, 0x02c2c2c0, 0x2f4f636c, 0x3d0d313c, 0x2d0d212c, 0x00404040, + 0x3e8eb2bc, 0x3e0e323c, 0x3c8cb0bc, 0x01c1c1c0, 0x2a8aa2a8, 0x3a8ab2b8, 0x0e4e424c, 0x15455154, + 0x3b0b3338, 0x1cccd0dc, 0x28486068, 0x3f4f737c, 0x1c8c909c, 0x18c8d0d8, 0x0a4a4248, 0x16465254, + 0x37477374, 0x2080a0a0, 0x2dcde1ec, 0x06464244, 0x3585b1b4, 0x2b0b2328, 0x25456164, 0x3acaf2f8, + 0x23c3e3e0, 0x3989b1b8, 0x3181b1b0, 0x1f8f939c, 0x1e4e525c, 0x39c9f1f8, 0x26c6e2e4, 0x3282b2b0, + 0x31013130, 0x2acae2e8, 0x2d4d616c, 0x1f4f535c, 0x24c4e0e4, 0x30c0f0f0, 0x0dcdc1cc, 0x08888088, + 0x16061214, 0x3a0a3238, 0x18485058, 0x14c4d0d4, 0x22426260, 0x29092128, 0x07070304, 0x33033330, + 0x28c8e0e8, 0x1b0b1318, 0x05050104, 0x39497178, 0x10809090, 0x2a4a6268, 0x2a0a2228, 0x1a8a9298, ]; const SS1 = [ - 0x38380830, 0xe828c8e0, 0x2c2d0d21, 0xa42686a2, 0xcc0fcfc3, 0xdc1eced2, 0xb03383b3, 0xb83888b0, 0xac2f8fa3, - 0x60204060, 0x54154551, 0xc407c7c3, 0x44044440, 0x6c2f4f63, 0x682b4b63, 0x581b4b53, 0xc003c3c3, 0x60224262, - 0x30330333, 0xb43585b1, 0x28290921, 0xa02080a0, 0xe022c2e2, 0xa42787a3, 0xd013c3d3, 0x90118191, 0x10110111, - 0x04060602, 0x1c1c0c10, 0xbc3c8cb0, 0x34360632, 0x480b4b43, 0xec2fcfe3, 0x88088880, 0x6c2c4c60, 0xa82888a0, - 0x14170713, 0xc404c4c0, 0x14160612, 0xf434c4f0, 0xc002c2c2, 0x44054541, 0xe021c1e1, 0xd416c6d2, 0x3c3f0f33, - 0x3c3d0d31, 0x8c0e8e82, 0x98188890, 0x28280820, 0x4c0e4e42, 0xf436c6f2, 0x3c3e0e32, 0xa42585a1, 0xf839c9f1, - 0x0c0d0d01, 0xdc1fcfd3, 0xd818c8d0, 0x282b0b23, 0x64264662, 0x783a4a72, 0x24270723, 0x2c2f0f23, 0xf031c1f1, - 0x70324272, 0x40024242, 0xd414c4d0, 0x40014141, 0xc000c0c0, 0x70334373, 0x64274763, 0xac2c8ca0, 0x880b8b83, - 0xf437c7f3, 0xac2d8da1, 0x80008080, 0x1c1f0f13, 0xc80acac2, 0x2c2c0c20, 0xa82a8aa2, 0x34340430, 0xd012c2d2, - 0x080b0b03, 0xec2ecee2, 0xe829c9e1, 0x5c1d4d51, 0x94148490, 0x18180810, 0xf838c8f0, 0x54174753, 0xac2e8ea2, - 0x08080800, 0xc405c5c1, 0x10130313, 0xcc0dcdc1, 0x84068682, 0xb83989b1, 0xfc3fcff3, 0x7c3d4d71, 0xc001c1c1, - 0x30310131, 0xf435c5f1, 0x880a8a82, 0x682a4a62, 0xb03181b1, 0xd011c1d1, 0x20200020, 0xd417c7d3, 0x00020202, - 0x20220222, 0x04040400, 0x68284860, 0x70314171, 0x04070703, 0xd81bcbd3, 0x9c1d8d91, 0x98198991, 0x60214161, - 0xbc3e8eb2, 0xe426c6e2, 0x58194951, 0xdc1dcdd1, 0x50114151, 0x90108090, 0xdc1cccd0, 0x981a8a92, 0xa02383a3, - 0xa82b8ba3, 0xd010c0d0, 0x80018181, 0x0c0f0f03, 0x44074743, 0x181a0a12, 0xe023c3e3, 0xec2ccce0, 0x8c0d8d81, - 0xbc3f8fb3, 0x94168692, 0x783b4b73, 0x5c1c4c50, 0xa02282a2, 0xa02181a1, 0x60234363, 0x20230323, 0x4c0d4d41, - 0xc808c8c0, 0x9c1e8e92, 0x9c1c8c90, 0x383a0a32, 0x0c0c0c00, 0x2c2e0e22, 0xb83a8ab2, 0x6c2e4e62, 0x9c1f8f93, - 0x581a4a52, 0xf032c2f2, 0x90128292, 0xf033c3f3, 0x48094941, 0x78384870, 0xcc0cccc0, 0x14150511, 0xf83bcbf3, - 0x70304070, 0x74354571, 0x7c3f4f73, 0x34350531, 0x10100010, 0x00030303, 0x64244460, 0x6c2d4d61, 0xc406c6c2, - 0x74344470, 0xd415c5d1, 0xb43484b0, 0xe82acae2, 0x08090901, 0x74364672, 0x18190911, 0xfc3ecef2, 0x40004040, - 0x10120212, 0xe020c0e0, 0xbc3d8db1, 0x04050501, 0xf83acaf2, 0x00010101, 0xf030c0f0, 0x282a0a22, 0x5c1e4e52, - 0xa82989a1, 0x54164652, 0x40034343, 0x84058581, 0x14140410, 0x88098981, 0x981b8b93, 0xb03080b0, 0xe425c5e1, - 0x48084840, 0x78394971, 0x94178793, 0xfc3cccf0, 0x1c1e0e12, 0x80028282, 0x20210121, 0x8c0c8c80, 0x181b0b13, - 0x5c1f4f53, 0x74374773, 0x54144450, 0xb03282b2, 0x1c1d0d11, 0x24250521, 0x4c0f4f43, 0x00000000, 0x44064642, - 0xec2dcde1, 0x58184850, 0x50124252, 0xe82bcbe3, 0x7c3e4e72, 0xd81acad2, 0xc809c9c1, 0xfc3dcdf1, 0x30300030, - 0x94158591, 0x64254561, 0x3c3c0c30, 0xb43686b2, 0xe424c4e0, 0xb83b8bb3, 0x7c3c4c70, 0x0c0e0e02, 0x50104050, - 0x38390931, 0x24260622, 0x30320232, 0x84048480, 0x68294961, 0x90138393, 0x34370733, 0xe427c7e3, 0x24240420, - 0xa42484a0, 0xc80bcbc3, 0x50134353, 0x080a0a02, 0x84078783, 0xd819c9d1, 0x4c0c4c40, 0x80038383, 0x8c0f8f83, - 0xcc0ecec2, 0x383b0b33, 0x480a4a42, 0xb43787b3, + 0x38380830, 0xe828c8e0, 0x2c2d0d21, 0xa42686a2, 0xcc0fcfc3, 0xdc1eced2, 0xb03383b3, 0xb83888b0, + 0xac2f8fa3, 0x60204060, 0x54154551, 0xc407c7c3, 0x44044440, 0x6c2f4f63, 0x682b4b63, 0x581b4b53, + 0xc003c3c3, 0x60224262, 0x30330333, 0xb43585b1, 0x28290921, 0xa02080a0, 0xe022c2e2, 0xa42787a3, + 0xd013c3d3, 0x90118191, 0x10110111, 0x04060602, 0x1c1c0c10, 0xbc3c8cb0, 0x34360632, 0x480b4b43, + 0xec2fcfe3, 0x88088880, 0x6c2c4c60, 0xa82888a0, 0x14170713, 0xc404c4c0, 0x14160612, 0xf434c4f0, + 0xc002c2c2, 0x44054541, 0xe021c1e1, 0xd416c6d2, 0x3c3f0f33, 0x3c3d0d31, 0x8c0e8e82, 0x98188890, + 0x28280820, 0x4c0e4e42, 0xf436c6f2, 0x3c3e0e32, 0xa42585a1, 0xf839c9f1, 0x0c0d0d01, 0xdc1fcfd3, + 0xd818c8d0, 0x282b0b23, 0x64264662, 0x783a4a72, 0x24270723, 0x2c2f0f23, 0xf031c1f1, 0x70324272, + 0x40024242, 0xd414c4d0, 0x40014141, 0xc000c0c0, 0x70334373, 0x64274763, 0xac2c8ca0, 0x880b8b83, + 0xf437c7f3, 0xac2d8da1, 0x80008080, 0x1c1f0f13, 0xc80acac2, 0x2c2c0c20, 0xa82a8aa2, 0x34340430, + 0xd012c2d2, 0x080b0b03, 0xec2ecee2, 0xe829c9e1, 0x5c1d4d51, 0x94148490, 0x18180810, 0xf838c8f0, + 0x54174753, 0xac2e8ea2, 0x08080800, 0xc405c5c1, 0x10130313, 0xcc0dcdc1, 0x84068682, 0xb83989b1, + 0xfc3fcff3, 0x7c3d4d71, 0xc001c1c1, 0x30310131, 0xf435c5f1, 0x880a8a82, 0x682a4a62, 0xb03181b1, + 0xd011c1d1, 0x20200020, 0xd417c7d3, 0x00020202, 0x20220222, 0x04040400, 0x68284860, 0x70314171, + 0x04070703, 0xd81bcbd3, 0x9c1d8d91, 0x98198991, 0x60214161, 0xbc3e8eb2, 0xe426c6e2, 0x58194951, + 0xdc1dcdd1, 0x50114151, 0x90108090, 0xdc1cccd0, 0x981a8a92, 0xa02383a3, 0xa82b8ba3, 0xd010c0d0, + 0x80018181, 0x0c0f0f03, 0x44074743, 0x181a0a12, 0xe023c3e3, 0xec2ccce0, 0x8c0d8d81, 0xbc3f8fb3, + 0x94168692, 0x783b4b73, 0x5c1c4c50, 0xa02282a2, 0xa02181a1, 0x60234363, 0x20230323, 0x4c0d4d41, + 0xc808c8c0, 0x9c1e8e92, 0x9c1c8c90, 0x383a0a32, 0x0c0c0c00, 0x2c2e0e22, 0xb83a8ab2, 0x6c2e4e62, + 0x9c1f8f93, 0x581a4a52, 0xf032c2f2, 0x90128292, 0xf033c3f3, 0x48094941, 0x78384870, 0xcc0cccc0, + 0x14150511, 0xf83bcbf3, 0x70304070, 0x74354571, 0x7c3f4f73, 0x34350531, 0x10100010, 0x00030303, + 0x64244460, 0x6c2d4d61, 0xc406c6c2, 0x74344470, 0xd415c5d1, 0xb43484b0, 0xe82acae2, 0x08090901, + 0x74364672, 0x18190911, 0xfc3ecef2, 0x40004040, 0x10120212, 0xe020c0e0, 0xbc3d8db1, 0x04050501, + 0xf83acaf2, 0x00010101, 0xf030c0f0, 0x282a0a22, 0x5c1e4e52, 0xa82989a1, 0x54164652, 0x40034343, + 0x84058581, 0x14140410, 0x88098981, 0x981b8b93, 0xb03080b0, 0xe425c5e1, 0x48084840, 0x78394971, + 0x94178793, 0xfc3cccf0, 0x1c1e0e12, 0x80028282, 0x20210121, 0x8c0c8c80, 0x181b0b13, 0x5c1f4f53, + 0x74374773, 0x54144450, 0xb03282b2, 0x1c1d0d11, 0x24250521, 0x4c0f4f43, 0x00000000, 0x44064642, + 0xec2dcde1, 0x58184850, 0x50124252, 0xe82bcbe3, 0x7c3e4e72, 0xd81acad2, 0xc809c9c1, 0xfc3dcdf1, + 0x30300030, 0x94158591, 0x64254561, 0x3c3c0c30, 0xb43686b2, 0xe424c4e0, 0xb83b8bb3, 0x7c3c4c70, + 0x0c0e0e02, 0x50104050, 0x38390931, 0x24260622, 0x30320232, 0x84048480, 0x68294961, 0x90138393, + 0x34370733, 0xe427c7e3, 0x24240420, 0xa42484a0, 0xc80bcbc3, 0x50134353, 0x080a0a02, 0x84078783, + 0xd819c9d1, 0x4c0c4c40, 0x80038383, 0x8c0f8f83, 0xcc0ecec2, 0x383b0b33, 0x480a4a42, 0xb43787b3, ]; const SS2 = [ - 0xa1a82989, 0x81840585, 0xd2d416c6, 0xd3d013c3, 0x50541444, 0x111c1d0d, 0xa0ac2c8c, 0x21242505, 0x515c1d4d, - 0x43400343, 0x10181808, 0x121c1e0e, 0x51501141, 0xf0fc3ccc, 0xc2c80aca, 0x63602343, 0x20282808, 0x40440444, - 0x20202000, 0x919c1d8d, 0xe0e020c0, 0xe2e022c2, 0xc0c808c8, 0x13141707, 0xa1a42585, 0x838c0f8f, 0x03000303, - 0x73783b4b, 0xb3b83b8b, 0x13101303, 0xd2d012c2, 0xe2ec2ece, 0x70703040, 0x808c0c8c, 0x333c3f0f, 0xa0a82888, - 0x32303202, 0xd1dc1dcd, 0xf2f436c6, 0x70743444, 0xe0ec2ccc, 0x91941585, 0x03080b0b, 0x53541747, 0x505c1c4c, - 0x53581b4b, 0xb1bc3d8d, 0x01000101, 0x20242404, 0x101c1c0c, 0x73703343, 0x90981888, 0x10101000, 0xc0cc0ccc, - 0xf2f032c2, 0xd1d819c9, 0x202c2c0c, 0xe3e427c7, 0x72703242, 0x83800383, 0x93981b8b, 0xd1d011c1, 0x82840686, - 0xc1c809c9, 0x60602040, 0x50501040, 0xa3a02383, 0xe3e82bcb, 0x010c0d0d, 0xb2b43686, 0x929c1e8e, 0x434c0f4f, - 0xb3b43787, 0x52581a4a, 0xc2c406c6, 0x70783848, 0xa2a42686, 0x12101202, 0xa3ac2f8f, 0xd1d415c5, 0x61602141, - 0xc3c003c3, 0xb0b43484, 0x41400141, 0x52501242, 0x717c3d4d, 0x818c0d8d, 0x00080808, 0x131c1f0f, 0x91981989, - 0x00000000, 0x11181909, 0x00040404, 0x53501343, 0xf3f437c7, 0xe1e021c1, 0xf1fc3dcd, 0x72743646, 0x232c2f0f, - 0x23242707, 0xb0b03080, 0x83880b8b, 0x020c0e0e, 0xa3a82b8b, 0xa2a02282, 0x626c2e4e, 0x93901383, 0x414c0d4d, - 0x61682949, 0x707c3c4c, 0x01080909, 0x02080a0a, 0xb3bc3f8f, 0xe3ec2fcf, 0xf3f033c3, 0xc1c405c5, 0x83840787, - 0x10141404, 0xf2fc3ece, 0x60642444, 0xd2dc1ece, 0x222c2e0e, 0x43480b4b, 0x12181a0a, 0x02040606, 0x21202101, - 0x63682b4b, 0x62642646, 0x02000202, 0xf1f435c5, 0x92901282, 0x82880a8a, 0x000c0c0c, 0xb3b03383, 0x727c3e4e, - 0xd0d010c0, 0x72783a4a, 0x43440747, 0x92941686, 0xe1e425c5, 0x22242606, 0x80800080, 0xa1ac2d8d, 0xd3dc1fcf, - 0xa1a02181, 0x30303000, 0x33343707, 0xa2ac2e8e, 0x32343606, 0x11141505, 0x22202202, 0x30383808, 0xf0f434c4, - 0xa3a42787, 0x41440545, 0x404c0c4c, 0x81800181, 0xe1e829c9, 0x80840484, 0x93941787, 0x31343505, 0xc3c80bcb, - 0xc2cc0ece, 0x303c3c0c, 0x71703141, 0x11101101, 0xc3c407c7, 0x81880989, 0x71743545, 0xf3f83bcb, 0xd2d81aca, - 0xf0f838c8, 0x90941484, 0x51581949, 0x82800282, 0xc0c404c4, 0xf3fc3fcf, 0x41480949, 0x31383909, 0x63642747, - 0xc0c000c0, 0xc3cc0fcf, 0xd3d417c7, 0xb0b83888, 0x030c0f0f, 0x828c0e8e, 0x42400242, 0x23202303, 0x91901181, - 0x606c2c4c, 0xd3d81bcb, 0xa0a42484, 0x30343404, 0xf1f031c1, 0x40480848, 0xc2c002c2, 0x636c2f4f, 0x313c3d0d, - 0x212c2d0d, 0x40400040, 0xb2bc3e8e, 0x323c3e0e, 0xb0bc3c8c, 0xc1c001c1, 0xa2a82a8a, 0xb2b83a8a, 0x424c0e4e, - 0x51541545, 0x33383b0b, 0xd0dc1ccc, 0x60682848, 0x737c3f4f, 0x909c1c8c, 0xd0d818c8, 0x42480a4a, 0x52541646, - 0x73743747, 0xa0a02080, 0xe1ec2dcd, 0x42440646, 0xb1b43585, 0x23282b0b, 0x61642545, 0xf2f83aca, 0xe3e023c3, - 0xb1b83989, 0xb1b03181, 0x939c1f8f, 0x525c1e4e, 0xf1f839c9, 0xe2e426c6, 0xb2b03282, 0x31303101, 0xe2e82aca, - 0x616c2d4d, 0x535c1f4f, 0xe0e424c4, 0xf0f030c0, 0xc1cc0dcd, 0x80880888, 0x12141606, 0x32383a0a, 0x50581848, - 0xd0d414c4, 0x62602242, 0x21282909, 0x03040707, 0x33303303, 0xe0e828c8, 0x13181b0b, 0x01040505, 0x71783949, - 0x90901080, 0x62682a4a, 0x22282a0a, 0x92981a8a, + 0xa1a82989, 0x81840585, 0xd2d416c6, 0xd3d013c3, 0x50541444, 0x111c1d0d, 0xa0ac2c8c, 0x21242505, + 0x515c1d4d, 0x43400343, 0x10181808, 0x121c1e0e, 0x51501141, 0xf0fc3ccc, 0xc2c80aca, 0x63602343, + 0x20282808, 0x40440444, 0x20202000, 0x919c1d8d, 0xe0e020c0, 0xe2e022c2, 0xc0c808c8, 0x13141707, + 0xa1a42585, 0x838c0f8f, 0x03000303, 0x73783b4b, 0xb3b83b8b, 0x13101303, 0xd2d012c2, 0xe2ec2ece, + 0x70703040, 0x808c0c8c, 0x333c3f0f, 0xa0a82888, 0x32303202, 0xd1dc1dcd, 0xf2f436c6, 0x70743444, + 0xe0ec2ccc, 0x91941585, 0x03080b0b, 0x53541747, 0x505c1c4c, 0x53581b4b, 0xb1bc3d8d, 0x01000101, + 0x20242404, 0x101c1c0c, 0x73703343, 0x90981888, 0x10101000, 0xc0cc0ccc, 0xf2f032c2, 0xd1d819c9, + 0x202c2c0c, 0xe3e427c7, 0x72703242, 0x83800383, 0x93981b8b, 0xd1d011c1, 0x82840686, 0xc1c809c9, + 0x60602040, 0x50501040, 0xa3a02383, 0xe3e82bcb, 0x010c0d0d, 0xb2b43686, 0x929c1e8e, 0x434c0f4f, + 0xb3b43787, 0x52581a4a, 0xc2c406c6, 0x70783848, 0xa2a42686, 0x12101202, 0xa3ac2f8f, 0xd1d415c5, + 0x61602141, 0xc3c003c3, 0xb0b43484, 0x41400141, 0x52501242, 0x717c3d4d, 0x818c0d8d, 0x00080808, + 0x131c1f0f, 0x91981989, 0x00000000, 0x11181909, 0x00040404, 0x53501343, 0xf3f437c7, 0xe1e021c1, + 0xf1fc3dcd, 0x72743646, 0x232c2f0f, 0x23242707, 0xb0b03080, 0x83880b8b, 0x020c0e0e, 0xa3a82b8b, + 0xa2a02282, 0x626c2e4e, 0x93901383, 0x414c0d4d, 0x61682949, 0x707c3c4c, 0x01080909, 0x02080a0a, + 0xb3bc3f8f, 0xe3ec2fcf, 0xf3f033c3, 0xc1c405c5, 0x83840787, 0x10141404, 0xf2fc3ece, 0x60642444, + 0xd2dc1ece, 0x222c2e0e, 0x43480b4b, 0x12181a0a, 0x02040606, 0x21202101, 0x63682b4b, 0x62642646, + 0x02000202, 0xf1f435c5, 0x92901282, 0x82880a8a, 0x000c0c0c, 0xb3b03383, 0x727c3e4e, 0xd0d010c0, + 0x72783a4a, 0x43440747, 0x92941686, 0xe1e425c5, 0x22242606, 0x80800080, 0xa1ac2d8d, 0xd3dc1fcf, + 0xa1a02181, 0x30303000, 0x33343707, 0xa2ac2e8e, 0x32343606, 0x11141505, 0x22202202, 0x30383808, + 0xf0f434c4, 0xa3a42787, 0x41440545, 0x404c0c4c, 0x81800181, 0xe1e829c9, 0x80840484, 0x93941787, + 0x31343505, 0xc3c80bcb, 0xc2cc0ece, 0x303c3c0c, 0x71703141, 0x11101101, 0xc3c407c7, 0x81880989, + 0x71743545, 0xf3f83bcb, 0xd2d81aca, 0xf0f838c8, 0x90941484, 0x51581949, 0x82800282, 0xc0c404c4, + 0xf3fc3fcf, 0x41480949, 0x31383909, 0x63642747, 0xc0c000c0, 0xc3cc0fcf, 0xd3d417c7, 0xb0b83888, + 0x030c0f0f, 0x828c0e8e, 0x42400242, 0x23202303, 0x91901181, 0x606c2c4c, 0xd3d81bcb, 0xa0a42484, + 0x30343404, 0xf1f031c1, 0x40480848, 0xc2c002c2, 0x636c2f4f, 0x313c3d0d, 0x212c2d0d, 0x40400040, + 0xb2bc3e8e, 0x323c3e0e, 0xb0bc3c8c, 0xc1c001c1, 0xa2a82a8a, 0xb2b83a8a, 0x424c0e4e, 0x51541545, + 0x33383b0b, 0xd0dc1ccc, 0x60682848, 0x737c3f4f, 0x909c1c8c, 0xd0d818c8, 0x42480a4a, 0x52541646, + 0x73743747, 0xa0a02080, 0xe1ec2dcd, 0x42440646, 0xb1b43585, 0x23282b0b, 0x61642545, 0xf2f83aca, + 0xe3e023c3, 0xb1b83989, 0xb1b03181, 0x939c1f8f, 0x525c1e4e, 0xf1f839c9, 0xe2e426c6, 0xb2b03282, + 0x31303101, 0xe2e82aca, 0x616c2d4d, 0x535c1f4f, 0xe0e424c4, 0xf0f030c0, 0xc1cc0dcd, 0x80880888, + 0x12141606, 0x32383a0a, 0x50581848, 0xd0d414c4, 0x62602242, 0x21282909, 0x03040707, 0x33303303, + 0xe0e828c8, 0x13181b0b, 0x01040505, 0x71783949, 0x90901080, 0x62682a4a, 0x22282a0a, 0x92981a8a, ]; const SS3 = [ - 0x08303838, 0xc8e0e828, 0x0d212c2d, 0x86a2a426, 0xcfc3cc0f, 0xced2dc1e, 0x83b3b033, 0x88b0b838, 0x8fa3ac2f, - 0x40606020, 0x45515415, 0xc7c3c407, 0x44404404, 0x4f636c2f, 0x4b63682b, 0x4b53581b, 0xc3c3c003, 0x42626022, - 0x03333033, 0x85b1b435, 0x09212829, 0x80a0a020, 0xc2e2e022, 0x87a3a427, 0xc3d3d013, 0x81919011, 0x01111011, - 0x06020406, 0x0c101c1c, 0x8cb0bc3c, 0x06323436, 0x4b43480b, 0xcfe3ec2f, 0x88808808, 0x4c606c2c, 0x88a0a828, - 0x07131417, 0xc4c0c404, 0x06121416, 0xc4f0f434, 0xc2c2c002, 0x45414405, 0xc1e1e021, 0xc6d2d416, 0x0f333c3f, - 0x0d313c3d, 0x8e828c0e, 0x88909818, 0x08202828, 0x4e424c0e, 0xc6f2f436, 0x0e323c3e, 0x85a1a425, 0xc9f1f839, - 0x0d010c0d, 0xcfd3dc1f, 0xc8d0d818, 0x0b23282b, 0x46626426, 0x4a72783a, 0x07232427, 0x0f232c2f, 0xc1f1f031, - 0x42727032, 0x42424002, 0xc4d0d414, 0x41414001, 0xc0c0c000, 0x43737033, 0x47636427, 0x8ca0ac2c, 0x8b83880b, - 0xc7f3f437, 0x8da1ac2d, 0x80808000, 0x0f131c1f, 0xcac2c80a, 0x0c202c2c, 0x8aa2a82a, 0x04303434, 0xc2d2d012, - 0x0b03080b, 0xcee2ec2e, 0xc9e1e829, 0x4d515c1d, 0x84909414, 0x08101818, 0xc8f0f838, 0x47535417, 0x8ea2ac2e, - 0x08000808, 0xc5c1c405, 0x03131013, 0xcdc1cc0d, 0x86828406, 0x89b1b839, 0xcff3fc3f, 0x4d717c3d, 0xc1c1c001, - 0x01313031, 0xc5f1f435, 0x8a82880a, 0x4a62682a, 0x81b1b031, 0xc1d1d011, 0x00202020, 0xc7d3d417, 0x02020002, - 0x02222022, 0x04000404, 0x48606828, 0x41717031, 0x07030407, 0xcbd3d81b, 0x8d919c1d, 0x89919819, 0x41616021, - 0x8eb2bc3e, 0xc6e2e426, 0x49515819, 0xcdd1dc1d, 0x41515011, 0x80909010, 0xccd0dc1c, 0x8a92981a, 0x83a3a023, - 0x8ba3a82b, 0xc0d0d010, 0x81818001, 0x0f030c0f, 0x47434407, 0x0a12181a, 0xc3e3e023, 0xcce0ec2c, 0x8d818c0d, - 0x8fb3bc3f, 0x86929416, 0x4b73783b, 0x4c505c1c, 0x82a2a022, 0x81a1a021, 0x43636023, 0x03232023, 0x4d414c0d, - 0xc8c0c808, 0x8e929c1e, 0x8c909c1c, 0x0a32383a, 0x0c000c0c, 0x0e222c2e, 0x8ab2b83a, 0x4e626c2e, 0x8f939c1f, - 0x4a52581a, 0xc2f2f032, 0x82929012, 0xc3f3f033, 0x49414809, 0x48707838, 0xccc0cc0c, 0x05111415, 0xcbf3f83b, - 0x40707030, 0x45717435, 0x4f737c3f, 0x05313435, 0x00101010, 0x03030003, 0x44606424, 0x4d616c2d, 0xc6c2c406, - 0x44707434, 0xc5d1d415, 0x84b0b434, 0xcae2e82a, 0x09010809, 0x46727436, 0x09111819, 0xcef2fc3e, 0x40404000, - 0x02121012, 0xc0e0e020, 0x8db1bc3d, 0x05010405, 0xcaf2f83a, 0x01010001, 0xc0f0f030, 0x0a22282a, 0x4e525c1e, - 0x89a1a829, 0x46525416, 0x43434003, 0x85818405, 0x04101414, 0x89818809, 0x8b93981b, 0x80b0b030, 0xc5e1e425, - 0x48404808, 0x49717839, 0x87939417, 0xccf0fc3c, 0x0e121c1e, 0x82828002, 0x01212021, 0x8c808c0c, 0x0b13181b, - 0x4f535c1f, 0x47737437, 0x44505414, 0x82b2b032, 0x0d111c1d, 0x05212425, 0x4f434c0f, 0x00000000, 0x46424406, - 0xcde1ec2d, 0x48505818, 0x42525012, 0xcbe3e82b, 0x4e727c3e, 0xcad2d81a, 0xc9c1c809, 0xcdf1fc3d, 0x00303030, - 0x85919415, 0x45616425, 0x0c303c3c, 0x86b2b436, 0xc4e0e424, 0x8bb3b83b, 0x4c707c3c, 0x0e020c0e, 0x40505010, - 0x09313839, 0x06222426, 0x02323032, 0x84808404, 0x49616829, 0x83939013, 0x07333437, 0xc7e3e427, 0x04202424, - 0x84a0a424, 0xcbc3c80b, 0x43535013, 0x0a02080a, 0x87838407, 0xc9d1d819, 0x4c404c0c, 0x83838003, 0x8f838c0f, - 0xcec2cc0e, 0x0b33383b, 0x4a42480a, 0x87b3b437, + 0x08303838, 0xc8e0e828, 0x0d212c2d, 0x86a2a426, 0xcfc3cc0f, 0xced2dc1e, 0x83b3b033, 0x88b0b838, + 0x8fa3ac2f, 0x40606020, 0x45515415, 0xc7c3c407, 0x44404404, 0x4f636c2f, 0x4b63682b, 0x4b53581b, + 0xc3c3c003, 0x42626022, 0x03333033, 0x85b1b435, 0x09212829, 0x80a0a020, 0xc2e2e022, 0x87a3a427, + 0xc3d3d013, 0x81919011, 0x01111011, 0x06020406, 0x0c101c1c, 0x8cb0bc3c, 0x06323436, 0x4b43480b, + 0xcfe3ec2f, 0x88808808, 0x4c606c2c, 0x88a0a828, 0x07131417, 0xc4c0c404, 0x06121416, 0xc4f0f434, + 0xc2c2c002, 0x45414405, 0xc1e1e021, 0xc6d2d416, 0x0f333c3f, 0x0d313c3d, 0x8e828c0e, 0x88909818, + 0x08202828, 0x4e424c0e, 0xc6f2f436, 0x0e323c3e, 0x85a1a425, 0xc9f1f839, 0x0d010c0d, 0xcfd3dc1f, + 0xc8d0d818, 0x0b23282b, 0x46626426, 0x4a72783a, 0x07232427, 0x0f232c2f, 0xc1f1f031, 0x42727032, + 0x42424002, 0xc4d0d414, 0x41414001, 0xc0c0c000, 0x43737033, 0x47636427, 0x8ca0ac2c, 0x8b83880b, + 0xc7f3f437, 0x8da1ac2d, 0x80808000, 0x0f131c1f, 0xcac2c80a, 0x0c202c2c, 0x8aa2a82a, 0x04303434, + 0xc2d2d012, 0x0b03080b, 0xcee2ec2e, 0xc9e1e829, 0x4d515c1d, 0x84909414, 0x08101818, 0xc8f0f838, + 0x47535417, 0x8ea2ac2e, 0x08000808, 0xc5c1c405, 0x03131013, 0xcdc1cc0d, 0x86828406, 0x89b1b839, + 0xcff3fc3f, 0x4d717c3d, 0xc1c1c001, 0x01313031, 0xc5f1f435, 0x8a82880a, 0x4a62682a, 0x81b1b031, + 0xc1d1d011, 0x00202020, 0xc7d3d417, 0x02020002, 0x02222022, 0x04000404, 0x48606828, 0x41717031, + 0x07030407, 0xcbd3d81b, 0x8d919c1d, 0x89919819, 0x41616021, 0x8eb2bc3e, 0xc6e2e426, 0x49515819, + 0xcdd1dc1d, 0x41515011, 0x80909010, 0xccd0dc1c, 0x8a92981a, 0x83a3a023, 0x8ba3a82b, 0xc0d0d010, + 0x81818001, 0x0f030c0f, 0x47434407, 0x0a12181a, 0xc3e3e023, 0xcce0ec2c, 0x8d818c0d, 0x8fb3bc3f, + 0x86929416, 0x4b73783b, 0x4c505c1c, 0x82a2a022, 0x81a1a021, 0x43636023, 0x03232023, 0x4d414c0d, + 0xc8c0c808, 0x8e929c1e, 0x8c909c1c, 0x0a32383a, 0x0c000c0c, 0x0e222c2e, 0x8ab2b83a, 0x4e626c2e, + 0x8f939c1f, 0x4a52581a, 0xc2f2f032, 0x82929012, 0xc3f3f033, 0x49414809, 0x48707838, 0xccc0cc0c, + 0x05111415, 0xcbf3f83b, 0x40707030, 0x45717435, 0x4f737c3f, 0x05313435, 0x00101010, 0x03030003, + 0x44606424, 0x4d616c2d, 0xc6c2c406, 0x44707434, 0xc5d1d415, 0x84b0b434, 0xcae2e82a, 0x09010809, + 0x46727436, 0x09111819, 0xcef2fc3e, 0x40404000, 0x02121012, 0xc0e0e020, 0x8db1bc3d, 0x05010405, + 0xcaf2f83a, 0x01010001, 0xc0f0f030, 0x0a22282a, 0x4e525c1e, 0x89a1a829, 0x46525416, 0x43434003, + 0x85818405, 0x04101414, 0x89818809, 0x8b93981b, 0x80b0b030, 0xc5e1e425, 0x48404808, 0x49717839, + 0x87939417, 0xccf0fc3c, 0x0e121c1e, 0x82828002, 0x01212021, 0x8c808c0c, 0x0b13181b, 0x4f535c1f, + 0x47737437, 0x44505414, 0x82b2b032, 0x0d111c1d, 0x05212425, 0x4f434c0f, 0x00000000, 0x46424406, + 0xcde1ec2d, 0x48505818, 0x42525012, 0xcbe3e82b, 0x4e727c3e, 0xcad2d81a, 0xc9c1c809, 0xcdf1fc3d, + 0x00303030, 0x85919415, 0x45616425, 0x0c303c3c, 0x86b2b436, 0xc4e0e424, 0x8bb3b83b, 0x4c707c3c, + 0x0e020c0e, 0x40505010, 0x09313839, 0x06222426, 0x02323032, 0x84808404, 0x49616829, 0x83939013, + 0x07333437, 0xc7e3e427, 0x04202424, 0x84a0a424, 0xcbc3c80b, 0x43535013, 0x0a02080a, 0x87838407, + 0xc9d1d819, 0x4c404c0c, 0x83838003, 0x8f838c0f, 0xcec2cc0e, 0x0b33383b, 0x4a42480a, 0x87b3b437, ]; const KC = [ - 0x9e3779b9, 0x3c6ef373, 0x78dde6e6, 0xf1bbcdcc, 0xe3779b99, 0xc6ef3733, 0x8dde6e67, 0x1bbcdccf, 0x3779b99e, - 0x6ef3733c, 0xdde6e678, 0xbbcdccf1, 0x779b99e3, 0xef3733c6, 0xde6e678d, 0xbcdccf1b, + 0x9e3779b9, 0x3c6ef373, 0x78dde6e6, 0xf1bbcdcc, 0xe3779b99, 0xc6ef3733, 0x8dde6e67, 0x1bbcdccf, + 0x3779b99e, 0x6ef3733c, 0xdde6e678, 0xbbcdccf1, 0x779b99e3, 0xef3733c6, 0xde6e678d, 0xbcdccf1b, ]; class EzwelCryptoPadding { @@ -251,7 +263,11 @@ export class EzwelCrypto { } private static EndianChangeArray(dws: number[]): void { - dws[0] = (dws[0] >>> 24) | (dws[0] << 24) | ((dws[0] << 8) & 0x00ff0000) | ((dws[0] >>> 8) & 0x0000ff00); + dws[0] = + (dws[0] >>> 24) | + (dws[0] << 24) | + ((dws[0] << 8) & 0x00ff0000) | + ((dws[0] >>> 8) & 0x0000ff00); } private static EndianChange(dws: number): number { @@ -263,7 +279,13 @@ export class EzwelCrypto { } /***************************** SEED round function ****************************/ - private static SeedRound(L0: number[], L1: number[], R0: number[], R1: number[], K: number[]): void { + private static SeedRound( + L0: number[], + L1: number[], + R0: number[], + R1: number[], + K: number[] + ): void { let T0: number, T1: number; let T00 = 0, T11 = 0; @@ -387,24 +409,42 @@ export class EzwelCrypto { } /************************ Functions for Key schedule **************************/ - private static EncRoundKeyUpdate0(K: number[], A: number[], B: number[], C: number[], D: number[], Z: number): void { + private static EncRoundKeyUpdate0( + K: number[], + A: number[], + B: number[], + C: number[], + D: number[], + Z: number + ): void { const T0 = A[0]; A[0] = (A[0] >>> 8) ^ (B[0] << 24); B[0] = (B[0] >>> 8) ^ (T0 << 24); const T00 = A[0] + C[0] - KC[Z]; const T11 = B[0] + KC[Z] - D[0]; - K[0] = SS0[this.GetB0(T00)] ^ SS1[this.GetB1(T00)] ^ SS2[this.GetB2(T00)] ^ SS3[this.GetB3(T00)]; - K[1] = SS0[this.GetB0(T11)] ^ SS1[this.GetB1(T11)] ^ SS2[this.GetB2(T11)] ^ SS3[this.GetB3(T11)]; + K[0] = + SS0[this.GetB0(T00)] ^ SS1[this.GetB1(T00)] ^ SS2[this.GetB2(T00)] ^ SS3[this.GetB3(T00)]; + K[1] = + SS0[this.GetB0(T11)] ^ SS1[this.GetB1(T11)] ^ SS2[this.GetB2(T11)] ^ SS3[this.GetB3(T11)]; } - private static EncRoundKeyUpdate1(K: number[], A: number[], B: number[], C: number[], D: number[], Z: number): void { + private static EncRoundKeyUpdate1( + K: number[], + A: number[], + B: number[], + C: number[], + D: number[], + Z: number + ): void { const T0 = C[0]; C[0] = (C[0] << 8) ^ (D[0] >>> 24); D[0] = (D[0] << 8) ^ (T0 >>> 24); const T00 = A[0] + C[0] - KC[Z]; const T11 = B[0] + KC[Z] - D[0]; - K[0] = SS0[this.GetB0(T00)] ^ SS1[this.GetB1(T00)] ^ SS2[this.GetB2(T00)] ^ SS3[this.GetB3(T00)]; - K[1] = SS0[this.GetB0(T11)] ^ SS1[this.GetB1(T11)] ^ SS2[this.GetB2(T11)] ^ SS3[this.GetB3(T11)]; + K[0] = + SS0[this.GetB0(T00)] ^ SS1[this.GetB1(T00)] ^ SS2[this.GetB2(T00)] ^ SS3[this.GetB3(T00)]; + K[1] = + SS0[this.GetB0(T11)] ^ SS1[this.GetB1(T11)] ^ SS2[this.GetB2(T11)] ^ SS3[this.GetB3(T11)]; } /******************************** Key Schedule ********************************/ @@ -433,8 +473,10 @@ export class EzwelCrypto { const T0 = A[0] + C[0] - KC[0]; const T1 = B[0] - D[0] + KC[0]; - pdwRoundKey[0] = SS0[this.GetB0(T0)] ^ SS1[this.GetB1(T0)] ^ SS2[this.GetB2(T0)] ^ SS3[this.GetB3(T0)]; - pdwRoundKey[1] = SS0[this.GetB0(T1)] ^ SS1[this.GetB1(T1)] ^ SS2[this.GetB2(T1)] ^ SS3[this.GetB3(T1)]; + pdwRoundKey[0] = + SS0[this.GetB0(T0)] ^ SS1[this.GetB1(T0)] ^ SS2[this.GetB2(T0)] ^ SS3[this.GetB3(T0)]; + pdwRoundKey[1] = + SS0[this.GetB0(T1)] ^ SS1[this.GetB1(T1)] ^ SS2[this.GetB2(T1)] ^ SS3[this.GetB3(T1)]; for (let i = 1; i <= 15; i++) { if (i % 2 !== 0) this.EncRoundKeyUpdate0(K, A, B, C, D, i); diff --git a/src/date-util/date-util-base.type.ts b/src/date-util/date-util-base.type.ts index 1e3894d1..e5412d39 100644 --- a/src/date-util/date-util-base.type.ts +++ b/src/date-util/date-util-base.type.ts @@ -11,5 +11,12 @@ import { export type DateType = string | number | Date; export type DatePropertyType = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second'; export type LocaleType = 'en' | 'ja' | 'ko'; -export type TimeZoneType = typeof TIMEZONE_SEOUL | typeof TIMEZONE_TOKYO | typeof TIMEZONE_PST | typeof TIMEZONE_UTC; -export type Iso8601FormatType = typeof DATE_FORMAT | typeof DATETIME_FORMAT | typeof DATETIME_FORMAT_WITH_MILLIS; +export type TimeZoneType = + | typeof TIMEZONE_SEOUL + | typeof TIMEZONE_TOKYO + | typeof TIMEZONE_PST + | typeof TIMEZONE_UTC; +export type Iso8601FormatType = + | typeof DATE_FORMAT + | typeof DATETIME_FORMAT + | typeof DATETIME_FORMAT_WITH_MILLIS; diff --git a/src/date-util/date-util.spec.ts b/src/date-util/date-util.spec.ts index 35404275..d02d1d78 100644 --- a/src/date-util/date-util.spec.ts +++ b/src/date-util/date-util.spec.ts @@ -93,8 +93,12 @@ describe('parseByFormat', () => { it('should return valid date', () => { const testData = testTimestampStr.substring(0, 14); expect(parseByFormatDate(testData, 'YYYYMMDDHHmmss')).toEqual(new Date(testDatetimeStr3)); - expect(parseByFormatDate('02202223012345', 'MMYYYYDDHHmmss')).toEqual(new Date(testDatetimeStr3)); - expect(parseByFormatDate('23/02/2022 01:23:45', 'DD/MM/YYYY HH:mm:ss')).toEqual(new Date(testDatetimeStr3)); + expect(parseByFormatDate('02202223012345', 'MMYYYYDDHHmmss')).toEqual( + new Date(testDatetimeStr3) + ); + expect(parseByFormatDate('23/02/2022 01:23:45', 'DD/MM/YYYY HH:mm:ss')).toEqual( + new Date(testDatetimeStr3) + ); }); }); @@ -136,27 +140,59 @@ describe('calcDatetime', () => { expect(() => calcDatetime('', { year: 3 })).toThrow(); }); test('add/subtract year/month/week/day/hour/minute/second', () => { - expect(calcDatetime(testDatetimeStr6, { year: 1 })).toEqual(new Date('2023-02-23 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { month: 1 })).toEqual(new Date('2022-03-23 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { week: 1 })).toEqual(new Date('2022-03-02 01:23:45.678')); + expect(calcDatetime(testDatetimeStr6, { year: 1 })).toEqual( + new Date('2023-02-23 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { month: 1 })).toEqual( + new Date('2022-03-23 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { week: 1 })).toEqual( + new Date('2022-03-02 01:23:45.678') + ); expect(calcDatetime(testDatetimeStr6, { day: 1 })).toEqual(new Date('2022-02-24 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { hour: 1 })).toEqual(new Date('2022-02-23 02:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { minute: 1 })).toEqual(new Date('2022-02-23 01:24:45.678')); - expect(calcDatetime(testDatetimeStr6, { second: 1 })).toEqual(new Date('2022-02-23 01:23:46.678')); + expect(calcDatetime(testDatetimeStr6, { hour: 1 })).toEqual( + new Date('2022-02-23 02:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { minute: 1 })).toEqual( + new Date('2022-02-23 01:24:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { second: 1 })).toEqual( + new Date('2022-02-23 01:23:46.678') + ); - expect(calcDatetime(testDatetimeStr6, { year: -1 })).toEqual(new Date('2021-02-23 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { month: -1 })).toEqual(new Date('2022-01-23 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { week: -1 })).toEqual(new Date('2022-02-16 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { day: -1 })).toEqual(new Date('2022-02-22 01:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { hour: -1 })).toEqual(new Date('2022-02-23 00:23:45.678')); - expect(calcDatetime(testDatetimeStr6, { minute: -1 })).toEqual(new Date('2022-02-23 01:22:45.678')); - expect(calcDatetime(testDatetimeStr6, { second: -1 })).toEqual(new Date('2022-02-23 01:23:44.678')); + expect(calcDatetime(testDatetimeStr6, { year: -1 })).toEqual( + new Date('2021-02-23 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { month: -1 })).toEqual( + new Date('2022-01-23 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { week: -1 })).toEqual( + new Date('2022-02-16 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { day: -1 })).toEqual( + new Date('2022-02-22 01:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { hour: -1 })).toEqual( + new Date('2022-02-23 00:23:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { minute: -1 })).toEqual( + new Date('2022-02-23 01:22:45.678') + ); + expect(calcDatetime(testDatetimeStr6, { second: -1 })).toEqual( + new Date('2022-02-23 01:23:44.678') + ); }); test('should return date for the over-unit-max-value', () => { - expect(calcDatetime(testDatetimeStr6, { hour: 100 })).toEqual(new Date('2022-02-27 05:23:45.678')); // 100시간 => 4일 4시간 - expect(calcDatetime(testDatetimeStr6, { minute: 100 })).toEqual(new Date('2022-02-23 03:03:45.678')); // 100분 => 1시간 40분 - expect(calcDatetime(testDatetimeStr6, { second: 100 })).toEqual(new Date('2022-02-23 01:25:25.678')); // 100초 => 1분 40초 + expect(calcDatetime(testDatetimeStr6, { hour: 100 })).toEqual( + new Date('2022-02-27 05:23:45.678') + ); // 100시간 => 4일 4시간 + expect(calcDatetime(testDatetimeStr6, { minute: 100 })).toEqual( + new Date('2022-02-23 03:03:45.678') + ); // 100분 => 1시간 40분 + expect(calcDatetime(testDatetimeStr6, { second: 100 })).toEqual( + new Date('2022-02-23 01:25:25.678') + ); // 100초 => 1분 40초 expect(calcDatetime(testDatetimeStr6, { hour: 100, minute: 100, second: 100 })).toEqual( new Date('2022-02-27 07:05:25.678') @@ -173,32 +209,44 @@ describe('startOf', () => { it('should return start of the year', () => { expect(startOfDate(testDatetimeStr6, 'year')).toEqual(new Date('2022-01-01 00:00:00.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'year')).toEqual(new Date('2022-01-01 00:00:00.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'year')).toEqual( + new Date('2022-01-01 00:00:00.000') + ); }); it('should return start of the month', () => { expect(startOfDate(testDatetimeStr6, 'month')).toEqual(new Date('2022-02-01 00:00:00.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'month')).toEqual(new Date('2022-02-01 00:00:00.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'month')).toEqual( + new Date('2022-02-01 00:00:00.000') + ); }); it('should return start of the day', () => { expect(startOfDate(testDatetimeStr6, 'day')).toEqual(new Date('2022-02-23 00:00:00.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'day')).toEqual(new Date('2022-02-23 00:00:00.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'day')).toEqual( + new Date('2022-02-23 00:00:00.000') + ); }); it('should return start of the hour', () => { expect(startOfDate(testDatetimeStr6, 'hour')).toEqual(new Date('2022-02-23 01:00:00.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'hour')).toEqual(new Date('2022-02-23 01:00:00.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'hour')).toEqual( + new Date('2022-02-23 01:00:00.000') + ); }); it('should return start of the minute', () => { expect(startOfDate(testDatetimeStr6, 'minute')).toEqual(new Date('2022-02-23 01:23:00.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'minute')).toEqual(new Date('2022-02-23 01:23:00.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'minute')).toEqual( + new Date('2022-02-23 01:23:00.000') + ); }); it('should return start of the second', () => { expect(startOfDate(testDatetimeStr6, 'second')).toEqual(new Date('2022-02-23 01:23:45.000')); - expect(startOfDate(new Date(testDatetimeStr6), 'second')).toEqual(new Date('2022-02-23 01:23:45.000')); + expect(startOfDate(new Date(testDatetimeStr6), 'second')).toEqual( + new Date('2022-02-23 01:23:45.000') + ); }); }); @@ -462,11 +510,17 @@ describe('format', () => { it('should return formatted date string in specific format', () => { const testDatetime = new Date(testDatetimeStr8); expect(formatDate(testDatetime, { format: DATE_FORMAT })).toEqual(testDateStr); - expect(formatDate(testDatetime, { format: DATETIME_FORMAT_WITH_MILLIS })).toEqual(testDatetimeStr8); + expect(formatDate(testDatetime, { format: DATETIME_FORMAT_WITH_MILLIS })).toEqual( + testDatetimeStr8 + ); expect(formatDate(testDatetime, { format: TIMESTAMP_FORMAT })).toEqual(testTimestampStr); - expect(formatDate(testDatetime, { format: 'YYYY-MM-DD HH:mm:ss.SSS' })).toEqual(testDatetimeStr6); + expect(formatDate(testDatetime, { format: 'YYYY-MM-DD HH:mm:ss.SSS' })).toEqual( + testDatetimeStr6 + ); expect(formatDate(testDatetime, { format: 'YYYY년 MM월 DD일' })).toEqual('2022년 02월 23일'); - expect(formatDate(testDatetime, { format: 'YYYY년 M월 D일 H시 m분 s초' })).toEqual('2022년 2월 23일 1시 23분 45초'); + expect(formatDate(testDatetime, { format: 'YYYY년 M월 D일 H시 m분 s초' })).toEqual( + '2022년 2월 23일 1시 23분 45초' + ); expect(formatDate(testDatetime, { format: 'M/D' })).toEqual('2/23'); expect(formatDate(testDatetime, { format: 'MM월 DD일' })).toEqual('02월 23일'); expect(formatDate(testDatetime, { format: 'YY/MM/DD' })).toEqual('22/02/23'); @@ -481,9 +535,15 @@ describe('format', () => { it('should return formatted date string of local time when isUtc is false', () => { const testDatetime = new Date(testDatetimeStr8); expect( - formatDate(testDatetime, { format: 'YYYY-MM-DDTHH:mm:ss.SSSZZ', isUtc: false, timeZone: 'Asia/Seoul' }) + formatDate(testDatetime, { + format: 'YYYY-MM-DDTHH:mm:ss.SSSZZ', + isUtc: false, + timeZone: 'Asia/Seoul', + }) ).toEqual(`2022-02-23T10:23:45.678+0900`); - expect(formatDate(testDatetime, { isUtc: false, timeZone: 'PST8PDT' })).toBe('2022-02-22 17:23:45'); + expect(formatDate(testDatetime, { isUtc: false, timeZone: 'PST8PDT' })).toBe( + '2022-02-22 17:23:45' + ); }); }); @@ -492,14 +552,22 @@ describe('formatInIso8601', () => { const testDatetime = new Date(testDatetimeStr8); expect(formatInIso8601(testDatetime, { format: DATE_FORMAT })).toEqual(testDateStr); expect(formatInIso8601(testDatetime, { format: DATETIME_FORMAT })).toEqual(testDatetimeStr5); - expect(formatInIso8601(testDatetime, { format: DATETIME_FORMAT_WITH_MILLIS })).toEqual(testDatetimeStr8); + expect(formatInIso8601(testDatetime, { format: DATETIME_FORMAT_WITH_MILLIS })).toEqual( + testDatetimeStr8 + ); }); it('should return formatted date string of local time', () => { const testDatetime = new Date(testDatetimeStr8); - expect(formatInIso8601(testDatetime, { format: DATETIME_FORMAT, isUtc: false, timeZone: 'Asia/Seoul' })).toEqual( - `2022-02-23T10:23:45+09:00` + expect( + formatInIso8601(testDatetime, { + format: DATETIME_FORMAT, + isUtc: false, + timeZone: 'Asia/Seoul', + }) + ).toEqual(`2022-02-23T10:23:45+09:00`); + expect(formatInIso8601(testDatetime, { isUtc: false, timeZone: 'PST8PDT' })).toEqual( + '2022-02-22T17:23:45-08:00' ); - expect(formatInIso8601(testDatetime, { isUtc: false, timeZone: 'PST8PDT' })).toEqual('2022-02-22T17:23:45-08:00'); }); }); diff --git a/src/date-util/date-util.ts b/src/date-util/date-util.ts index dba532ea..3d6c3e21 100644 --- a/src/date-util/date-util.ts +++ b/src/date-util/date-util.ts @@ -17,7 +17,12 @@ import { import type { TimeAnnotationSet } from './date-util.interface'; import type { CalcDatetimeOpts, DatetimeFormatOpts, IsoDatetimeFormatOpts } from './date-util.type'; -const timeZoneMap: Record = { 'Asia/Seoul': 540, 'Asia/Tokyo': 540, PST8PDT: -480, UTC: 0 }; +const timeZoneMap: Record = { + 'Asia/Seoul': 540, + 'Asia/Tokyo': 540, + PST8PDT: -480, + UTC: 0, +}; const logger = LoggerFactory.getLogger('pebbles:date-util'); export function isValidDate(d: Date): boolean { @@ -100,7 +105,9 @@ export function parseUnixTime(unixTime: number): Date { const MIN_SECOND = -8640000000000; if (unixTime > MAX_SECOND || unixTime < MIN_SECOND) { - throw new Error(`"${unixTime}" exceeds range of possible date value. MAX=${MAX_SECOND} and MIN=${MIN_SECOND}`); + throw new Error( + `"${unixTime}" exceeds range of possible date value. MAX=${MAX_SECOND} and MIN=${MIN_SECOND}` + ); } return parseDate(unixTime * ONE_SECOND_IN_MILLI); @@ -137,14 +144,19 @@ export function startOfDate(date: DateType, property: DatePropertyType): Date { switch (property) { case 'second': result.setSeconds(parsedDate.getSeconds()); + // falls through case 'minute': result.setMinutes(parsedDate.getMinutes()); + // falls through case 'hour': result.setHours(parsedDate.getHours()); + // falls through case 'day': result.setDate(parsedDate.getDate()); + // falls through case 'month': result.setMonth(parsedDate.getMonth()); + // falls through case 'year': return result; } @@ -186,14 +198,19 @@ export function startOfByTimezone({ switch (property) { case 'year': dateMap.set('month', '01'); + // falls through case 'month': dateMap.set('day', '01'); + // falls through case 'day': dateMap.set('hour', '00'); + // falls through case 'hour': dateMap.set('minute', '00'); + // falls through case 'minute': dateMap.set('second', '00'); + break; } parts.forEach(({ type, value }) => { @@ -207,9 +224,9 @@ export function startOfByTimezone({ dateMap.set('hour', '00'); } - const isoString = `${dateMap.get('year')}-${dateMap.get('month')}-${dateMap.get('day')}T${dateMap.get( - 'hour' - )}:${dateMap.get('minute')}:${dateMap.get('second')}`; + const isoString = `${dateMap.get('year')}-${dateMap.get('month')}-${dateMap.get( + 'day' + )}T${dateMap.get('hour')}:${dateMap.get('minute')}:${dateMap.get('second')}`; const timezoneOffsetString = getTimezoneOffsetString(timezone, false); return new Date(`${isoString}${timezoneOffsetString}`); } @@ -230,7 +247,9 @@ export function endOfByTimezone({ parsedDate.setUTCFullYear(parsedDate.getUTCFullYear() + 1); break; case 'month': - parsedDate.setUTCHours(parsedDate.getUTCHours() + getTimezoneOffsetInHours(parsedDate, timezone)); + parsedDate.setUTCHours( + parsedDate.getUTCHours() + getTimezoneOffsetInHours(parsedDate, timezone) + ); parsedDate.setUTCMonth(parsedDate.getUTCMonth() + 1, 1); break; case 'day': @@ -322,12 +341,14 @@ export function formatDate(d: Date, opts?: Readonly): string const year = Number(new Intl.DateTimeFormat('en', { year: 'numeric', timeZone }).format(d)); const month = new Intl.DateTimeFormat('en', { month: 'numeric', timeZone }).format(d); const date = new Intl.DateTimeFormat('en', { day: 'numeric', timeZone }).format(d); - const hour = Number(new Intl.DateTimeFormat('en', { hour: 'numeric', hourCycle: 'h23', timeZone }).format(d)); + const hour = Number( + new Intl.DateTimeFormat('en', { hour: 'numeric', hourCycle: 'h23', timeZone }).format(d) + ); const minute = new Intl.DateTimeFormat('en', { minute: 'numeric', timeZone }).format(d); const second = new Intl.DateTimeFormat('en', { second: 'numeric', timeZone }).format(d); const millisecond = String(d.getMilliseconds()); - return formatStr.replace(/(Y{2,4}|M?M|D?D|H?H|m?m|s?s|S?S?S|Z?Z|ddd?d)/g, (match) => { + return formatStr.replace(/(Y{2,4}|M?M|D?D|H?H|m?m|s?s|S?S?S|Z?Z|ddd?d)/g, match => { switch (match) { case 'YYYY': case 'YY': @@ -363,9 +384,10 @@ export function formatDate(d: Date, opts?: Readonly): string return isUtc ? 'Z' : getTimezoneOffsetString(timeZone, match.length === 1); case 'ddd': - case 'dddd': + case 'dddd': { const weekday = match.length === 3 ? 'short' : 'long'; return new Intl.DateTimeFormat(locale, { weekday, timeZone }).format(d); + } default: return match; @@ -388,7 +410,11 @@ export function formatInIso8601(date: Date, opts?: Readonly ReplaceMap[match]); + return str.replace(INTL_MIDNIGHT_OR_NOON_KOR_REGEXP, match => ReplaceMap[match]); default: return str; } @@ -556,7 +592,8 @@ export function diffMonth( until: Date, opts: { ignoreAccuracy: boolean } = { ignoreAccuracy: false } ): number { - const diff = (until.getFullYear() - since.getFullYear()) * 12 + until.getMonth() - since.getMonth(); + const diff = + (until.getFullYear() - since.getFullYear()) * 12 + until.getMonth() - since.getMonth(); const tempDate = new Date(since); tempDate.setMonth(tempDate.getMonth() + diff); diff --git a/src/date-util/index.ts b/src/date-util/index.ts index 5f13c571..81b84d24 100644 --- a/src/date-util/index.ts +++ b/src/date-util/index.ts @@ -26,7 +26,13 @@ export { startOfDate, subtractOneDayIfLocalTimeIsMidnight, } from './date-util'; -export type { DatePropertyType, DateType, Iso8601FormatType, LocaleType, TimeZoneType } from './date-util-base.type'; +export type { + DatePropertyType, + DateType, + Iso8601FormatType, + LocaleType, + TimeZoneType, +} from './date-util-base.type'; export { DATE_FORMAT, DATE_FORMAT_DOT_TYPE, diff --git a/src/exception/index.ts b/src/exception/index.ts index 106328ee..b7c17fe1 100644 --- a/src/exception/index.ts +++ b/src/exception/index.ts @@ -11,4 +11,9 @@ export { TooManyRequestsException, } from './client-exception'; export { CustomException } from './custom-exception'; -export { DataException, InternalServerException, ServerException, UnknownException } from './server-exception'; +export { + DataException, + InternalServerException, + ServerException, + UnknownException, +} from './server-exception'; diff --git a/src/exception/server-exception/server-exception.ts b/src/exception/server-exception/server-exception.ts index c7b0c69b..f1cba0ab 100644 --- a/src/exception/server-exception/server-exception.ts +++ b/src/exception/server-exception/server-exception.ts @@ -2,7 +2,11 @@ import { HttpState } from '../../http-client'; import { CustomException } from '../custom-exception'; export class ServerException extends CustomException { - constructor(code = HttpState.INTERNAL_SERVER_ERROR, message = 'INTERNAL_SERVER_ERROR', cause?: Error) { + constructor( + code = HttpState.INTERNAL_SERVER_ERROR, + message = 'INTERNAL_SERVER_ERROR', + cause?: Error + ) { super(code, message, cause); } } diff --git a/src/http-client/http-client.ts b/src/http-client/http-client.ts index 9e3a84da..15fd4718 100644 --- a/src/http-client/http-client.ts +++ b/src/http-client/http-client.ts @@ -21,22 +21,37 @@ export class HttpClient { return axios.get>(fullUrl, config); } - sendPostRequest(url: string, data: unknown, config?: Readonly): Promise> { + sendPostRequest( + url: string, + data: unknown, + config?: Readonly + ): Promise> { const fullUrl = this.getFullUrl(url); return axios.post>(fullUrl, data, config); } - sendPutRequest(url: string, data: unknown, config?: Readonly): Promise> { + sendPutRequest( + url: string, + data: unknown, + config?: Readonly + ): Promise> { const fullUrl = this.getFullUrl(url); return axios.put>(fullUrl, data, config); } - sendPatchRequest(url: string, data: unknown, config?: Readonly): Promise> { + sendPatchRequest( + url: string, + data: unknown, + config?: Readonly + ): Promise> { const fullUrl = this.getFullUrl(url); return axios.patch>(fullUrl, data, config); } - sendDeleteRequest(url: string, config?: Readonly): Promise> { + sendDeleteRequest( + url: string, + config?: Readonly + ): Promise> { const fullUrl = this.getFullUrl(url); return axios.delete>(fullUrl, config); } diff --git a/src/map-util/map-util.spec.ts b/src/map-util/map-util.spec.ts index 3a35b470..9106e09a 100644 --- a/src/map-util/map-util.spec.ts +++ b/src/map-util/map-util.spec.ts @@ -55,7 +55,7 @@ describe('groupBy', () => { ['Mary', [{ id: 4, name: 'Mary' }]], [null, [{ id: 5, name: null }]], ]); - const result = groupBy(array, (item) => item.name); + const result = groupBy(array, item => item.name); expect(result).toEqual(expectedMap); }); }); @@ -78,7 +78,7 @@ it('should skip if callback returns undefined', () => { const expectedMap = new Map([]); - const result = groupBy(array, (item) => { + const result = groupBy(array, item => { return (item as any).invalidKey; }); expect(result).toEqual(expectedMap); diff --git a/src/map-util/map-util.ts b/src/map-util/map-util.ts index 1ce28d3b..5679125c 100644 --- a/src/map-util/map-util.ts +++ b/src/map-util/map-util.ts @@ -1,5 +1,5 @@ export function groupByKey(array: T[], key: K): Map { - return groupBy(array, (item) => item[key]); + return groupBy(array, item => item[key]); } export function groupBy(array: T[], callback: (item: T) => K): Map { diff --git a/src/misc-util/misc-util.ts b/src/misc-util/misc-util.ts index 095f5ff8..ae893a99 100644 --- a/src/misc-util/misc-util.ts +++ b/src/misc-util/misc-util.ts @@ -1,7 +1,7 @@ import { PageDetail, PageInfo, Pagination } from './misc-util.interface'; export async function sleep(delay: number): Promise { - return new Promise((resolve) => setTimeout(resolve, delay)); + return new Promise(resolve => setTimeout(resolve, delay)); } export function getRandomInt(min: number, max: number): number { @@ -44,7 +44,9 @@ export function setNextPagination({ } if (page <= 0 || limit <= 0) { - throw new Error(`page or count number less than or equal to 0 (page: ${page}, count: ${limit})`); + throw new Error( + `page or count number less than or equal to 0 (page: ${page}, count: ${limit})` + ); } if (maxLimit < limit) { diff --git a/src/money-util/money-util.ts b/src/money-util/money-util.ts index 71bd8c21..a9e0f4ad 100644 --- a/src/money-util/money-util.ts +++ b/src/money-util/money-util.ts @@ -1,7 +1,10 @@ import { LOCALES } from './money.const'; import { ConvertLocalCurrencyFormatOpts } from './money.type'; -export function convertLocalCurrencyFormat(num: number, opts?: Readonly): string { +export function convertLocalCurrencyFormat( + num: number, + opts?: Readonly +): string { const { unit = '', currency, locale } = opts ?? {}; if (Number.isFinite(num)) { if (currency) { diff --git a/src/number-util/index.ts b/src/number-util/index.ts index 196c6570..e4a581e6 100644 --- a/src/number-util/index.ts +++ b/src/number-util/index.ts @@ -1 +1,8 @@ -export { decimalRoundDown, decimalRoundUp, fromPermyriad, intValueOf, isNumeric, toPermyriad } from './number-util'; +export { + decimalRoundDown, + decimalRoundUp, + fromPermyriad, + intValueOf, + isNumeric, + toPermyriad, +} from './number-util'; diff --git a/src/number-util/number-util.spec.ts b/src/number-util/number-util.spec.ts index 00fe3e8c..940f02b2 100644 --- a/src/number-util/number-util.spec.ts +++ b/src/number-util/number-util.spec.ts @@ -1,4 +1,11 @@ -import { decimalRoundDown, decimalRoundUp, fromPermyriad, intValueOf, isNumeric, toPermyriad } from './number-util'; +import { + decimalRoundDown, + decimalRoundUp, + fromPermyriad, + intValueOf, + isNumeric, + toPermyriad, +} from './number-util'; describe('intValueOf', () => { it('should throw with incompatible input', () => { diff --git a/src/object-util/object-util.spec.ts b/src/object-util/object-util.spec.ts index bc210ee3..ea0d65e4 100644 --- a/src/object-util/object-util.spec.ts +++ b/src/object-util/object-util.spec.ts @@ -303,7 +303,9 @@ describe('isEqualObject', () => { expect(isEqualObject([], [])).toBe(true); expect(isEqualObject([null], [null])).toBe(true); expect(isEqualObject(new Set([1, 2, 3]), new Set([3, 2, 1]))).toBe(true); - expect(isEqualObject([new Set([1, 2, 3, 'foo', {}])], [new Set([1, 2, 3, 'foo', {}])])).toBe(true); + expect(isEqualObject([new Set([1, 2, 3, 'foo', {}])], [new Set([1, 2, 3, 'foo', {}])])).toBe( + true + ); expect(isEqualObject([new Date(2021, 5, 23)], [new Date(2021, 5, 23)])).toBe(true); expect(isEqualObject(new Set([1, 2, 3, 'foo', {}]), new Set([1, 2, 3, 'foo', {}]))).toBe(true); expect(isEqualObject(new Map(), new Map())).toBe(true); @@ -318,8 +320,15 @@ describe('isEqualObject', () => { expect(isEqualObject([undefined], [null])).toBe(false); expect(isEqualObject([], {})).toBe(false); expect(isEqualObject([new Date(2021, 5, 23)], [new Date(2021, 3, 23)])).toBe(false); - expect(isEqualObject([new Set([1, { a: new Set([1, {}]) }])], [new Set([1, { a: new Set([1, []]) }])])).toBe(false); - expect(isEqualObject(new Map([['foo', { a: 'foo' }]]), new Map([['foo', { a: 'bar' }]]))).toBe(false); + expect( + isEqualObject( + [new Set([1, { a: new Set([1, {}]) }])], + [new Set([1, { a: new Set([1, []]) }])] + ) + ).toBe(false); + expect(isEqualObject(new Map([['foo', { a: 'foo' }]]), new Map([['foo', { a: 'bar' }]]))).toBe( + false + ); function fn(str: string) { return str; } @@ -334,7 +343,9 @@ describe('pick', () => { expect(pick({ foo: 1, bar: '2', baz: 3 }, ['foo', 'bar'])).toEqual({ foo: 1, bar: '2' }); expect(pick({ foo: 1 }, ['bar'])).toEqual({}); expect(pick({ foo: 1 }, [])).toEqual({}); - expect(pick({ foo: 1, bar: '2', baz: { foo: 3, bar: 4, baz: 5 } }, ['foo', 'baz', 'qux'])).toEqual({ + expect( + pick({ foo: 1, bar: '2', baz: { foo: 3, bar: 4, baz: 5 } }, ['foo', 'baz', 'qux']) + ).toEqual({ foo: 1, baz: { foo: 3, bar: 4, baz: 5 }, }); diff --git a/src/object-util/object-util.ts b/src/object-util/object-util.ts index 08abfe5e..0a4c2a8c 100644 --- a/src/object-util/object-util.ts +++ b/src/object-util/object-util.ts @@ -71,7 +71,7 @@ export function deepClone(obj: Type): Type { } const clonedObj = initiator instanceof Function ? new initiator() : (new Object() as Type); - getAllPropertyKeys(obj).forEach((key) => { + getAllPropertyKeys(obj).forEach(key => { let value; if (obj[key] instanceof Object) { value = deepClone(obj[key]); @@ -94,14 +94,14 @@ export function merge(obj: Readonly, ...args: Readonly const argKeysArray: ObjectKeyType[][] = []; const mergedObj = deepClone(obj); - args.forEach((arg) => { + args.forEach(arg => { if (!(arg instanceof Function)) { argKeysArray.push(getAllPropertyKeys(arg)); } }); for (let ix = 0; ix < args.length; ix++) { - argKeysArray[ix].forEach((key) => { + argKeysArray[ix].forEach(key => { if (isObjectTypeExceptFunction(mergedObj[key]) && isObjectTypeExceptFunction(args[ix][key])) { mergedObj[key] = merge(mergedObj[key], args[ix][key]); } else { @@ -116,7 +116,7 @@ export function merge(obj: Readonly, ...args: Readonly export function omit(obj: Readonly, omitKeys: Readonly): ObjectType { function omitObject(obj: ObjectType, omitKeys: Readonly): ObjectType { const objKeys = getAllPropertyKeys(obj); - omitKeys.forEach((omitKey) => { + omitKeys.forEach(omitKey => { const nestedKeys: ObjectKeyType[] = []; if (typeof omitKey === 'string') { @@ -198,9 +198,12 @@ export function getAllPropertyKeys(obj: Readonly): ObjectKeyType[] { return [...Object.getOwnPropertyNames(obj), ...Object.getOwnPropertySymbols(obj)]; } -export function pick(obj: Readonly, keyList: Readonly): Readonly { +export function pick( + obj: Readonly, + keyList: Readonly +): Readonly { const ret: ObjectType = {}; - keyList.forEach((key) => { + keyList.forEach(key => { if (obj[key] !== undefined) { ret[key] = obj[key]; } diff --git a/src/search-util/search-util.spec.ts b/src/search-util/search-util.spec.ts index 5eda3267..037fd346 100644 --- a/src/search-util/search-util.spec.ts +++ b/src/search-util/search-util.spec.ts @@ -52,12 +52,20 @@ describe('binarySearch', () => { ]; it('should find an existing person by id', () => { - const result = binarySearch(people, { id: 3, name: '' }, (target, item) => target.id - item.id); + const result = binarySearch( + people, + { id: 3, name: '' }, + (target, item) => target.id - item.id + ); expect(result).toEqual({ id: 3, name: 'Course3' }); }); it('should return undefined for a non-existing person', () => { - const result = binarySearch(people, { id: 5, name: '' }, (target, item) => target.id - item.id); + const result = binarySearch( + people, + { id: 5, name: '' }, + (target, item) => target.id - item.id + ); expect(result).toBeUndefined(); }); }); diff --git a/src/search-util/search-util.ts b/src/search-util/search-util.ts index a4e26832..6dbf6527 100644 --- a/src/search-util/search-util.ts +++ b/src/search-util/search-util.ts @@ -1,4 +1,8 @@ -export function binarySearch(arr: T[], target: T, compareFn: (target: T, item: T) => number): T | undefined { +export function binarySearch( + arr: T[], + target: T, + compareFn: (target: T, item: T) => number +): T | undefined { let left = 0; let right = arr.length - 1; diff --git a/src/string-util/string-util.spec.ts b/src/string-util/string-util.spec.ts index ff2ec6bd..204b9a26 100644 --- a/src/string-util/string-util.spec.ts +++ b/src/string-util/string-util.spec.ts @@ -134,12 +134,24 @@ describe('maskPrivacy', () => { const testAddress10 = '부산 해운대구 달맞이길117번가길 123-45'; const expectedTestAddress1 = testAddress1.replace(' 12아파트', '*'.repeat(' 12아파트'.length)); - const expectedTestAddress2 = testAddress2.replace(' 12번지 34빌딩', '*'.repeat(' 12번지 34빌딩'.length)); - const expectedTestAddress3 = testAddress3.replace(' 12-3 456호', '*'.repeat(' 12-3 456호'.length)); - const expectedTestAddress4 = testAddress4.replace(' 신곡리 산12-3', '*'.repeat(' 신곡리 산12-3'.length)); + const expectedTestAddress2 = testAddress2.replace( + ' 12번지 34빌딩', + '*'.repeat(' 12번지 34빌딩'.length) + ); + const expectedTestAddress3 = testAddress3.replace( + ' 12-3 456호', + '*'.repeat(' 12-3 456호'.length) + ); + const expectedTestAddress4 = testAddress4.replace( + ' 신곡리 산12-3', + '*'.repeat(' 신곡리 산12-3'.length) + ); const expectedTestAddress5 = testAddress5.replace(' 123 45호', '*'.repeat(' 123 45호'.length)); const expectedTestAddress6 = testAddress6.replace(' 1234', '*'.repeat(' 1234'.length)); - const expectedTestAddress7 = testAddress7.replace(' 123길 45 67빌딩', '*'.repeat(' 123길 45 67빌딩'.length)); + const expectedTestAddress7 = testAddress7.replace( + ' 123길 45 67빌딩', + '*'.repeat(' 123길 45 67빌딩'.length) + ); const expectedTestAddress8 = testAddress8.replace(' 12345', '*'.repeat(' 12345'.length)); const expectedTestAddress9 = testAddress9.replace(' 1234', '*'.repeat(' 1234'.length)); const expectedTestAddress10 = testAddress10.replace(' 123-45', '*'.repeat(' 123-45'.length)); @@ -470,7 +482,13 @@ describe('splitString', () => { describe('joinTags', () => { it('should return string of tags', () => { - const tags = [{ text: 'one ' }, { text: ' two' }, { text: ' three ' }, { text: 'four' }, { text: 'five six' }]; + const tags = [ + { text: 'one ' }, + { text: ' two' }, + { text: ' three ' }, + { text: 'four' }, + { text: 'five six' }, + ]; expect(joinTags(tags)).toEqual('one,two,three,four,five six'); }); it('should return empty string when tags are invalid', () => { diff --git a/src/string-util/string-util.ts b/src/string-util/string-util.ts index 83234290..5cf551c7 100644 --- a/src/string-util/string-util.ts +++ b/src/string-util/string-util.ts @@ -78,7 +78,7 @@ export function maskPrivacy(text: string, type: PrivacyType): string { const charList: string[] = []; let emoji = ''; - splitNamesByEmoji.forEach((splitName) => { + splitNamesByEmoji.forEach(splitName => { if (EMOJI_ZERO_WIDTH_JOINER !== splitName && !EMOJI_REGEXP.test(splitName)) { //👩‍👩‍👧같은 다중 이모지는 ["👩‍👩‍👧"]로 인식하기 위해 배열에 한번에 push if (emoji) { @@ -111,13 +111,15 @@ export function maskPrivacy(text: string, type: PrivacyType): string { const nextDistrictSort = districtsOfAddress[idx + 1]?.slice(-1); const breakCondition = KOREA_ROAD_NAME_ADDRESS_REGEXP.test(districtSort) - ? KOREA_ROAD_NAME_ADDRESS_REGEXP.test(nextDistrictSort) || !KOREA_ADDRESS_SORT_REGEXP.test(nextDistrictSort) + ? KOREA_ROAD_NAME_ADDRESS_REGEXP.test(nextDistrictSort) || + !KOREA_ADDRESS_SORT_REGEXP.test(nextDistrictSort) : !KOREA_ADDRESS_SORT_REGEXP.test(nextDistrictSort); // OO시 OO구 OO로 OO길 123 ==> OO시 OO구 OO로 XXX XXX // OO시 OO동 OO로 123 ==> OO시 OO동 OO로 XXX // OO시 OO로 123 ==> OO시 OO로 XXX - const condition = districtSort && KOREA_ADDRESS_SORT_REGEXP.test(districtSort) && breakCondition; + const condition = + districtSort && KOREA_ADDRESS_SORT_REGEXP.test(districtSort) && breakCondition; if (condition) { returnIndex = districtsOfAddress.slice(0, idx + 1).join(' ').length; @@ -163,15 +165,15 @@ export function normalizePhoneNumber(str: string, fallback?: unknown): string { export function isValidEmail(str: string): boolean { const EMAIL_REGEXP = - /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; + /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return EMAIL_REGEXP.test(str); } export function splitTags(str: string, separator: string | RegExp = ','): Tag[] { return str .split(separator) - .map((text) => ({ text: text.trim() })) - .filter((_) => _.text); + .map(text => ({ text: text.trim() })) + .filter(_ => _.text); } /** @deprecated do .split().map().filter() yourself */ @@ -187,8 +189,8 @@ export function splitString(str: string, separator = ','): string[] { export function joinTags(tags: Readonly, separator = ','): string { return tags - .map((tag) => tag.text?.trim()) - .filter((text) => text) + .map(tag => tag.text?.trim()) + .filter(text => text) .join(separator); } @@ -202,7 +204,11 @@ export function joinStrings(textList: string[], separator = ','): string { }, ''); } -export function compactTextMessage(fullText: string, textToBeTrimmed: string, maxByteLength = 90): string { +export function compactTextMessage( + fullText: string, + textToBeTrimmed: string, + maxByteLength = 90 +): string { if (getStringByteInEUCKR(fullText) <= maxByteLength) { return fullText; } diff --git a/src/time-range/time-range.ts b/src/time-range/time-range.ts index 856442af..39ef2f5f 100644 --- a/src/time-range/time-range.ts +++ b/src/time-range/time-range.ts @@ -57,7 +57,8 @@ export class TimeRange { if (prevSection.end >= v.start) { prevSection.end = v.end > prevSection.end ? v.end : prevSection.end; prevSection.interval = decimalRoundDown( - decimalRoundUp(prevSection.interval, this.decimalPlaces) + decimalRoundUp(v.interval, this.decimalPlaces), + decimalRoundUp(prevSection.interval, this.decimalPlaces) + + decimalRoundUp(v.interval, this.decimalPlaces), this.decimalPlaces ); } else { diff --git a/src/type-util/type-util.spec.ts b/src/type-util/type-util.spec.ts index 9ee1e25d..1b1b257e 100644 --- a/src/type-util/type-util.spec.ts +++ b/src/type-util/type-util.spec.ts @@ -3,9 +3,21 @@ import type { PickWithPartial, RequiredPartialProps } from './type-util.type'; describe('makeLiteralTypeList', () => { it('should return array', () => { - expect(makeLiteralTypeList('foo', 'bar', 'baz', 'qux', 'quux')).toEqual(['foo', 'bar', 'baz', 'qux', 'quux']); + expect(makeLiteralTypeList('foo', 'bar', 'baz', 'qux', 'quux')).toEqual([ + 'foo', + 'bar', + 'baz', + 'qux', + 'quux', + ]); expect(makeLiteralTypeList(1, 3, 2, 4, 5)).toEqual([1, 3, 2, 4, 5]); - expect(makeLiteralTypeList('foo', 1, 'bar', 2, undefined)).toEqual(['foo', 1, 'bar', 2, undefined]); + expect(makeLiteralTypeList('foo', 1, 'bar', 2, undefined)).toEqual([ + 'foo', + 1, + 'bar', + 2, + undefined, + ]); }); }); @@ -17,7 +29,10 @@ describe('PickWithPartial', () => { prop3: boolean; } const implementedObj1: PickWithPartial = { prop1: 1 }; - const implementedObj2: PickWithPartial = { prop1: 2, prop2: 'string' }; + const implementedObj2: PickWithPartial = { + prop1: 2, + prop2: 'string', + }; expect(implementedObj1).toHaveProperty('prop1'); expect(implementedObj2).not.toHaveProperty('prop3'); }); @@ -30,7 +45,10 @@ describe('RequiredPartialProps', () => { prop2?: string; prop3?: boolean; } - const implementedObj1: RequiredPartialProps = { prop1: 1, prop2: 'hello' }; + const implementedObj1: RequiredPartialProps = { + prop1: 1, + prop2: 'hello', + }; const implementedObj2: RequiredPartialProps = { prop1: 2, prop2: 'world', diff --git a/src/unit-util/unit-converters/byte-unit-converter.spec.ts b/src/unit-util/unit-converters/byte-unit-converter.spec.ts index 70bba259..7505598a 100644 --- a/src/unit-util/unit-converters/byte-unit-converter.spec.ts +++ b/src/unit-util/unit-converters/byte-unit-converter.spec.ts @@ -16,11 +16,19 @@ describe('byteUnitConverter', () => { const negativeValue2 = -0.001; expect(() => - byteUnitConverter.convert({ value: negativeValue1, inputUnit: 'bytes', outputUnit: 'megabytes' }) + byteUnitConverter.convert({ + value: negativeValue1, + inputUnit: 'bytes', + outputUnit: 'megabytes', + }) ).toThrow(); expect(() => - byteUnitConverter.convert({ value: negativeValue2, inputUnit: 'bytes', outputUnit: 'megabytes' }) + byteUnitConverter.convert({ + value: negativeValue2, + inputUnit: 'bytes', + outputUnit: 'megabytes', + }) ).toThrow(); }); @@ -64,10 +72,26 @@ describe('byteUnitConverter', () => { it('converts data size from inputUnit to outputUnit', () => { const value = 1000; - const test1 = byteUnitConverter.convert({ value, inputUnit: 'bytes', outputUnit: 'kilobytes' }); - const test2 = byteUnitConverter.convert({ value, inputUnit: 'bytes', outputUnit: 'megabytes' }); - const test3 = byteUnitConverter.convert({ value, inputUnit: 'megabytes', outputUnit: 'bytes' }); - const test4 = byteUnitConverter.convert({ value, inputUnit: 'megabytes', outputUnit: 'kilobytes' }); + const test1 = byteUnitConverter.convert({ + value, + inputUnit: 'bytes', + outputUnit: 'kilobytes', + }); + const test2 = byteUnitConverter.convert({ + value, + inputUnit: 'bytes', + outputUnit: 'megabytes', + }); + const test3 = byteUnitConverter.convert({ + value, + inputUnit: 'megabytes', + outputUnit: 'bytes', + }); + const test4 = byteUnitConverter.convert({ + value, + inputUnit: 'megabytes', + outputUnit: 'kilobytes', + }); expect(getSizeNum(test1)).toBeLessThan(value); expect(getSizeNum(test2)).toBeLessThan(value); diff --git a/src/unit-util/unit-converters/money-unit-converter.spec.ts b/src/unit-util/unit-converters/money-unit-converter.spec.ts index 6ec50031..30e8451f 100644 --- a/src/unit-util/unit-converters/money-unit-converter.spec.ts +++ b/src/unit-util/unit-converters/money-unit-converter.spec.ts @@ -2,85 +2,173 @@ import { moneyUnitConverter } from './money-unit-converter'; describe('moneyUnitConverter', () => { it('exchange Currency for Fractional unit', () => { - expect(moneyUnitConverter.convert({ value: 123.45, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '12345' - ); - expect(moneyUnitConverter.convert({ value: -123.45, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '-12345' - ); - expect(moneyUnitConverter.convert({ value: 0.03, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '3' - ); - expect(moneyUnitConverter.convert({ value: 3.0, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '300' - ); - expect(moneyUnitConverter.convert({ value: 3, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '300' - ); - expect(moneyUnitConverter.convert({ value: 0, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual('0'); - expect(moneyUnitConverter.convert({ value: 0.0, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '0' - ); - expect(moneyUnitConverter.convert({ value: 132.3, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '13230' - ); - expect(moneyUnitConverter.convert({ value: 132.03, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '13203' - ); - expect(moneyUnitConverter.convert({ value: 2.3, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '230' - ); - expect(moneyUnitConverter.convert({ value: 2.312, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '231' - ); - expect(moneyUnitConverter.convert({ value: -2.312, inputUnit: 'currency', outputUnit: 'fractionalUnit' })).toEqual( - '-231' - ); - expect( - moneyUnitConverter.convert({ value: 1.2345e14, inputUnit: 'currency', outputUnit: 'fractionalUnit' }) + expect( + moneyUnitConverter.convert({ + value: 123.45, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('12345'); + expect( + moneyUnitConverter.convert({ + value: -123.45, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('-12345'); + expect( + moneyUnitConverter.convert({ + value: 0.03, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('3'); + expect( + moneyUnitConverter.convert({ + value: 3.0, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('300'); + expect( + moneyUnitConverter.convert({ value: 3, inputUnit: 'currency', outputUnit: 'fractionalUnit' }) + ).toEqual('300'); + expect( + moneyUnitConverter.convert({ value: 0, inputUnit: 'currency', outputUnit: 'fractionalUnit' }) + ).toEqual('0'); + expect( + moneyUnitConverter.convert({ + value: 0.0, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('0'); + expect( + moneyUnitConverter.convert({ + value: 132.3, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('13230'); + expect( + moneyUnitConverter.convert({ + value: 132.03, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('13203'); + expect( + moneyUnitConverter.convert({ + value: 2.3, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('230'); + expect( + moneyUnitConverter.convert({ + value: 2.312, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('231'); + expect( + moneyUnitConverter.convert({ + value: -2.312, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) + ).toEqual('-231'); + expect( + moneyUnitConverter.convert({ + value: 1.2345e14, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) ).toEqual('12345000000000000'); expect( - moneyUnitConverter.convert({ value: 1.2345e-1, inputUnit: 'currency', outputUnit: 'fractionalUnit' }) + moneyUnitConverter.convert({ + value: 1.2345e-1, + inputUnit: 'currency', + outputUnit: 'fractionalUnit', + }) ).toEqual('12'); }); it('exchange Fractional unit For Currency', () => { - expect(moneyUnitConverter.convert({ value: 12345, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '123.45' - ); - expect(moneyUnitConverter.convert({ value: -12345, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '-123.45' - ); - expect(moneyUnitConverter.convert({ value: 3, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '0.03' - ); - expect(moneyUnitConverter.convert({ value: 3.0, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '0.03' - ); - expect(moneyUnitConverter.convert({ value: 0, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '0.00' - ); - expect(moneyUnitConverter.convert({ value: 0.0, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '0.00' - ); - expect(moneyUnitConverter.convert({ value: 132.3, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '1.32' - ); - expect(moneyUnitConverter.convert({ value: -132.3, inputUnit: 'fractionalUnit', outputUnit: 'currency' })).toEqual( - '-1.32' - ); - expect( - moneyUnitConverter.convert({ value: 1.2345e14, inputUnit: 'fractionalUnit', outputUnit: 'currency' }) + expect( + moneyUnitConverter.convert({ + value: 12345, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('123.45'); + expect( + moneyUnitConverter.convert({ + value: -12345, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('-123.45'); + expect( + moneyUnitConverter.convert({ value: 3, inputUnit: 'fractionalUnit', outputUnit: 'currency' }) + ).toEqual('0.03'); + expect( + moneyUnitConverter.convert({ + value: 3.0, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('0.03'); + expect( + moneyUnitConverter.convert({ value: 0, inputUnit: 'fractionalUnit', outputUnit: 'currency' }) + ).toEqual('0.00'); + expect( + moneyUnitConverter.convert({ + value: 0.0, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('0.00'); + expect( + moneyUnitConverter.convert({ + value: 132.3, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('1.32'); + expect( + moneyUnitConverter.convert({ + value: -132.3, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) + ).toEqual('-1.32'); + expect( + moneyUnitConverter.convert({ + value: 1.2345e14, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) ).toEqual('1234500000000.00'); expect( - moneyUnitConverter.convert({ value: 123.45e-1, inputUnit: 'fractionalUnit', outputUnit: 'currency' }) + moneyUnitConverter.convert({ + value: 123.45e-1, + inputUnit: 'fractionalUnit', + outputUnit: 'currency', + }) ).toEqual('0.12'); }); it('no change for same input/output unit', () => { - expect(moneyUnitConverter.convert({ value: 3.0, inputUnit: 'currency', outputUnit: 'currency' })).toEqual('3'); expect( - moneyUnitConverter.convert({ value: 3.0, inputUnit: 'fractionalUnit', outputUnit: 'fractionalUnit' }) + moneyUnitConverter.convert({ value: 3.0, inputUnit: 'currency', outputUnit: 'currency' }) + ).toEqual('3'); + expect( + moneyUnitConverter.convert({ + value: 3.0, + inputUnit: 'fractionalUnit', + outputUnit: 'fractionalUnit', + }) ).toEqual('3'); }); }); diff --git a/tsconfig.json b/tsconfig.json index 655dc9e2..611815ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,20 @@ "outDir": "./lib", "allowJs": true, "checkJs": false, - "skipLibCheck": true + "skipLibCheck": true, + "target": "ES2022", + "module": "CommonJS", + "lib": ["ES2022"], + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "strict": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true }, - "extends": "@day1co/tsconfig/backend.json", + "extends": "@tsconfig/node20/tsconfig.json", "include": ["./src"], "exclude": ["./lib", "./node_modules"] }