├── .eslintrc ├── .gcmconfig.yml ├── .gitattributes ├── .github └── workflows │ └── npm-publish.yml ├── .gitignore ├── .husky ├── pre-commit └── pre-push ├── .npmignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── cli └── index.ts ├── errors └── errorHandler.ts ├── index.ts ├── package-lock.json ├── package.json ├── scripts ├── add.ts ├── del.ts ├── delAll.ts ├── get.ts └── set.ts ├── tsconfig.json └── utils ├── getCollection.ts ├── getJSONDb.ts └── setJSONDb.ts /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", // Specifies the ESLint parser 3 | "extends": [ 4 | "plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin 5 | // 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier 6 | "plugin:prettier/recommended" // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. 7 | ], 8 | "parserOptions": { 9 | "ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features 10 | "sourceType": "module" // Allows for the use of imports 11 | }, 12 | 13 | "rules": { 14 | "semi": 0 , 15 | "trailingComma": "off", 16 | "singleQuote": "off" 17 | } 18 | } -------------------------------------------------------------------------------- /.gcmconfig.yml: -------------------------------------------------------------------------------- 1 | 2 | classes: 3 | feat: "A new feature" 4 | fix: "A bug fix" 5 | docs: "Documentation only changes" 6 | perf: "A code change that improves performance" 7 | test: "Adding missing tests" 8 | chore: "Changes to the build process or auxiliary tools and libraries " 9 | scopes: 10 | - cli 11 | - config 12 | - core 13 | - docs 14 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.ts linguist-language=TypeScript 2 | *.sh linguist-language=TypeScript -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | name: json-base 2 | 3 | on: 4 | push: 5 | branches: 6 | - npm 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v3 12 | - uses: actions/setup-node@v3 13 | with: 14 | node-version: 16 15 | - run: npm install 16 | - run: npm run build 17 | 18 | publish-npm: 19 | needs: build 20 | runs-on: ubuntu-latest 21 | steps: 22 | - uses: actions/checkout@v3 23 | - uses: actions/setup-node@v3 24 | with: 25 | node-version: 16 26 | registry-url: https://registry.npmjs.org/ 27 | - run: npm publish 28 | env: 29 | NODE_AUTH_TOKEN: ${{secrets.npm_token}} 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | 84 | # Gatsby files 85 | .cache/ 86 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 87 | # https://nextjs.org/blog/next-9-1#public-directory-support 88 | # public 89 | 90 | # vuepress build output 91 | .vuepress/dist 92 | 93 | # Serverless directories 94 | .serverless/ 95 | 96 | # FuseBox cache 97 | .fusebox/ 98 | 99 | # DynamoDB Local files 100 | .dynamodb/ 101 | 102 | 103 | yarn.lock 104 | 105 | pack-lock.json 106 | 107 | .idea 108 | 109 | 110 | /dist 111 | 112 | # Testing files 113 | /database.json -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | 5 | npm lint 6 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | 5 | npm run build 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to json-base 2 | I love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: 3 | 4 | - Reporting a bug 5 | - Discussing the current state of the code 6 | - Submitting a fix 7 | - Proposing new features 8 | - Becoming a maintainer 9 | 10 | 11 | I actively welcome your pull requests: 12 | 13 | 1. Fork the repo and create your branch from `main`. 14 | 2. If you've added code that should be tested, add tests. 15 | 3. If you've changed APIs, update the documentation. 16 | 4. Ensure the test suite passes. 17 | 5. Make sure your code lints. 18 | 6. Issue that pull request! 19 | 20 | 21 | #### Report bugs using Github's [issues](https://github.com/ndzhwr/json-base/issues/new) 22 | 23 | I use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/ndzhwr/json-base/issues/new); it's that easy! 24 | 25 | #### Write bug reports with detail, background, and sample code 26 | 27 | - A quick summary and/or background 28 | - Steps to reproduce 29 | - Be specific! 30 | - Give sample code if you can. 31 | - What you expected would happen 32 | - What actually happens 33 | - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 - Present Régis NDIZIHIWE 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # **📦 json-base** 2 | A simple json dbms with an orm, for nodejs 3 |
4 | ![NPM Downloads](https://img.shields.io/npm/dw/@ndzhwr/json-base?style=flat-square) 5 | ___ 6 | 7 | ```bash 8 | npm install @ndzhwr/json-base 9 | ``` 10 |
11 | This package doesn't work well with typescript-projects currently, I'm still working hard to fix this 12 |
13 | 14 |

15 | Use json file as your database on the backend, json-base create the database json file for you and also provides you with a lightweight ORM to perform transactions on your database. 16 | 17 | ## Get Started 18 | 19 | To get started, first make sure you have the latest stable version of nodejs on your computer. Another thing is that `json-base` runs only in a node environemt. 20 | 21 | 22 | **1. Install json-base dependecy with npm** 23 | 24 | You have to install json-base with npm, it's not currently available on other package managers like yarn, etc. 25 | ```bash 26 | $ npm install @ndzhwr/json-base 27 | ``` 28 | 29 | **2. Initialize json-base in your project** 30 | 31 | Initialize json-base in your project. Open the root folder of your project in your terminal and initialize json-base. This will create a `database.json` file in the project. 32 | 33 | ```bash 34 | $ npx json-base --init 35 | ``` 36 | 37 | **3. Create your base schema or just leave it.** 38 | 39 | Normally, the database.json created comes with 2 sample data collections, 'users' ans 'posts', you can add more collections as you please, it's allow. 40 | 41 | **NB** : Respect the syntax of json files while adding new collection and also keep in mind that all collections must be enwrapped in the `db` field. 42 |
43 | 44 | 45 | **4. Perform crud on the schemas as you need it** 46 | 47 | Let's have a simple tutorial on how we can use this `json-base`. We're going to create a simple app to interact with our models where we can get all the users, get a particular user with a unique key or get a group of users but not all. The developer can also get a limited number of users if he or she specifies the limit argument in the get function. We're doing this in [tutorial](#a-simple-tutorial) section 48 | 49 | ## A simple tutorial 50 | 51 | **Table of contents** 52 | 1. Getting data with get() api 53 | 2. Deleting data with del() api 54 | 3. Updating data with set() api 55 | 4. Adding data with add() api 56 | 5. Deleting All data with delAll() api 57 | 58 | #### 0. Setting up json-base in a project 59 | Before starting to perform transactions to the database, let's 60 | learn a little bit on the usage of the CLI 61 | ``` 62 | Usage : npx json-base [command] 63 | Commands : 64 | --init Initialized the database.json in the current directory 65 | --version Prints the current version of json-base 66 | --help Prints the help message 67 | 68 | ``` 69 | 70 | *database.json* 71 | ```json 72 | { 73 | "$schema" : "http://json-schema.org/draft-04/schema#", 74 | "db" : { 75 | "users" : [ 76 | { 77 | "id" : "1" , 78 | "username" : "leerob", 79 | "email" : "lee@rob.io", 80 | "password" : "robinin" 81 | } 82 | ], 83 | "posts" : [ 84 | { 85 | "id" : "1" 86 | "userId" : "1", 87 | "photo" : "https://j.co/6235jjgk", 88 | "caption" : "Look at hom" 89 | } 90 | ] 91 | } 92 | 93 | } 94 | ``` 95 | 96 | You will need to remove the models in the json database as long as the sample ones may not match with your purpose. 97 | 98 | #### 2. I Getting data (Simple where clause) 99 | In this section, we're going to see how we can get data from our json database. 100 | ```ts 101 | import { get } from '@ndzhwr/json-base' 102 | (async function(){ 103 | const aUsersWithId2 = await get({ 104 | collection : "users", 105 | where : { 106 | id : 2 107 | }, 108 | limit : 1, 109 | }) 110 | }()) 111 | ``` 112 | The code above retrieves `1 record` from the `users` collection, where `user.id == 2` 113 | ### 2. II Getting data (Complex where clause) 114 | 115 | You can use the lt, gt, lte, gte, and eq operators in the where clause like this: 116 | 117 | ```typescript 118 | import { get } from 'json-base' 119 | 120 | (async function(){ 121 | const aUsersWithId2 = await get({ 122 | collection : "users", 123 | where : { 124 | id : { lt: 10, gt: 3 } 125 | }, 126 | limit : 1 127 | }) 128 | console.log(aUsersWithId2); 129 | }()); 130 | ``` 131 | In this example, we are querying the "users" collection for records where the "id" field is less than 10 and greater than 3, and limiting the results to 1 record. The lt, gt, lte, gte, and eq operators are used to specify the comparison operators in the query. The get() function will return the matching record(s) if found, or throw an error if not found. 132 | 133 | #### 3. Create data 134 | As said before, we'll be creating a simple crud operation, this means that we already have read checked on our todo checklist as read is the same as getting data. Next we're going to work on creating data. 135 | ```ts 136 | import { add } from '@ndzhwr/json-base' 137 | (async function(){ 138 | await add({ 139 | collection : "posts", 140 | data : { 141 | id : 1 , 142 | userId : 1 , 143 | photo : "https://linkto.img", 144 | caption : "The quick brown fox" 145 | } 146 | }) 147 | }()) 148 | ``` 149 | The code snipped above adds the `data ` object in the `posts` collection 150 | 151 | #### 4. Update and delete data 152 | 153 | Let's combine the update and the delete sections into one section as long as they're kinda simple and easy to understand. 154 | 155 | Updating data will require a unique identifier of the record we're updating. 156 | ```ts 157 | import { set } from '@ndzhwr/json-base' 158 | await set({ 159 | collection : "users", 160 | where : { 161 | username : "leerob" 162 | }, 163 | data : { 164 | email : "leerobin@gmail.com" 165 | } 166 | }) 167 | ``` 168 | 169 | Enough for updating data, the next is to learn how to delete some records from the json database. Here, a unique identifier is required. 170 | 171 | ```ts 172 | import { del } from '@ndzhwr/json-base' 173 | 174 | (async function(){ 175 | await del({ 176 | collection : "posts", 177 | where : { 178 | id : 1 179 | } 180 | }) 181 | }()) 182 | ``` 183 | 184 | 185 | We can't finish without talking about how to delete all data from db in case you want . here are code example 186 | 187 | ```ts 188 | import { delAll } from '@ndzhwr/json-base' 189 | 190 | (async function(){ 191 | await delAll(); 192 | }()) 193 | 194 | ``` 195 | 196 | 197 | 🎉 Congrats! Now we've finished creating our CRUD operations on the models and I hope now you're able to consume the API and make your life easier. 198 | *For more, jsdoc was used , hover on your imported function to see the documentation* 199 | 200 | 201 | ## Contributing 202 | Willing to contribute to this Open Source project ? 203 | You can contribute to this project by **making bug reports** , **requesting features** , **Adding features** and more other ways. Read more [here](CONTRIBUTING.md) before contributing. 204 | 205 | ## Maintainers 206 | This project is maintained by [Régis NDIZIHIWE](https://github.com/ndzhwr). 207 | 208 | 209 | ## Licence 210 | This project is [MIT](LICENSE) licensed. 211 | ___ 212 | 213 |

Jan 2023.

214 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | The latest version of `json-base` is secure 6 | | Version | Supported | 7 | | ------- | ------------------ | 8 | | 1.0.x | :white_check_mark: | 9 | 10 | 11 | ## Reporting a Vulnerability 12 | 13 | For reporting a vurnerability, open an issue on this repo. 14 | I'll try make fixes as soon as possible 15 | -------------------------------------------------------------------------------- /cli/index.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import chalk from "chalk" 3 | import { writeFileSync } from "fs" 4 | import process from "process" 5 | import { CreateFileError } from "../errors/errorHandler.js" 6 | 7 | 8 | const args: string[] = process.argv.splice(2, 4) 9 | 10 | 11 | async function createFile(fileName: string, fileContent: string) { 12 | try { 13 | writeFileSync(fileName, fileContent) 14 | console.log(`Successfully created file ${fileName}`); 15 | } catch (error: any) { 16 | throw new CreateFileError(error.message); 17 | } 18 | } 19 | 20 | let exampleData: string = ` 21 | { 22 | "$schema" : "http://json-schema.org/draft-04/schema#", 23 | "db" : { 24 | "users" : [ 25 | { 26 | "id" : "1" , 27 | "username" : "leerob", 28 | "email" : "lee@rob.io", 29 | "password" : "robinin" 30 | } 31 | ], 32 | "posts" : [ 33 | { 34 | "id" : "1", 35 | "userId" : "1", 36 | "photo" : "https://j.co/6235jjgk", 37 | "caption" : "Look at home" 38 | } 39 | ] 40 | } 41 | 42 | } 43 | ` 44 | 45 | const title = `json-base` 46 | 47 | const usage = ` 48 | \t Usage of json-base cli 49 | \t npx json-base 50 | \t Commands : 51 | \t \t --version : Prints the npm version of json-base 52 | \t \t --init : Initialize database.json in your project 53 | \t \t --help : Show this help message 54 | ` 55 | 56 | switch (args[0]) { 57 | case '--init': 58 | console.log(chalk.bold.white.bgBlue(`\t ${title} \t`)) 59 | console.log("Initializing database.json in your project...") 60 | createFile('database.json', exampleData) 61 | console.log(chalk.greenBright("💥 Created database.json successfully")) 62 | console.log(chalk.yellowBright("Happy coding :)")) 63 | process.exit(1) 64 | case '--help': 65 | case undefined: 66 | case null: 67 | default: 68 | console.log(usage) 69 | console.log(chalk.yellowBright("\t\tHappy coding :)")) 70 | } -------------------------------------------------------------------------------- /errors/errorHandler.ts: -------------------------------------------------------------------------------- 1 | export class MissingParamError extends Error { 2 | constructor(param : string) { 3 | super(`Missing param : ${param}`) 4 | this.name = "MissingParamError" 5 | } 6 | } 7 | 8 | export class CollectionNotFoundError extends Error { 9 | constructor(collection : string) { 10 | super(`Collection ${collection} was not found in database`) 11 | this.name = "CollectionNotFoundError" 12 | } 13 | } 14 | 15 | 16 | export class DatabaseError extends Error { 17 | constructor(err : string) { 18 | super(err) 19 | this.name = "DatabaseError" 20 | } 21 | } 22 | 23 | export class NotFoundError extends Error { 24 | constructor(err : string) { 25 | super(err) 26 | this.name = "NotFoundError" 27 | } 28 | } 29 | 30 | export class DuplicationError extends Error { 31 | constructor(err? : string){ 32 | super(err || "Duplication error occured") 33 | this.name = "DuplicationError" 34 | } 35 | } 36 | 37 | export class CreateFileError extends Error { 38 | constructor(err? : string){ 39 | super(err || "Failed to create database.json") 40 | this.name = "CreateFileError" 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | 2 | import add from './scripts/add.js' 3 | import del from './scripts/del.js' 4 | import delAll from './scripts/delAll.js' 5 | import get from './scripts/get.js' 6 | import set from './scripts/set.js' 7 | 8 | 9 | /** 10 | * # 📦JSON-BASE 11 | * **a lightweight odm for json file inspired by prisma** 12 | * 13 | * 14 | * Use json file as your database on the backend, json-base create the database json file for you and also provides you with a lightweight ORM to perform transactions on your database. 15 | * @repository https://github.com/regisrex/json-base 16 | * @license MIT 17 | * @version 0.1.6 18 | * @example 19 | * ``` 20 | * import { add } from 'json-base' 21 | * (async function(){ 22 | * await add({ 23 | collection : "posts", 24 | data : { 25 | id : 1 , 26 | userId : 1 , 27 | photo : "https://linkto.img", 28 | caption : "The quick brown fox" 29 | } 30 | }) 31 | * }()) 32 | * ``` 33 | * 34 | * @author Regis NDIZIHIWE 35 | */ 36 | export default { 37 | add, 38 | del, 39 | get, 40 | set, 41 | delAll 42 | } 43 | 44 | // export * from './scripts/delAll.js' -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ndzhwr/json-base", 3 | "version": "0.1.6", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@ndzhwr/json-base", 9 | "version": "0.1.5", 10 | "license": "MIT", 11 | "dependencies": { 12 | "chalk": "^5.2.0" 13 | }, 14 | "bin": { 15 | "json-base": "dist/cli/index.js" 16 | }, 17 | "devDependencies": { 18 | "@types/chalk": "^2.2.0", 19 | "@types/node": "^18.11.18", 20 | "@typescript-eslint/eslint-plugin": "^5.48.0", 21 | "@typescript-eslint/parser": "^5.48.0", 22 | "eslint": "^8.31.0", 23 | "eslint-plugin-prettier": "^4.2.1", 24 | "husky": "^8.0.0", 25 | "prettier": "^2.8.2", 26 | "vitest": "^0.27.1" 27 | }, 28 | "engines": { 29 | "node": ">=8.10.0" 30 | } 31 | }, 32 | "node_modules/@esbuild/android-arm": { 33 | "version": "0.16.17", 34 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.17.tgz", 35 | "integrity": "sha512-N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYtw==", 36 | "cpu": [ 37 | "arm" 38 | ], 39 | "dev": true, 40 | "optional": true, 41 | "os": [ 42 | "android" 43 | ], 44 | "engines": { 45 | "node": ">=12" 46 | } 47 | }, 48 | "node_modules/@esbuild/android-arm64": { 49 | "version": "0.16.17", 50 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.17.tgz", 51 | "integrity": "sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==", 52 | "cpu": [ 53 | "arm64" 54 | ], 55 | "dev": true, 56 | "optional": true, 57 | "os": [ 58 | "android" 59 | ], 60 | "engines": { 61 | "node": ">=12" 62 | } 63 | }, 64 | "node_modules/@esbuild/android-x64": { 65 | "version": "0.16.17", 66 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.17.tgz", 67 | "integrity": "sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==", 68 | "cpu": [ 69 | "x64" 70 | ], 71 | "dev": true, 72 | "optional": true, 73 | "os": [ 74 | "android" 75 | ], 76 | "engines": { 77 | "node": ">=12" 78 | } 79 | }, 80 | "node_modules/@esbuild/darwin-arm64": { 81 | "version": "0.16.17", 82 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.17.tgz", 83 | "integrity": "sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==", 84 | "cpu": [ 85 | "arm64" 86 | ], 87 | "dev": true, 88 | "optional": true, 89 | "os": [ 90 | "darwin" 91 | ], 92 | "engines": { 93 | "node": ">=12" 94 | } 95 | }, 96 | "node_modules/@esbuild/darwin-x64": { 97 | "version": "0.16.17", 98 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.17.tgz", 99 | "integrity": "sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==", 100 | "cpu": [ 101 | "x64" 102 | ], 103 | "dev": true, 104 | "optional": true, 105 | "os": [ 106 | "darwin" 107 | ], 108 | "engines": { 109 | "node": ">=12" 110 | } 111 | }, 112 | "node_modules/@esbuild/freebsd-arm64": { 113 | "version": "0.16.17", 114 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.17.tgz", 115 | "integrity": "sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==", 116 | "cpu": [ 117 | "arm64" 118 | ], 119 | "dev": true, 120 | "optional": true, 121 | "os": [ 122 | "freebsd" 123 | ], 124 | "engines": { 125 | "node": ">=12" 126 | } 127 | }, 128 | "node_modules/@esbuild/freebsd-x64": { 129 | "version": "0.16.17", 130 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.17.tgz", 131 | "integrity": "sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==", 132 | "cpu": [ 133 | "x64" 134 | ], 135 | "dev": true, 136 | "optional": true, 137 | "os": [ 138 | "freebsd" 139 | ], 140 | "engines": { 141 | "node": ">=12" 142 | } 143 | }, 144 | "node_modules/@esbuild/linux-arm": { 145 | "version": "0.16.17", 146 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.17.tgz", 147 | "integrity": "sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==", 148 | "cpu": [ 149 | "arm" 150 | ], 151 | "dev": true, 152 | "optional": true, 153 | "os": [ 154 | "linux" 155 | ], 156 | "engines": { 157 | "node": ">=12" 158 | } 159 | }, 160 | "node_modules/@esbuild/linux-arm64": { 161 | "version": "0.16.17", 162 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.17.tgz", 163 | "integrity": "sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==", 164 | "cpu": [ 165 | "arm64" 166 | ], 167 | "dev": true, 168 | "optional": true, 169 | "os": [ 170 | "linux" 171 | ], 172 | "engines": { 173 | "node": ">=12" 174 | } 175 | }, 176 | "node_modules/@esbuild/linux-ia32": { 177 | "version": "0.16.17", 178 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.17.tgz", 179 | "integrity": "sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==", 180 | "cpu": [ 181 | "ia32" 182 | ], 183 | "dev": true, 184 | "optional": true, 185 | "os": [ 186 | "linux" 187 | ], 188 | "engines": { 189 | "node": ">=12" 190 | } 191 | }, 192 | "node_modules/@esbuild/linux-loong64": { 193 | "version": "0.16.17", 194 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.17.tgz", 195 | "integrity": "sha512-dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ==", 196 | "cpu": [ 197 | "loong64" 198 | ], 199 | "dev": true, 200 | "optional": true, 201 | "os": [ 202 | "linux" 203 | ], 204 | "engines": { 205 | "node": ">=12" 206 | } 207 | }, 208 | "node_modules/@esbuild/linux-mips64el": { 209 | "version": "0.16.17", 210 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.17.tgz", 211 | "integrity": "sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==", 212 | "cpu": [ 213 | "mips64el" 214 | ], 215 | "dev": true, 216 | "optional": true, 217 | "os": [ 218 | "linux" 219 | ], 220 | "engines": { 221 | "node": ">=12" 222 | } 223 | }, 224 | "node_modules/@esbuild/linux-ppc64": { 225 | "version": "0.16.17", 226 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.17.tgz", 227 | "integrity": "sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==", 228 | "cpu": [ 229 | "ppc64" 230 | ], 231 | "dev": true, 232 | "optional": true, 233 | "os": [ 234 | "linux" 235 | ], 236 | "engines": { 237 | "node": ">=12" 238 | } 239 | }, 240 | "node_modules/@esbuild/linux-riscv64": { 241 | "version": "0.16.17", 242 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.17.tgz", 243 | "integrity": "sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==", 244 | "cpu": [ 245 | "riscv64" 246 | ], 247 | "dev": true, 248 | "optional": true, 249 | "os": [ 250 | "linux" 251 | ], 252 | "engines": { 253 | "node": ">=12" 254 | } 255 | }, 256 | "node_modules/@esbuild/linux-s390x": { 257 | "version": "0.16.17", 258 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.17.tgz", 259 | "integrity": "sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==", 260 | "cpu": [ 261 | "s390x" 262 | ], 263 | "dev": true, 264 | "optional": true, 265 | "os": [ 266 | "linux" 267 | ], 268 | "engines": { 269 | "node": ">=12" 270 | } 271 | }, 272 | "node_modules/@esbuild/linux-x64": { 273 | "version": "0.16.17", 274 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.17.tgz", 275 | "integrity": "sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==", 276 | "cpu": [ 277 | "x64" 278 | ], 279 | "dev": true, 280 | "optional": true, 281 | "os": [ 282 | "linux" 283 | ], 284 | "engines": { 285 | "node": ">=12" 286 | } 287 | }, 288 | "node_modules/@esbuild/netbsd-x64": { 289 | "version": "0.16.17", 290 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.17.tgz", 291 | "integrity": "sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==", 292 | "cpu": [ 293 | "x64" 294 | ], 295 | "dev": true, 296 | "optional": true, 297 | "os": [ 298 | "netbsd" 299 | ], 300 | "engines": { 301 | "node": ">=12" 302 | } 303 | }, 304 | "node_modules/@esbuild/openbsd-x64": { 305 | "version": "0.16.17", 306 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.17.tgz", 307 | "integrity": "sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==", 308 | "cpu": [ 309 | "x64" 310 | ], 311 | "dev": true, 312 | "optional": true, 313 | "os": [ 314 | "openbsd" 315 | ], 316 | "engines": { 317 | "node": ">=12" 318 | } 319 | }, 320 | "node_modules/@esbuild/sunos-x64": { 321 | "version": "0.16.17", 322 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.17.tgz", 323 | "integrity": "sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==", 324 | "cpu": [ 325 | "x64" 326 | ], 327 | "dev": true, 328 | "optional": true, 329 | "os": [ 330 | "sunos" 331 | ], 332 | "engines": { 333 | "node": ">=12" 334 | } 335 | }, 336 | "node_modules/@esbuild/win32-arm64": { 337 | "version": "0.16.17", 338 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.17.tgz", 339 | "integrity": "sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==", 340 | "cpu": [ 341 | "arm64" 342 | ], 343 | "dev": true, 344 | "optional": true, 345 | "os": [ 346 | "win32" 347 | ], 348 | "engines": { 349 | "node": ">=12" 350 | } 351 | }, 352 | "node_modules/@esbuild/win32-ia32": { 353 | "version": "0.16.17", 354 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.17.tgz", 355 | "integrity": "sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==", 356 | "cpu": [ 357 | "ia32" 358 | ], 359 | "dev": true, 360 | "optional": true, 361 | "os": [ 362 | "win32" 363 | ], 364 | "engines": { 365 | "node": ">=12" 366 | } 367 | }, 368 | "node_modules/@esbuild/win32-x64": { 369 | "version": "0.16.17", 370 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.17.tgz", 371 | "integrity": "sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==", 372 | "cpu": [ 373 | "x64" 374 | ], 375 | "dev": true, 376 | "optional": true, 377 | "os": [ 378 | "win32" 379 | ], 380 | "engines": { 381 | "node": ">=12" 382 | } 383 | }, 384 | "node_modules/@eslint/eslintrc": { 385 | "version": "1.4.1", 386 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", 387 | "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", 388 | "dev": true, 389 | "dependencies": { 390 | "ajv": "^6.12.4", 391 | "debug": "^4.3.2", 392 | "espree": "^9.4.0", 393 | "globals": "^13.19.0", 394 | "ignore": "^5.2.0", 395 | "import-fresh": "^3.2.1", 396 | "js-yaml": "^4.1.0", 397 | "minimatch": "^3.1.2", 398 | "strip-json-comments": "^3.1.1" 399 | }, 400 | "engines": { 401 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 402 | }, 403 | "funding": { 404 | "url": "https://opencollective.com/eslint" 405 | } 406 | }, 407 | "node_modules/@humanwhocodes/config-array": { 408 | "version": "0.11.8", 409 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", 410 | "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", 411 | "dev": true, 412 | "dependencies": { 413 | "@humanwhocodes/object-schema": "^1.2.1", 414 | "debug": "^4.1.1", 415 | "minimatch": "^3.0.5" 416 | }, 417 | "engines": { 418 | "node": ">=10.10.0" 419 | } 420 | }, 421 | "node_modules/@humanwhocodes/module-importer": { 422 | "version": "1.0.1", 423 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 424 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 425 | "dev": true, 426 | "engines": { 427 | "node": ">=12.22" 428 | }, 429 | "funding": { 430 | "type": "github", 431 | "url": "https://github.com/sponsors/nzakas" 432 | } 433 | }, 434 | "node_modules/@humanwhocodes/object-schema": { 435 | "version": "1.2.1", 436 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 437 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 438 | "dev": true 439 | }, 440 | "node_modules/@nodelib/fs.scandir": { 441 | "version": "2.1.5", 442 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 443 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 444 | "dev": true, 445 | "dependencies": { 446 | "@nodelib/fs.stat": "2.0.5", 447 | "run-parallel": "^1.1.9" 448 | }, 449 | "engines": { 450 | "node": ">= 8" 451 | } 452 | }, 453 | "node_modules/@nodelib/fs.stat": { 454 | "version": "2.0.5", 455 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 456 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 457 | "dev": true, 458 | "engines": { 459 | "node": ">= 8" 460 | } 461 | }, 462 | "node_modules/@nodelib/fs.walk": { 463 | "version": "1.2.8", 464 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 465 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 466 | "dev": true, 467 | "dependencies": { 468 | "@nodelib/fs.scandir": "2.1.5", 469 | "fastq": "^1.6.0" 470 | }, 471 | "engines": { 472 | "node": ">= 8" 473 | } 474 | }, 475 | "node_modules/@types/chai": { 476 | "version": "4.3.4", 477 | "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz", 478 | "integrity": "sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==", 479 | "dev": true 480 | }, 481 | "node_modules/@types/chai-subset": { 482 | "version": "1.3.3", 483 | "resolved": "https://registry.npmjs.org/@types/chai-subset/-/chai-subset-1.3.3.tgz", 484 | "integrity": "sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==", 485 | "dev": true, 486 | "dependencies": { 487 | "@types/chai": "*" 488 | } 489 | }, 490 | "node_modules/@types/chalk": { 491 | "version": "2.2.0", 492 | "resolved": "https://registry.npmjs.org/@types/chalk/-/chalk-2.2.0.tgz", 493 | "integrity": "sha512-1zzPV9FDe1I/WHhRkf9SNgqtRJWZqrBWgu7JGveuHmmyR9CnAPCie2N/x+iHrgnpYBIcCJWHBoMRv2TRWktsvw==", 494 | "deprecated": "This is a stub types definition for chalk (https://github.com/chalk/chalk). chalk provides its own type definitions, so you don't need @types/chalk installed!", 495 | "dev": true, 496 | "dependencies": { 497 | "chalk": "*" 498 | } 499 | }, 500 | "node_modules/@types/json-schema": { 501 | "version": "7.0.11", 502 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", 503 | "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", 504 | "dev": true 505 | }, 506 | "node_modules/@types/node": { 507 | "version": "18.11.18", 508 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", 509 | "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", 510 | "dev": true 511 | }, 512 | "node_modules/@types/semver": { 513 | "version": "7.3.13", 514 | "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", 515 | "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", 516 | "dev": true 517 | }, 518 | "node_modules/@typescript-eslint/eslint-plugin": { 519 | "version": "5.48.2", 520 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.2.tgz", 521 | "integrity": "sha512-sR0Gja9Ky1teIq4qJOl0nC+Tk64/uYdX+mi+5iB//MH8gwyx8e3SOyhEzeLZEFEEfCaLf8KJq+Bd/6je1t+CAg==", 522 | "dev": true, 523 | "dependencies": { 524 | "@typescript-eslint/scope-manager": "5.48.2", 525 | "@typescript-eslint/type-utils": "5.48.2", 526 | "@typescript-eslint/utils": "5.48.2", 527 | "debug": "^4.3.4", 528 | "ignore": "^5.2.0", 529 | "natural-compare-lite": "^1.4.0", 530 | "regexpp": "^3.2.0", 531 | "semver": "^7.3.7", 532 | "tsutils": "^3.21.0" 533 | }, 534 | "engines": { 535 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 536 | }, 537 | "funding": { 538 | "type": "opencollective", 539 | "url": "https://opencollective.com/typescript-eslint" 540 | }, 541 | "peerDependencies": { 542 | "@typescript-eslint/parser": "^5.0.0", 543 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 544 | }, 545 | "peerDependenciesMeta": { 546 | "typescript": { 547 | "optional": true 548 | } 549 | } 550 | }, 551 | "node_modules/@typescript-eslint/parser": { 552 | "version": "5.48.2", 553 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.48.2.tgz", 554 | "integrity": "sha512-38zMsKsG2sIuM5Oi/olurGwYJXzmtdsHhn5mI/pQogP+BjYVkK5iRazCQ8RGS0V+YLk282uWElN70zAAUmaYHw==", 555 | "dev": true, 556 | "dependencies": { 557 | "@typescript-eslint/scope-manager": "5.48.2", 558 | "@typescript-eslint/types": "5.48.2", 559 | "@typescript-eslint/typescript-estree": "5.48.2", 560 | "debug": "^4.3.4" 561 | }, 562 | "engines": { 563 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 564 | }, 565 | "funding": { 566 | "type": "opencollective", 567 | "url": "https://opencollective.com/typescript-eslint" 568 | }, 569 | "peerDependencies": { 570 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 571 | }, 572 | "peerDependenciesMeta": { 573 | "typescript": { 574 | "optional": true 575 | } 576 | } 577 | }, 578 | "node_modules/@typescript-eslint/scope-manager": { 579 | "version": "5.48.2", 580 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.2.tgz", 581 | "integrity": "sha512-zEUFfonQid5KRDKoI3O+uP1GnrFd4tIHlvs+sTJXiWuypUWMuDaottkJuR612wQfOkjYbsaskSIURV9xo4f+Fw==", 582 | "dev": true, 583 | "dependencies": { 584 | "@typescript-eslint/types": "5.48.2", 585 | "@typescript-eslint/visitor-keys": "5.48.2" 586 | }, 587 | "engines": { 588 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 589 | }, 590 | "funding": { 591 | "type": "opencollective", 592 | "url": "https://opencollective.com/typescript-eslint" 593 | } 594 | }, 595 | "node_modules/@typescript-eslint/type-utils": { 596 | "version": "5.48.2", 597 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.48.2.tgz", 598 | "integrity": "sha512-QVWx7J5sPMRiOMJp5dYshPxABRoZV1xbRirqSk8yuIIsu0nvMTZesKErEA3Oix1k+uvsk8Cs8TGJ6kQ0ndAcew==", 599 | "dev": true, 600 | "dependencies": { 601 | "@typescript-eslint/typescript-estree": "5.48.2", 602 | "@typescript-eslint/utils": "5.48.2", 603 | "debug": "^4.3.4", 604 | "tsutils": "^3.21.0" 605 | }, 606 | "engines": { 607 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 608 | }, 609 | "funding": { 610 | "type": "opencollective", 611 | "url": "https://opencollective.com/typescript-eslint" 612 | }, 613 | "peerDependencies": { 614 | "eslint": "*" 615 | }, 616 | "peerDependenciesMeta": { 617 | "typescript": { 618 | "optional": true 619 | } 620 | } 621 | }, 622 | "node_modules/@typescript-eslint/types": { 623 | "version": "5.48.2", 624 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.2.tgz", 625 | "integrity": "sha512-hE7dA77xxu7ByBc6KCzikgfRyBCTst6dZQpwaTy25iMYOnbNljDT4hjhrGEJJ0QoMjrfqrx+j1l1B9/LtKeuqA==", 626 | "dev": true, 627 | "engines": { 628 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 629 | }, 630 | "funding": { 631 | "type": "opencollective", 632 | "url": "https://opencollective.com/typescript-eslint" 633 | } 634 | }, 635 | "node_modules/@typescript-eslint/typescript-estree": { 636 | "version": "5.48.2", 637 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.2.tgz", 638 | "integrity": "sha512-bibvD3z6ilnoVxUBFEgkO0k0aFvUc4Cttt0dAreEr+nrAHhWzkO83PEVVuieK3DqcgL6VAK5dkzK8XUVja5Zcg==", 639 | "dev": true, 640 | "dependencies": { 641 | "@typescript-eslint/types": "5.48.2", 642 | "@typescript-eslint/visitor-keys": "5.48.2", 643 | "debug": "^4.3.4", 644 | "globby": "^11.1.0", 645 | "is-glob": "^4.0.3", 646 | "semver": "^7.3.7", 647 | "tsutils": "^3.21.0" 648 | }, 649 | "engines": { 650 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 651 | }, 652 | "funding": { 653 | "type": "opencollective", 654 | "url": "https://opencollective.com/typescript-eslint" 655 | }, 656 | "peerDependenciesMeta": { 657 | "typescript": { 658 | "optional": true 659 | } 660 | } 661 | }, 662 | "node_modules/@typescript-eslint/utils": { 663 | "version": "5.48.2", 664 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.2.tgz", 665 | "integrity": "sha512-2h18c0d7jgkw6tdKTlNaM7wyopbLRBiit8oAxoP89YnuBOzCZ8g8aBCaCqq7h208qUTroL7Whgzam7UY3HVLow==", 666 | "dev": true, 667 | "dependencies": { 668 | "@types/json-schema": "^7.0.9", 669 | "@types/semver": "^7.3.12", 670 | "@typescript-eslint/scope-manager": "5.48.2", 671 | "@typescript-eslint/types": "5.48.2", 672 | "@typescript-eslint/typescript-estree": "5.48.2", 673 | "eslint-scope": "^5.1.1", 674 | "eslint-utils": "^3.0.0", 675 | "semver": "^7.3.7" 676 | }, 677 | "engines": { 678 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 679 | }, 680 | "funding": { 681 | "type": "opencollective", 682 | "url": "https://opencollective.com/typescript-eslint" 683 | }, 684 | "peerDependencies": { 685 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 686 | } 687 | }, 688 | "node_modules/@typescript-eslint/visitor-keys": { 689 | "version": "5.48.2", 690 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.2.tgz", 691 | "integrity": "sha512-z9njZLSkwmjFWUelGEwEbdf4NwKvfHxvGC0OcGN1Hp/XNDIcJ7D5DpPNPv6x6/mFvc1tQHsaWmpD/a4gOvvCJQ==", 692 | "dev": true, 693 | "dependencies": { 694 | "@typescript-eslint/types": "5.48.2", 695 | "eslint-visitor-keys": "^3.3.0" 696 | }, 697 | "engines": { 698 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 699 | }, 700 | "funding": { 701 | "type": "opencollective", 702 | "url": "https://opencollective.com/typescript-eslint" 703 | } 704 | }, 705 | "node_modules/acorn": { 706 | "version": "8.8.1", 707 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", 708 | "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", 709 | "dev": true, 710 | "bin": { 711 | "acorn": "bin/acorn" 712 | }, 713 | "engines": { 714 | "node": ">=0.4.0" 715 | } 716 | }, 717 | "node_modules/acorn-jsx": { 718 | "version": "5.3.2", 719 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 720 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 721 | "dev": true, 722 | "peerDependencies": { 723 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 724 | } 725 | }, 726 | "node_modules/acorn-walk": { 727 | "version": "8.2.0", 728 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", 729 | "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", 730 | "dev": true, 731 | "engines": { 732 | "node": ">=0.4.0" 733 | } 734 | }, 735 | "node_modules/ajv": { 736 | "version": "6.12.6", 737 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 738 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 739 | "dev": true, 740 | "dependencies": { 741 | "fast-deep-equal": "^3.1.1", 742 | "fast-json-stable-stringify": "^2.0.0", 743 | "json-schema-traverse": "^0.4.1", 744 | "uri-js": "^4.2.2" 745 | }, 746 | "funding": { 747 | "type": "github", 748 | "url": "https://github.com/sponsors/epoberezkin" 749 | } 750 | }, 751 | "node_modules/ansi-regex": { 752 | "version": "5.0.1", 753 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 754 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 755 | "dev": true, 756 | "engines": { 757 | "node": ">=8" 758 | } 759 | }, 760 | "node_modules/ansi-styles": { 761 | "version": "4.3.0", 762 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 763 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 764 | "dev": true, 765 | "dependencies": { 766 | "color-convert": "^2.0.1" 767 | }, 768 | "engines": { 769 | "node": ">=8" 770 | }, 771 | "funding": { 772 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 773 | } 774 | }, 775 | "node_modules/argparse": { 776 | "version": "2.0.1", 777 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 778 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 779 | "dev": true 780 | }, 781 | "node_modules/array-union": { 782 | "version": "2.1.0", 783 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 784 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 785 | "dev": true, 786 | "engines": { 787 | "node": ">=8" 788 | } 789 | }, 790 | "node_modules/assertion-error": { 791 | "version": "1.1.0", 792 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 793 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 794 | "dev": true, 795 | "engines": { 796 | "node": "*" 797 | } 798 | }, 799 | "node_modules/balanced-match": { 800 | "version": "1.0.2", 801 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 802 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 803 | "dev": true 804 | }, 805 | "node_modules/brace-expansion": { 806 | "version": "1.1.11", 807 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 808 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 809 | "dev": true, 810 | "dependencies": { 811 | "balanced-match": "^1.0.0", 812 | "concat-map": "0.0.1" 813 | } 814 | }, 815 | "node_modules/braces": { 816 | "version": "3.0.2", 817 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 818 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 819 | "dev": true, 820 | "dependencies": { 821 | "fill-range": "^7.0.1" 822 | }, 823 | "engines": { 824 | "node": ">=8" 825 | } 826 | }, 827 | "node_modules/buffer-from": { 828 | "version": "1.1.2", 829 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 830 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 831 | "dev": true 832 | }, 833 | "node_modules/cac": { 834 | "version": "6.7.14", 835 | "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", 836 | "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", 837 | "dev": true, 838 | "engines": { 839 | "node": ">=8" 840 | } 841 | }, 842 | "node_modules/callsites": { 843 | "version": "3.1.0", 844 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 845 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 846 | "dev": true, 847 | "engines": { 848 | "node": ">=6" 849 | } 850 | }, 851 | "node_modules/chai": { 852 | "version": "4.3.7", 853 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", 854 | "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", 855 | "dev": true, 856 | "dependencies": { 857 | "assertion-error": "^1.1.0", 858 | "check-error": "^1.0.2", 859 | "deep-eql": "^4.1.2", 860 | "get-func-name": "^2.0.0", 861 | "loupe": "^2.3.1", 862 | "pathval": "^1.1.1", 863 | "type-detect": "^4.0.5" 864 | }, 865 | "engines": { 866 | "node": ">=4" 867 | } 868 | }, 869 | "node_modules/chalk": { 870 | "version": "5.2.0", 871 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", 872 | "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", 873 | "engines": { 874 | "node": "^12.17.0 || ^14.13 || >=16.0.0" 875 | }, 876 | "funding": { 877 | "url": "https://github.com/chalk/chalk?sponsor=1" 878 | } 879 | }, 880 | "node_modules/check-error": { 881 | "version": "1.0.2", 882 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 883 | "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", 884 | "dev": true, 885 | "engines": { 886 | "node": "*" 887 | } 888 | }, 889 | "node_modules/color-convert": { 890 | "version": "2.0.1", 891 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 892 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 893 | "dev": true, 894 | "dependencies": { 895 | "color-name": "~1.1.4" 896 | }, 897 | "engines": { 898 | "node": ">=7.0.0" 899 | } 900 | }, 901 | "node_modules/color-name": { 902 | "version": "1.1.4", 903 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 904 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 905 | "dev": true 906 | }, 907 | "node_modules/concat-map": { 908 | "version": "0.0.1", 909 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 910 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 911 | "dev": true 912 | }, 913 | "node_modules/cross-spawn": { 914 | "version": "7.0.3", 915 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 916 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 917 | "dev": true, 918 | "dependencies": { 919 | "path-key": "^3.1.0", 920 | "shebang-command": "^2.0.0", 921 | "which": "^2.0.1" 922 | }, 923 | "engines": { 924 | "node": ">= 8" 925 | } 926 | }, 927 | "node_modules/debug": { 928 | "version": "4.3.4", 929 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 930 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 931 | "dev": true, 932 | "dependencies": { 933 | "ms": "2.1.2" 934 | }, 935 | "engines": { 936 | "node": ">=6.0" 937 | }, 938 | "peerDependenciesMeta": { 939 | "supports-color": { 940 | "optional": true 941 | } 942 | } 943 | }, 944 | "node_modules/deep-eql": { 945 | "version": "4.1.3", 946 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", 947 | "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", 948 | "dev": true, 949 | "dependencies": { 950 | "type-detect": "^4.0.0" 951 | }, 952 | "engines": { 953 | "node": ">=6" 954 | } 955 | }, 956 | "node_modules/deep-is": { 957 | "version": "0.1.4", 958 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 959 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 960 | "dev": true 961 | }, 962 | "node_modules/dir-glob": { 963 | "version": "3.0.1", 964 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 965 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 966 | "dev": true, 967 | "dependencies": { 968 | "path-type": "^4.0.0" 969 | }, 970 | "engines": { 971 | "node": ">=8" 972 | } 973 | }, 974 | "node_modules/doctrine": { 975 | "version": "3.0.0", 976 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 977 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 978 | "dev": true, 979 | "dependencies": { 980 | "esutils": "^2.0.2" 981 | }, 982 | "engines": { 983 | "node": ">=6.0.0" 984 | } 985 | }, 986 | "node_modules/esbuild": { 987 | "version": "0.16.17", 988 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.17.tgz", 989 | "integrity": "sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==", 990 | "dev": true, 991 | "hasInstallScript": true, 992 | "bin": { 993 | "esbuild": "bin/esbuild" 994 | }, 995 | "engines": { 996 | "node": ">=12" 997 | }, 998 | "optionalDependencies": { 999 | "@esbuild/android-arm": "0.16.17", 1000 | "@esbuild/android-arm64": "0.16.17", 1001 | "@esbuild/android-x64": "0.16.17", 1002 | "@esbuild/darwin-arm64": "0.16.17", 1003 | "@esbuild/darwin-x64": "0.16.17", 1004 | "@esbuild/freebsd-arm64": "0.16.17", 1005 | "@esbuild/freebsd-x64": "0.16.17", 1006 | "@esbuild/linux-arm": "0.16.17", 1007 | "@esbuild/linux-arm64": "0.16.17", 1008 | "@esbuild/linux-ia32": "0.16.17", 1009 | "@esbuild/linux-loong64": "0.16.17", 1010 | "@esbuild/linux-mips64el": "0.16.17", 1011 | "@esbuild/linux-ppc64": "0.16.17", 1012 | "@esbuild/linux-riscv64": "0.16.17", 1013 | "@esbuild/linux-s390x": "0.16.17", 1014 | "@esbuild/linux-x64": "0.16.17", 1015 | "@esbuild/netbsd-x64": "0.16.17", 1016 | "@esbuild/openbsd-x64": "0.16.17", 1017 | "@esbuild/sunos-x64": "0.16.17", 1018 | "@esbuild/win32-arm64": "0.16.17", 1019 | "@esbuild/win32-ia32": "0.16.17", 1020 | "@esbuild/win32-x64": "0.16.17" 1021 | } 1022 | }, 1023 | "node_modules/escape-string-regexp": { 1024 | "version": "4.0.0", 1025 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1026 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1027 | "dev": true, 1028 | "engines": { 1029 | "node": ">=10" 1030 | }, 1031 | "funding": { 1032 | "url": "https://github.com/sponsors/sindresorhus" 1033 | } 1034 | }, 1035 | "node_modules/eslint": { 1036 | "version": "8.32.0", 1037 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.32.0.tgz", 1038 | "integrity": "sha512-nETVXpnthqKPFyuY2FNjz/bEd6nbosRgKbkgS/y1C7LJop96gYHWpiguLecMHQ2XCPxn77DS0P+68WzG6vkZSQ==", 1039 | "dev": true, 1040 | "dependencies": { 1041 | "@eslint/eslintrc": "^1.4.1", 1042 | "@humanwhocodes/config-array": "^0.11.8", 1043 | "@humanwhocodes/module-importer": "^1.0.1", 1044 | "@nodelib/fs.walk": "^1.2.8", 1045 | "ajv": "^6.10.0", 1046 | "chalk": "^4.0.0", 1047 | "cross-spawn": "^7.0.2", 1048 | "debug": "^4.3.2", 1049 | "doctrine": "^3.0.0", 1050 | "escape-string-regexp": "^4.0.0", 1051 | "eslint-scope": "^7.1.1", 1052 | "eslint-utils": "^3.0.0", 1053 | "eslint-visitor-keys": "^3.3.0", 1054 | "espree": "^9.4.0", 1055 | "esquery": "^1.4.0", 1056 | "esutils": "^2.0.2", 1057 | "fast-deep-equal": "^3.1.3", 1058 | "file-entry-cache": "^6.0.1", 1059 | "find-up": "^5.0.0", 1060 | "glob-parent": "^6.0.2", 1061 | "globals": "^13.19.0", 1062 | "grapheme-splitter": "^1.0.4", 1063 | "ignore": "^5.2.0", 1064 | "import-fresh": "^3.0.0", 1065 | "imurmurhash": "^0.1.4", 1066 | "is-glob": "^4.0.0", 1067 | "is-path-inside": "^3.0.3", 1068 | "js-sdsl": "^4.1.4", 1069 | "js-yaml": "^4.1.0", 1070 | "json-stable-stringify-without-jsonify": "^1.0.1", 1071 | "levn": "^0.4.1", 1072 | "lodash.merge": "^4.6.2", 1073 | "minimatch": "^3.1.2", 1074 | "natural-compare": "^1.4.0", 1075 | "optionator": "^0.9.1", 1076 | "regexpp": "^3.2.0", 1077 | "strip-ansi": "^6.0.1", 1078 | "strip-json-comments": "^3.1.0", 1079 | "text-table": "^0.2.0" 1080 | }, 1081 | "bin": { 1082 | "eslint": "bin/eslint.js" 1083 | }, 1084 | "engines": { 1085 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1086 | }, 1087 | "funding": { 1088 | "url": "https://opencollective.com/eslint" 1089 | } 1090 | }, 1091 | "node_modules/eslint-plugin-prettier": { 1092 | "version": "4.2.1", 1093 | "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", 1094 | "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", 1095 | "dev": true, 1096 | "dependencies": { 1097 | "prettier-linter-helpers": "^1.0.0" 1098 | }, 1099 | "engines": { 1100 | "node": ">=12.0.0" 1101 | }, 1102 | "peerDependencies": { 1103 | "eslint": ">=7.28.0", 1104 | "prettier": ">=2.0.0" 1105 | }, 1106 | "peerDependenciesMeta": { 1107 | "eslint-config-prettier": { 1108 | "optional": true 1109 | } 1110 | } 1111 | }, 1112 | "node_modules/eslint-scope": { 1113 | "version": "5.1.1", 1114 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1115 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1116 | "dev": true, 1117 | "dependencies": { 1118 | "esrecurse": "^4.3.0", 1119 | "estraverse": "^4.1.1" 1120 | }, 1121 | "engines": { 1122 | "node": ">=8.0.0" 1123 | } 1124 | }, 1125 | "node_modules/eslint-utils": { 1126 | "version": "3.0.0", 1127 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1128 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1129 | "dev": true, 1130 | "dependencies": { 1131 | "eslint-visitor-keys": "^2.0.0" 1132 | }, 1133 | "engines": { 1134 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1135 | }, 1136 | "funding": { 1137 | "url": "https://github.com/sponsors/mysticatea" 1138 | }, 1139 | "peerDependencies": { 1140 | "eslint": ">=5" 1141 | } 1142 | }, 1143 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1144 | "version": "2.1.0", 1145 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1146 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1147 | "dev": true, 1148 | "engines": { 1149 | "node": ">=10" 1150 | } 1151 | }, 1152 | "node_modules/eslint-visitor-keys": { 1153 | "version": "3.3.0", 1154 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", 1155 | "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", 1156 | "dev": true, 1157 | "engines": { 1158 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1159 | } 1160 | }, 1161 | "node_modules/eslint/node_modules/chalk": { 1162 | "version": "4.1.2", 1163 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1164 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1165 | "dev": true, 1166 | "dependencies": { 1167 | "ansi-styles": "^4.1.0", 1168 | "supports-color": "^7.1.0" 1169 | }, 1170 | "engines": { 1171 | "node": ">=10" 1172 | }, 1173 | "funding": { 1174 | "url": "https://github.com/chalk/chalk?sponsor=1" 1175 | } 1176 | }, 1177 | "node_modules/eslint/node_modules/eslint-scope": { 1178 | "version": "7.1.1", 1179 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", 1180 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", 1181 | "dev": true, 1182 | "dependencies": { 1183 | "esrecurse": "^4.3.0", 1184 | "estraverse": "^5.2.0" 1185 | }, 1186 | "engines": { 1187 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1188 | } 1189 | }, 1190 | "node_modules/eslint/node_modules/estraverse": { 1191 | "version": "5.3.0", 1192 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1193 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1194 | "dev": true, 1195 | "engines": { 1196 | "node": ">=4.0" 1197 | } 1198 | }, 1199 | "node_modules/espree": { 1200 | "version": "9.4.1", 1201 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", 1202 | "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", 1203 | "dev": true, 1204 | "dependencies": { 1205 | "acorn": "^8.8.0", 1206 | "acorn-jsx": "^5.3.2", 1207 | "eslint-visitor-keys": "^3.3.0" 1208 | }, 1209 | "engines": { 1210 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1211 | }, 1212 | "funding": { 1213 | "url": "https://opencollective.com/eslint" 1214 | } 1215 | }, 1216 | "node_modules/esquery": { 1217 | "version": "1.4.0", 1218 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", 1219 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", 1220 | "dev": true, 1221 | "dependencies": { 1222 | "estraverse": "^5.1.0" 1223 | }, 1224 | "engines": { 1225 | "node": ">=0.10" 1226 | } 1227 | }, 1228 | "node_modules/esquery/node_modules/estraverse": { 1229 | "version": "5.3.0", 1230 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1231 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1232 | "dev": true, 1233 | "engines": { 1234 | "node": ">=4.0" 1235 | } 1236 | }, 1237 | "node_modules/esrecurse": { 1238 | "version": "4.3.0", 1239 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1240 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1241 | "dev": true, 1242 | "dependencies": { 1243 | "estraverse": "^5.2.0" 1244 | }, 1245 | "engines": { 1246 | "node": ">=4.0" 1247 | } 1248 | }, 1249 | "node_modules/esrecurse/node_modules/estraverse": { 1250 | "version": "5.3.0", 1251 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1252 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1253 | "dev": true, 1254 | "engines": { 1255 | "node": ">=4.0" 1256 | } 1257 | }, 1258 | "node_modules/estraverse": { 1259 | "version": "4.3.0", 1260 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1261 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1262 | "dev": true, 1263 | "engines": { 1264 | "node": ">=4.0" 1265 | } 1266 | }, 1267 | "node_modules/esutils": { 1268 | "version": "2.0.3", 1269 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1270 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1271 | "dev": true, 1272 | "engines": { 1273 | "node": ">=0.10.0" 1274 | } 1275 | }, 1276 | "node_modules/fast-deep-equal": { 1277 | "version": "3.1.3", 1278 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1279 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1280 | "dev": true 1281 | }, 1282 | "node_modules/fast-diff": { 1283 | "version": "1.2.0", 1284 | "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", 1285 | "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", 1286 | "dev": true 1287 | }, 1288 | "node_modules/fast-glob": { 1289 | "version": "3.2.12", 1290 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 1291 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 1292 | "dev": true, 1293 | "dependencies": { 1294 | "@nodelib/fs.stat": "^2.0.2", 1295 | "@nodelib/fs.walk": "^1.2.3", 1296 | "glob-parent": "^5.1.2", 1297 | "merge2": "^1.3.0", 1298 | "micromatch": "^4.0.4" 1299 | }, 1300 | "engines": { 1301 | "node": ">=8.6.0" 1302 | } 1303 | }, 1304 | "node_modules/fast-glob/node_modules/glob-parent": { 1305 | "version": "5.1.2", 1306 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1307 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1308 | "dev": true, 1309 | "dependencies": { 1310 | "is-glob": "^4.0.1" 1311 | }, 1312 | "engines": { 1313 | "node": ">= 6" 1314 | } 1315 | }, 1316 | "node_modules/fast-json-stable-stringify": { 1317 | "version": "2.1.0", 1318 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1319 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1320 | "dev": true 1321 | }, 1322 | "node_modules/fast-levenshtein": { 1323 | "version": "2.0.6", 1324 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1325 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1326 | "dev": true 1327 | }, 1328 | "node_modules/fastq": { 1329 | "version": "1.15.0", 1330 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 1331 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 1332 | "dev": true, 1333 | "dependencies": { 1334 | "reusify": "^1.0.4" 1335 | } 1336 | }, 1337 | "node_modules/file-entry-cache": { 1338 | "version": "6.0.1", 1339 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1340 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1341 | "dev": true, 1342 | "dependencies": { 1343 | "flat-cache": "^3.0.4" 1344 | }, 1345 | "engines": { 1346 | "node": "^10.12.0 || >=12.0.0" 1347 | } 1348 | }, 1349 | "node_modules/fill-range": { 1350 | "version": "7.0.1", 1351 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1352 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1353 | "dev": true, 1354 | "dependencies": { 1355 | "to-regex-range": "^5.0.1" 1356 | }, 1357 | "engines": { 1358 | "node": ">=8" 1359 | } 1360 | }, 1361 | "node_modules/find-up": { 1362 | "version": "5.0.0", 1363 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1364 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1365 | "dev": true, 1366 | "dependencies": { 1367 | "locate-path": "^6.0.0", 1368 | "path-exists": "^4.0.0" 1369 | }, 1370 | "engines": { 1371 | "node": ">=10" 1372 | }, 1373 | "funding": { 1374 | "url": "https://github.com/sponsors/sindresorhus" 1375 | } 1376 | }, 1377 | "node_modules/flat-cache": { 1378 | "version": "3.0.4", 1379 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1380 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1381 | "dev": true, 1382 | "dependencies": { 1383 | "flatted": "^3.1.0", 1384 | "rimraf": "^3.0.2" 1385 | }, 1386 | "engines": { 1387 | "node": "^10.12.0 || >=12.0.0" 1388 | } 1389 | }, 1390 | "node_modules/flatted": { 1391 | "version": "3.2.7", 1392 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1393 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1394 | "dev": true 1395 | }, 1396 | "node_modules/fs.realpath": { 1397 | "version": "1.0.0", 1398 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1399 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1400 | "dev": true 1401 | }, 1402 | "node_modules/fsevents": { 1403 | "version": "2.3.2", 1404 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1405 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1406 | "dev": true, 1407 | "hasInstallScript": true, 1408 | "optional": true, 1409 | "os": [ 1410 | "darwin" 1411 | ], 1412 | "engines": { 1413 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1414 | } 1415 | }, 1416 | "node_modules/function-bind": { 1417 | "version": "1.1.1", 1418 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1419 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 1420 | "dev": true 1421 | }, 1422 | "node_modules/get-func-name": { 1423 | "version": "2.0.0", 1424 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 1425 | "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", 1426 | "dev": true, 1427 | "engines": { 1428 | "node": "*" 1429 | } 1430 | }, 1431 | "node_modules/glob": { 1432 | "version": "7.2.3", 1433 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1434 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1435 | "dev": true, 1436 | "dependencies": { 1437 | "fs.realpath": "^1.0.0", 1438 | "inflight": "^1.0.4", 1439 | "inherits": "2", 1440 | "minimatch": "^3.1.1", 1441 | "once": "^1.3.0", 1442 | "path-is-absolute": "^1.0.0" 1443 | }, 1444 | "engines": { 1445 | "node": "*" 1446 | }, 1447 | "funding": { 1448 | "url": "https://github.com/sponsors/isaacs" 1449 | } 1450 | }, 1451 | "node_modules/glob-parent": { 1452 | "version": "6.0.2", 1453 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1454 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1455 | "dev": true, 1456 | "dependencies": { 1457 | "is-glob": "^4.0.3" 1458 | }, 1459 | "engines": { 1460 | "node": ">=10.13.0" 1461 | } 1462 | }, 1463 | "node_modules/globals": { 1464 | "version": "13.19.0", 1465 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", 1466 | "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", 1467 | "dev": true, 1468 | "dependencies": { 1469 | "type-fest": "^0.20.2" 1470 | }, 1471 | "engines": { 1472 | "node": ">=8" 1473 | }, 1474 | "funding": { 1475 | "url": "https://github.com/sponsors/sindresorhus" 1476 | } 1477 | }, 1478 | "node_modules/globby": { 1479 | "version": "11.1.0", 1480 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1481 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1482 | "dev": true, 1483 | "dependencies": { 1484 | "array-union": "^2.1.0", 1485 | "dir-glob": "^3.0.1", 1486 | "fast-glob": "^3.2.9", 1487 | "ignore": "^5.2.0", 1488 | "merge2": "^1.4.1", 1489 | "slash": "^3.0.0" 1490 | }, 1491 | "engines": { 1492 | "node": ">=10" 1493 | }, 1494 | "funding": { 1495 | "url": "https://github.com/sponsors/sindresorhus" 1496 | } 1497 | }, 1498 | "node_modules/grapheme-splitter": { 1499 | "version": "1.0.4", 1500 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", 1501 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", 1502 | "dev": true 1503 | }, 1504 | "node_modules/has": { 1505 | "version": "1.0.3", 1506 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1507 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1508 | "dev": true, 1509 | "dependencies": { 1510 | "function-bind": "^1.1.1" 1511 | }, 1512 | "engines": { 1513 | "node": ">= 0.4.0" 1514 | } 1515 | }, 1516 | "node_modules/has-flag": { 1517 | "version": "4.0.0", 1518 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1519 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1520 | "dev": true, 1521 | "engines": { 1522 | "node": ">=8" 1523 | } 1524 | }, 1525 | "node_modules/husky": { 1526 | "version": "8.0.3", 1527 | "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", 1528 | "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", 1529 | "dev": true, 1530 | "bin": { 1531 | "husky": "lib/bin.js" 1532 | }, 1533 | "engines": { 1534 | "node": ">=14" 1535 | }, 1536 | "funding": { 1537 | "url": "https://github.com/sponsors/typicode" 1538 | } 1539 | }, 1540 | "node_modules/ignore": { 1541 | "version": "5.2.4", 1542 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 1543 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 1544 | "dev": true, 1545 | "engines": { 1546 | "node": ">= 4" 1547 | } 1548 | }, 1549 | "node_modules/import-fresh": { 1550 | "version": "3.3.0", 1551 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1552 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1553 | "dev": true, 1554 | "dependencies": { 1555 | "parent-module": "^1.0.0", 1556 | "resolve-from": "^4.0.0" 1557 | }, 1558 | "engines": { 1559 | "node": ">=6" 1560 | }, 1561 | "funding": { 1562 | "url": "https://github.com/sponsors/sindresorhus" 1563 | } 1564 | }, 1565 | "node_modules/imurmurhash": { 1566 | "version": "0.1.4", 1567 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1568 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1569 | "dev": true, 1570 | "engines": { 1571 | "node": ">=0.8.19" 1572 | } 1573 | }, 1574 | "node_modules/inflight": { 1575 | "version": "1.0.6", 1576 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1577 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1578 | "dev": true, 1579 | "dependencies": { 1580 | "once": "^1.3.0", 1581 | "wrappy": "1" 1582 | } 1583 | }, 1584 | "node_modules/inherits": { 1585 | "version": "2.0.4", 1586 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1587 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1588 | "dev": true 1589 | }, 1590 | "node_modules/is-core-module": { 1591 | "version": "2.11.0", 1592 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", 1593 | "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", 1594 | "dev": true, 1595 | "dependencies": { 1596 | "has": "^1.0.3" 1597 | }, 1598 | "funding": { 1599 | "url": "https://github.com/sponsors/ljharb" 1600 | } 1601 | }, 1602 | "node_modules/is-extglob": { 1603 | "version": "2.1.1", 1604 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1605 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1606 | "dev": true, 1607 | "engines": { 1608 | "node": ">=0.10.0" 1609 | } 1610 | }, 1611 | "node_modules/is-glob": { 1612 | "version": "4.0.3", 1613 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1614 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1615 | "dev": true, 1616 | "dependencies": { 1617 | "is-extglob": "^2.1.1" 1618 | }, 1619 | "engines": { 1620 | "node": ">=0.10.0" 1621 | } 1622 | }, 1623 | "node_modules/is-number": { 1624 | "version": "7.0.0", 1625 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1626 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1627 | "dev": true, 1628 | "engines": { 1629 | "node": ">=0.12.0" 1630 | } 1631 | }, 1632 | "node_modules/is-path-inside": { 1633 | "version": "3.0.3", 1634 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1635 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1636 | "dev": true, 1637 | "engines": { 1638 | "node": ">=8" 1639 | } 1640 | }, 1641 | "node_modules/isexe": { 1642 | "version": "2.0.0", 1643 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1644 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1645 | "dev": true 1646 | }, 1647 | "node_modules/js-sdsl": { 1648 | "version": "4.3.0", 1649 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", 1650 | "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", 1651 | "dev": true, 1652 | "funding": { 1653 | "type": "opencollective", 1654 | "url": "https://opencollective.com/js-sdsl" 1655 | } 1656 | }, 1657 | "node_modules/js-yaml": { 1658 | "version": "4.1.0", 1659 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1660 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1661 | "dev": true, 1662 | "dependencies": { 1663 | "argparse": "^2.0.1" 1664 | }, 1665 | "bin": { 1666 | "js-yaml": "bin/js-yaml.js" 1667 | } 1668 | }, 1669 | "node_modules/json-schema-traverse": { 1670 | "version": "0.4.1", 1671 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1672 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1673 | "dev": true 1674 | }, 1675 | "node_modules/json-stable-stringify-without-jsonify": { 1676 | "version": "1.0.1", 1677 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1678 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1679 | "dev": true 1680 | }, 1681 | "node_modules/jsonc-parser": { 1682 | "version": "3.2.0", 1683 | "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", 1684 | "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", 1685 | "dev": true 1686 | }, 1687 | "node_modules/levn": { 1688 | "version": "0.4.1", 1689 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1690 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1691 | "dev": true, 1692 | "dependencies": { 1693 | "prelude-ls": "^1.2.1", 1694 | "type-check": "~0.4.0" 1695 | }, 1696 | "engines": { 1697 | "node": ">= 0.8.0" 1698 | } 1699 | }, 1700 | "node_modules/local-pkg": { 1701 | "version": "0.4.3", 1702 | "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz", 1703 | "integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==", 1704 | "dev": true, 1705 | "engines": { 1706 | "node": ">=14" 1707 | }, 1708 | "funding": { 1709 | "url": "https://github.com/sponsors/antfu" 1710 | } 1711 | }, 1712 | "node_modules/locate-path": { 1713 | "version": "6.0.0", 1714 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1715 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1716 | "dev": true, 1717 | "dependencies": { 1718 | "p-locate": "^5.0.0" 1719 | }, 1720 | "engines": { 1721 | "node": ">=10" 1722 | }, 1723 | "funding": { 1724 | "url": "https://github.com/sponsors/sindresorhus" 1725 | } 1726 | }, 1727 | "node_modules/lodash.merge": { 1728 | "version": "4.6.2", 1729 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1730 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1731 | "dev": true 1732 | }, 1733 | "node_modules/loupe": { 1734 | "version": "2.3.6", 1735 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", 1736 | "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", 1737 | "dev": true, 1738 | "dependencies": { 1739 | "get-func-name": "^2.0.0" 1740 | } 1741 | }, 1742 | "node_modules/lru-cache": { 1743 | "version": "6.0.0", 1744 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1745 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1746 | "dev": true, 1747 | "dependencies": { 1748 | "yallist": "^4.0.0" 1749 | }, 1750 | "engines": { 1751 | "node": ">=10" 1752 | } 1753 | }, 1754 | "node_modules/merge2": { 1755 | "version": "1.4.1", 1756 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1757 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1758 | "dev": true, 1759 | "engines": { 1760 | "node": ">= 8" 1761 | } 1762 | }, 1763 | "node_modules/micromatch": { 1764 | "version": "4.0.5", 1765 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1766 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1767 | "dev": true, 1768 | "dependencies": { 1769 | "braces": "^3.0.2", 1770 | "picomatch": "^2.3.1" 1771 | }, 1772 | "engines": { 1773 | "node": ">=8.6" 1774 | } 1775 | }, 1776 | "node_modules/minimatch": { 1777 | "version": "3.1.2", 1778 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1779 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1780 | "dev": true, 1781 | "dependencies": { 1782 | "brace-expansion": "^1.1.7" 1783 | }, 1784 | "engines": { 1785 | "node": "*" 1786 | } 1787 | }, 1788 | "node_modules/mlly": { 1789 | "version": "1.1.0", 1790 | "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.1.0.tgz", 1791 | "integrity": "sha512-cwzBrBfwGC1gYJyfcy8TcZU1f+dbH/T+TuOhtYP2wLv/Fb51/uV7HJQfBPtEupZ2ORLRU1EKFS/QfS3eo9+kBQ==", 1792 | "dev": true, 1793 | "dependencies": { 1794 | "acorn": "^8.8.1", 1795 | "pathe": "^1.0.0", 1796 | "pkg-types": "^1.0.1", 1797 | "ufo": "^1.0.1" 1798 | } 1799 | }, 1800 | "node_modules/mlly/node_modules/pathe": { 1801 | "version": "1.0.0", 1802 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.0.0.tgz", 1803 | "integrity": "sha512-nPdMG0Pd09HuSsr7QOKUXO2Jr9eqaDiZvDwdyIhNG5SHYujkQHYKDfGQkulBxvbDHz8oHLsTgKN86LSwYzSHAg==", 1804 | "dev": true 1805 | }, 1806 | "node_modules/ms": { 1807 | "version": "2.1.2", 1808 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1809 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1810 | "dev": true 1811 | }, 1812 | "node_modules/nanoid": { 1813 | "version": "3.3.4", 1814 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", 1815 | "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", 1816 | "dev": true, 1817 | "bin": { 1818 | "nanoid": "bin/nanoid.cjs" 1819 | }, 1820 | "engines": { 1821 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1822 | } 1823 | }, 1824 | "node_modules/natural-compare": { 1825 | "version": "1.4.0", 1826 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1827 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1828 | "dev": true 1829 | }, 1830 | "node_modules/natural-compare-lite": { 1831 | "version": "1.4.0", 1832 | "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", 1833 | "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", 1834 | "dev": true 1835 | }, 1836 | "node_modules/once": { 1837 | "version": "1.4.0", 1838 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1839 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1840 | "dev": true, 1841 | "dependencies": { 1842 | "wrappy": "1" 1843 | } 1844 | }, 1845 | "node_modules/optionator": { 1846 | "version": "0.9.1", 1847 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1848 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1849 | "dev": true, 1850 | "dependencies": { 1851 | "deep-is": "^0.1.3", 1852 | "fast-levenshtein": "^2.0.6", 1853 | "levn": "^0.4.1", 1854 | "prelude-ls": "^1.2.1", 1855 | "type-check": "^0.4.0", 1856 | "word-wrap": "^1.2.3" 1857 | }, 1858 | "engines": { 1859 | "node": ">= 0.8.0" 1860 | } 1861 | }, 1862 | "node_modules/p-limit": { 1863 | "version": "3.1.0", 1864 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1865 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1866 | "dev": true, 1867 | "dependencies": { 1868 | "yocto-queue": "^0.1.0" 1869 | }, 1870 | "engines": { 1871 | "node": ">=10" 1872 | }, 1873 | "funding": { 1874 | "url": "https://github.com/sponsors/sindresorhus" 1875 | } 1876 | }, 1877 | "node_modules/p-locate": { 1878 | "version": "5.0.0", 1879 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1880 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1881 | "dev": true, 1882 | "dependencies": { 1883 | "p-limit": "^3.0.2" 1884 | }, 1885 | "engines": { 1886 | "node": ">=10" 1887 | }, 1888 | "funding": { 1889 | "url": "https://github.com/sponsors/sindresorhus" 1890 | } 1891 | }, 1892 | "node_modules/parent-module": { 1893 | "version": "1.0.1", 1894 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1895 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1896 | "dev": true, 1897 | "dependencies": { 1898 | "callsites": "^3.0.0" 1899 | }, 1900 | "engines": { 1901 | "node": ">=6" 1902 | } 1903 | }, 1904 | "node_modules/path-exists": { 1905 | "version": "4.0.0", 1906 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1907 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1908 | "dev": true, 1909 | "engines": { 1910 | "node": ">=8" 1911 | } 1912 | }, 1913 | "node_modules/path-is-absolute": { 1914 | "version": "1.0.1", 1915 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1916 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1917 | "dev": true, 1918 | "engines": { 1919 | "node": ">=0.10.0" 1920 | } 1921 | }, 1922 | "node_modules/path-key": { 1923 | "version": "3.1.1", 1924 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1925 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1926 | "dev": true, 1927 | "engines": { 1928 | "node": ">=8" 1929 | } 1930 | }, 1931 | "node_modules/path-parse": { 1932 | "version": "1.0.7", 1933 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1934 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1935 | "dev": true 1936 | }, 1937 | "node_modules/path-type": { 1938 | "version": "4.0.0", 1939 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1940 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1941 | "dev": true, 1942 | "engines": { 1943 | "node": ">=8" 1944 | } 1945 | }, 1946 | "node_modules/pathe": { 1947 | "version": "0.2.0", 1948 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-0.2.0.tgz", 1949 | "integrity": "sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw==", 1950 | "dev": true 1951 | }, 1952 | "node_modules/pathval": { 1953 | "version": "1.1.1", 1954 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", 1955 | "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", 1956 | "dev": true, 1957 | "engines": { 1958 | "node": "*" 1959 | } 1960 | }, 1961 | "node_modules/picocolors": { 1962 | "version": "1.0.0", 1963 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1964 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 1965 | "dev": true 1966 | }, 1967 | "node_modules/picomatch": { 1968 | "version": "2.3.1", 1969 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1970 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1971 | "dev": true, 1972 | "engines": { 1973 | "node": ">=8.6" 1974 | }, 1975 | "funding": { 1976 | "url": "https://github.com/sponsors/jonschlinkert" 1977 | } 1978 | }, 1979 | "node_modules/pkg-types": { 1980 | "version": "1.0.1", 1981 | "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.1.tgz", 1982 | "integrity": "sha512-jHv9HB+Ho7dj6ItwppRDDl0iZRYBD0jsakHXtFgoLr+cHSF6xC+QL54sJmWxyGxOLYSHm0afhXhXcQDQqH9z8g==", 1983 | "dev": true, 1984 | "dependencies": { 1985 | "jsonc-parser": "^3.2.0", 1986 | "mlly": "^1.0.0", 1987 | "pathe": "^1.0.0" 1988 | } 1989 | }, 1990 | "node_modules/pkg-types/node_modules/pathe": { 1991 | "version": "1.0.0", 1992 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.0.0.tgz", 1993 | "integrity": "sha512-nPdMG0Pd09HuSsr7QOKUXO2Jr9eqaDiZvDwdyIhNG5SHYujkQHYKDfGQkulBxvbDHz8oHLsTgKN86LSwYzSHAg==", 1994 | "dev": true 1995 | }, 1996 | "node_modules/postcss": { 1997 | "version": "8.4.21", 1998 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", 1999 | "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", 2000 | "dev": true, 2001 | "funding": [ 2002 | { 2003 | "type": "opencollective", 2004 | "url": "https://opencollective.com/postcss/" 2005 | }, 2006 | { 2007 | "type": "tidelift", 2008 | "url": "https://tidelift.com/funding/github/npm/postcss" 2009 | } 2010 | ], 2011 | "dependencies": { 2012 | "nanoid": "^3.3.4", 2013 | "picocolors": "^1.0.0", 2014 | "source-map-js": "^1.0.2" 2015 | }, 2016 | "engines": { 2017 | "node": "^10 || ^12 || >=14" 2018 | } 2019 | }, 2020 | "node_modules/prelude-ls": { 2021 | "version": "1.2.1", 2022 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2023 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2024 | "dev": true, 2025 | "engines": { 2026 | "node": ">= 0.8.0" 2027 | } 2028 | }, 2029 | "node_modules/prettier": { 2030 | "version": "2.8.3", 2031 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", 2032 | "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", 2033 | "dev": true, 2034 | "bin": { 2035 | "prettier": "bin-prettier.js" 2036 | }, 2037 | "engines": { 2038 | "node": ">=10.13.0" 2039 | }, 2040 | "funding": { 2041 | "url": "https://github.com/prettier/prettier?sponsor=1" 2042 | } 2043 | }, 2044 | "node_modules/prettier-linter-helpers": { 2045 | "version": "1.0.0", 2046 | "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", 2047 | "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", 2048 | "dev": true, 2049 | "dependencies": { 2050 | "fast-diff": "^1.1.2" 2051 | }, 2052 | "engines": { 2053 | "node": ">=6.0.0" 2054 | } 2055 | }, 2056 | "node_modules/punycode": { 2057 | "version": "2.3.0", 2058 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 2059 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 2060 | "dev": true, 2061 | "engines": { 2062 | "node": ">=6" 2063 | } 2064 | }, 2065 | "node_modules/queue-microtask": { 2066 | "version": "1.2.3", 2067 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 2068 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 2069 | "dev": true, 2070 | "funding": [ 2071 | { 2072 | "type": "github", 2073 | "url": "https://github.com/sponsors/feross" 2074 | }, 2075 | { 2076 | "type": "patreon", 2077 | "url": "https://www.patreon.com/feross" 2078 | }, 2079 | { 2080 | "type": "consulting", 2081 | "url": "https://feross.org/support" 2082 | } 2083 | ] 2084 | }, 2085 | "node_modules/regexpp": { 2086 | "version": "3.2.0", 2087 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 2088 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 2089 | "dev": true, 2090 | "engines": { 2091 | "node": ">=8" 2092 | }, 2093 | "funding": { 2094 | "url": "https://github.com/sponsors/mysticatea" 2095 | } 2096 | }, 2097 | "node_modules/resolve": { 2098 | "version": "1.22.1", 2099 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", 2100 | "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", 2101 | "dev": true, 2102 | "dependencies": { 2103 | "is-core-module": "^2.9.0", 2104 | "path-parse": "^1.0.7", 2105 | "supports-preserve-symlinks-flag": "^1.0.0" 2106 | }, 2107 | "bin": { 2108 | "resolve": "bin/resolve" 2109 | }, 2110 | "funding": { 2111 | "url": "https://github.com/sponsors/ljharb" 2112 | } 2113 | }, 2114 | "node_modules/resolve-from": { 2115 | "version": "4.0.0", 2116 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2117 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2118 | "dev": true, 2119 | "engines": { 2120 | "node": ">=4" 2121 | } 2122 | }, 2123 | "node_modules/reusify": { 2124 | "version": "1.0.4", 2125 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 2126 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 2127 | "dev": true, 2128 | "engines": { 2129 | "iojs": ">=1.0.0", 2130 | "node": ">=0.10.0" 2131 | } 2132 | }, 2133 | "node_modules/rimraf": { 2134 | "version": "3.0.2", 2135 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2136 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2137 | "dev": true, 2138 | "dependencies": { 2139 | "glob": "^7.1.3" 2140 | }, 2141 | "bin": { 2142 | "rimraf": "bin.js" 2143 | }, 2144 | "funding": { 2145 | "url": "https://github.com/sponsors/isaacs" 2146 | } 2147 | }, 2148 | "node_modules/rollup": { 2149 | "version": "3.10.0", 2150 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.10.0.tgz", 2151 | "integrity": "sha512-JmRYz44NjC1MjVF2VKxc0M1a97vn+cDxeqWmnwyAF4FvpjK8YFdHpaqvQB+3IxCvX05vJxKZkoMDU8TShhmJVA==", 2152 | "dev": true, 2153 | "bin": { 2154 | "rollup": "dist/bin/rollup" 2155 | }, 2156 | "engines": { 2157 | "node": ">=14.18.0", 2158 | "npm": ">=8.0.0" 2159 | }, 2160 | "optionalDependencies": { 2161 | "fsevents": "~2.3.2" 2162 | } 2163 | }, 2164 | "node_modules/run-parallel": { 2165 | "version": "1.2.0", 2166 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 2167 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 2168 | "dev": true, 2169 | "funding": [ 2170 | { 2171 | "type": "github", 2172 | "url": "https://github.com/sponsors/feross" 2173 | }, 2174 | { 2175 | "type": "patreon", 2176 | "url": "https://www.patreon.com/feross" 2177 | }, 2178 | { 2179 | "type": "consulting", 2180 | "url": "https://feross.org/support" 2181 | } 2182 | ], 2183 | "dependencies": { 2184 | "queue-microtask": "^1.2.2" 2185 | } 2186 | }, 2187 | "node_modules/semver": { 2188 | "version": "7.3.8", 2189 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 2190 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 2191 | "dev": true, 2192 | "dependencies": { 2193 | "lru-cache": "^6.0.0" 2194 | }, 2195 | "bin": { 2196 | "semver": "bin/semver.js" 2197 | }, 2198 | "engines": { 2199 | "node": ">=10" 2200 | } 2201 | }, 2202 | "node_modules/shebang-command": { 2203 | "version": "2.0.0", 2204 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2205 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2206 | "dev": true, 2207 | "dependencies": { 2208 | "shebang-regex": "^3.0.0" 2209 | }, 2210 | "engines": { 2211 | "node": ">=8" 2212 | } 2213 | }, 2214 | "node_modules/shebang-regex": { 2215 | "version": "3.0.0", 2216 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2217 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2218 | "dev": true, 2219 | "engines": { 2220 | "node": ">=8" 2221 | } 2222 | }, 2223 | "node_modules/siginfo": { 2224 | "version": "2.0.0", 2225 | "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", 2226 | "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", 2227 | "dev": true 2228 | }, 2229 | "node_modules/slash": { 2230 | "version": "3.0.0", 2231 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2232 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2233 | "dev": true, 2234 | "engines": { 2235 | "node": ">=8" 2236 | } 2237 | }, 2238 | "node_modules/source-map": { 2239 | "version": "0.6.1", 2240 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 2241 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 2242 | "dev": true, 2243 | "engines": { 2244 | "node": ">=0.10.0" 2245 | } 2246 | }, 2247 | "node_modules/source-map-js": { 2248 | "version": "1.0.2", 2249 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 2250 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 2251 | "dev": true, 2252 | "engines": { 2253 | "node": ">=0.10.0" 2254 | } 2255 | }, 2256 | "node_modules/source-map-support": { 2257 | "version": "0.5.21", 2258 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 2259 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 2260 | "dev": true, 2261 | "dependencies": { 2262 | "buffer-from": "^1.0.0", 2263 | "source-map": "^0.6.0" 2264 | } 2265 | }, 2266 | "node_modules/stackback": { 2267 | "version": "0.0.2", 2268 | "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", 2269 | "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", 2270 | "dev": true 2271 | }, 2272 | "node_modules/strip-ansi": { 2273 | "version": "6.0.1", 2274 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2275 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2276 | "dev": true, 2277 | "dependencies": { 2278 | "ansi-regex": "^5.0.1" 2279 | }, 2280 | "engines": { 2281 | "node": ">=8" 2282 | } 2283 | }, 2284 | "node_modules/strip-json-comments": { 2285 | "version": "3.1.1", 2286 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2287 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2288 | "dev": true, 2289 | "engines": { 2290 | "node": ">=8" 2291 | }, 2292 | "funding": { 2293 | "url": "https://github.com/sponsors/sindresorhus" 2294 | } 2295 | }, 2296 | "node_modules/strip-literal": { 2297 | "version": "1.0.0", 2298 | "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-1.0.0.tgz", 2299 | "integrity": "sha512-5o4LsH1lzBzO9UFH63AJ2ad2/S2AVx6NtjOcaz+VTT2h1RiRvbipW72z8M/lxEhcPHDBQwpDrnTF7sXy/7OwCQ==", 2300 | "dev": true, 2301 | "dependencies": { 2302 | "acorn": "^8.8.1" 2303 | }, 2304 | "funding": { 2305 | "url": "https://github.com/sponsors/antfu" 2306 | } 2307 | }, 2308 | "node_modules/supports-color": { 2309 | "version": "7.2.0", 2310 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2311 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2312 | "dev": true, 2313 | "dependencies": { 2314 | "has-flag": "^4.0.0" 2315 | }, 2316 | "engines": { 2317 | "node": ">=8" 2318 | } 2319 | }, 2320 | "node_modules/supports-preserve-symlinks-flag": { 2321 | "version": "1.0.0", 2322 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 2323 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 2324 | "dev": true, 2325 | "engines": { 2326 | "node": ">= 0.4" 2327 | }, 2328 | "funding": { 2329 | "url": "https://github.com/sponsors/ljharb" 2330 | } 2331 | }, 2332 | "node_modules/text-table": { 2333 | "version": "0.2.0", 2334 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2335 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2336 | "dev": true 2337 | }, 2338 | "node_modules/tinybench": { 2339 | "version": "2.3.1", 2340 | "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.3.1.tgz", 2341 | "integrity": "sha512-hGYWYBMPr7p4g5IarQE7XhlyWveh1EKhy4wUBS1LrHXCKYgvz+4/jCqgmJqZxxldesn05vccrtME2RLLZNW7iA==", 2342 | "dev": true 2343 | }, 2344 | "node_modules/tinypool": { 2345 | "version": "0.3.0", 2346 | "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.3.0.tgz", 2347 | "integrity": "sha512-NX5KeqHOBZU6Bc0xj9Vr5Szbb1j8tUHIeD18s41aDJaPeC5QTdEhK0SpdpUrZlj2nv5cctNcSjaKNanXlfcVEQ==", 2348 | "dev": true, 2349 | "engines": { 2350 | "node": ">=14.0.0" 2351 | } 2352 | }, 2353 | "node_modules/tinyspy": { 2354 | "version": "1.0.2", 2355 | "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-1.0.2.tgz", 2356 | "integrity": "sha512-bSGlgwLBYf7PnUsQ6WOc6SJ3pGOcd+d8AA6EUnLDDM0kWEstC1JIlSZA3UNliDXhd9ABoS7hiRBDCu+XP/sf1Q==", 2357 | "dev": true, 2358 | "engines": { 2359 | "node": ">=14.0.0" 2360 | } 2361 | }, 2362 | "node_modules/to-regex-range": { 2363 | "version": "5.0.1", 2364 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2365 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2366 | "dev": true, 2367 | "dependencies": { 2368 | "is-number": "^7.0.0" 2369 | }, 2370 | "engines": { 2371 | "node": ">=8.0" 2372 | } 2373 | }, 2374 | "node_modules/tslib": { 2375 | "version": "1.14.1", 2376 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2377 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2378 | "dev": true 2379 | }, 2380 | "node_modules/tsutils": { 2381 | "version": "3.21.0", 2382 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2383 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2384 | "dev": true, 2385 | "dependencies": { 2386 | "tslib": "^1.8.1" 2387 | }, 2388 | "engines": { 2389 | "node": ">= 6" 2390 | }, 2391 | "peerDependencies": { 2392 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 2393 | } 2394 | }, 2395 | "node_modules/type-check": { 2396 | "version": "0.4.0", 2397 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2398 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2399 | "dev": true, 2400 | "dependencies": { 2401 | "prelude-ls": "^1.2.1" 2402 | }, 2403 | "engines": { 2404 | "node": ">= 0.8.0" 2405 | } 2406 | }, 2407 | "node_modules/type-detect": { 2408 | "version": "4.0.8", 2409 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 2410 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 2411 | "dev": true, 2412 | "engines": { 2413 | "node": ">=4" 2414 | } 2415 | }, 2416 | "node_modules/type-fest": { 2417 | "version": "0.20.2", 2418 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2419 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2420 | "dev": true, 2421 | "engines": { 2422 | "node": ">=10" 2423 | }, 2424 | "funding": { 2425 | "url": "https://github.com/sponsors/sindresorhus" 2426 | } 2427 | }, 2428 | "node_modules/typescript": { 2429 | "version": "4.9.4", 2430 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", 2431 | "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", 2432 | "dev": true, 2433 | "peer": true, 2434 | "bin": { 2435 | "tsc": "bin/tsc", 2436 | "tsserver": "bin/tsserver" 2437 | }, 2438 | "engines": { 2439 | "node": ">=4.2.0" 2440 | } 2441 | }, 2442 | "node_modules/ufo": { 2443 | "version": "1.0.1", 2444 | "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.0.1.tgz", 2445 | "integrity": "sha512-boAm74ubXHY7KJQZLlXrtMz52qFvpsbOxDcZOnw/Wf+LS4Mmyu7JxmzD4tDLtUQtmZECypJ0FrCz4QIe6dvKRA==", 2446 | "dev": true 2447 | }, 2448 | "node_modules/uri-js": { 2449 | "version": "4.4.1", 2450 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2451 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2452 | "dev": true, 2453 | "dependencies": { 2454 | "punycode": "^2.1.0" 2455 | } 2456 | }, 2457 | "node_modules/vite": { 2458 | "version": "4.0.4", 2459 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.0.4.tgz", 2460 | "integrity": "sha512-xevPU7M8FU0i/80DMR+YhgrzR5KS2ORy1B4xcX/cXLsvnUWvfHuqMmVU6N0YiJ4JWGRJJsLCgjEzKjG9/GKoSw==", 2461 | "dev": true, 2462 | "dependencies": { 2463 | "esbuild": "^0.16.3", 2464 | "postcss": "^8.4.20", 2465 | "resolve": "^1.22.1", 2466 | "rollup": "^3.7.0" 2467 | }, 2468 | "bin": { 2469 | "vite": "bin/vite.js" 2470 | }, 2471 | "engines": { 2472 | "node": "^14.18.0 || >=16.0.0" 2473 | }, 2474 | "optionalDependencies": { 2475 | "fsevents": "~2.3.2" 2476 | }, 2477 | "peerDependencies": { 2478 | "@types/node": ">= 14", 2479 | "less": "*", 2480 | "sass": "*", 2481 | "stylus": "*", 2482 | "sugarss": "*", 2483 | "terser": "^5.4.0" 2484 | }, 2485 | "peerDependenciesMeta": { 2486 | "@types/node": { 2487 | "optional": true 2488 | }, 2489 | "less": { 2490 | "optional": true 2491 | }, 2492 | "sass": { 2493 | "optional": true 2494 | }, 2495 | "stylus": { 2496 | "optional": true 2497 | }, 2498 | "sugarss": { 2499 | "optional": true 2500 | }, 2501 | "terser": { 2502 | "optional": true 2503 | } 2504 | } 2505 | }, 2506 | "node_modules/vite-node": { 2507 | "version": "0.27.2", 2508 | "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.27.2.tgz", 2509 | "integrity": "sha512-IDwuVhslF10qCnWOGJui7/2KksAOBHi+UbVo6Pqt4f5lgn+kS2sVvYDsETRG5PSuslisGB5CFGvb9I6FQgymBQ==", 2510 | "dev": true, 2511 | "dependencies": { 2512 | "cac": "^6.7.14", 2513 | "debug": "^4.3.4", 2514 | "mlly": "^1.1.0", 2515 | "pathe": "^0.2.0", 2516 | "picocolors": "^1.0.0", 2517 | "source-map": "^0.6.1", 2518 | "source-map-support": "^0.5.21", 2519 | "vite": "^3.0.0 || ^4.0.0" 2520 | }, 2521 | "bin": { 2522 | "vite-node": "vite-node.mjs" 2523 | }, 2524 | "engines": { 2525 | "node": ">=v14.16.0" 2526 | }, 2527 | "funding": { 2528 | "url": "https://github.com/sponsors/antfu" 2529 | } 2530 | }, 2531 | "node_modules/vitest": { 2532 | "version": "0.27.2", 2533 | "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.27.2.tgz", 2534 | "integrity": "sha512-y7tdsL2uaQy+KF18AlmNHZe29ukyFytlxrpSTwwmgLE2XHR/aPucJP9FLjWoqjgqFlXzRAjHlFJLU+HDyI/OsA==", 2535 | "dev": true, 2536 | "dependencies": { 2537 | "@types/chai": "^4.3.4", 2538 | "@types/chai-subset": "^1.3.3", 2539 | "@types/node": "*", 2540 | "acorn": "^8.8.1", 2541 | "acorn-walk": "^8.2.0", 2542 | "cac": "^6.7.14", 2543 | "chai": "^4.3.7", 2544 | "debug": "^4.3.4", 2545 | "local-pkg": "^0.4.2", 2546 | "picocolors": "^1.0.0", 2547 | "source-map": "^0.6.1", 2548 | "strip-literal": "^1.0.0", 2549 | "tinybench": "^2.3.1", 2550 | "tinypool": "^0.3.0", 2551 | "tinyspy": "^1.0.2", 2552 | "vite": "^3.0.0 || ^4.0.0", 2553 | "vite-node": "0.27.2", 2554 | "why-is-node-running": "^2.2.2" 2555 | }, 2556 | "bin": { 2557 | "vitest": "vitest.mjs" 2558 | }, 2559 | "engines": { 2560 | "node": ">=v14.16.0" 2561 | }, 2562 | "funding": { 2563 | "url": "https://github.com/sponsors/antfu" 2564 | }, 2565 | "peerDependencies": { 2566 | "@edge-runtime/vm": "*", 2567 | "@vitest/browser": "*", 2568 | "@vitest/ui": "*", 2569 | "happy-dom": "*", 2570 | "jsdom": "*" 2571 | }, 2572 | "peerDependenciesMeta": { 2573 | "@edge-runtime/vm": { 2574 | "optional": true 2575 | }, 2576 | "@vitest/browser": { 2577 | "optional": true 2578 | }, 2579 | "@vitest/ui": { 2580 | "optional": true 2581 | }, 2582 | "happy-dom": { 2583 | "optional": true 2584 | }, 2585 | "jsdom": { 2586 | "optional": true 2587 | } 2588 | } 2589 | }, 2590 | "node_modules/which": { 2591 | "version": "2.0.2", 2592 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2593 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2594 | "dev": true, 2595 | "dependencies": { 2596 | "isexe": "^2.0.0" 2597 | }, 2598 | "bin": { 2599 | "node-which": "bin/node-which" 2600 | }, 2601 | "engines": { 2602 | "node": ">= 8" 2603 | } 2604 | }, 2605 | "node_modules/why-is-node-running": { 2606 | "version": "2.2.2", 2607 | "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.2.tgz", 2608 | "integrity": "sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==", 2609 | "dev": true, 2610 | "dependencies": { 2611 | "siginfo": "^2.0.0", 2612 | "stackback": "0.0.2" 2613 | }, 2614 | "bin": { 2615 | "why-is-node-running": "cli.js" 2616 | }, 2617 | "engines": { 2618 | "node": ">=8" 2619 | } 2620 | }, 2621 | "node_modules/word-wrap": { 2622 | "version": "1.2.3", 2623 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 2624 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 2625 | "dev": true, 2626 | "engines": { 2627 | "node": ">=0.10.0" 2628 | } 2629 | }, 2630 | "node_modules/wrappy": { 2631 | "version": "1.0.2", 2632 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2633 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2634 | "dev": true 2635 | }, 2636 | "node_modules/yallist": { 2637 | "version": "4.0.0", 2638 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2639 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2640 | "dev": true 2641 | }, 2642 | "node_modules/yocto-queue": { 2643 | "version": "0.1.0", 2644 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2645 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2646 | "dev": true, 2647 | "engines": { 2648 | "node": ">=10" 2649 | }, 2650 | "funding": { 2651 | "url": "https://github.com/sponsors/sindresorhus" 2652 | } 2653 | } 2654 | } 2655 | } 2656 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@ndzhwr/json-base", 3 | "version": "0.1.6", 4 | "main": "dist/index.js", 5 | "description": "a lightweight odm for json file inspired by prisma", 6 | "files": [ 7 | "/dist" 8 | ], 9 | "author": { 10 | "name": "Regis NDIZIHIWE", 11 | "email": "ndizihiweregis06@gmail.com", 12 | "url": "https://github.com/regisrex" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "git+https://github.com/regisrex/json-base.git" 17 | }, 18 | "engines": { 19 | "node": ">=8.10.0" 20 | }, 21 | "keywords": [ 22 | "json", 23 | "json database", 24 | "json ORM", 25 | "database", 26 | "javascript", 27 | "typescript", 28 | "regisrex", 29 | "lightweight", 30 | "json-base", 31 | "json database package npm", 32 | "json orm" 33 | ], 34 | "license": "MIT", 35 | "type": "module", 36 | "scripts": { 37 | "lint": "npx eslint --ext .ts --fix", 38 | "build": "tsc", 39 | "cli:init": " node dist/cli/index.js --init", 40 | "cli:help": " node dist/cli/index.js --help", 41 | "dev": "npx nodemon dist/index.js", 42 | "test": "vitest", 43 | "prepublish": "npm run build" 44 | }, 45 | "bin": { 46 | "json-base": "dist/cli/index.js" 47 | }, 48 | "husky": { 49 | "hooks": { 50 | "pre-commit": "npm run lint" 51 | } 52 | }, 53 | "dependencies": { 54 | "chalk": "^5.2.0" 55 | }, 56 | "devDependencies": { 57 | "@types/chalk": "^2.2.0", 58 | "@types/node": "^18.11.18", 59 | "@typescript-eslint/eslint-plugin": "^5.48.0", 60 | "@typescript-eslint/parser": "^5.48.0", 61 | "eslint": "^8.31.0", 62 | "eslint-plugin-prettier": "^4.2.1", 63 | "husky": "^8.0.0", 64 | "prettier": "^2.8.2", 65 | "vitest": "^0.27.1" 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /scripts/add.ts: -------------------------------------------------------------------------------- 1 | import { CollectionNotFoundError, DuplicationError, MissingParamError } from "../errors/errorHandler.js" 2 | import { getJSONDb } from "../utils/getJSONDb.js" 3 | import { setJSONDb } from "../utils/setJSONDb.js" 4 | 5 | interface AddDataProps { 6 | collection: string, 7 | data: {} 8 | } 9 | 10 | /** 11 | * #### add() 12 | * An asyncronous json-base api to add data to a collection to jsondb 13 | * @async 14 | * @param params.collection Collection where the data will be added to 15 | * @param params.data Data to add to the collection 16 | * @returns Promise 17 | * @example 18 | * ``` 19 | * import { add } from 'json-base' 20 | * (async function(){ 21 | * await add({ 22 | collection : "posts", 23 | data : { 24 | id : 1 , 25 | userId : 1 , 26 | photo : "https://linkto.img", 27 | caption : "The quick brown fox" 28 | } 29 | }) 30 | * }()) 31 | * ``` 32 | */ 33 | export default async function add(params: AddDataProps) : Promise { 34 | try { 35 | const jsonDB: {} | any = JSON.parse(await getJSONDb()) 36 | 37 | if (!params.collection) 38 | throw new MissingParamError(`collection`) 39 | if (!params.data) 40 | throw new MissingParamError(`data`) 41 | const coll: {}[] = jsonDB['db'][`${params.collection}`] 42 | if (!coll) 43 | throw new CollectionNotFoundError(`${params.collection}`) 44 | if(!coll.find(doc => doc == params.data)) 45 | coll.push(params.data) 46 | else throw new DuplicationError() 47 | setJSONDb(JSON.stringify(jsonDB)) 48 | return params.data 49 | } catch (err: any) { 50 | throw new Error(err.message) 51 | } 52 | } -------------------------------------------------------------------------------- /scripts/del.ts: -------------------------------------------------------------------------------- 1 | import { CollectionNotFoundError, MissingParamError } from "../errors/errorHandler.js" 2 | import { getJSONDb } from "../utils/getJSONDb.js" 3 | import { setJSONDb } from "../utils/setJSONDb.js" 4 | interface DeleteParams { 5 | collection: string 6 | where: {} 7 | } 8 | /** 9 | * ### del 10 | * An asynchronous json-base api for deleting data from database.json 11 | * @async 12 | * @param params.collection A collectio to delete data from 13 | * @param params.where An object that provides a unique key and value of the record to be deleted 14 | * @returns Promise 15 | * @example 16 | * ``` 17 | * import { del } from 'json-base' 18 | * 19 | * (async function(){ 20 | * await del({ 21 | * collection : "posts", 22 | * where : { 23 | * id : 1 24 | * } 25 | * }) 26 | * }()) 27 | * ``` 28 | */ 29 | export default async function del(params: DeleteParams): Promise { 30 | try { 31 | const where_clause = Object.entries(params.where) 32 | const jsonDB = JSON.parse(await getJSONDb()) 33 | 34 | if (!params.collection) 35 | throw new MissingParamError('collection') 36 | if (!params.where) 37 | throw new MissingParamError('where clause') 38 | const coll: {}[] = jsonDB['db'][`${params.collection}`] 39 | if (!coll) 40 | throw new CollectionNotFoundError(`${params.collection}`) 41 | const index = coll.indexOf(coll.find((rec: any) => rec[`${where_clause[0][0]}`] == `${where_clause[0][1]}`) as {}) 42 | coll.splice(index, 1); 43 | 44 | setJSONDb(JSON.stringify(jsonDB)) 45 | } catch (error: any) { 46 | throw new Error(error.message) 47 | } 48 | } -------------------------------------------------------------------------------- /scripts/delAll.ts: -------------------------------------------------------------------------------- 1 | import { getJSONDb } from "../utils/getJSONDb.js"; 2 | import { setJSONDb } from "../utils/setJSONDb.js"; 3 | 4 | export default async function delAll() { 5 | try { 6 | const jsonDB = JSON.parse(await getJSONDb()); 7 | jsonDB["db"] = {}; 8 | setJSONDb(JSON.stringify(jsonDB)); 9 | } catch (error: any) { 10 | throw new Error(error?.message); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /scripts/get.ts: -------------------------------------------------------------------------------- 1 | import { MissingParamError, NotFoundError } from "../errors/errorHandler.js"; 2 | import { getCollection } from "../utils/getCollection.js"; 3 | 4 | export interface GetDataOptions { 5 | where?: any; 6 | limit?: number; 7 | } 8 | 9 | export interface GetDataProps extends GetDataOptions { 10 | collection: string; 11 | } 12 | 13 | /** 14 | * ### get() 15 | * An asyncronous json-base api to get data from database.json 16 | * 17 | * @param params.collection A collection to get data from 18 | * @param params.where A where clause like SQL's WHERE , (optional) 19 | * @param params.limit A Limit of record to retreive , (optional) 20 | * @example 21 | * ``` 22 | * import { get } from 'json-base' 23 | * (async function(){ 24 | * const aUsersWithId2 = await get({ 25 | * collection : "users", 26 | * where : { 27 | * id : { lt: 10, gt: 3 } 28 | * }, 29 | * limit : 1 30 | * }) 31 | * }()) 32 | * ``` 33 | */ 34 | export default async function get(params: GetDataProps): Promise { 35 | let data_to_return: any; 36 | if (!params.collection) { 37 | throw new MissingParamError("collection"); 38 | } 39 | const collection = await getCollection(params.collection); 40 | data_to_return = collection; 41 | if (params.where) { 42 | const where_data = Object.entries(params.where); 43 | for (let i: number = 0; i < where_data.length; i++) { 44 | const [field, filter]: [any, any] = where_data[i]; 45 | if (typeof filter === "object") { 46 | const filterEntries = Object.entries(filter); 47 | let data: any = data_to_return; 48 | for (let j = 0; j < filterEntries.length; j++) { 49 | const [operator, value] = filterEntries[j]; 50 | switch (operator) { 51 | case "lt": 52 | data = data.filter( 53 | (item: any) => item[field] < Number(value) 54 | ); 55 | break; 56 | case "lte": 57 | data = data.filter( 58 | (item: any) => item[field] <= Number(value) 59 | ); 60 | break; 61 | case "gt": 62 | data = data.filter( 63 | (item: any) => item[field] > Number(value) 64 | ); 65 | break; 66 | case "gte": 67 | data = data.filter( 68 | (item: any) => item[field] >= Number(value) 69 | ); 70 | break; 71 | case "eq": 72 | data = data.filter( 73 | (item: any) => item[field] === Number(value) 74 | ); 75 | break; 76 | default: 77 | throw new Error(`Operator '${operator}' not supported.`); 78 | } 79 | } 80 | data_to_return = data; 81 | } else { 82 | const data: any = data_to_return.filter( 83 | (collection: any) => collection[`${field}`] == `${filter}` 84 | ); 85 | if (data) data_to_return = data; 86 | else 87 | throw new NotFoundError( 88 | `Datum with '${field}' set to '${filter}' was not found in '${params.collection}' Collection` 89 | ); 90 | } 91 | } 92 | } 93 | if (params.limit) { 94 | if (data_to_return && data_to_return.length != 1) 95 | data_to_return = (data_to_return as any[]).slice(0, params.limit); 96 | } 97 | 98 | return data_to_return; 99 | } 100 | -------------------------------------------------------------------------------- /scripts/set.ts: -------------------------------------------------------------------------------- 1 | import { CollectionNotFoundError, DuplicationError, MissingParamError, NotFoundError } from "../errors/errorHandler.js"; 2 | import { getJSONDb } from "../utils/getJSONDb.js"; 3 | import { setJSONDb } from "../utils/setJSONDb.js"; 4 | 5 | interface SetDataProps { 6 | collection: string 7 | where: any, 8 | data: any 9 | } 10 | /** 11 | * ### set() 12 | * An asynchronous json-base api for updating data in database.json 13 | * @param params.collection The collection where the record to be updated is located, 14 | * @param params.where An object with a key and a value that uniquely identifys the record 15 | * @param params.data An object that contains updated data 16 | * @returns Promise 17 | * @example 18 | * ``` 19 | * import { set } from 'json-base' 20 | * await set({ 21 | collection : "users", 22 | where : { 23 | username : "leerob" 24 | }, 25 | data : { 26 | email : "leerobin@gmail.com" 27 | } 28 | }) 29 | * ``` 30 | */ 31 | export default async function set(params: SetDataProps): Promise { 32 | try { 33 | 34 | if (!params.collection || !params.where || !params.data) { 35 | throw new MissingParamError("Some requiered parameters for the set function was not added") 36 | } 37 | 38 | // const collection = await getCollection(params.collection) 39 | const where_clause = Object.entries(params.where) 40 | const jsonDB: any = JSON.parse(await getJSONDb()) 41 | const coll = jsonDB['db'][`${params.collection}`] 42 | if (!coll) 43 | throw new CollectionNotFoundError(`${params.collection}`) 44 | const datum = coll.filter((collection: any) => collection[`${where_clause[0][0]}`] == `${where_clause[0][1]}`) 45 | if (!datum) { 46 | throw new NotFoundError(`Datum with '${where_clause[0][0]}' set to '${where_clause[0][1]}' was not found in '${params.collection}' Collection`) 47 | } 48 | if (datum.length > 1) { 49 | throw new DuplicationError(`Found 2 elements with the same '${where_clause[0][0]}' set to '${where_clause[0][1]}'`) 50 | } 51 | 52 | const data_clause = Object.entries(params.data) 53 | 54 | const document = datum[0]; 55 | for (let i: number = 0; i < data_clause.length; i++) { 56 | document[`${data_clause[i][0]}`] = `${data_clause[i][1]}` 57 | } 58 | setJSONDb(JSON.stringify(jsonDB)) 59 | } catch (err: any) { 60 | throw new Error(err.message) 61 | } 62 | 63 | 64 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "Node16", 4 | "target": "ES2020", 5 | "moduleResolution" : "Node16", 6 | "outDir": "dist", 7 | "noImplicitAny": false, 8 | "strict": true, 9 | "noUnusedLocals": true, 10 | "noImplicitReturns": true, 11 | "alwaysStrict": true, 12 | "declaration": true, 13 | "allowSyntheticDefaultImports" : true 14 | }, 15 | "include": ["**/*"], 16 | "exclude" :["__tests__", "dist" , ".github"] 17 | } -------------------------------------------------------------------------------- /utils/getCollection.ts: -------------------------------------------------------------------------------- 1 | import { type ReadStream, createReadStream } from 'fs' 2 | import { CollectionNotFoundError } from '../errors/errorHandler.js' 3 | 4 | export async function getCollection(collection: string): Promise { 5 | try { 6 | 7 | const _database_src: ReadStream = createReadStream('./database.json'); 8 | let database: string = '' 9 | let parsedDatabase: any = null 10 | let __requested_coll: T[] | null = null 11 | return new Promise((resolve, reject) => { 12 | _database_src 13 | .on('error' , (err : any) => { 14 | reject(new Error(err.message)) 15 | }) 16 | .on("data", (chunk: any) => { 17 | database += chunk.toString("utf-8") 18 | }) 19 | .on("end", async () => { 20 | 21 | parsedDatabase = JSON.parse(database); 22 | const coll = await parsedDatabase.db[`${collection}`] 23 | if (coll) 24 | __requested_coll = coll; 25 | if (!coll) 26 | throw new CollectionNotFoundError(collection); 27 | }) 28 | .on("close", () => { 29 | resolve(__requested_coll) 30 | }) 31 | }) 32 | 33 | } catch (error: any) { 34 | throw new CollectionNotFoundError(error.message) 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /utils/getJSONDb.ts: -------------------------------------------------------------------------------- 1 | import { createReadStream } from "fs"; 2 | export async function getJSONDb(): Promise { 3 | return new Promise((resolve, reject) => { 4 | let database: string = ``; 5 | const src = createReadStream('./database.json') 6 | src 7 | .on('error', (error) => { 8 | reject(error) 9 | }) 10 | .on('data', (chunk) => { 11 | database += chunk.toString("utf-8") 12 | }) 13 | .on('end', () => { 14 | resolve(database) 15 | }) 16 | }) 17 | } -------------------------------------------------------------------------------- /utils/setJSONDb.ts: -------------------------------------------------------------------------------- 1 | import { createWriteStream } from "fs"; 2 | export async function setJSONDb(json: string): Promise { 3 | const destination = createWriteStream('./database.json') 4 | destination.write(json) 5 | } --------------------------------------------------------------------------------