├── .eslintrc ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .npmignore ├── README.md ├── lib ├── helpers.js ├── winston-mongodb.d.ts └── winston-mongodb.js ├── package-lock.json ├── package.json └── test ├── helpers-test.js └── winston-mongodb-test.js /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@dabh/eslint-config-populist", 3 | "rules": { 4 | "one-var": ["error", { "var": "never", "let": "never", "const": "never" }], 5 | "no-unused-vars": ["error", { "ignoreRestSiblings": true }], 6 | "no-undefined": "off", 7 | "no-console": "off", 8 | "strict": "off" 9 | }, 10 | "parserOptions": { 11 | "ecmaVersion": 2022 12 | }, 13 | "env": { 14 | "es2020": true 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Have you encountered an issue? 2 | description: Report an issue with Winston. 3 | title: "[Bug]: " 4 | labels: ["Bug", "Needs Investigation"] 5 | body: 6 | - type: markdown # Form Header 7 | attributes: 8 | value: >- 9 | This issue form is for reporting bugs only! 10 | - type: input # Search Terms 11 | validations: 12 | required: true 13 | attributes: 14 | label: 🔎 Search Terms 15 | description: >- 16 | What search terms did you use when trying to find an existing bug report, looking in both open and closed issues? 17 | List them here (comma seperated) so people in the future can find this one more easily. 18 | - type: textarea # Problem Definition 19 | validations: 20 | required: true 21 | attributes: 22 | label: The problem 23 | description: >- 24 | Please provide a clear and concise description of the problem you've encountered and what the 25 | expected behavior was. 26 | - type: markdown # Environment Section Header 27 | attributes: 28 | value: | 29 | ## Environment 30 | - type: input # Affected Version Input 31 | id: winston-version 32 | validations: 33 | required: true 34 | attributes: 35 | label: What version of Winston presents the issue? 36 | placeholder: v3.4.0 37 | description: > 38 | Can be found by running one of the following (depending on your package manager of choice): 39 | - `npm list winston` 40 | - `yarn list --pattern winston` 41 | - type: input # Affected Version Input 42 | id: node-version 43 | validations: 44 | required: true 45 | attributes: 46 | label: What version of Node are you using? 47 | placeholder: v16.8.0 48 | description: > 49 | Can be found by running the following: `node -v` 50 | - type: input # Last Known Working Version 51 | attributes: 52 | label: If this worked in a previous version of Winston, which was it? 53 | placeholder: v3.0.0 54 | description: > 55 | If known, otherwise please leave blank. 56 | - type: markdown # Details Section Header 57 | attributes: 58 | value: | 59 | # Details 60 | - type: textarea # Minimum Working Example Input 61 | attributes: 62 | label: Minimum Working Example 63 | description: | 64 | If you can, providing an MWE to reproduce the issue you're encountering can greatly speed up 65 | investigation into the issue by one of our maintainers, or anyone else in the community who's looking 66 | to get involved. 67 | 68 | This can be as simple as a script, a link to a repo, etc. 69 | If using a script please wrap with triple backticks and language. EG: 70 | ` ```javascript ` 71 | - type: textarea # Additional Information 72 | attributes: 73 | label: Additional information 74 | description: > 75 | If you have any additional information for us that you feel will be valuable, please use the field below. 76 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Have a formatting issue or feature request? 4 | url: https://github.com/winstonjs/logform/issues/new/choose 5 | about: Please search and report @ WinstonJS/Logform 6 | - name: Need help using Winston? 7 | url: https://stackoverflow.com/questions/tagged/winston 8 | about: Please look on StackOverflow first to see if someone has already answered your question. 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: Would you like to see a feature implemented? 2 | description: Request a new feature for Winston 3 | title: "[Feature Request]: " 4 | labels: ["Feature Request", "Needs Investigation"] 5 | body: 6 | - type: markdown # Form Header 7 | attributes: 8 | value: | 9 | This issue form is for requesting features only! 10 | - type: input # Search Terms 11 | validations: 12 | required: true 13 | attributes: 14 | label: 🔎 Search Terms 15 | description: >- 16 | What search terms did you use when trying to find an existing feature request, looking in both open and closed issues? 17 | List them here (comma seperated) so people in the future can find this one more easily. 18 | - type: textarea # Feature Definition 19 | validations: 20 | required: true 21 | attributes: 22 | label: The vision 23 | description: >- 24 | Please provide a clear and concise description of the feature you would like to see implemented. 25 | - type: markdown # Feature Details Section 26 | attributes: 27 | value: | 28 | # Details 29 | - type: textarea # Use Case Input 30 | attributes: 31 | label: Use case 32 | description: | 33 | If you desire you can provide use cases for the requested feature. 34 | - type: textarea # Additional Information 35 | attributes: 36 | label: Additional information 37 | description: > 38 | If you have any additional information for us that you feel will be valuable, please use the field below. 39 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: github-actions 4 | directory: / 5 | schedule: 6 | interval: weekly 7 | - package-ecosystem: npm 8 | directory: / 9 | schedule: 10 | interval: weekly 11 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - main 7 | - master 8 | push: 9 | branches: 10 | - main 11 | - master 12 | 13 | jobs: 14 | unit-tests: 15 | runs-on: ubuntu-latest 16 | strategy: 17 | matrix: 18 | node: 19 | - 16 20 | - 18 21 | - 20 22 | mongo: 23 | - v6.0-latest 24 | - v5.0-latest 25 | - v4.4-latest 26 | steps: 27 | - uses: actions/checkout@v4 28 | - uses: actions/setup-node@v4 29 | with: 30 | node-version: ${{ matrix.node }} 31 | - name: Install Dependencies 32 | env: 33 | MONGOMS_VERSION: ${{ matrix.mongo }} 34 | MONGOMS_DISABLE_POSTINSTALL: 0 35 | run: npm clean-install 36 | - name: Lint 37 | run: npm run lint 38 | - name: Test 39 | env: 40 | MONGOMS_VERSION: ${{ matrix.mongo }} 41 | run: npm test 42 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | .idea 4 | .env 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .git* 2 | npm-debug.log 3 | .idea 4 | .eslintrc 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # winston-mongodb 2 | 3 | A MongoDB transport for [winston][0]. 4 | 5 | Current version supports only mongodb driver version 3.x and newer and winston 3.x and newer. 6 | If you want to use winston-mongodb with mongodb version 1.4.x use winston-mongodb <1.x. 7 | For mongodb 2.x use winston-mongodb <3.x. 8 | 9 | ## Motivation 10 | `tldr;?`: To break the [winston][0] codebase into small modules that work 11 | together. 12 | 13 | The [winston][0] codebase has been growing significantly with contributions and 14 | other logging transports. This is **awesome**. However, taking a ton of 15 | additional dependencies just to do something simple like logging to the Console 16 | and a File is overkill. 17 | 18 | ## Usage 19 | ``` js 20 | const winston = require('winston'); 21 | // Requiring `winston-mongodb` will expose winston.transports.MongoDB` 22 | require('winston-mongodb'); 23 | 24 | const log = winston.createLogger({ 25 | level: 'info', 26 | transports: [ 27 | // write errors to console too 28 | new winston.transports.Console({format: winston.format.simple(), level:'error'}) 29 | ], 30 | }); 31 | 32 | // logging to console so far 33 | log.info('Connecting to database...'); 34 | 35 | const MongoClient = require('mongodb').MongoClient; 36 | const url = "mongodb://localhost:27017/mydb"; 37 | 38 | const client = new MongoClient(url); 39 | await client.connect(); 40 | 41 | const transportOptions = { 42 | db: await Promise.resolve(client), 43 | collection: 'log' 44 | }; 45 | 46 | log.add(new winston.transports.MongoDB(transportOptions)); 47 | 48 | // following entry should appear in log collection and will contain 49 | // metadata JSON-property containing url field 50 | log.info('Connected to database.',{url}); 51 | 52 | ``` 53 | 54 | The MongoDB transport takes the following options. Only option `db` is required: 55 | 56 | | Option | Description | 57 | | ------ | :----------------------------------------------- | 58 | | db | **REQUIRED**. MongoDB connection uri, pre-connected `MongoClient` object or promise which resolves to a pre-connected `MongoClient` object. | 59 | | dbname | The database name to connect to, defaults to DB name based on connection URI if not provided, ignored if using a pre-connected connection. | 60 | | options| MongoDB connection parameters.
Defaults to `{maxPoolSize: 2}`). | 61 | | collection | The name of the collection you want to store log messages in.
Defaults to `log`. | 62 | | level | Level of messages that this transport should log.
Defaults to `info`. | 63 | | silent | Boolean flag indicating whether to suppress output.
Defaults to `false`. | 64 | | storeHost | Boolean indicating if you want to store machine hostname in logs entry, if set to true it populates MongoDB entry with 'hostname' field, which stores os.hostname() value. | 65 | | label | If set to true, then label attribute content will be stored in `label` field, if detected in meta-data. | 66 | | name | Transport instance identifier. Useful if you need to create multiple MongoDB transports. | 67 | | capped | In case this property is true, winston-mongodb will try to create new log collection as capped.
Defaults to `false`. | 68 | | cappedSize | Size of logs capped collection in bytes.
Defaults to 10,000,000. | 69 | | cappedMax | Size of logs capped collection in number of documents. | 70 | | tryReconnect | Will try to reconnect to the database in case of fail during initialization. Works only if __db__ is a string.
Defaults to `false`. | 71 | | decolorize | Will remove color attributes from the log entry message.
Defaults to `false`. | 72 | | leaveConnectionOpen| Will leave MongoClient connected after transport shuts down. | 73 | | metaKey | Configure name of the field which is used to store metadata in the logged info object.
Defaults to `metadata` to remain compatible with the [metadata format](https://github.com/winstonjs/logform/blob/master/examples/metadata.js) | 74 | | expireAfterSeconds |Seconds before the entry is removed. Works only if __capped__ is not set. | 75 | 76 | *Logging unhandled exceptions:* For logging unhandled exceptions specify 77 | winston-mongodb as `handleExceptions` logger according to winston documentation. 78 | 79 | ## Querying and streaming logs 80 | 81 | Besides supporting the main options from winston, this transport supports the 82 | following extra options: 83 | 84 | * __includeIds:__ Whether the returned logs should include the `_id` attribute 85 | settled by mongodb, defaults to `false`. 86 | 87 | ## Installation 88 | 89 | ``` bash 90 | $ npm install winston 91 | $ npm install winston-mongodb 92 | ``` 93 | 94 | ## [Changelog](https://github.com/winstonjs/winston-mongodb/releases) 95 | 96 | #### Author: [Charlie Robbins](http://blog.nodejitsu.com) 97 | #### Contributors: [Yurij Mikhalevich](https://github.com/yurijmikhalevich), [Kendrick Taylor](https://github.com/sktaylor), [Yosef Dinerstein](https://github.com/yosefd), [Steve Dalby](https://github.com/stevedalby) 98 | 99 | [0]: https://github.com/winstonjs/winston 100 | -------------------------------------------------------------------------------- /lib/helpers.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @module helpers 3 | * @fileoverview Helpers for winston-mongodb 4 | * @license MIT 5 | * @author 0@39.yt (Yurij Mikhalevich) 6 | */ 7 | 'use strict'; 8 | const ObjectId = require('mongodb').ObjectId; 9 | 10 | 11 | /** 12 | * Prepares metadata to store into database. 13 | * @param {Object} meta Metadata 14 | * @returns {Object} Prepared metadata 15 | */ 16 | exports.prepareMetaData = meta => { 17 | return cloneMeta(meta); 18 | }; 19 | 20 | 21 | /** 22 | * Clones meta object and cleans it from circular references, replacing them 23 | * with string '[Circular]' and fixes field names to be storable within 24 | * MongoDB 25 | * @param {Object} node Current object or its leaf 26 | * @param {Array} optParents Object's parents 27 | * @returns {Object} Adjusted clone of object 28 | */ 29 | function cloneMeta(node, optParents) { 30 | if (!((node !== null && typeof node === 'object') || typeof node === 'function') 31 | || (node instanceof ObjectId) || (node instanceof Buffer)) { 32 | return node; 33 | } 34 | let copy = Array.isArray(node) ? [] : {}; 35 | if (node instanceof Date) { 36 | return new Date(node.getTime()); 37 | } else if (node instanceof Error) { 38 | // This is needed because Error's message, name and stack isn't accessible when cycling through properties 39 | copy = { message: node.message, name: node.name, stack: node.stack }; 40 | } 41 | optParents = optParents || []; 42 | optParents.push(node); 43 | for (const key in node) { 44 | if (!Object.prototype.hasOwnProperty.call(node, key)) { 45 | continue; 46 | } 47 | const value = node[key]; 48 | let newKey = key; 49 | if (newKey.includes('.') || newKey.includes('$')) { 50 | newKey = newKey.replace(/\./g, '[dot]').replace(/\$/g, '[$]'); 51 | } 52 | if ((value !== null && typeof value === 'object') || typeof value === 'function') { 53 | if (optParents.indexOf(value) === -1) { 54 | copy[newKey] = cloneMeta(value, optParents); 55 | } else { 56 | copy[newKey] = '[Circular]'; 57 | } 58 | } else { 59 | copy[newKey] = value; 60 | } 61 | } 62 | optParents.pop(); 63 | return copy; 64 | } 65 | -------------------------------------------------------------------------------- /lib/winston-mongodb.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for winston-mongodb 2 | // Project: https://github.com/winstonjs/winston-mongodb 3 | // Definitions by: miton18 , blove , 4 | // Balazs Mocsai 5 | 6 | import { Logform, transports } from "winston"; 7 | import { MongoDBTransportInstance, MongoDBConnectionOptions } from 'winston-mongodb'; 8 | 9 | /** 10 | * Extending transport 11 | */ 12 | declare module 'winston/lib/winston/transports' { 13 | export interface Transports { 14 | MongoDB: MongoDBTransportInstance; 15 | MongoDBTransportOptions: MongoDBConnectionOptions; 16 | } 17 | } 18 | 19 | declare module 'winston-mongodb' { 20 | export interface MongoDBTransportInstance extends transports.StreamTransportInstance { 21 | new (options?: MongoDBConnectionOptions) : MongoDBTransportInstance; 22 | query: (callback: Function, options?: any) => Promise; 23 | } 24 | 25 | /** 26 | * Options for transport 27 | * 28 | * @export 29 | * @interface MongoDBConnectionOptions 30 | */ 31 | export interface MongoDBConnectionOptions { 32 | /** 33 | * Level of messages that this transport should log, defaults to 'info'. 34 | * 35 | * @type {string} 36 | * @memberof MongoDBConnectionOptions 37 | */ 38 | level?: string; 39 | /** 40 | * Boolean flag indicating whether to suppress output, defaults to false. 41 | * 42 | * @type {boolean} 43 | * @memberof MongoDBConnectionOptions 44 | */ 45 | silent?: boolean; 46 | /** 47 | * MongoDB connection uri, pre-connected db object or promise object which will be resolved with pre-connected db object. 48 | * 49 | * @type {(string | Promise)} 50 | * @memberof MongoDBConnectionOptions 51 | */ 52 | db: string | Promise; 53 | /** 54 | * MongoDB connection parameters (optional, defaults to {poolSize: 2, autoReconnect: true}). 55 | * 56 | * @type {*} 57 | * @memberof MongoDBConnectionOptions 58 | */ 59 | options?: any; 60 | /** 61 | * The database name to connect to, defaults to DB name based on connection URI if not provided, ignored if using a pre-connected mongoose connection. 62 | * 63 | * @type {string} 64 | * @memberof MongoDBConnectionOptions 65 | */ 66 | dbName?: string; 67 | /** 68 | * The name of the collection you want to store log messages in, defaults to 'log'. 69 | * 70 | * @type {string} 71 | * @memberof MongoDBConnectionOptions 72 | */ 73 | collection?: string; 74 | /** 75 | * Boolean indicating if you want to store machine hostname in logs entry, if set to true it populates MongoDB entry with 'hostname' field, which stores os.hostname() value. 76 | * 77 | * @type {boolean} 78 | * @memberof MongoDBConnectionOptions 79 | */ 80 | storeHost?: boolean; 81 | /** 82 | * Label stored with entry object if defined. 83 | * 84 | * @type {string} 85 | * @memberof MongoDBConnectionOptions 86 | */ 87 | label?: string; 88 | /** 89 | * Transport instance identifier. Useful if you need to create multiple MongoDB transports. 90 | * 91 | * @type {string} 92 | * @memberof MongoDBConnectionOptions 93 | */ 94 | name?: string; 95 | /** 96 | * In case this property is true, winston-mongodb will try to create new log collection as capped, defaults to false. 97 | * 98 | * @type {boolean} 99 | * @memberof MongoDBConnectionOptions 100 | */ 101 | capped?: boolean; 102 | /** 103 | * Size of logs capped collection in bytes, defaults to 10000000. 104 | * 105 | * @type {number} 106 | * @memberof MongoDBConnectionOptions 107 | */ 108 | cappedSize?: number; 109 | /** 110 | * Size of logs capped collection in number of documents. 111 | * 112 | * @type {number} 113 | * @memberof MongoDBConnectionOptions 114 | */ 115 | cappedMax?: number; 116 | /** 117 | * Will try to reconnect to the database in case of fail during initialization. Works only if db is a string. Defaults to false. 118 | * 119 | * @type {boolean} 120 | * @memberof MongoDBConnectionOptions 121 | */ 122 | tryReconnect?: boolean; 123 | /** 124 | * Will remove color attributes from the log entry message, defaults to false. 125 | * 126 | * @type {boolean} 127 | * @memberof MongoDBConnectionOptions 128 | */ 129 | decolorize?: boolean; 130 | /** 131 | * Will leave MongoClient connected after transport shut down. 132 | * 133 | * @type {boolean} 134 | * @memberof MongoDBConnectionOptions 135 | */ 136 | leaveConnectionOpen?: boolean; 137 | /** 138 | * Configure which key is used to store metadata in the logged info object. Defaults to 'metadata' to remain compatible with the metadata format. 139 | * 140 | * @type {string} 141 | * @memberof MongoDBConnectionOptions 142 | */ 143 | metaKey?: string; 144 | /** 145 | * Seconds before the entry is removed. Works only if capped is not set. 146 | * 147 | * @type {number} 148 | * @memberof MongoDBConnectionOptions 149 | */ 150 | expireAfterSeconds?: number; 151 | 152 | format?: Logform.Format; 153 | } 154 | 155 | const MongoDB: MongoDBTransportInstance; 156 | } 157 | -------------------------------------------------------------------------------- /lib/winston-mongodb.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @module 'winston-mongodb' 3 | * @fileoverview Winston transport for logging into MongoDB 4 | * @license MIT 5 | * @author charlie@nodejitsu.com (Charlie Robbins) 6 | * @author 0@39.yt (Yurij Mikhalevich) 7 | */ 8 | 'use strict'; 9 | const util = require('util'); 10 | const os = require('os'); 11 | const mongodb = require('mongodb'); 12 | const winston = require('winston'); 13 | const Transport = require('winston-transport'); 14 | const Stream = require('stream').Stream; 15 | const helpers = require('./helpers'); 16 | 17 | 18 | 19 | /** 20 | * Constructor for the MongoDB transport object. 21 | * @constructor 22 | * @param {Object} options Options 23 | * @param {string} [options.level=info] Level of messages that this transport 24 | * should log. 25 | * @param {boolean} [options.silent=false] Boolean flag indicating whether to 26 | * suppress output. 27 | * @param {string|Object} options.db MongoDB connection uri or preconnected db 28 | * object. 29 | * @param {string} options.dbName The database name to connect to, 30 | * defaults to DB name based on connection URI if not provided 31 | * @param {Object} options.options MongoDB connection parameters 32 | * (optional, defaults to `{poolSize: 2, autoReconnect: true, useNewUrlParser: true}`). 33 | * @param {string} [options.collection=log] The name of the collection you want 34 | * to store log messages in. 35 | * @param {boolean} [options.storeHost=false] Boolean indicating if you want to 36 | * store machine hostname in logs entry, if set to true it populates MongoDB 37 | * entry with 'hostname' field, which stores os.hostname() value. 38 | * @param {string} options.label Label stored with entry object if defined. 39 | * @param {string} options.name Transport instance identifier. Useful if you 40 | * need to create multiple MongoDB transports. 41 | * @param {boolean} [options.capped=false] In case this property is true, 42 | * winston-mongodb will try to create new log collection as capped. 43 | * @param {number} [options.cappedSize=10000000] Size of logs capped collection 44 | * in bytes. 45 | * @param {number} options.cappedMax Size of logs capped collection in number 46 | * of documents. 47 | * @param {boolean} [options.tryReconnect=false] Will try to reconnect to the 48 | * database in case of fail during initialization. Works only if `db` is 49 | * a string. 50 | * @param {boolean} [options.decolorize=false] Will remove color attributes from 51 | * the log entry message. 52 | * @param {boolean} [options.leaveConnectionOpen=false] Will leave MongoClient connected 53 | * after transport shut down. 54 | * @param {number} options.expireAfterSeconds Seconds before the entry is removed. 55 | * Do not use if capped is set. 56 | */ 57 | const MongoDB = exports.MongoDB = function (options) { 58 | Transport.call(this, options); 59 | options = (options || {}); 60 | if (!options.db) { 61 | throw new Error('You should provide db to log to.'); 62 | } 63 | this.name = options.name || 'mongodb'; 64 | this.db = options.db; 65 | this.dbName = (options.dbName || undefined); 66 | this.options = options.options; 67 | if (!this.options) { 68 | this.options = { 69 | maxPoolSize: 2 70 | }; 71 | } 72 | this.collection = (options.collection || 'log'); 73 | this.level = (options.level || 'info'); 74 | this.silent = options.silent; 75 | this.storeHost = options.storeHost; 76 | this.label = options.label; 77 | this.capped = options.capped; 78 | this.cappedSize = (options.cappedSize || 10000000); 79 | this.cappedMax = options.cappedMax; 80 | this.decolorize = options.decolorize; 81 | this.leaveConnectionOpen = options.leaveConnectionOpen; 82 | this.expireAfterSeconds = !this.capped && options.expireAfterSeconds; 83 | this.metaKey = options.metaKey || 'metadata'; 84 | if (this.storeHost) { 85 | this.hostname = os.hostname(); 86 | } 87 | this._opQueue = []; 88 | const self = this; 89 | 90 | function setupDatabaseAndEmptyQueue(db) { 91 | return createCollection(db).then(db => { 92 | self.logDb = db; 93 | processOpQueue(); 94 | }, err => { 95 | if (self.mongoClient && !self.leaveConnectionOpen) { 96 | self.mongoClient.close(); 97 | } 98 | console.error('winston-mongodb, initialization error: ', err); 99 | }); 100 | } 101 | function processOpQueue() { 102 | self._opQueue.forEach(operation => 103 | self[operation.method].apply(self, operation.args)); 104 | delete self._opQueue; 105 | } 106 | function createCollection(db) { 107 | const opts = Object.assign( 108 | {}, 109 | self.capped ? { capped: true, size: self.cappedSize, max: self.cappedMax } : {} 110 | ); 111 | return db.createCollection(self.collection, opts).then(col => { 112 | const ttlIndexName = 'timestamp_1'; 113 | const indexOpts = { name: ttlIndexName, background: true }; 114 | if (self.expireAfterSeconds) { 115 | indexOpts.expireAfterSeconds = self.expireAfterSeconds; 116 | } 117 | return col.indexInformation({ full: true }).then(info => { 118 | info = info.filter(i => i.name === ttlIndexName); 119 | if (info.length === 0) { // if its a new index then create it 120 | return col.createIndex({ timestamp: -1 }, indexOpts); 121 | } // if index existed with the same name check if expireAfterSeconds param has changed 122 | if (info[0].expireAfterSeconds !== undefined && 123 | info[0].expireAfterSeconds !== self.expireAfterSeconds) { 124 | return col.dropIndex(ttlIndexName) 125 | .then(() => col.createIndex({ timestamp: -1 }, indexOpts)); 126 | } 127 | 128 | }); 129 | }).catch(err => { 130 | // Since mongodb@3.6.0 db.createCollection throws an error (48) if the collection already exists 131 | if (err.code !== 48) throw err; 132 | return db.collection(self.collection); 133 | }).then(() => db); 134 | } 135 | function connectToDatabase(logger) { 136 | return mongodb.MongoClient.connect(logger.db, logger.options 137 | ).then(client => { 138 | logger.mongoClient = client; 139 | setupDatabaseAndEmptyQueue(client.db(self.dbName)); 140 | }, err => { 141 | console.error('winston-mongodb: error initialising logger', err); 142 | if (options.tryReconnect) { 143 | console.log('winston-mongodb: will try reconnecting in 10 seconds'); 144 | return new Promise(resolve => setTimeout(resolve, 10000) 145 | ).then(() => connectToDatabase(logger)); 146 | } 147 | }); 148 | } 149 | 150 | if (typeof this.db === 'string') { 151 | connectToDatabase(this); 152 | } else if (typeof this.db.then === 'function') { 153 | this.db.then(client => { 154 | this.mongoClient = client; 155 | setupDatabaseAndEmptyQueue(client.db(self.dbName)); 156 | }, err => console.error('winston-mongodb: error initialising logger from promise', err)); 157 | } else if (typeof this.db.db === 'function') { 158 | this.mongoClient = this.db; 159 | setupDatabaseAndEmptyQueue(this.db.db(self.dbName)); 160 | } else { // preconnected object 161 | console.warn( 162 | 'winston-mongodb: preconnected object support is deprecated and will be removed in v5'); 163 | setupDatabaseAndEmptyQueue(this.db); 164 | } 165 | }; 166 | 167 | 168 | /** 169 | * Inherit from `winston-transport`. 170 | */ 171 | util.inherits(MongoDB, Transport); 172 | 173 | 174 | /** 175 | * Define a getter so that `winston.transports.MongoDB` 176 | * is available and thus backwards compatible. 177 | */ 178 | winston.transports.MongoDB = MongoDB; 179 | 180 | 181 | /** 182 | * Closes MongoDB connection so using process would not hang up. 183 | * Used by winston Logger.close on transports. 184 | */ 185 | MongoDB.prototype.close = function () { 186 | this.logDb = null; 187 | if (!this.mongoClient || this.leaveConnectionOpen) { 188 | return; 189 | } 190 | this.mongoClient.close().then(() => { this.mongoClient = null; }).catch(err => { 191 | console.error('Winston MongoDB transport encountered on error during ' 192 | + 'closing.', err); 193 | }); 194 | }; 195 | 196 | 197 | /** 198 | * Core logging method exposed to Winston. Metadata is optional. 199 | * @param {Object} info Logging metadata 200 | * @param {Function} cb Continuation to respond to when complete. 201 | * @returns {boolean} Result boolean 202 | */ 203 | MongoDB.prototype.log = function (info, cb) { 204 | if (!this.logDb) { 205 | this._opQueue.push({ method: 'log', args: arguments }); 206 | return true; 207 | } 208 | if (!cb) { 209 | cb = () => {}; 210 | } 211 | // Avoid reentrancy that can be not assumed by database code. 212 | // If database logs, better not to call database itself in the same call. 213 | process.nextTick(() => { 214 | if (this.silent) { 215 | // eslint-disable-next-line callback-return 216 | cb(null, true); 217 | } 218 | // eslint-disable-next-line no-control-regex 219 | const decolorizeRegex = new RegExp(/\u001b\[[0-9]{1,2}m/g); 220 | const entry = { timestamp: new Date(), level: (this.decolorize) ? info.level.replace(decolorizeRegex, '') : info.level }; 221 | const msg = util.format(info.message, ...(info.splat || [])); 222 | entry.message = (this.decolorize) ? msg.replace(decolorizeRegex, '') : msg; 223 | // get 'meta' object from info object - as per winston doc: Properties besides level and message are considered as "meta". 224 | const { level, message, ...meta } = info; 225 | // prepare meta object for storage 226 | const metaData = helpers.prepareMetaData(meta); 227 | // if metadata is not empty object add it to entry - makes no sense to store empty object 228 | if (Object.keys(metaData).length > 0) { 229 | entry[this.metaKey] = metaData; 230 | } 231 | if (this.storeHost) { 232 | entry.hostname = this.hostname; 233 | } 234 | 235 | if (this.label) { 236 | entry.label = this.label; 237 | } 238 | this.logDb.collection(this.collection).insertOne(entry).then(() => { 239 | this.emit('logged'); 240 | cb(null, true); 241 | }).catch(err => { 242 | this.emit('error', err); 243 | cb(err); 244 | }); 245 | }); 246 | return true; 247 | }; 248 | 249 | 250 | /** 251 | * Query the transport. Options object is optional. 252 | * @param {Object=} optOptions Loggly-like query options for this instance. 253 | * @param {Function} cb Continuation to respond to when complete. 254 | */ 255 | MongoDB.prototype.query = function (optOptions, cb) { 256 | if (!this.logDb) { 257 | this._opQueue.push({ method: 'query', args: arguments }); 258 | return; 259 | } 260 | if (typeof optOptions === 'function') { 261 | cb = optOptions; 262 | optOptions = {}; 263 | } 264 | const options = this.normalizeQuery(optOptions); 265 | const query = { timestamp: { $gte: options.from, $lte: options.until }}; 266 | const opt = { 267 | skip: options.start, 268 | limit: options.rows, 269 | sort: { timestamp: options.order === 'desc' ? -1 : 1 } 270 | }; 271 | if (options.fields) { 272 | opt.fields = options.fields; 273 | } 274 | this.logDb.collection(this.collection).find(query, opt).toArray().then(docs => { 275 | if (!options.includeIds) { 276 | docs.forEach(log => delete log._id); 277 | } 278 | cb(null, docs); 279 | }).catch(cb); 280 | }; 281 | 282 | 283 | /** 284 | * Returns a log stream for this transport. Options object is optional. 285 | * This will only work with a capped collection. 286 | * @param {Object} options Stream options for this instance. 287 | * @param {Stream} stream Pass in a pre-existing stream. 288 | * @returns {Stream} Log stream for the transport 289 | */ 290 | MongoDB.prototype.stream = function (options, stream) { 291 | options = options || {}; 292 | stream = stream || new Stream(); 293 | let start = options.start; 294 | if (!this.logDb) { 295 | this._opQueue.push({ method: 'stream', args: [options, stream] }); 296 | return stream; 297 | } 298 | stream.destroy = function () { 299 | this.destroyed = true; 300 | }; 301 | if (start === -1) { 302 | start = null; 303 | } 304 | const col = this.logDb.collection(this.collection); 305 | if (start !== null) { 306 | col.find({}, { skip: start }).toArray().then(docs => { 307 | docs.forEach(doc => { 308 | if (!options.includeIds) { 309 | delete doc._id; 310 | } 311 | stream.emit('log', doc); 312 | }); 313 | delete options.start; 314 | this.stream(options, stream); 315 | }).catch(err => stream.emit('error', err)); 316 | return stream; 317 | } 318 | if (stream.destroyed) { 319 | return stream; 320 | } 321 | col.isCapped().then(capped => { 322 | if (!capped) { 323 | return this.streamPoll(options, stream); 324 | } 325 | const cursor = col.find({}, { tailable: true }); 326 | stream.destroy = function () { 327 | this.destroyed = true; 328 | cursor.destroy(); 329 | }; 330 | cursor.on('data', doc => { 331 | if (!options.includeIds) { 332 | delete doc._id; 333 | } 334 | stream.emit('log', doc); 335 | }); 336 | cursor.on('error', err => stream.emit('error', err)); 337 | }).catch(err => stream.emit('error', err)); 338 | return stream; 339 | }; 340 | 341 | 342 | /** 343 | * Returns a log stream for this transport. Options object is optional. 344 | * @param {Object} options Stream options for this instance. 345 | * @param {Stream} stream Pass in a pre-existing stream. 346 | * @returns {Stream} Log stream for the transport 347 | */ 348 | MongoDB.prototype.streamPoll = function (options, stream) { 349 | options = options || {}; 350 | stream = stream || new Stream(); 351 | const self = this; 352 | let start = options.start; 353 | let last; 354 | if (!this.logDb) { 355 | this._opQueue.push({ method: 'streamPoll', args: [options, stream] }); 356 | return stream; 357 | } 358 | if (start === -1) { 359 | start = null; 360 | } 361 | if (start === null) { 362 | last = new Date(new Date() - 1000); 363 | } 364 | stream.destroy = function () { 365 | this.destroyed = true; 366 | }; 367 | (function check() { 368 | const query = last ? { timestamp: { $gte: last }} : {}; 369 | self.logDb.collection(self.collection).find(query).toArray().then(docs => { 370 | if (stream.destroyed) { 371 | return; 372 | } 373 | if (!docs.length) { 374 | return next(); 375 | } 376 | if (start === null) { 377 | docs.forEach(doc => { 378 | if (!options.includeIds) { 379 | delete doc._id; 380 | } 381 | stream.emit('log', doc); 382 | }); 383 | } else { 384 | docs.forEach(doc => { 385 | if (!options.includeIds) { 386 | delete doc._id; 387 | } 388 | if (!start) { 389 | stream.emit('log', doc); 390 | } else { 391 | start -= 1; 392 | } 393 | }); 394 | } 395 | last = new Date(docs.pop().timestamp); 396 | next(); 397 | }).catch(err => { 398 | if (stream.destroyed) { 399 | return; 400 | } 401 | // eslint-disable-next-line callback-return 402 | next(); 403 | stream.emit('error', err); 404 | }); 405 | function next() { 406 | setTimeout(check, 2000); 407 | } 408 | }()); 409 | return stream; 410 | }; 411 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "winston-mongodb", 3 | "version": "6.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "winston-mongodb", 9 | "version": "6.0.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "mongodb": "^6.5.0", 13 | "winston-transport": "^4.4.0" 14 | }, 15 | "devDependencies": { 16 | "@dabh/eslint-config-populist": "^5.0.0", 17 | "abstract-winston-transport": "~0.5.1", 18 | "dotenv": "^16.1.4", 19 | "ip": "^2.0.1", 20 | "mocha": "^10.2.0", 21 | "mongodb-memory-server": "^9.1.4", 22 | "mongoose": "^8.0.0", 23 | "winston": "^3.3.3" 24 | }, 25 | "engines": { 26 | "node": ">=14.20.1" 27 | }, 28 | "peerDependencies": { 29 | "winston": "^3.0.0" 30 | } 31 | }, 32 | "node_modules/@colors/colors": { 33 | "version": "1.6.0", 34 | "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", 35 | "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", 36 | "license": "MIT", 37 | "engines": { 38 | "node": ">=0.1.90" 39 | } 40 | }, 41 | "node_modules/@dabh/diagnostics": { 42 | "version": "2.0.3", 43 | "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", 44 | "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", 45 | "dev": true, 46 | "license": "MIT", 47 | "dependencies": { 48 | "colorspace": "1.1.x", 49 | "enabled": "2.0.x", 50 | "kuler": "^2.0.0" 51 | } 52 | }, 53 | "node_modules/@dabh/diagnostics/node_modules/enabled": { 54 | "version": "2.0.0", 55 | "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", 56 | "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==", 57 | "dev": true, 58 | "license": "MIT" 59 | }, 60 | "node_modules/@dabh/diagnostics/node_modules/kuler": { 61 | "version": "2.0.0", 62 | "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", 63 | "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", 64 | "dev": true, 65 | "license": "MIT" 66 | }, 67 | "node_modules/@dabh/eslint-config-populist": { 68 | "version": "5.0.0", 69 | "resolved": "https://registry.npmjs.org/@dabh/eslint-config-populist/-/eslint-config-populist-5.0.0.tgz", 70 | "integrity": "sha512-e6uFqJFY9TCEc8uuhFXjh3WLPos4eU/2R/b/tmR09QSCVIZNR/XIG58ImEZ1HTS5cDk52xZL4EpkRJuqG/SJoA==", 71 | "dev": true, 72 | "license": "MIT", 73 | "dependencies": { 74 | "eslint-find-rules": "^4.1.0", 75 | "eslint-plugin-json": "^3.1.0", 76 | "eslint-plugin-mocha": "^10.0.3" 77 | }, 78 | "peerDependencies": { 79 | "eslint": "^8.8.0" 80 | } 81 | }, 82 | "node_modules/@eslint-community/eslint-utils": { 83 | "version": "4.4.0", 84 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 85 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 86 | "dev": true, 87 | "license": "MIT", 88 | "peer": true, 89 | "dependencies": { 90 | "eslint-visitor-keys": "^3.3.0" 91 | }, 92 | "engines": { 93 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 94 | }, 95 | "peerDependencies": { 96 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 97 | } 98 | }, 99 | "node_modules/@eslint-community/regexpp": { 100 | "version": "4.11.1", 101 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.1.tgz", 102 | "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==", 103 | "dev": true, 104 | "license": "MIT", 105 | "peer": true, 106 | "engines": { 107 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 108 | } 109 | }, 110 | "node_modules/@eslint/eslintrc": { 111 | "version": "2.1.4", 112 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", 113 | "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", 114 | "dev": true, 115 | "license": "MIT", 116 | "peer": true, 117 | "dependencies": { 118 | "ajv": "^6.12.4", 119 | "debug": "^4.3.2", 120 | "espree": "^9.6.0", 121 | "globals": "^13.19.0", 122 | "ignore": "^5.2.0", 123 | "import-fresh": "^3.2.1", 124 | "js-yaml": "^4.1.0", 125 | "minimatch": "^3.1.2", 126 | "strip-json-comments": "^3.1.1" 127 | }, 128 | "engines": { 129 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 130 | }, 131 | "funding": { 132 | "url": "https://opencollective.com/eslint" 133 | } 134 | }, 135 | "node_modules/@eslint/js": { 136 | "version": "8.57.1", 137 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", 138 | "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", 139 | "dev": true, 140 | "license": "MIT", 141 | "peer": true, 142 | "engines": { 143 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 144 | } 145 | }, 146 | "node_modules/@humanwhocodes/config-array": { 147 | "version": "0.13.0", 148 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", 149 | "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", 150 | "deprecated": "Use @eslint/config-array instead", 151 | "dev": true, 152 | "license": "Apache-2.0", 153 | "peer": true, 154 | "dependencies": { 155 | "@humanwhocodes/object-schema": "^2.0.3", 156 | "debug": "^4.3.1", 157 | "minimatch": "^3.0.5" 158 | }, 159 | "engines": { 160 | "node": ">=10.10.0" 161 | } 162 | }, 163 | "node_modules/@humanwhocodes/module-importer": { 164 | "version": "1.0.1", 165 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 166 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 167 | "dev": true, 168 | "license": "Apache-2.0", 169 | "peer": true, 170 | "engines": { 171 | "node": ">=12.22" 172 | }, 173 | "funding": { 174 | "type": "github", 175 | "url": "https://github.com/sponsors/nzakas" 176 | } 177 | }, 178 | "node_modules/@humanwhocodes/object-schema": { 179 | "version": "2.0.3", 180 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", 181 | "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", 182 | "deprecated": "Use @eslint/object-schema instead", 183 | "dev": true, 184 | "license": "BSD-3-Clause", 185 | "peer": true 186 | }, 187 | "node_modules/@mongodb-js/saslprep": { 188 | "version": "1.1.9", 189 | "resolved": "https://registry.npmjs.org/@mongodb-js/saslprep/-/saslprep-1.1.9.tgz", 190 | "integrity": "sha512-tVkljjeEaAhCqTzajSdgbQ6gE6f3oneVwa3iXR6csiEwXXOFsiC6Uh9iAjAhXPtqa/XMDHWjjeNH/77m/Yq2dw==", 191 | "license": "MIT", 192 | "dependencies": { 193 | "sparse-bitfield": "^3.0.3" 194 | } 195 | }, 196 | "node_modules/@nodelib/fs.scandir": { 197 | "version": "2.1.5", 198 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 199 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 200 | "dev": true, 201 | "license": "MIT", 202 | "peer": true, 203 | "dependencies": { 204 | "@nodelib/fs.stat": "2.0.5", 205 | "run-parallel": "^1.1.9" 206 | }, 207 | "engines": { 208 | "node": ">= 8" 209 | } 210 | }, 211 | "node_modules/@nodelib/fs.stat": { 212 | "version": "2.0.5", 213 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 214 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 215 | "dev": true, 216 | "license": "MIT", 217 | "peer": true, 218 | "engines": { 219 | "node": ">= 8" 220 | } 221 | }, 222 | "node_modules/@nodelib/fs.walk": { 223 | "version": "1.2.8", 224 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 225 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 226 | "dev": true, 227 | "license": "MIT", 228 | "peer": true, 229 | "dependencies": { 230 | "@nodelib/fs.scandir": "2.1.5", 231 | "fastq": "^1.6.0" 232 | }, 233 | "engines": { 234 | "node": ">= 8" 235 | } 236 | }, 237 | "node_modules/@types/node": { 238 | "version": "22.5.5", 239 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", 240 | "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", 241 | "dev": true, 242 | "license": "MIT", 243 | "dependencies": { 244 | "undici-types": "~6.19.2" 245 | } 246 | }, 247 | "node_modules/@types/triple-beam": { 248 | "version": "1.3.5", 249 | "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz", 250 | "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==", 251 | "license": "MIT" 252 | }, 253 | "node_modules/@types/webidl-conversions": { 254 | "version": "7.0.3", 255 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", 256 | "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", 257 | "license": "MIT" 258 | }, 259 | "node_modules/@types/whatwg-url": { 260 | "version": "11.0.5", 261 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz", 262 | "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==", 263 | "license": "MIT", 264 | "dependencies": { 265 | "@types/webidl-conversions": "*" 266 | } 267 | }, 268 | "node_modules/@ungap/structured-clone": { 269 | "version": "1.2.0", 270 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", 271 | "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", 272 | "dev": true, 273 | "license": "ISC", 274 | "peer": true 275 | }, 276 | "node_modules/abstract-winston-transport": { 277 | "version": "0.5.1", 278 | "resolved": "https://registry.npmjs.org/abstract-winston-transport/-/abstract-winston-transport-0.5.1.tgz", 279 | "integrity": "sha512-4w7EPMd7K7kzZFS6lKTbMFmXV+nWontTIzpF2Xc0HFns6RdNOLIOgbKiQzVw+46ghIoweZ4miIMFxmgapJO93A==", 280 | "dev": true, 281 | "license": "MIT", 282 | "dependencies": { 283 | "diagnostics": "^1.1.0" 284 | } 285 | }, 286 | "node_modules/acorn": { 287 | "version": "8.12.1", 288 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", 289 | "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", 290 | "dev": true, 291 | "license": "MIT", 292 | "peer": true, 293 | "bin": { 294 | "acorn": "bin/acorn" 295 | }, 296 | "engines": { 297 | "node": ">=0.4.0" 298 | } 299 | }, 300 | "node_modules/acorn-jsx": { 301 | "version": "5.3.2", 302 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 303 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 304 | "dev": true, 305 | "license": "MIT", 306 | "peer": true, 307 | "peerDependencies": { 308 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 309 | } 310 | }, 311 | "node_modules/agent-base": { 312 | "version": "7.1.1", 313 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", 314 | "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", 315 | "dev": true, 316 | "license": "MIT", 317 | "dependencies": { 318 | "debug": "^4.3.4" 319 | }, 320 | "engines": { 321 | "node": ">= 14" 322 | } 323 | }, 324 | "node_modules/ajv": { 325 | "version": "6.12.6", 326 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 327 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 328 | "dev": true, 329 | "license": "MIT", 330 | "peer": true, 331 | "dependencies": { 332 | "fast-deep-equal": "^3.1.1", 333 | "fast-json-stable-stringify": "^2.0.0", 334 | "json-schema-traverse": "^0.4.1", 335 | "uri-js": "^4.2.2" 336 | }, 337 | "funding": { 338 | "type": "github", 339 | "url": "https://github.com/sponsors/epoberezkin" 340 | } 341 | }, 342 | "node_modules/ansi-colors": { 343 | "version": "4.1.3", 344 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", 345 | "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", 346 | "dev": true, 347 | "license": "MIT", 348 | "engines": { 349 | "node": ">=6" 350 | } 351 | }, 352 | "node_modules/ansi-regex": { 353 | "version": "5.0.1", 354 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 355 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 356 | "dev": true, 357 | "license": "MIT", 358 | "engines": { 359 | "node": ">=8" 360 | } 361 | }, 362 | "node_modules/ansi-styles": { 363 | "version": "4.3.0", 364 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 365 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 366 | "dev": true, 367 | "license": "MIT", 368 | "dependencies": { 369 | "color-convert": "^2.0.1" 370 | }, 371 | "engines": { 372 | "node": ">=8" 373 | }, 374 | "funding": { 375 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 376 | } 377 | }, 378 | "node_modules/ansi-styles/node_modules/color-convert": { 379 | "version": "2.0.1", 380 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 381 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 382 | "dev": true, 383 | "license": "MIT", 384 | "dependencies": { 385 | "color-name": "~1.1.4" 386 | }, 387 | "engines": { 388 | "node": ">=7.0.0" 389 | } 390 | }, 391 | "node_modules/ansi-styles/node_modules/color-name": { 392 | "version": "1.1.4", 393 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 394 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 395 | "dev": true, 396 | "license": "MIT" 397 | }, 398 | "node_modules/anymatch": { 399 | "version": "3.1.3", 400 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 401 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 402 | "dev": true, 403 | "license": "ISC", 404 | "dependencies": { 405 | "normalize-path": "^3.0.0", 406 | "picomatch": "^2.0.4" 407 | }, 408 | "engines": { 409 | "node": ">= 8" 410 | } 411 | }, 412 | "node_modules/argparse": { 413 | "version": "2.0.1", 414 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 415 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 416 | "dev": true, 417 | "license": "Python-2.0" 418 | }, 419 | "node_modules/async": { 420 | "version": "3.2.6", 421 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", 422 | "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", 423 | "dev": true, 424 | "license": "MIT" 425 | }, 426 | "node_modules/async-mutex": { 427 | "version": "0.4.1", 428 | "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", 429 | "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", 430 | "dev": true, 431 | "license": "MIT", 432 | "dependencies": { 433 | "tslib": "^2.4.0" 434 | } 435 | }, 436 | "node_modules/b4a": { 437 | "version": "1.6.6", 438 | "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", 439 | "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", 440 | "dev": true, 441 | "license": "Apache-2.0" 442 | }, 443 | "node_modules/balanced-match": { 444 | "version": "1.0.2", 445 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 446 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 447 | "dev": true, 448 | "license": "MIT" 449 | }, 450 | "node_modules/bare-events": { 451 | "version": "2.4.2", 452 | "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.4.2.tgz", 453 | "integrity": "sha512-qMKFd2qG/36aA4GwvKq8MxnPgCQAmBWmSyLWsJcbn8v03wvIPQ/hG1Ms8bPzndZxMDoHpxez5VOS+gC9Yi24/Q==", 454 | "dev": true, 455 | "license": "Apache-2.0", 456 | "optional": true 457 | }, 458 | "node_modules/binary-extensions": { 459 | "version": "2.3.0", 460 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 461 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 462 | "dev": true, 463 | "license": "MIT", 464 | "engines": { 465 | "node": ">=8" 466 | }, 467 | "funding": { 468 | "url": "https://github.com/sponsors/sindresorhus" 469 | } 470 | }, 471 | "node_modules/brace-expansion": { 472 | "version": "1.1.11", 473 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 474 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 475 | "dev": true, 476 | "license": "MIT", 477 | "dependencies": { 478 | "balanced-match": "^1.0.0", 479 | "concat-map": "0.0.1" 480 | } 481 | }, 482 | "node_modules/braces": { 483 | "version": "3.0.3", 484 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 485 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 486 | "dev": true, 487 | "license": "MIT", 488 | "dependencies": { 489 | "fill-range": "^7.1.1" 490 | }, 491 | "engines": { 492 | "node": ">=8" 493 | } 494 | }, 495 | "node_modules/browser-stdout": { 496 | "version": "1.3.1", 497 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 498 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 499 | "dev": true, 500 | "license": "ISC" 501 | }, 502 | "node_modules/bson": { 503 | "version": "6.8.0", 504 | "resolved": "https://registry.npmjs.org/bson/-/bson-6.8.0.tgz", 505 | "integrity": "sha512-iOJg8pr7wq2tg/zSlCCHMi3hMm5JTOxLTagf3zxhcenHsFp+c6uOs6K7W5UE7A4QIJGtqh/ZovFNMP4mOPJynQ==", 506 | "license": "Apache-2.0", 507 | "engines": { 508 | "node": ">=16.20.1" 509 | } 510 | }, 511 | "node_modules/buffer-crc32": { 512 | "version": "0.2.13", 513 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 514 | "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", 515 | "dev": true, 516 | "license": "MIT", 517 | "engines": { 518 | "node": "*" 519 | } 520 | }, 521 | "node_modules/callsites": { 522 | "version": "3.1.0", 523 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 524 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 525 | "dev": true, 526 | "license": "MIT", 527 | "peer": true, 528 | "engines": { 529 | "node": ">=6" 530 | } 531 | }, 532 | "node_modules/camelcase": { 533 | "version": "6.3.0", 534 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 535 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 536 | "dev": true, 537 | "license": "MIT", 538 | "engines": { 539 | "node": ">=10" 540 | }, 541 | "funding": { 542 | "url": "https://github.com/sponsors/sindresorhus" 543 | } 544 | }, 545 | "node_modules/chalk": { 546 | "version": "4.1.2", 547 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 548 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 549 | "dev": true, 550 | "license": "MIT", 551 | "dependencies": { 552 | "ansi-styles": "^4.1.0", 553 | "supports-color": "^7.1.0" 554 | }, 555 | "engines": { 556 | "node": ">=10" 557 | }, 558 | "funding": { 559 | "url": "https://github.com/chalk/chalk?sponsor=1" 560 | } 561 | }, 562 | "node_modules/chokidar": { 563 | "version": "3.6.0", 564 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 565 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 566 | "dev": true, 567 | "license": "MIT", 568 | "dependencies": { 569 | "anymatch": "~3.1.2", 570 | "braces": "~3.0.2", 571 | "glob-parent": "~5.1.2", 572 | "is-binary-path": "~2.1.0", 573 | "is-glob": "~4.0.1", 574 | "normalize-path": "~3.0.0", 575 | "readdirp": "~3.6.0" 576 | }, 577 | "engines": { 578 | "node": ">= 8.10.0" 579 | }, 580 | "funding": { 581 | "url": "https://paulmillr.com/funding/" 582 | }, 583 | "optionalDependencies": { 584 | "fsevents": "~2.3.2" 585 | } 586 | }, 587 | "node_modules/chokidar/node_modules/glob-parent": { 588 | "version": "5.1.2", 589 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 590 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 591 | "dev": true, 592 | "license": "ISC", 593 | "dependencies": { 594 | "is-glob": "^4.0.1" 595 | }, 596 | "engines": { 597 | "node": ">= 6" 598 | } 599 | }, 600 | "node_modules/cliui": { 601 | "version": "3.2.0", 602 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 603 | "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", 604 | "dev": true, 605 | "license": "ISC", 606 | "dependencies": { 607 | "string-width": "^1.0.1", 608 | "strip-ansi": "^3.0.1", 609 | "wrap-ansi": "^2.0.0" 610 | } 611 | }, 612 | "node_modules/cliui/node_modules/ansi-regex": { 613 | "version": "2.1.1", 614 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 615 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", 616 | "dev": true, 617 | "license": "MIT", 618 | "engines": { 619 | "node": ">=0.10.0" 620 | } 621 | }, 622 | "node_modules/cliui/node_modules/strip-ansi": { 623 | "version": "3.0.1", 624 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 625 | "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", 626 | "dev": true, 627 | "license": "MIT", 628 | "dependencies": { 629 | "ansi-regex": "^2.0.0" 630 | }, 631 | "engines": { 632 | "node": ">=0.10.0" 633 | } 634 | }, 635 | "node_modules/code-point-at": { 636 | "version": "1.1.0", 637 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 638 | "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", 639 | "dev": true, 640 | "license": "MIT", 641 | "engines": { 642 | "node": ">=0.10.0" 643 | } 644 | }, 645 | "node_modules/color": { 646 | "version": "3.2.1", 647 | "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", 648 | "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", 649 | "dev": true, 650 | "license": "MIT", 651 | "dependencies": { 652 | "color-convert": "^1.9.3", 653 | "color-string": "^1.6.0" 654 | } 655 | }, 656 | "node_modules/color-convert": { 657 | "version": "1.9.3", 658 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 659 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 660 | "dev": true, 661 | "license": "MIT", 662 | "dependencies": { 663 | "color-name": "1.1.3" 664 | } 665 | }, 666 | "node_modules/color-name": { 667 | "version": "1.1.3", 668 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 669 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", 670 | "dev": true, 671 | "license": "MIT" 672 | }, 673 | "node_modules/color-string": { 674 | "version": "1.9.1", 675 | "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", 676 | "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", 677 | "dev": true, 678 | "license": "MIT", 679 | "dependencies": { 680 | "color-name": "^1.0.0", 681 | "simple-swizzle": "^0.2.2" 682 | } 683 | }, 684 | "node_modules/colornames": { 685 | "version": "1.1.1", 686 | "resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz", 687 | "integrity": "sha512-/pyV40IrsdulWv+wFPmERh9k/mjsPZ64yUMDmWrtj/k1nmgrzzIENWKdaVKyBbvFdQWqkcaRxr+polCo3VMe7A==", 688 | "dev": true, 689 | "license": "MIT" 690 | }, 691 | "node_modules/colorspace": { 692 | "version": "1.1.4", 693 | "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", 694 | "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", 695 | "dev": true, 696 | "license": "MIT", 697 | "dependencies": { 698 | "color": "^3.1.3", 699 | "text-hex": "1.0.x" 700 | } 701 | }, 702 | "node_modules/commondir": { 703 | "version": "1.0.1", 704 | "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", 705 | "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", 706 | "dev": true, 707 | "license": "MIT" 708 | }, 709 | "node_modules/concat-map": { 710 | "version": "0.0.1", 711 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 712 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 713 | "dev": true, 714 | "license": "MIT" 715 | }, 716 | "node_modules/cross-spawn": { 717 | "version": "7.0.3", 718 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 719 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 720 | "dev": true, 721 | "license": "MIT", 722 | "peer": true, 723 | "dependencies": { 724 | "path-key": "^3.1.0", 725 | "shebang-command": "^2.0.0", 726 | "which": "^2.0.1" 727 | }, 728 | "engines": { 729 | "node": ">= 8" 730 | } 731 | }, 732 | "node_modules/debug": { 733 | "version": "4.3.7", 734 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", 735 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 736 | "dev": true, 737 | "license": "MIT", 738 | "dependencies": { 739 | "ms": "^2.1.3" 740 | }, 741 | "engines": { 742 | "node": ">=6.0" 743 | }, 744 | "peerDependenciesMeta": { 745 | "supports-color": { 746 | "optional": true 747 | } 748 | } 749 | }, 750 | "node_modules/decamelize": { 751 | "version": "4.0.0", 752 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 753 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 754 | "dev": true, 755 | "license": "MIT", 756 | "engines": { 757 | "node": ">=10" 758 | }, 759 | "funding": { 760 | "url": "https://github.com/sponsors/sindresorhus" 761 | } 762 | }, 763 | "node_modules/deep-is": { 764 | "version": "0.1.4", 765 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 766 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 767 | "dev": true, 768 | "license": "MIT", 769 | "peer": true 770 | }, 771 | "node_modules/diagnostics": { 772 | "version": "1.1.1", 773 | "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.1.1.tgz", 774 | "integrity": "sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ==", 775 | "dev": true, 776 | "license": "MIT", 777 | "dependencies": { 778 | "colorspace": "1.1.x", 779 | "enabled": "1.0.x", 780 | "kuler": "1.0.x" 781 | } 782 | }, 783 | "node_modules/diff": { 784 | "version": "5.2.0", 785 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", 786 | "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", 787 | "dev": true, 788 | "license": "BSD-3-Clause", 789 | "engines": { 790 | "node": ">=0.3.1" 791 | } 792 | }, 793 | "node_modules/doctrine": { 794 | "version": "3.0.0", 795 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 796 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 797 | "dev": true, 798 | "license": "Apache-2.0", 799 | "peer": true, 800 | "dependencies": { 801 | "esutils": "^2.0.2" 802 | }, 803 | "engines": { 804 | "node": ">=6.0.0" 805 | } 806 | }, 807 | "node_modules/dotenv": { 808 | "version": "16.4.5", 809 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", 810 | "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", 811 | "dev": true, 812 | "license": "BSD-2-Clause", 813 | "engines": { 814 | "node": ">=12" 815 | }, 816 | "funding": { 817 | "url": "https://dotenvx.com" 818 | } 819 | }, 820 | "node_modules/emoji-regex": { 821 | "version": "8.0.0", 822 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 823 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 824 | "dev": true, 825 | "license": "MIT" 826 | }, 827 | "node_modules/enabled": { 828 | "version": "1.0.2", 829 | "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", 830 | "integrity": "sha512-nnzgVSpB35qKrUN8358SjO1bYAmxoThECTWw9s3J0x5G8A9hokKHVDFzBjVpCoSryo6MhN8woVyascN5jheaNA==", 831 | "dev": true, 832 | "license": "MIT", 833 | "dependencies": { 834 | "env-variable": "0.0.x" 835 | } 836 | }, 837 | "node_modules/env-variable": { 838 | "version": "0.0.6", 839 | "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.6.tgz", 840 | "integrity": "sha512-bHz59NlBbtS0NhftmR8+ExBEekE7br0e01jw+kk0NDro7TtZzBYZ5ScGPs3OmwnpyfHTHOtr1Y6uedCdrIldtg==", 841 | "dev": true, 842 | "license": "MIT" 843 | }, 844 | "node_modules/escalade": { 845 | "version": "3.2.0", 846 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 847 | "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 848 | "dev": true, 849 | "license": "MIT", 850 | "engines": { 851 | "node": ">=6" 852 | } 853 | }, 854 | "node_modules/escape-string-regexp": { 855 | "version": "4.0.0", 856 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 857 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 858 | "dev": true, 859 | "license": "MIT", 860 | "engines": { 861 | "node": ">=10" 862 | }, 863 | "funding": { 864 | "url": "https://github.com/sponsors/sindresorhus" 865 | } 866 | }, 867 | "node_modules/eslint": { 868 | "version": "8.57.1", 869 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", 870 | "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", 871 | "dev": true, 872 | "license": "MIT", 873 | "peer": true, 874 | "dependencies": { 875 | "@eslint-community/eslint-utils": "^4.2.0", 876 | "@eslint-community/regexpp": "^4.6.1", 877 | "@eslint/eslintrc": "^2.1.4", 878 | "@eslint/js": "8.57.1", 879 | "@humanwhocodes/config-array": "^0.13.0", 880 | "@humanwhocodes/module-importer": "^1.0.1", 881 | "@nodelib/fs.walk": "^1.2.8", 882 | "@ungap/structured-clone": "^1.2.0", 883 | "ajv": "^6.12.4", 884 | "chalk": "^4.0.0", 885 | "cross-spawn": "^7.0.2", 886 | "debug": "^4.3.2", 887 | "doctrine": "^3.0.0", 888 | "escape-string-regexp": "^4.0.0", 889 | "eslint-scope": "^7.2.2", 890 | "eslint-visitor-keys": "^3.4.3", 891 | "espree": "^9.6.1", 892 | "esquery": "^1.4.2", 893 | "esutils": "^2.0.2", 894 | "fast-deep-equal": "^3.1.3", 895 | "file-entry-cache": "^6.0.1", 896 | "find-up": "^5.0.0", 897 | "glob-parent": "^6.0.2", 898 | "globals": "^13.19.0", 899 | "graphemer": "^1.4.0", 900 | "ignore": "^5.2.0", 901 | "imurmurhash": "^0.1.4", 902 | "is-glob": "^4.0.0", 903 | "is-path-inside": "^3.0.3", 904 | "js-yaml": "^4.1.0", 905 | "json-stable-stringify-without-jsonify": "^1.0.1", 906 | "levn": "^0.4.1", 907 | "lodash.merge": "^4.6.2", 908 | "minimatch": "^3.1.2", 909 | "natural-compare": "^1.4.0", 910 | "optionator": "^0.9.3", 911 | "strip-ansi": "^6.0.1", 912 | "text-table": "^0.2.0" 913 | }, 914 | "bin": { 915 | "eslint": "bin/eslint.js" 916 | }, 917 | "engines": { 918 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 919 | }, 920 | "funding": { 921 | "url": "https://opencollective.com/eslint" 922 | } 923 | }, 924 | "node_modules/eslint-find-rules": { 925 | "version": "4.1.0", 926 | "resolved": "https://registry.npmjs.org/eslint-find-rules/-/eslint-find-rules-4.1.0.tgz", 927 | "integrity": "sha512-2nLJ0UrQRUGbOX8ksSxTgDNWGBW0RidIEIMlwNe1YR4RkjYksFDPYWf3WO9QFWM2NqkuHlTTeyOM94vaNwaFVw==", 928 | "dev": true, 929 | "license": "MIT", 930 | "dependencies": { 931 | "cliui": "^3.2.0", 932 | "eslint-rule-documentation": "^1.0.23", 933 | "glob": "^7.2.0", 934 | "which": "^1.3.1", 935 | "window-size": "^0.3.0", 936 | "yargs": "^16.2.0" 937 | }, 938 | "bin": { 939 | "eslint-diff-rules": "dist/bin/diff.js", 940 | "eslint-find-rules": "dist/bin/find.js" 941 | }, 942 | "engines": { 943 | "node": "^10.12.0 || >=12.0.0 || ^14.17.0 || >=16.0.0" 944 | }, 945 | "peerDependencies": { 946 | "eslint": "^7 || ^8.2.0" 947 | } 948 | }, 949 | "node_modules/eslint-find-rules/node_modules/which": { 950 | "version": "1.3.1", 951 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 952 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 953 | "dev": true, 954 | "license": "ISC", 955 | "dependencies": { 956 | "isexe": "^2.0.0" 957 | }, 958 | "bin": { 959 | "which": "bin/which" 960 | } 961 | }, 962 | "node_modules/eslint-plugin-json": { 963 | "version": "3.1.0", 964 | "resolved": "https://registry.npmjs.org/eslint-plugin-json/-/eslint-plugin-json-3.1.0.tgz", 965 | "integrity": "sha512-MrlG2ynFEHe7wDGwbUuFPsaT2b1uhuEFhJ+W1f1u+1C2EkXmTYJp4B1aAdQQ8M+CC3t//N/oRKiIVw14L2HR1g==", 966 | "dev": true, 967 | "license": "MIT", 968 | "dependencies": { 969 | "lodash": "^4.17.21", 970 | "vscode-json-languageservice": "^4.1.6" 971 | }, 972 | "engines": { 973 | "node": ">=12.0" 974 | } 975 | }, 976 | "node_modules/eslint-plugin-mocha": { 977 | "version": "10.5.0", 978 | "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.5.0.tgz", 979 | "integrity": "sha512-F2ALmQVPT1GoP27O1JTZGrV9Pqg8k79OeIuvw63UxMtQKREZtmkK1NFgkZQ2TW7L2JSSFKHFPTtHu5z8R9QNRw==", 980 | "dev": true, 981 | "license": "MIT", 982 | "dependencies": { 983 | "eslint-utils": "^3.0.0", 984 | "globals": "^13.24.0", 985 | "rambda": "^7.4.0" 986 | }, 987 | "engines": { 988 | "node": ">=14.0.0" 989 | }, 990 | "peerDependencies": { 991 | "eslint": ">=7.0.0" 992 | } 993 | }, 994 | "node_modules/eslint-rule-documentation": { 995 | "version": "1.0.23", 996 | "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", 997 | "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", 998 | "dev": true, 999 | "license": "MIT", 1000 | "engines": { 1001 | "node": ">=4.0.0" 1002 | } 1003 | }, 1004 | "node_modules/eslint-scope": { 1005 | "version": "7.2.2", 1006 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", 1007 | "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", 1008 | "dev": true, 1009 | "license": "BSD-2-Clause", 1010 | "peer": true, 1011 | "dependencies": { 1012 | "esrecurse": "^4.3.0", 1013 | "estraverse": "^5.2.0" 1014 | }, 1015 | "engines": { 1016 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1017 | }, 1018 | "funding": { 1019 | "url": "https://opencollective.com/eslint" 1020 | } 1021 | }, 1022 | "node_modules/eslint-utils": { 1023 | "version": "3.0.0", 1024 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1025 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1026 | "dev": true, 1027 | "license": "MIT", 1028 | "dependencies": { 1029 | "eslint-visitor-keys": "^2.0.0" 1030 | }, 1031 | "engines": { 1032 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1033 | }, 1034 | "funding": { 1035 | "url": "https://github.com/sponsors/mysticatea" 1036 | }, 1037 | "peerDependencies": { 1038 | "eslint": ">=5" 1039 | } 1040 | }, 1041 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1042 | "version": "2.1.0", 1043 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1044 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1045 | "dev": true, 1046 | "license": "Apache-2.0", 1047 | "engines": { 1048 | "node": ">=10" 1049 | } 1050 | }, 1051 | "node_modules/eslint-visitor-keys": { 1052 | "version": "3.4.3", 1053 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 1054 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 1055 | "dev": true, 1056 | "license": "Apache-2.0", 1057 | "peer": true, 1058 | "engines": { 1059 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1060 | }, 1061 | "funding": { 1062 | "url": "https://opencollective.com/eslint" 1063 | } 1064 | }, 1065 | "node_modules/espree": { 1066 | "version": "9.6.1", 1067 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", 1068 | "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", 1069 | "dev": true, 1070 | "license": "BSD-2-Clause", 1071 | "peer": true, 1072 | "dependencies": { 1073 | "acorn": "^8.9.0", 1074 | "acorn-jsx": "^5.3.2", 1075 | "eslint-visitor-keys": "^3.4.1" 1076 | }, 1077 | "engines": { 1078 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1079 | }, 1080 | "funding": { 1081 | "url": "https://opencollective.com/eslint" 1082 | } 1083 | }, 1084 | "node_modules/esquery": { 1085 | "version": "1.6.0", 1086 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", 1087 | "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", 1088 | "dev": true, 1089 | "license": "BSD-3-Clause", 1090 | "peer": true, 1091 | "dependencies": { 1092 | "estraverse": "^5.1.0" 1093 | }, 1094 | "engines": { 1095 | "node": ">=0.10" 1096 | } 1097 | }, 1098 | "node_modules/esrecurse": { 1099 | "version": "4.3.0", 1100 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1101 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1102 | "dev": true, 1103 | "license": "BSD-2-Clause", 1104 | "peer": true, 1105 | "dependencies": { 1106 | "estraverse": "^5.2.0" 1107 | }, 1108 | "engines": { 1109 | "node": ">=4.0" 1110 | } 1111 | }, 1112 | "node_modules/estraverse": { 1113 | "version": "5.3.0", 1114 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1115 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1116 | "dev": true, 1117 | "license": "BSD-2-Clause", 1118 | "peer": true, 1119 | "engines": { 1120 | "node": ">=4.0" 1121 | } 1122 | }, 1123 | "node_modules/esutils": { 1124 | "version": "2.0.3", 1125 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1126 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1127 | "dev": true, 1128 | "license": "BSD-2-Clause", 1129 | "peer": true, 1130 | "engines": { 1131 | "node": ">=0.10.0" 1132 | } 1133 | }, 1134 | "node_modules/fast-deep-equal": { 1135 | "version": "3.1.3", 1136 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1137 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1138 | "dev": true, 1139 | "license": "MIT", 1140 | "peer": true 1141 | }, 1142 | "node_modules/fast-fifo": { 1143 | "version": "1.3.2", 1144 | "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", 1145 | "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", 1146 | "dev": true, 1147 | "license": "MIT" 1148 | }, 1149 | "node_modules/fast-json-stable-stringify": { 1150 | "version": "2.1.0", 1151 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1152 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1153 | "dev": true, 1154 | "license": "MIT", 1155 | "peer": true 1156 | }, 1157 | "node_modules/fast-levenshtein": { 1158 | "version": "2.0.6", 1159 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1160 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1161 | "dev": true, 1162 | "license": "MIT", 1163 | "peer": true 1164 | }, 1165 | "node_modules/fastq": { 1166 | "version": "1.17.1", 1167 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 1168 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 1169 | "dev": true, 1170 | "license": "ISC", 1171 | "peer": true, 1172 | "dependencies": { 1173 | "reusify": "^1.0.4" 1174 | } 1175 | }, 1176 | "node_modules/fecha": { 1177 | "version": "4.2.3", 1178 | "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", 1179 | "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==", 1180 | "license": "MIT" 1181 | }, 1182 | "node_modules/file-entry-cache": { 1183 | "version": "6.0.1", 1184 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1185 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1186 | "dev": true, 1187 | "license": "MIT", 1188 | "peer": true, 1189 | "dependencies": { 1190 | "flat-cache": "^3.0.4" 1191 | }, 1192 | "engines": { 1193 | "node": "^10.12.0 || >=12.0.0" 1194 | } 1195 | }, 1196 | "node_modules/fill-range": { 1197 | "version": "7.1.1", 1198 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 1199 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1200 | "dev": true, 1201 | "license": "MIT", 1202 | "dependencies": { 1203 | "to-regex-range": "^5.0.1" 1204 | }, 1205 | "engines": { 1206 | "node": ">=8" 1207 | } 1208 | }, 1209 | "node_modules/find-cache-dir": { 1210 | "version": "3.3.2", 1211 | "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", 1212 | "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", 1213 | "dev": true, 1214 | "license": "MIT", 1215 | "dependencies": { 1216 | "commondir": "^1.0.1", 1217 | "make-dir": "^3.0.2", 1218 | "pkg-dir": "^4.1.0" 1219 | }, 1220 | "engines": { 1221 | "node": ">=8" 1222 | }, 1223 | "funding": { 1224 | "url": "https://github.com/avajs/find-cache-dir?sponsor=1" 1225 | } 1226 | }, 1227 | "node_modules/find-up": { 1228 | "version": "5.0.0", 1229 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1230 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1231 | "dev": true, 1232 | "license": "MIT", 1233 | "dependencies": { 1234 | "locate-path": "^6.0.0", 1235 | "path-exists": "^4.0.0" 1236 | }, 1237 | "engines": { 1238 | "node": ">=10" 1239 | }, 1240 | "funding": { 1241 | "url": "https://github.com/sponsors/sindresorhus" 1242 | } 1243 | }, 1244 | "node_modules/flat": { 1245 | "version": "5.0.2", 1246 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 1247 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 1248 | "dev": true, 1249 | "license": "BSD-3-Clause", 1250 | "bin": { 1251 | "flat": "cli.js" 1252 | } 1253 | }, 1254 | "node_modules/flat-cache": { 1255 | "version": "3.2.0", 1256 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", 1257 | "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", 1258 | "dev": true, 1259 | "license": "MIT", 1260 | "peer": true, 1261 | "dependencies": { 1262 | "flatted": "^3.2.9", 1263 | "keyv": "^4.5.3", 1264 | "rimraf": "^3.0.2" 1265 | }, 1266 | "engines": { 1267 | "node": "^10.12.0 || >=12.0.0" 1268 | } 1269 | }, 1270 | "node_modules/flatted": { 1271 | "version": "3.3.1", 1272 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", 1273 | "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", 1274 | "dev": true, 1275 | "license": "ISC", 1276 | "peer": true 1277 | }, 1278 | "node_modules/fn.name": { 1279 | "version": "1.1.0", 1280 | "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", 1281 | "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==", 1282 | "dev": true, 1283 | "license": "MIT" 1284 | }, 1285 | "node_modules/follow-redirects": { 1286 | "version": "1.15.9", 1287 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", 1288 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", 1289 | "dev": true, 1290 | "funding": [ 1291 | { 1292 | "type": "individual", 1293 | "url": "https://github.com/sponsors/RubenVerborgh" 1294 | } 1295 | ], 1296 | "license": "MIT", 1297 | "engines": { 1298 | "node": ">=4.0" 1299 | }, 1300 | "peerDependenciesMeta": { 1301 | "debug": { 1302 | "optional": true 1303 | } 1304 | } 1305 | }, 1306 | "node_modules/fs.realpath": { 1307 | "version": "1.0.0", 1308 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1309 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1310 | "dev": true, 1311 | "license": "ISC" 1312 | }, 1313 | "node_modules/fsevents": { 1314 | "version": "2.3.3", 1315 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1316 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1317 | "dev": true, 1318 | "hasInstallScript": true, 1319 | "license": "MIT", 1320 | "optional": true, 1321 | "os": [ 1322 | "darwin" 1323 | ], 1324 | "engines": { 1325 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1326 | } 1327 | }, 1328 | "node_modules/get-caller-file": { 1329 | "version": "2.0.5", 1330 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1331 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1332 | "dev": true, 1333 | "license": "ISC", 1334 | "engines": { 1335 | "node": "6.* || 8.* || >= 10.*" 1336 | } 1337 | }, 1338 | "node_modules/glob": { 1339 | "version": "7.2.3", 1340 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1341 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1342 | "deprecated": "Glob versions prior to v9 are no longer supported", 1343 | "dev": true, 1344 | "license": "ISC", 1345 | "dependencies": { 1346 | "fs.realpath": "^1.0.0", 1347 | "inflight": "^1.0.4", 1348 | "inherits": "2", 1349 | "minimatch": "^3.1.1", 1350 | "once": "^1.3.0", 1351 | "path-is-absolute": "^1.0.0" 1352 | }, 1353 | "engines": { 1354 | "node": "*" 1355 | }, 1356 | "funding": { 1357 | "url": "https://github.com/sponsors/isaacs" 1358 | } 1359 | }, 1360 | "node_modules/glob-parent": { 1361 | "version": "6.0.2", 1362 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1363 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1364 | "dev": true, 1365 | "license": "ISC", 1366 | "peer": true, 1367 | "dependencies": { 1368 | "is-glob": "^4.0.3" 1369 | }, 1370 | "engines": { 1371 | "node": ">=10.13.0" 1372 | } 1373 | }, 1374 | "node_modules/globals": { 1375 | "version": "13.24.0", 1376 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", 1377 | "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", 1378 | "dev": true, 1379 | "license": "MIT", 1380 | "dependencies": { 1381 | "type-fest": "^0.20.2" 1382 | }, 1383 | "engines": { 1384 | "node": ">=8" 1385 | }, 1386 | "funding": { 1387 | "url": "https://github.com/sponsors/sindresorhus" 1388 | } 1389 | }, 1390 | "node_modules/graphemer": { 1391 | "version": "1.4.0", 1392 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1393 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1394 | "dev": true, 1395 | "license": "MIT", 1396 | "peer": true 1397 | }, 1398 | "node_modules/has-flag": { 1399 | "version": "4.0.0", 1400 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1401 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1402 | "dev": true, 1403 | "license": "MIT", 1404 | "engines": { 1405 | "node": ">=8" 1406 | } 1407 | }, 1408 | "node_modules/he": { 1409 | "version": "1.2.0", 1410 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1411 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1412 | "dev": true, 1413 | "license": "MIT", 1414 | "bin": { 1415 | "he": "bin/he" 1416 | } 1417 | }, 1418 | "node_modules/https-proxy-agent": { 1419 | "version": "7.0.5", 1420 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", 1421 | "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", 1422 | "dev": true, 1423 | "license": "MIT", 1424 | "dependencies": { 1425 | "agent-base": "^7.0.2", 1426 | "debug": "4" 1427 | }, 1428 | "engines": { 1429 | "node": ">= 14" 1430 | } 1431 | }, 1432 | "node_modules/ignore": { 1433 | "version": "5.3.2", 1434 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", 1435 | "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", 1436 | "dev": true, 1437 | "license": "MIT", 1438 | "peer": true, 1439 | "engines": { 1440 | "node": ">= 4" 1441 | } 1442 | }, 1443 | "node_modules/import-fresh": { 1444 | "version": "3.3.0", 1445 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1446 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1447 | "dev": true, 1448 | "license": "MIT", 1449 | "peer": true, 1450 | "dependencies": { 1451 | "parent-module": "^1.0.0", 1452 | "resolve-from": "^4.0.0" 1453 | }, 1454 | "engines": { 1455 | "node": ">=6" 1456 | }, 1457 | "funding": { 1458 | "url": "https://github.com/sponsors/sindresorhus" 1459 | } 1460 | }, 1461 | "node_modules/imurmurhash": { 1462 | "version": "0.1.4", 1463 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1464 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1465 | "dev": true, 1466 | "license": "MIT", 1467 | "peer": true, 1468 | "engines": { 1469 | "node": ">=0.8.19" 1470 | } 1471 | }, 1472 | "node_modules/inflight": { 1473 | "version": "1.0.6", 1474 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1475 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1476 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 1477 | "dev": true, 1478 | "license": "ISC", 1479 | "dependencies": { 1480 | "once": "^1.3.0", 1481 | "wrappy": "1" 1482 | } 1483 | }, 1484 | "node_modules/inherits": { 1485 | "version": "2.0.4", 1486 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1487 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1488 | "license": "ISC" 1489 | }, 1490 | "node_modules/ip": { 1491 | "version": "2.0.1", 1492 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", 1493 | "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==", 1494 | "dev": true, 1495 | "license": "MIT" 1496 | }, 1497 | "node_modules/ip-address": { 1498 | "version": "9.0.5", 1499 | "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", 1500 | "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", 1501 | "devOptional": true, 1502 | "license": "MIT", 1503 | "dependencies": { 1504 | "jsbn": "1.1.0", 1505 | "sprintf-js": "^1.1.3" 1506 | }, 1507 | "engines": { 1508 | "node": ">= 12" 1509 | } 1510 | }, 1511 | "node_modules/is-arrayish": { 1512 | "version": "0.3.2", 1513 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", 1514 | "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", 1515 | "dev": true, 1516 | "license": "MIT" 1517 | }, 1518 | "node_modules/is-binary-path": { 1519 | "version": "2.1.0", 1520 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1521 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1522 | "dev": true, 1523 | "license": "MIT", 1524 | "dependencies": { 1525 | "binary-extensions": "^2.0.0" 1526 | }, 1527 | "engines": { 1528 | "node": ">=8" 1529 | } 1530 | }, 1531 | "node_modules/is-extglob": { 1532 | "version": "2.1.1", 1533 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1534 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1535 | "dev": true, 1536 | "license": "MIT", 1537 | "engines": { 1538 | "node": ">=0.10.0" 1539 | } 1540 | }, 1541 | "node_modules/is-fullwidth-code-point": { 1542 | "version": "1.0.0", 1543 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1544 | "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", 1545 | "dev": true, 1546 | "license": "MIT", 1547 | "dependencies": { 1548 | "number-is-nan": "^1.0.0" 1549 | }, 1550 | "engines": { 1551 | "node": ">=0.10.0" 1552 | } 1553 | }, 1554 | "node_modules/is-glob": { 1555 | "version": "4.0.3", 1556 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1557 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1558 | "dev": true, 1559 | "license": "MIT", 1560 | "dependencies": { 1561 | "is-extglob": "^2.1.1" 1562 | }, 1563 | "engines": { 1564 | "node": ">=0.10.0" 1565 | } 1566 | }, 1567 | "node_modules/is-number": { 1568 | "version": "7.0.0", 1569 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1570 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1571 | "dev": true, 1572 | "license": "MIT", 1573 | "engines": { 1574 | "node": ">=0.12.0" 1575 | } 1576 | }, 1577 | "node_modules/is-path-inside": { 1578 | "version": "3.0.3", 1579 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1580 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1581 | "dev": true, 1582 | "license": "MIT", 1583 | "peer": true, 1584 | "engines": { 1585 | "node": ">=8" 1586 | } 1587 | }, 1588 | "node_modules/is-plain-obj": { 1589 | "version": "2.1.0", 1590 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1591 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1592 | "dev": true, 1593 | "license": "MIT", 1594 | "engines": { 1595 | "node": ">=8" 1596 | } 1597 | }, 1598 | "node_modules/is-stream": { 1599 | "version": "2.0.1", 1600 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", 1601 | "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", 1602 | "dev": true, 1603 | "license": "MIT", 1604 | "engines": { 1605 | "node": ">=8" 1606 | }, 1607 | "funding": { 1608 | "url": "https://github.com/sponsors/sindresorhus" 1609 | } 1610 | }, 1611 | "node_modules/is-unicode-supported": { 1612 | "version": "0.1.0", 1613 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 1614 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 1615 | "dev": true, 1616 | "license": "MIT", 1617 | "engines": { 1618 | "node": ">=10" 1619 | }, 1620 | "funding": { 1621 | "url": "https://github.com/sponsors/sindresorhus" 1622 | } 1623 | }, 1624 | "node_modules/isexe": { 1625 | "version": "2.0.0", 1626 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1627 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1628 | "dev": true, 1629 | "license": "ISC" 1630 | }, 1631 | "node_modules/js-yaml": { 1632 | "version": "4.1.0", 1633 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1634 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1635 | "dev": true, 1636 | "license": "MIT", 1637 | "dependencies": { 1638 | "argparse": "^2.0.1" 1639 | }, 1640 | "bin": { 1641 | "js-yaml": "bin/js-yaml.js" 1642 | } 1643 | }, 1644 | "node_modules/jsbn": { 1645 | "version": "1.1.0", 1646 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", 1647 | "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", 1648 | "devOptional": true, 1649 | "license": "MIT" 1650 | }, 1651 | "node_modules/json-buffer": { 1652 | "version": "3.0.1", 1653 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1654 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1655 | "dev": true, 1656 | "license": "MIT", 1657 | "peer": true 1658 | }, 1659 | "node_modules/json-schema-traverse": { 1660 | "version": "0.4.1", 1661 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1662 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1663 | "dev": true, 1664 | "license": "MIT", 1665 | "peer": true 1666 | }, 1667 | "node_modules/json-stable-stringify-without-jsonify": { 1668 | "version": "1.0.1", 1669 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1670 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1671 | "dev": true, 1672 | "license": "MIT", 1673 | "peer": true 1674 | }, 1675 | "node_modules/jsonc-parser": { 1676 | "version": "3.3.1", 1677 | "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", 1678 | "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", 1679 | "dev": true, 1680 | "license": "MIT" 1681 | }, 1682 | "node_modules/kareem": { 1683 | "version": "2.6.3", 1684 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.6.3.tgz", 1685 | "integrity": "sha512-C3iHfuGUXK2u8/ipq9LfjFfXFxAZMQJJq7vLS45r3D9Y2xQ/m4S8zaR4zMLFWh9AsNPXmcFfUDhTEO8UIC/V6Q==", 1686 | "dev": true, 1687 | "license": "Apache-2.0", 1688 | "engines": { 1689 | "node": ">=12.0.0" 1690 | } 1691 | }, 1692 | "node_modules/keyv": { 1693 | "version": "4.5.4", 1694 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1695 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1696 | "dev": true, 1697 | "license": "MIT", 1698 | "peer": true, 1699 | "dependencies": { 1700 | "json-buffer": "3.0.1" 1701 | } 1702 | }, 1703 | "node_modules/kuler": { 1704 | "version": "1.0.1", 1705 | "resolved": "https://registry.npmjs.org/kuler/-/kuler-1.0.1.tgz", 1706 | "integrity": "sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ==", 1707 | "dev": true, 1708 | "license": "MIT", 1709 | "dependencies": { 1710 | "colornames": "^1.1.1" 1711 | } 1712 | }, 1713 | "node_modules/levn": { 1714 | "version": "0.4.1", 1715 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1716 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1717 | "dev": true, 1718 | "license": "MIT", 1719 | "peer": true, 1720 | "dependencies": { 1721 | "prelude-ls": "^1.2.1", 1722 | "type-check": "~0.4.0" 1723 | }, 1724 | "engines": { 1725 | "node": ">= 0.8.0" 1726 | } 1727 | }, 1728 | "node_modules/locate-path": { 1729 | "version": "6.0.0", 1730 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1731 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1732 | "dev": true, 1733 | "license": "MIT", 1734 | "dependencies": { 1735 | "p-locate": "^5.0.0" 1736 | }, 1737 | "engines": { 1738 | "node": ">=10" 1739 | }, 1740 | "funding": { 1741 | "url": "https://github.com/sponsors/sindresorhus" 1742 | } 1743 | }, 1744 | "node_modules/lodash": { 1745 | "version": "4.17.21", 1746 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1747 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1748 | "dev": true, 1749 | "license": "MIT" 1750 | }, 1751 | "node_modules/lodash.merge": { 1752 | "version": "4.6.2", 1753 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1754 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1755 | "dev": true, 1756 | "license": "MIT", 1757 | "peer": true 1758 | }, 1759 | "node_modules/log-symbols": { 1760 | "version": "4.1.0", 1761 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 1762 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 1763 | "dev": true, 1764 | "license": "MIT", 1765 | "dependencies": { 1766 | "chalk": "^4.1.0", 1767 | "is-unicode-supported": "^0.1.0" 1768 | }, 1769 | "engines": { 1770 | "node": ">=10" 1771 | }, 1772 | "funding": { 1773 | "url": "https://github.com/sponsors/sindresorhus" 1774 | } 1775 | }, 1776 | "node_modules/logform": { 1777 | "version": "2.6.1", 1778 | "resolved": "https://registry.npmjs.org/logform/-/logform-2.6.1.tgz", 1779 | "integrity": "sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==", 1780 | "license": "MIT", 1781 | "dependencies": { 1782 | "@colors/colors": "1.6.0", 1783 | "@types/triple-beam": "^1.3.2", 1784 | "fecha": "^4.2.0", 1785 | "ms": "^2.1.1", 1786 | "safe-stable-stringify": "^2.3.1", 1787 | "triple-beam": "^1.3.0" 1788 | }, 1789 | "engines": { 1790 | "node": ">= 12.0.0" 1791 | } 1792 | }, 1793 | "node_modules/make-dir": { 1794 | "version": "3.1.0", 1795 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 1796 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 1797 | "dev": true, 1798 | "license": "MIT", 1799 | "dependencies": { 1800 | "semver": "^6.0.0" 1801 | }, 1802 | "engines": { 1803 | "node": ">=8" 1804 | }, 1805 | "funding": { 1806 | "url": "https://github.com/sponsors/sindresorhus" 1807 | } 1808 | }, 1809 | "node_modules/make-dir/node_modules/semver": { 1810 | "version": "6.3.1", 1811 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", 1812 | "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", 1813 | "dev": true, 1814 | "license": "ISC", 1815 | "bin": { 1816 | "semver": "bin/semver.js" 1817 | } 1818 | }, 1819 | "node_modules/memory-pager": { 1820 | "version": "1.5.0", 1821 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 1822 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 1823 | "license": "MIT" 1824 | }, 1825 | "node_modules/minimatch": { 1826 | "version": "3.1.2", 1827 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1828 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1829 | "dev": true, 1830 | "license": "ISC", 1831 | "dependencies": { 1832 | "brace-expansion": "^1.1.7" 1833 | }, 1834 | "engines": { 1835 | "node": "*" 1836 | } 1837 | }, 1838 | "node_modules/mocha": { 1839 | "version": "10.7.3", 1840 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.7.3.tgz", 1841 | "integrity": "sha512-uQWxAu44wwiACGqjbPYmjo7Lg8sFrS3dQe7PP2FQI+woptP4vZXSMcfMyFL/e1yFEeEpV4RtyTpZROOKmxis+A==", 1842 | "dev": true, 1843 | "license": "MIT", 1844 | "dependencies": { 1845 | "ansi-colors": "^4.1.3", 1846 | "browser-stdout": "^1.3.1", 1847 | "chokidar": "^3.5.3", 1848 | "debug": "^4.3.5", 1849 | "diff": "^5.2.0", 1850 | "escape-string-regexp": "^4.0.0", 1851 | "find-up": "^5.0.0", 1852 | "glob": "^8.1.0", 1853 | "he": "^1.2.0", 1854 | "js-yaml": "^4.1.0", 1855 | "log-symbols": "^4.1.0", 1856 | "minimatch": "^5.1.6", 1857 | "ms": "^2.1.3", 1858 | "serialize-javascript": "^6.0.2", 1859 | "strip-json-comments": "^3.1.1", 1860 | "supports-color": "^8.1.1", 1861 | "workerpool": "^6.5.1", 1862 | "yargs": "^16.2.0", 1863 | "yargs-parser": "^20.2.9", 1864 | "yargs-unparser": "^2.0.0" 1865 | }, 1866 | "bin": { 1867 | "_mocha": "bin/_mocha", 1868 | "mocha": "bin/mocha.js" 1869 | }, 1870 | "engines": { 1871 | "node": ">= 14.0.0" 1872 | } 1873 | }, 1874 | "node_modules/mocha/node_modules/brace-expansion": { 1875 | "version": "2.0.1", 1876 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1877 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1878 | "dev": true, 1879 | "license": "MIT", 1880 | "dependencies": { 1881 | "balanced-match": "^1.0.0" 1882 | } 1883 | }, 1884 | "node_modules/mocha/node_modules/glob": { 1885 | "version": "8.1.0", 1886 | "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", 1887 | "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", 1888 | "deprecated": "Glob versions prior to v9 are no longer supported", 1889 | "dev": true, 1890 | "license": "ISC", 1891 | "dependencies": { 1892 | "fs.realpath": "^1.0.0", 1893 | "inflight": "^1.0.4", 1894 | "inherits": "2", 1895 | "minimatch": "^5.0.1", 1896 | "once": "^1.3.0" 1897 | }, 1898 | "engines": { 1899 | "node": ">=12" 1900 | }, 1901 | "funding": { 1902 | "url": "https://github.com/sponsors/isaacs" 1903 | } 1904 | }, 1905 | "node_modules/mocha/node_modules/minimatch": { 1906 | "version": "5.1.6", 1907 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 1908 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 1909 | "dev": true, 1910 | "license": "ISC", 1911 | "dependencies": { 1912 | "brace-expansion": "^2.0.1" 1913 | }, 1914 | "engines": { 1915 | "node": ">=10" 1916 | } 1917 | }, 1918 | "node_modules/mocha/node_modules/supports-color": { 1919 | "version": "8.1.1", 1920 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1921 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1922 | "dev": true, 1923 | "license": "MIT", 1924 | "dependencies": { 1925 | "has-flag": "^4.0.0" 1926 | }, 1927 | "engines": { 1928 | "node": ">=10" 1929 | }, 1930 | "funding": { 1931 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1932 | } 1933 | }, 1934 | "node_modules/mongodb": { 1935 | "version": "6.9.0", 1936 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.9.0.tgz", 1937 | "integrity": "sha512-UMopBVx1LmEUbW/QE0Hw18u583PEDVQmUmVzzBRH0o/xtE9DBRA5ZYLOjpLIa03i8FXjzvQECJcqoMvCXftTUA==", 1938 | "license": "Apache-2.0", 1939 | "dependencies": { 1940 | "@mongodb-js/saslprep": "^1.1.5", 1941 | "bson": "^6.7.0", 1942 | "mongodb-connection-string-url": "^3.0.0" 1943 | }, 1944 | "engines": { 1945 | "node": ">=16.20.1" 1946 | }, 1947 | "peerDependencies": { 1948 | "@aws-sdk/credential-providers": "^3.188.0", 1949 | "@mongodb-js/zstd": "^1.1.0", 1950 | "gcp-metadata": "^5.2.0", 1951 | "kerberos": "^2.0.1", 1952 | "mongodb-client-encryption": ">=6.0.0 <7", 1953 | "snappy": "^7.2.2", 1954 | "socks": "^2.7.1" 1955 | }, 1956 | "peerDependenciesMeta": { 1957 | "@aws-sdk/credential-providers": { 1958 | "optional": true 1959 | }, 1960 | "@mongodb-js/zstd": { 1961 | "optional": true 1962 | }, 1963 | "gcp-metadata": { 1964 | "optional": true 1965 | }, 1966 | "kerberos": { 1967 | "optional": true 1968 | }, 1969 | "mongodb-client-encryption": { 1970 | "optional": true 1971 | }, 1972 | "snappy": { 1973 | "optional": true 1974 | }, 1975 | "socks": { 1976 | "optional": true 1977 | } 1978 | } 1979 | }, 1980 | "node_modules/mongodb-connection-string-url": { 1981 | "version": "3.0.1", 1982 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz", 1983 | "integrity": "sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==", 1984 | "license": "Apache-2.0", 1985 | "dependencies": { 1986 | "@types/whatwg-url": "^11.0.2", 1987 | "whatwg-url": "^13.0.0" 1988 | } 1989 | }, 1990 | "node_modules/mongodb-memory-server": { 1991 | "version": "9.4.1", 1992 | "resolved": "https://registry.npmjs.org/mongodb-memory-server/-/mongodb-memory-server-9.4.1.tgz", 1993 | "integrity": "sha512-qONlW4sKPbtk9pqFnlPn7R73G3Q4TuebJJ5pHfoiKTqVJquojQ8xWmkCyz+/YnpA2vYBo/jib+nXvjfKwh7cjg==", 1994 | "dev": true, 1995 | "hasInstallScript": true, 1996 | "license": "MIT", 1997 | "dependencies": { 1998 | "mongodb-memory-server-core": "9.4.1", 1999 | "tslib": "^2.6.3" 2000 | }, 2001 | "engines": { 2002 | "node": ">=14.20.1" 2003 | } 2004 | }, 2005 | "node_modules/mongodb-memory-server-core": { 2006 | "version": "9.4.1", 2007 | "resolved": "https://registry.npmjs.org/mongodb-memory-server-core/-/mongodb-memory-server-core-9.4.1.tgz", 2008 | "integrity": "sha512-lobapXaysH64zrn521NTkmqHc3krSPUFkuuZ8A/BmQV8ON7p2SzAEvpoJPDXIeJkxIzYw06dYL6Gn5OcZdEElA==", 2009 | "dev": true, 2010 | "license": "MIT", 2011 | "dependencies": { 2012 | "async-mutex": "^0.4.1", 2013 | "camelcase": "^6.3.0", 2014 | "debug": "^4.3.5", 2015 | "find-cache-dir": "^3.3.2", 2016 | "follow-redirects": "^1.15.6", 2017 | "https-proxy-agent": "^7.0.4", 2018 | "mongodb": "^5.9.2", 2019 | "new-find-package-json": "^2.0.0", 2020 | "semver": "^7.6.2", 2021 | "tar-stream": "^3.1.7", 2022 | "tslib": "^2.6.3", 2023 | "yauzl": "^3.1.3" 2024 | }, 2025 | "engines": { 2026 | "node": ">=14.20.1" 2027 | } 2028 | }, 2029 | "node_modules/mongodb-memory-server-core/node_modules/@types/whatwg-url": { 2030 | "version": "8.2.2", 2031 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", 2032 | "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", 2033 | "dev": true, 2034 | "license": "MIT", 2035 | "dependencies": { 2036 | "@types/node": "*", 2037 | "@types/webidl-conversions": "*" 2038 | } 2039 | }, 2040 | "node_modules/mongodb-memory-server-core/node_modules/bson": { 2041 | "version": "5.5.1", 2042 | "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.1.tgz", 2043 | "integrity": "sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==", 2044 | "dev": true, 2045 | "license": "Apache-2.0", 2046 | "engines": { 2047 | "node": ">=14.20.1" 2048 | } 2049 | }, 2050 | "node_modules/mongodb-memory-server-core/node_modules/mongodb": { 2051 | "version": "5.9.2", 2052 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.2.tgz", 2053 | "integrity": "sha512-H60HecKO4Bc+7dhOv4sJlgvenK4fQNqqUIlXxZYQNbfEWSALGAwGoyJd/0Qwk4TttFXUOHJ2ZJQe/52ScaUwtQ==", 2054 | "dev": true, 2055 | "license": "Apache-2.0", 2056 | "dependencies": { 2057 | "bson": "^5.5.0", 2058 | "mongodb-connection-string-url": "^2.6.0", 2059 | "socks": "^2.7.1" 2060 | }, 2061 | "engines": { 2062 | "node": ">=14.20.1" 2063 | }, 2064 | "optionalDependencies": { 2065 | "@mongodb-js/saslprep": "^1.1.0" 2066 | }, 2067 | "peerDependencies": { 2068 | "@aws-sdk/credential-providers": "^3.188.0", 2069 | "@mongodb-js/zstd": "^1.0.0", 2070 | "kerberos": "^1.0.0 || ^2.0.0", 2071 | "mongodb-client-encryption": ">=2.3.0 <3", 2072 | "snappy": "^7.2.2" 2073 | }, 2074 | "peerDependenciesMeta": { 2075 | "@aws-sdk/credential-providers": { 2076 | "optional": true 2077 | }, 2078 | "@mongodb-js/zstd": { 2079 | "optional": true 2080 | }, 2081 | "kerberos": { 2082 | "optional": true 2083 | }, 2084 | "mongodb-client-encryption": { 2085 | "optional": true 2086 | }, 2087 | "snappy": { 2088 | "optional": true 2089 | } 2090 | } 2091 | }, 2092 | "node_modules/mongodb-memory-server-core/node_modules/mongodb-connection-string-url": { 2093 | "version": "2.6.0", 2094 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", 2095 | "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", 2096 | "dev": true, 2097 | "license": "Apache-2.0", 2098 | "dependencies": { 2099 | "@types/whatwg-url": "^8.2.1", 2100 | "whatwg-url": "^11.0.0" 2101 | } 2102 | }, 2103 | "node_modules/mongodb-memory-server-core/node_modules/tr46": { 2104 | "version": "3.0.0", 2105 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", 2106 | "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", 2107 | "dev": true, 2108 | "license": "MIT", 2109 | "dependencies": { 2110 | "punycode": "^2.1.1" 2111 | }, 2112 | "engines": { 2113 | "node": ">=12" 2114 | } 2115 | }, 2116 | "node_modules/mongodb-memory-server-core/node_modules/whatwg-url": { 2117 | "version": "11.0.0", 2118 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", 2119 | "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", 2120 | "dev": true, 2121 | "license": "MIT", 2122 | "dependencies": { 2123 | "tr46": "^3.0.0", 2124 | "webidl-conversions": "^7.0.0" 2125 | }, 2126 | "engines": { 2127 | "node": ">=12" 2128 | } 2129 | }, 2130 | "node_modules/mongoose": { 2131 | "version": "8.6.2", 2132 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-8.6.2.tgz", 2133 | "integrity": "sha512-ErbDVvuUzUfyQpXvJ6sXznmZDICD8r6wIsa0VKjJtB6/LZncqwUn5Um040G1BaNo6L3Jz+xItLSwT0wZmSmUaQ==", 2134 | "dev": true, 2135 | "license": "MIT", 2136 | "dependencies": { 2137 | "bson": "^6.7.0", 2138 | "kareem": "2.6.3", 2139 | "mongodb": "6.8.0", 2140 | "mpath": "0.9.0", 2141 | "mquery": "5.0.0", 2142 | "ms": "2.1.3", 2143 | "sift": "17.1.3" 2144 | }, 2145 | "engines": { 2146 | "node": ">=16.20.1" 2147 | }, 2148 | "funding": { 2149 | "type": "opencollective", 2150 | "url": "https://opencollective.com/mongoose" 2151 | } 2152 | }, 2153 | "node_modules/mongoose/node_modules/mongodb": { 2154 | "version": "6.8.0", 2155 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.8.0.tgz", 2156 | "integrity": "sha512-HGQ9NWDle5WvwMnrvUxsFYPd3JEbqD3RgABHBQRuoCEND0qzhsd0iH5ypHsf1eJ+sXmvmyKpP+FLOKY8Il7jMw==", 2157 | "dev": true, 2158 | "license": "Apache-2.0", 2159 | "dependencies": { 2160 | "@mongodb-js/saslprep": "^1.1.5", 2161 | "bson": "^6.7.0", 2162 | "mongodb-connection-string-url": "^3.0.0" 2163 | }, 2164 | "engines": { 2165 | "node": ">=16.20.1" 2166 | }, 2167 | "peerDependencies": { 2168 | "@aws-sdk/credential-providers": "^3.188.0", 2169 | "@mongodb-js/zstd": "^1.1.0", 2170 | "gcp-metadata": "^5.2.0", 2171 | "kerberos": "^2.0.1", 2172 | "mongodb-client-encryption": ">=6.0.0 <7", 2173 | "snappy": "^7.2.2", 2174 | "socks": "^2.7.1" 2175 | }, 2176 | "peerDependenciesMeta": { 2177 | "@aws-sdk/credential-providers": { 2178 | "optional": true 2179 | }, 2180 | "@mongodb-js/zstd": { 2181 | "optional": true 2182 | }, 2183 | "gcp-metadata": { 2184 | "optional": true 2185 | }, 2186 | "kerberos": { 2187 | "optional": true 2188 | }, 2189 | "mongodb-client-encryption": { 2190 | "optional": true 2191 | }, 2192 | "snappy": { 2193 | "optional": true 2194 | }, 2195 | "socks": { 2196 | "optional": true 2197 | } 2198 | } 2199 | }, 2200 | "node_modules/mpath": { 2201 | "version": "0.9.0", 2202 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", 2203 | "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", 2204 | "dev": true, 2205 | "license": "MIT", 2206 | "engines": { 2207 | "node": ">=4.0.0" 2208 | } 2209 | }, 2210 | "node_modules/mquery": { 2211 | "version": "5.0.0", 2212 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-5.0.0.tgz", 2213 | "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", 2214 | "dev": true, 2215 | "license": "MIT", 2216 | "dependencies": { 2217 | "debug": "4.x" 2218 | }, 2219 | "engines": { 2220 | "node": ">=14.0.0" 2221 | } 2222 | }, 2223 | "node_modules/ms": { 2224 | "version": "2.1.3", 2225 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2226 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2227 | "license": "MIT" 2228 | }, 2229 | "node_modules/natural-compare": { 2230 | "version": "1.4.0", 2231 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 2232 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 2233 | "dev": true, 2234 | "license": "MIT", 2235 | "peer": true 2236 | }, 2237 | "node_modules/new-find-package-json": { 2238 | "version": "2.0.0", 2239 | "resolved": "https://registry.npmjs.org/new-find-package-json/-/new-find-package-json-2.0.0.tgz", 2240 | "integrity": "sha512-lDcBsjBSMlj3LXH2v/FW3txlh2pYTjmbOXPYJD93HI5EwuLzI11tdHSIpUMmfq/IOsldj4Ps8M8flhm+pCK4Ew==", 2241 | "dev": true, 2242 | "license": "MIT", 2243 | "dependencies": { 2244 | "debug": "^4.3.4" 2245 | }, 2246 | "engines": { 2247 | "node": ">=12.22.0" 2248 | } 2249 | }, 2250 | "node_modules/normalize-path": { 2251 | "version": "3.0.0", 2252 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 2253 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 2254 | "dev": true, 2255 | "license": "MIT", 2256 | "engines": { 2257 | "node": ">=0.10.0" 2258 | } 2259 | }, 2260 | "node_modules/number-is-nan": { 2261 | "version": "1.0.1", 2262 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 2263 | "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", 2264 | "dev": true, 2265 | "license": "MIT", 2266 | "engines": { 2267 | "node": ">=0.10.0" 2268 | } 2269 | }, 2270 | "node_modules/once": { 2271 | "version": "1.4.0", 2272 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2273 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 2274 | "dev": true, 2275 | "license": "ISC", 2276 | "dependencies": { 2277 | "wrappy": "1" 2278 | } 2279 | }, 2280 | "node_modules/one-time": { 2281 | "version": "1.0.0", 2282 | "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", 2283 | "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", 2284 | "dev": true, 2285 | "license": "MIT", 2286 | "dependencies": { 2287 | "fn.name": "1.x.x" 2288 | } 2289 | }, 2290 | "node_modules/optionator": { 2291 | "version": "0.9.4", 2292 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", 2293 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 2294 | "dev": true, 2295 | "license": "MIT", 2296 | "peer": true, 2297 | "dependencies": { 2298 | "deep-is": "^0.1.3", 2299 | "fast-levenshtein": "^2.0.6", 2300 | "levn": "^0.4.1", 2301 | "prelude-ls": "^1.2.1", 2302 | "type-check": "^0.4.0", 2303 | "word-wrap": "^1.2.5" 2304 | }, 2305 | "engines": { 2306 | "node": ">= 0.8.0" 2307 | } 2308 | }, 2309 | "node_modules/p-limit": { 2310 | "version": "3.1.0", 2311 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2312 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2313 | "dev": true, 2314 | "license": "MIT", 2315 | "dependencies": { 2316 | "yocto-queue": "^0.1.0" 2317 | }, 2318 | "engines": { 2319 | "node": ">=10" 2320 | }, 2321 | "funding": { 2322 | "url": "https://github.com/sponsors/sindresorhus" 2323 | } 2324 | }, 2325 | "node_modules/p-locate": { 2326 | "version": "5.0.0", 2327 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2328 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2329 | "dev": true, 2330 | "license": "MIT", 2331 | "dependencies": { 2332 | "p-limit": "^3.0.2" 2333 | }, 2334 | "engines": { 2335 | "node": ">=10" 2336 | }, 2337 | "funding": { 2338 | "url": "https://github.com/sponsors/sindresorhus" 2339 | } 2340 | }, 2341 | "node_modules/p-try": { 2342 | "version": "2.2.0", 2343 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 2344 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 2345 | "dev": true, 2346 | "license": "MIT", 2347 | "engines": { 2348 | "node": ">=6" 2349 | } 2350 | }, 2351 | "node_modules/parent-module": { 2352 | "version": "1.0.1", 2353 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 2354 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 2355 | "dev": true, 2356 | "license": "MIT", 2357 | "peer": true, 2358 | "dependencies": { 2359 | "callsites": "^3.0.0" 2360 | }, 2361 | "engines": { 2362 | "node": ">=6" 2363 | } 2364 | }, 2365 | "node_modules/path-exists": { 2366 | "version": "4.0.0", 2367 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2368 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2369 | "dev": true, 2370 | "license": "MIT", 2371 | "engines": { 2372 | "node": ">=8" 2373 | } 2374 | }, 2375 | "node_modules/path-is-absolute": { 2376 | "version": "1.0.1", 2377 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2378 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 2379 | "dev": true, 2380 | "license": "MIT", 2381 | "engines": { 2382 | "node": ">=0.10.0" 2383 | } 2384 | }, 2385 | "node_modules/path-key": { 2386 | "version": "3.1.1", 2387 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2388 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2389 | "dev": true, 2390 | "license": "MIT", 2391 | "peer": true, 2392 | "engines": { 2393 | "node": ">=8" 2394 | } 2395 | }, 2396 | "node_modules/pend": { 2397 | "version": "1.2.0", 2398 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 2399 | "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", 2400 | "dev": true, 2401 | "license": "MIT" 2402 | }, 2403 | "node_modules/picomatch": { 2404 | "version": "2.3.1", 2405 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2406 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2407 | "dev": true, 2408 | "license": "MIT", 2409 | "engines": { 2410 | "node": ">=8.6" 2411 | }, 2412 | "funding": { 2413 | "url": "https://github.com/sponsors/jonschlinkert" 2414 | } 2415 | }, 2416 | "node_modules/pkg-dir": { 2417 | "version": "4.2.0", 2418 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", 2419 | "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", 2420 | "dev": true, 2421 | "license": "MIT", 2422 | "dependencies": { 2423 | "find-up": "^4.0.0" 2424 | }, 2425 | "engines": { 2426 | "node": ">=8" 2427 | } 2428 | }, 2429 | "node_modules/pkg-dir/node_modules/find-up": { 2430 | "version": "4.1.0", 2431 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 2432 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 2433 | "dev": true, 2434 | "license": "MIT", 2435 | "dependencies": { 2436 | "locate-path": "^5.0.0", 2437 | "path-exists": "^4.0.0" 2438 | }, 2439 | "engines": { 2440 | "node": ">=8" 2441 | } 2442 | }, 2443 | "node_modules/pkg-dir/node_modules/locate-path": { 2444 | "version": "5.0.0", 2445 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 2446 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 2447 | "dev": true, 2448 | "license": "MIT", 2449 | "dependencies": { 2450 | "p-locate": "^4.1.0" 2451 | }, 2452 | "engines": { 2453 | "node": ">=8" 2454 | } 2455 | }, 2456 | "node_modules/pkg-dir/node_modules/p-limit": { 2457 | "version": "2.3.0", 2458 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 2459 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 2460 | "dev": true, 2461 | "license": "MIT", 2462 | "dependencies": { 2463 | "p-try": "^2.0.0" 2464 | }, 2465 | "engines": { 2466 | "node": ">=6" 2467 | }, 2468 | "funding": { 2469 | "url": "https://github.com/sponsors/sindresorhus" 2470 | } 2471 | }, 2472 | "node_modules/pkg-dir/node_modules/p-locate": { 2473 | "version": "4.1.0", 2474 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 2475 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 2476 | "dev": true, 2477 | "license": "MIT", 2478 | "dependencies": { 2479 | "p-limit": "^2.2.0" 2480 | }, 2481 | "engines": { 2482 | "node": ">=8" 2483 | } 2484 | }, 2485 | "node_modules/prelude-ls": { 2486 | "version": "1.2.1", 2487 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2488 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2489 | "dev": true, 2490 | "license": "MIT", 2491 | "peer": true, 2492 | "engines": { 2493 | "node": ">= 0.8.0" 2494 | } 2495 | }, 2496 | "node_modules/punycode": { 2497 | "version": "2.3.1", 2498 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 2499 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 2500 | "license": "MIT", 2501 | "engines": { 2502 | "node": ">=6" 2503 | } 2504 | }, 2505 | "node_modules/queue-microtask": { 2506 | "version": "1.2.3", 2507 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 2508 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 2509 | "dev": true, 2510 | "funding": [ 2511 | { 2512 | "type": "github", 2513 | "url": "https://github.com/sponsors/feross" 2514 | }, 2515 | { 2516 | "type": "patreon", 2517 | "url": "https://www.patreon.com/feross" 2518 | }, 2519 | { 2520 | "type": "consulting", 2521 | "url": "https://feross.org/support" 2522 | } 2523 | ], 2524 | "license": "MIT", 2525 | "peer": true 2526 | }, 2527 | "node_modules/queue-tick": { 2528 | "version": "1.0.1", 2529 | "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", 2530 | "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", 2531 | "dev": true, 2532 | "license": "MIT" 2533 | }, 2534 | "node_modules/rambda": { 2535 | "version": "7.5.0", 2536 | "resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz", 2537 | "integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==", 2538 | "dev": true, 2539 | "license": "MIT" 2540 | }, 2541 | "node_modules/randombytes": { 2542 | "version": "2.1.0", 2543 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 2544 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 2545 | "dev": true, 2546 | "license": "MIT", 2547 | "dependencies": { 2548 | "safe-buffer": "^5.1.0" 2549 | } 2550 | }, 2551 | "node_modules/readable-stream": { 2552 | "version": "3.6.2", 2553 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", 2554 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", 2555 | "license": "MIT", 2556 | "dependencies": { 2557 | "inherits": "^2.0.3", 2558 | "string_decoder": "^1.1.1", 2559 | "util-deprecate": "^1.0.1" 2560 | }, 2561 | "engines": { 2562 | "node": ">= 6" 2563 | } 2564 | }, 2565 | "node_modules/readdirp": { 2566 | "version": "3.6.0", 2567 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 2568 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 2569 | "dev": true, 2570 | "license": "MIT", 2571 | "dependencies": { 2572 | "picomatch": "^2.2.1" 2573 | }, 2574 | "engines": { 2575 | "node": ">=8.10.0" 2576 | } 2577 | }, 2578 | "node_modules/require-directory": { 2579 | "version": "2.1.1", 2580 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2581 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 2582 | "dev": true, 2583 | "license": "MIT", 2584 | "engines": { 2585 | "node": ">=0.10.0" 2586 | } 2587 | }, 2588 | "node_modules/resolve-from": { 2589 | "version": "4.0.0", 2590 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2591 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2592 | "dev": true, 2593 | "license": "MIT", 2594 | "peer": true, 2595 | "engines": { 2596 | "node": ">=4" 2597 | } 2598 | }, 2599 | "node_modules/reusify": { 2600 | "version": "1.0.4", 2601 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 2602 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 2603 | "dev": true, 2604 | "license": "MIT", 2605 | "peer": true, 2606 | "engines": { 2607 | "iojs": ">=1.0.0", 2608 | "node": ">=0.10.0" 2609 | } 2610 | }, 2611 | "node_modules/rimraf": { 2612 | "version": "3.0.2", 2613 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2614 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2615 | "deprecated": "Rimraf versions prior to v4 are no longer supported", 2616 | "dev": true, 2617 | "license": "ISC", 2618 | "peer": true, 2619 | "dependencies": { 2620 | "glob": "^7.1.3" 2621 | }, 2622 | "bin": { 2623 | "rimraf": "bin.js" 2624 | }, 2625 | "funding": { 2626 | "url": "https://github.com/sponsors/isaacs" 2627 | } 2628 | }, 2629 | "node_modules/run-parallel": { 2630 | "version": "1.2.0", 2631 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 2632 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 2633 | "dev": true, 2634 | "funding": [ 2635 | { 2636 | "type": "github", 2637 | "url": "https://github.com/sponsors/feross" 2638 | }, 2639 | { 2640 | "type": "patreon", 2641 | "url": "https://www.patreon.com/feross" 2642 | }, 2643 | { 2644 | "type": "consulting", 2645 | "url": "https://feross.org/support" 2646 | } 2647 | ], 2648 | "license": "MIT", 2649 | "peer": true, 2650 | "dependencies": { 2651 | "queue-microtask": "^1.2.2" 2652 | } 2653 | }, 2654 | "node_modules/safe-buffer": { 2655 | "version": "5.2.1", 2656 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2657 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2658 | "funding": [ 2659 | { 2660 | "type": "github", 2661 | "url": "https://github.com/sponsors/feross" 2662 | }, 2663 | { 2664 | "type": "patreon", 2665 | "url": "https://www.patreon.com/feross" 2666 | }, 2667 | { 2668 | "type": "consulting", 2669 | "url": "https://feross.org/support" 2670 | } 2671 | ], 2672 | "license": "MIT" 2673 | }, 2674 | "node_modules/safe-stable-stringify": { 2675 | "version": "2.5.0", 2676 | "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", 2677 | "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", 2678 | "license": "MIT", 2679 | "engines": { 2680 | "node": ">=10" 2681 | } 2682 | }, 2683 | "node_modules/semver": { 2684 | "version": "7.6.3", 2685 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", 2686 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 2687 | "dev": true, 2688 | "license": "ISC", 2689 | "bin": { 2690 | "semver": "bin/semver.js" 2691 | }, 2692 | "engines": { 2693 | "node": ">=10" 2694 | } 2695 | }, 2696 | "node_modules/serialize-javascript": { 2697 | "version": "6.0.2", 2698 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 2699 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 2700 | "dev": true, 2701 | "license": "BSD-3-Clause", 2702 | "dependencies": { 2703 | "randombytes": "^2.1.0" 2704 | } 2705 | }, 2706 | "node_modules/shebang-command": { 2707 | "version": "2.0.0", 2708 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2709 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2710 | "dev": true, 2711 | "license": "MIT", 2712 | "peer": true, 2713 | "dependencies": { 2714 | "shebang-regex": "^3.0.0" 2715 | }, 2716 | "engines": { 2717 | "node": ">=8" 2718 | } 2719 | }, 2720 | "node_modules/shebang-regex": { 2721 | "version": "3.0.0", 2722 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2723 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2724 | "dev": true, 2725 | "license": "MIT", 2726 | "peer": true, 2727 | "engines": { 2728 | "node": ">=8" 2729 | } 2730 | }, 2731 | "node_modules/sift": { 2732 | "version": "17.1.3", 2733 | "resolved": "https://registry.npmjs.org/sift/-/sift-17.1.3.tgz", 2734 | "integrity": "sha512-Rtlj66/b0ICeFzYTuNvX/EF1igRbbnGSvEyT79McoZa/DeGhMyC5pWKOEsZKnpkqtSeovd5FL/bjHWC3CIIvCQ==", 2735 | "dev": true, 2736 | "license": "MIT" 2737 | }, 2738 | "node_modules/simple-swizzle": { 2739 | "version": "0.2.2", 2740 | "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", 2741 | "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", 2742 | "dev": true, 2743 | "license": "MIT", 2744 | "dependencies": { 2745 | "is-arrayish": "^0.3.1" 2746 | } 2747 | }, 2748 | "node_modules/smart-buffer": { 2749 | "version": "4.2.0", 2750 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", 2751 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", 2752 | "devOptional": true, 2753 | "license": "MIT", 2754 | "engines": { 2755 | "node": ">= 6.0.0", 2756 | "npm": ">= 3.0.0" 2757 | } 2758 | }, 2759 | "node_modules/socks": { 2760 | "version": "2.8.3", 2761 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", 2762 | "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", 2763 | "devOptional": true, 2764 | "license": "MIT", 2765 | "dependencies": { 2766 | "ip-address": "^9.0.5", 2767 | "smart-buffer": "^4.2.0" 2768 | }, 2769 | "engines": { 2770 | "node": ">= 10.0.0", 2771 | "npm": ">= 3.0.0" 2772 | } 2773 | }, 2774 | "node_modules/sparse-bitfield": { 2775 | "version": "3.0.3", 2776 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 2777 | "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", 2778 | "license": "MIT", 2779 | "dependencies": { 2780 | "memory-pager": "^1.0.2" 2781 | } 2782 | }, 2783 | "node_modules/sprintf-js": { 2784 | "version": "1.1.3", 2785 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", 2786 | "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", 2787 | "devOptional": true, 2788 | "license": "BSD-3-Clause" 2789 | }, 2790 | "node_modules/stack-trace": { 2791 | "version": "0.0.10", 2792 | "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", 2793 | "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", 2794 | "dev": true, 2795 | "license": "MIT", 2796 | "engines": { 2797 | "node": "*" 2798 | } 2799 | }, 2800 | "node_modules/streamx": { 2801 | "version": "2.20.1", 2802 | "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.20.1.tgz", 2803 | "integrity": "sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==", 2804 | "dev": true, 2805 | "license": "MIT", 2806 | "dependencies": { 2807 | "fast-fifo": "^1.3.2", 2808 | "queue-tick": "^1.0.1", 2809 | "text-decoder": "^1.1.0" 2810 | }, 2811 | "optionalDependencies": { 2812 | "bare-events": "^2.2.0" 2813 | } 2814 | }, 2815 | "node_modules/string_decoder": { 2816 | "version": "1.3.0", 2817 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2818 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2819 | "license": "MIT", 2820 | "dependencies": { 2821 | "safe-buffer": "~5.2.0" 2822 | } 2823 | }, 2824 | "node_modules/string-width": { 2825 | "version": "1.0.2", 2826 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2827 | "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", 2828 | "dev": true, 2829 | "license": "MIT", 2830 | "dependencies": { 2831 | "code-point-at": "^1.0.0", 2832 | "is-fullwidth-code-point": "^1.0.0", 2833 | "strip-ansi": "^3.0.0" 2834 | }, 2835 | "engines": { 2836 | "node": ">=0.10.0" 2837 | } 2838 | }, 2839 | "node_modules/string-width/node_modules/ansi-regex": { 2840 | "version": "2.1.1", 2841 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 2842 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", 2843 | "dev": true, 2844 | "license": "MIT", 2845 | "engines": { 2846 | "node": ">=0.10.0" 2847 | } 2848 | }, 2849 | "node_modules/string-width/node_modules/strip-ansi": { 2850 | "version": "3.0.1", 2851 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2852 | "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", 2853 | "dev": true, 2854 | "license": "MIT", 2855 | "dependencies": { 2856 | "ansi-regex": "^2.0.0" 2857 | }, 2858 | "engines": { 2859 | "node": ">=0.10.0" 2860 | } 2861 | }, 2862 | "node_modules/strip-ansi": { 2863 | "version": "6.0.1", 2864 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2865 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2866 | "dev": true, 2867 | "license": "MIT", 2868 | "dependencies": { 2869 | "ansi-regex": "^5.0.1" 2870 | }, 2871 | "engines": { 2872 | "node": ">=8" 2873 | } 2874 | }, 2875 | "node_modules/strip-json-comments": { 2876 | "version": "3.1.1", 2877 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2878 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2879 | "dev": true, 2880 | "license": "MIT", 2881 | "engines": { 2882 | "node": ">=8" 2883 | }, 2884 | "funding": { 2885 | "url": "https://github.com/sponsors/sindresorhus" 2886 | } 2887 | }, 2888 | "node_modules/supports-color": { 2889 | "version": "7.2.0", 2890 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2891 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2892 | "dev": true, 2893 | "license": "MIT", 2894 | "dependencies": { 2895 | "has-flag": "^4.0.0" 2896 | }, 2897 | "engines": { 2898 | "node": ">=8" 2899 | } 2900 | }, 2901 | "node_modules/tar-stream": { 2902 | "version": "3.1.7", 2903 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", 2904 | "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", 2905 | "dev": true, 2906 | "license": "MIT", 2907 | "dependencies": { 2908 | "b4a": "^1.6.4", 2909 | "fast-fifo": "^1.2.0", 2910 | "streamx": "^2.15.0" 2911 | } 2912 | }, 2913 | "node_modules/text-decoder": { 2914 | "version": "1.2.0", 2915 | "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.0.tgz", 2916 | "integrity": "sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==", 2917 | "dev": true, 2918 | "license": "Apache-2.0", 2919 | "dependencies": { 2920 | "b4a": "^1.6.4" 2921 | } 2922 | }, 2923 | "node_modules/text-hex": { 2924 | "version": "1.0.0", 2925 | "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", 2926 | "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==", 2927 | "dev": true, 2928 | "license": "MIT" 2929 | }, 2930 | "node_modules/text-table": { 2931 | "version": "0.2.0", 2932 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2933 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2934 | "dev": true, 2935 | "license": "MIT", 2936 | "peer": true 2937 | }, 2938 | "node_modules/to-regex-range": { 2939 | "version": "5.0.1", 2940 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2941 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2942 | "dev": true, 2943 | "license": "MIT", 2944 | "dependencies": { 2945 | "is-number": "^7.0.0" 2946 | }, 2947 | "engines": { 2948 | "node": ">=8.0" 2949 | } 2950 | }, 2951 | "node_modules/tr46": { 2952 | "version": "4.1.1", 2953 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", 2954 | "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", 2955 | "license": "MIT", 2956 | "dependencies": { 2957 | "punycode": "^2.3.0" 2958 | }, 2959 | "engines": { 2960 | "node": ">=14" 2961 | } 2962 | }, 2963 | "node_modules/triple-beam": { 2964 | "version": "1.4.1", 2965 | "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", 2966 | "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", 2967 | "license": "MIT", 2968 | "engines": { 2969 | "node": ">= 14.0.0" 2970 | } 2971 | }, 2972 | "node_modules/tslib": { 2973 | "version": "2.7.0", 2974 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", 2975 | "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", 2976 | "dev": true, 2977 | "license": "0BSD" 2978 | }, 2979 | "node_modules/type-check": { 2980 | "version": "0.4.0", 2981 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2982 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2983 | "dev": true, 2984 | "license": "MIT", 2985 | "peer": true, 2986 | "dependencies": { 2987 | "prelude-ls": "^1.2.1" 2988 | }, 2989 | "engines": { 2990 | "node": ">= 0.8.0" 2991 | } 2992 | }, 2993 | "node_modules/type-fest": { 2994 | "version": "0.20.2", 2995 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2996 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2997 | "dev": true, 2998 | "license": "(MIT OR CC0-1.0)", 2999 | "engines": { 3000 | "node": ">=10" 3001 | }, 3002 | "funding": { 3003 | "url": "https://github.com/sponsors/sindresorhus" 3004 | } 3005 | }, 3006 | "node_modules/undici-types": { 3007 | "version": "6.19.8", 3008 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", 3009 | "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", 3010 | "dev": true, 3011 | "license": "MIT" 3012 | }, 3013 | "node_modules/uri-js": { 3014 | "version": "4.4.1", 3015 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 3016 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 3017 | "dev": true, 3018 | "license": "BSD-2-Clause", 3019 | "peer": true, 3020 | "dependencies": { 3021 | "punycode": "^2.1.0" 3022 | } 3023 | }, 3024 | "node_modules/util-deprecate": { 3025 | "version": "1.0.2", 3026 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 3027 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 3028 | "license": "MIT" 3029 | }, 3030 | "node_modules/vscode-json-languageservice": { 3031 | "version": "4.2.1", 3032 | "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-4.2.1.tgz", 3033 | "integrity": "sha512-xGmv9QIWs2H8obGbWg+sIPI/3/pFgj/5OWBhNzs00BkYQ9UaB2F6JJaGB/2/YOZJ3BvLXQTC4Q7muqU25QgAhA==", 3034 | "dev": true, 3035 | "license": "MIT", 3036 | "dependencies": { 3037 | "jsonc-parser": "^3.0.0", 3038 | "vscode-languageserver-textdocument": "^1.0.3", 3039 | "vscode-languageserver-types": "^3.16.0", 3040 | "vscode-nls": "^5.0.0", 3041 | "vscode-uri": "^3.0.3" 3042 | } 3043 | }, 3044 | "node_modules/vscode-languageserver-textdocument": { 3045 | "version": "1.0.12", 3046 | "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", 3047 | "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", 3048 | "dev": true, 3049 | "license": "MIT" 3050 | }, 3051 | "node_modules/vscode-languageserver-types": { 3052 | "version": "3.17.5", 3053 | "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", 3054 | "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", 3055 | "dev": true, 3056 | "license": "MIT" 3057 | }, 3058 | "node_modules/vscode-nls": { 3059 | "version": "5.2.0", 3060 | "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", 3061 | "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==", 3062 | "dev": true, 3063 | "license": "MIT" 3064 | }, 3065 | "node_modules/vscode-uri": { 3066 | "version": "3.0.8", 3067 | "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", 3068 | "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", 3069 | "dev": true, 3070 | "license": "MIT" 3071 | }, 3072 | "node_modules/webidl-conversions": { 3073 | "version": "7.0.0", 3074 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", 3075 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", 3076 | "license": "BSD-2-Clause", 3077 | "engines": { 3078 | "node": ">=12" 3079 | } 3080 | }, 3081 | "node_modules/whatwg-url": { 3082 | "version": "13.0.0", 3083 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz", 3084 | "integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==", 3085 | "license": "MIT", 3086 | "dependencies": { 3087 | "tr46": "^4.1.1", 3088 | "webidl-conversions": "^7.0.0" 3089 | }, 3090 | "engines": { 3091 | "node": ">=16" 3092 | } 3093 | }, 3094 | "node_modules/which": { 3095 | "version": "2.0.2", 3096 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 3097 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 3098 | "dev": true, 3099 | "license": "ISC", 3100 | "peer": true, 3101 | "dependencies": { 3102 | "isexe": "^2.0.0" 3103 | }, 3104 | "bin": { 3105 | "node-which": "bin/node-which" 3106 | }, 3107 | "engines": { 3108 | "node": ">= 8" 3109 | } 3110 | }, 3111 | "node_modules/window-size": { 3112 | "version": "0.3.0", 3113 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.3.0.tgz", 3114 | "integrity": "sha512-aB2BGVMsX1iPJ79hqC5JvbDvUXpy3nhoxmbiFw74aEewrHPnkNiFYAFbx+BgurhxuOUZV+qIj/9HurtO8ZTH5w==", 3115 | "dev": true, 3116 | "license": "MIT", 3117 | "bin": { 3118 | "window-size": "cli.js" 3119 | }, 3120 | "engines": { 3121 | "node": ">= 0.10.0" 3122 | } 3123 | }, 3124 | "node_modules/winston": { 3125 | "version": "3.14.2", 3126 | "resolved": "https://registry.npmjs.org/winston/-/winston-3.14.2.tgz", 3127 | "integrity": "sha512-CO8cdpBB2yqzEf8v895L+GNKYJiEq8eKlHU38af3snQBQ+sdAIUepjMSguOIJC7ICbzm0ZI+Af2If4vIJrtmOg==", 3128 | "dev": true, 3129 | "license": "MIT", 3130 | "dependencies": { 3131 | "@colors/colors": "^1.6.0", 3132 | "@dabh/diagnostics": "^2.0.2", 3133 | "async": "^3.2.3", 3134 | "is-stream": "^2.0.0", 3135 | "logform": "^2.6.0", 3136 | "one-time": "^1.0.0", 3137 | "readable-stream": "^3.4.0", 3138 | "safe-stable-stringify": "^2.3.1", 3139 | "stack-trace": "0.0.x", 3140 | "triple-beam": "^1.3.0", 3141 | "winston-transport": "^4.7.0" 3142 | }, 3143 | "engines": { 3144 | "node": ">= 12.0.0" 3145 | } 3146 | }, 3147 | "node_modules/winston-transport": { 3148 | "version": "4.7.1", 3149 | "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.1.tgz", 3150 | "integrity": "sha512-wQCXXVgfv/wUPOfb2x0ruxzwkcZfxcktz6JIMUaPLmcNhO4bZTwA/WtDWK74xV3F2dKu8YadrFv0qhwYjVEwhA==", 3151 | "license": "MIT", 3152 | "dependencies": { 3153 | "logform": "^2.6.1", 3154 | "readable-stream": "^3.6.2", 3155 | "triple-beam": "^1.3.0" 3156 | }, 3157 | "engines": { 3158 | "node": ">= 12.0.0" 3159 | } 3160 | }, 3161 | "node_modules/word-wrap": { 3162 | "version": "1.2.5", 3163 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", 3164 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 3165 | "dev": true, 3166 | "license": "MIT", 3167 | "peer": true, 3168 | "engines": { 3169 | "node": ">=0.10.0" 3170 | } 3171 | }, 3172 | "node_modules/workerpool": { 3173 | "version": "6.5.1", 3174 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", 3175 | "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", 3176 | "dev": true, 3177 | "license": "Apache-2.0" 3178 | }, 3179 | "node_modules/wrap-ansi": { 3180 | "version": "2.1.0", 3181 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 3182 | "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", 3183 | "dev": true, 3184 | "license": "MIT", 3185 | "dependencies": { 3186 | "string-width": "^1.0.1", 3187 | "strip-ansi": "^3.0.1" 3188 | }, 3189 | "engines": { 3190 | "node": ">=0.10.0" 3191 | } 3192 | }, 3193 | "node_modules/wrap-ansi/node_modules/ansi-regex": { 3194 | "version": "2.1.1", 3195 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 3196 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", 3197 | "dev": true, 3198 | "license": "MIT", 3199 | "engines": { 3200 | "node": ">=0.10.0" 3201 | } 3202 | }, 3203 | "node_modules/wrap-ansi/node_modules/strip-ansi": { 3204 | "version": "3.0.1", 3205 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 3206 | "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", 3207 | "dev": true, 3208 | "license": "MIT", 3209 | "dependencies": { 3210 | "ansi-regex": "^2.0.0" 3211 | }, 3212 | "engines": { 3213 | "node": ">=0.10.0" 3214 | } 3215 | }, 3216 | "node_modules/wrappy": { 3217 | "version": "1.0.2", 3218 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3219 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 3220 | "dev": true, 3221 | "license": "ISC" 3222 | }, 3223 | "node_modules/y18n": { 3224 | "version": "5.0.8", 3225 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 3226 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 3227 | "dev": true, 3228 | "license": "ISC", 3229 | "engines": { 3230 | "node": ">=10" 3231 | } 3232 | }, 3233 | "node_modules/yargs": { 3234 | "version": "16.2.0", 3235 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 3236 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 3237 | "dev": true, 3238 | "license": "MIT", 3239 | "dependencies": { 3240 | "cliui": "^7.0.2", 3241 | "escalade": "^3.1.1", 3242 | "get-caller-file": "^2.0.5", 3243 | "require-directory": "^2.1.1", 3244 | "string-width": "^4.2.0", 3245 | "y18n": "^5.0.5", 3246 | "yargs-parser": "^20.2.2" 3247 | }, 3248 | "engines": { 3249 | "node": ">=10" 3250 | } 3251 | }, 3252 | "node_modules/yargs-parser": { 3253 | "version": "20.2.9", 3254 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", 3255 | "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", 3256 | "dev": true, 3257 | "license": "ISC", 3258 | "engines": { 3259 | "node": ">=10" 3260 | } 3261 | }, 3262 | "node_modules/yargs-unparser": { 3263 | "version": "2.0.0", 3264 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 3265 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 3266 | "dev": true, 3267 | "license": "MIT", 3268 | "dependencies": { 3269 | "camelcase": "^6.0.0", 3270 | "decamelize": "^4.0.0", 3271 | "flat": "^5.0.2", 3272 | "is-plain-obj": "^2.1.0" 3273 | }, 3274 | "engines": { 3275 | "node": ">=10" 3276 | } 3277 | }, 3278 | "node_modules/yargs/node_modules/cliui": { 3279 | "version": "7.0.4", 3280 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 3281 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 3282 | "dev": true, 3283 | "license": "ISC", 3284 | "dependencies": { 3285 | "string-width": "^4.2.0", 3286 | "strip-ansi": "^6.0.0", 3287 | "wrap-ansi": "^7.0.0" 3288 | } 3289 | }, 3290 | "node_modules/yargs/node_modules/is-fullwidth-code-point": { 3291 | "version": "3.0.0", 3292 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 3293 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 3294 | "dev": true, 3295 | "license": "MIT", 3296 | "engines": { 3297 | "node": ">=8" 3298 | } 3299 | }, 3300 | "node_modules/yargs/node_modules/string-width": { 3301 | "version": "4.2.3", 3302 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 3303 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 3304 | "dev": true, 3305 | "license": "MIT", 3306 | "dependencies": { 3307 | "emoji-regex": "^8.0.0", 3308 | "is-fullwidth-code-point": "^3.0.0", 3309 | "strip-ansi": "^6.0.1" 3310 | }, 3311 | "engines": { 3312 | "node": ">=8" 3313 | } 3314 | }, 3315 | "node_modules/yargs/node_modules/wrap-ansi": { 3316 | "version": "7.0.0", 3317 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3318 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3319 | "dev": true, 3320 | "license": "MIT", 3321 | "dependencies": { 3322 | "ansi-styles": "^4.0.0", 3323 | "string-width": "^4.1.0", 3324 | "strip-ansi": "^6.0.0" 3325 | }, 3326 | "engines": { 3327 | "node": ">=10" 3328 | }, 3329 | "funding": { 3330 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3331 | } 3332 | }, 3333 | "node_modules/yauzl": { 3334 | "version": "3.1.3", 3335 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.1.3.tgz", 3336 | "integrity": "sha512-JCCdmlJJWv7L0q/KylOekyRaUrdEoUxWkWVcgorosTROCFWiS9p2NNPE9Yb91ak7b1N5SxAZEliWpspbZccivw==", 3337 | "dev": true, 3338 | "license": "MIT", 3339 | "dependencies": { 3340 | "buffer-crc32": "~0.2.3", 3341 | "pend": "~1.2.0" 3342 | }, 3343 | "engines": { 3344 | "node": ">=12" 3345 | } 3346 | }, 3347 | "node_modules/yocto-queue": { 3348 | "version": "0.1.0", 3349 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 3350 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 3351 | "dev": true, 3352 | "license": "MIT", 3353 | "engines": { 3354 | "node": ">=10" 3355 | }, 3356 | "funding": { 3357 | "url": "https://github.com/sponsors/sindresorhus" 3358 | } 3359 | } 3360 | } 3361 | } 3362 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "winston-mongodb", 3 | "license": "MIT", 4 | "version": "6.0.0", 5 | "description": "A MongoDB transport for winston", 6 | "author": "Charlie Robbins ", 7 | "maintainers": [ 8 | "David Hyde " 9 | ], 10 | "contributors": [ 11 | { 12 | "name": "Yurij Mikhalevich", 13 | "email": "yurij@mikhalevi.ch", 14 | "url": "https://mikhalevi.ch/" 15 | }, 16 | { 17 | "name": "Kendrick Taylor", 18 | "email": "sktayloriii@gmail.com" 19 | }, 20 | { 21 | "name": "Steve Dalby", 22 | "email": "steve@stevedalby.co.uk" 23 | } 24 | ], 25 | "repository": { 26 | "type": "git", 27 | "url": "http://github.com/winstonjs/winston-mongodb.git" 28 | }, 29 | "keywords": [ 30 | "logging", 31 | "sysadmin", 32 | "tools", 33 | "winston", 34 | "mongodb", 35 | "log", 36 | "logger" 37 | ], 38 | "dependencies": { 39 | "mongodb": "^6.5.0", 40 | "winston-transport": "^4.4.0" 41 | }, 42 | "peerDependencies": { 43 | "winston": "^3.0.0" 44 | }, 45 | "devDependencies": { 46 | "@dabh/eslint-config-populist": "^5.0.0", 47 | "abstract-winston-transport": "~0.5.1", 48 | "dotenv": "^16.1.4", 49 | "ip": "^2.0.1", 50 | "mocha": "^10.2.0", 51 | "mongodb-memory-server": "^9.1.4", 52 | "mongoose": "^8.0.0", 53 | "winston": "^3.3.3" 54 | }, 55 | "engines": { 56 | "node": ">=14.20.1" 57 | }, 58 | "main": "./lib/winston-mongodb", 59 | "scripts": { 60 | "lint": "eslint lib/*.js test/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist", 61 | "test": "mocha test/*-test.js --exit", 62 | "test-rs": "WINSTON_MONGODB_URL='mongodb://localhost:27017,localhost:27018/winston?replicaSet=rs0' mocha test/*-test.js" 63 | }, 64 | "typings": "./lib/winston-mongodb.d.ts", 65 | "config": { 66 | "mongodbMemoryServer": { 67 | "disablePostinstall": "1" 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /test/helpers-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @module 'helpers-test' 3 | * @fileoverview Tests for winston-mongodb internal helpers methods 4 | * @license MIT 5 | * @author 0@39.yt (Yurij Mikhalevich) 6 | */ 7 | 'use strict'; 8 | const assert = require('assert'); 9 | const ObjectId = require('mongodb').ObjectId; 10 | const helpers = require('../lib/helpers'); 11 | 12 | class CustomError extends Error { 13 | constructor() { 14 | super(); 15 | this.testField = 'custom error'; 16 | } 17 | } 18 | 19 | describe('winston-mongodb-helpers', function () { 20 | describe('#prepareMetaData()', function () { 21 | it('should preserve Date instances', function () { 22 | const originalData = { customDate: new Date() }; 23 | 24 | const preparedData = helpers.prepareMetaData(originalData); 25 | 26 | assert(preparedData.customDate instanceof Date); 27 | assert.strictEqual(+preparedData.customDate, +originalData.customDate); 28 | }); 29 | it('should store Error objects', function () { 30 | const originalData = { standardError: new Error('some error') }; 31 | 32 | const preparedData = helpers.prepareMetaData(originalData); 33 | 34 | assert(preparedData.standardError instanceof Object); 35 | assert(!(preparedData.standardError instanceof Error)); 36 | assert.strictEqual(preparedData.standardError.message, originalData.standardError.message); 37 | assert.strictEqual(preparedData.standardError.name, originalData.standardError.name); 38 | assert.strictEqual(preparedData.standardError.stack, originalData.standardError.stack); 39 | }); 40 | it('should store extra fields for custom Error objects', function () { 41 | const originalData = { customError: new CustomError() }; 42 | 43 | const preparedData = helpers.prepareMetaData(originalData); 44 | 45 | assert(preparedData.customError instanceof Object); 46 | assert(!(preparedData.customError instanceof Error)); 47 | assert.strictEqual(preparedData.customError.message, originalData.customError.message); 48 | assert.strictEqual(preparedData.customError.name, originalData.customError.name); 49 | assert.strictEqual(preparedData.customError.stack, originalData.customError.stack); 50 | assert.strictEqual(preparedData.customError.testField, originalData.customError.testField); 51 | }); 52 | it('should preserve ObjectIds', function () { 53 | const originalData = { objectId: new ObjectId() }; 54 | 55 | const preparedData = helpers.prepareMetaData(originalData); 56 | 57 | assert.strictEqual(preparedData.objectId, originalData.objectId); 58 | }); 59 | it('should preserve Buffers', function () { 60 | const originalData = { buffer: Buffer.from('test') }; 61 | 62 | const preparedData = helpers.prepareMetaData(originalData); 63 | 64 | assert.strictEqual(preparedData.buffer, originalData.buffer); 65 | }); 66 | it('should handle objects containing all kinds of values, including arrays, nested objects and functions', function () { 67 | const originalData = { 68 | undefinedValue: undefined, 69 | nullValue: null, 70 | booleanValue: true, 71 | numberValue: 1, 72 | bigIntValue: BigInt(9007199254740991), 73 | stringValue: 'test', 74 | symbolValue: Symbol(), 75 | arrayValue: ['this', 'is', 'an', 'array'], 76 | nestedObjectValue: { objectKey: true }, 77 | functionValue: (a, b) => a + b 78 | }; 79 | 80 | const preparedData = helpers.prepareMetaData(originalData); 81 | 82 | const expected = { ...originalData, functionValue: {}}; 83 | assert.deepStrictEqual(preparedData, expected); 84 | }); 85 | it('should handle arrays containing all kinds of values, including objects, nested arrays and functions', function () { 86 | const originalData = [ 87 | undefined, 88 | null, 89 | true, 90 | 1, 91 | BigInt(9007199254740991), 92 | 'test', 93 | Symbol(), 94 | { objectKey: true }, 95 | ['this', 'is', 'an', 'array'], 96 | (a, b) => a + b 97 | ]; 98 | 99 | const preparedData = helpers.prepareMetaData(originalData); 100 | 101 | const expected = [...originalData]; 102 | expected[expected.length - 1] = {}; // function gets converted to empty object 103 | assert.deepStrictEqual(preparedData, expected); 104 | }); 105 | it('should replace dots and dollar signs in object keys', function () { 106 | const originalData = { 'key.with.dots': true, '$test$': true }; 107 | 108 | const preparedData = helpers.prepareMetaData(originalData); 109 | 110 | const expected = { 'key[dot]with[dot]dots': true, '[$]test[$]': true }; 111 | assert.deepStrictEqual(preparedData, expected); 112 | }); 113 | it('should break circular dependencies', function () { 114 | const originalData = {}; 115 | originalData.nestedObjectValue = { nestedKey: originalData }; 116 | originalData.arrayValue = [originalData, 'test', { nestedKey: originalData }]; 117 | 118 | const preparedData = helpers.prepareMetaData(originalData); 119 | 120 | const expected = { 121 | nestedObjectValue: { nestedKey: '[Circular]' }, 122 | arrayValue: ['[Circular]', 'test', { nestedKey: '[Circular]' }] 123 | }; 124 | 125 | assert.deepStrictEqual(preparedData, expected); 126 | }); 127 | it('should handle objects with null prototype', function () { 128 | const originalData = Object.create(null); 129 | originalData['key.with.dots'] = true; 130 | originalData.$test$ = true; 131 | originalData.nestedObjectValue = { nestedKey: originalData }; 132 | originalData.arrayValue = [originalData, 'test', { nestedKey: originalData }]; 133 | 134 | const preparedData = helpers.prepareMetaData(originalData); 135 | 136 | const expected = { 137 | 'key[dot]with[dot]dots': true, 138 | '[$]test[$]': true, 139 | 'nestedObjectValue': { nestedKey: '[Circular]' }, 140 | 'arrayValue': ['[Circular]', 'test', { nestedKey: '[Circular]' }] 141 | }; 142 | 143 | assert.deepStrictEqual(preparedData, expected); 144 | }); 145 | }); 146 | }); 147 | -------------------------------------------------------------------------------- /test/winston-mongodb-test.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-process-env */ 2 | 3 | /** 4 | * @module 'winston-mongodb-test' 5 | * @fileoverview Tests for instances of the MongoDB transport 6 | * @license MIT 7 | * @author charlie@nodejitsu.com (Charlie Robbins) 8 | * @author 0@39.yt (Yurij Mikhalevich) 9 | */ 10 | 'use strict'; 11 | require('dotenv').config(); 12 | const mongodb = require('mongodb'); 13 | const mongoose = require('mongoose'); 14 | const testSuite = require('abstract-winston-transport'); 15 | const { MongoMemoryServer } = require('mongodb-memory-server'); 16 | 17 | const MongoDB = require('../lib/winston-mongodb').MongoDB; 18 | 19 | const dbName = process.env.WINSTON_MONGODB_DBNAME 20 | || 'otherWinston'; 21 | 22 | let dbUrl; 23 | 24 | async function setUpDb() { 25 | this.timeout(0); 26 | 27 | const customDbUrl = process.env.USER_WINSTON_MONGODB_URL 28 | || process.env.WINSTON_MONGODB_URL; 29 | 30 | if (customDbUrl) { 31 | dbUrl = customDbUrl; 32 | } else { 33 | const inMemoryMongo = await MongoMemoryServer.create(); 34 | dbUrl = inMemoryMongo.getUri('winston'); 35 | } 36 | 37 | await mongoose.connect(dbUrl); 38 | const serverInfo = await mongoose.connection.db.admin().serverInfo(); 39 | console.log(`Testing against MongoDB version ${serverInfo.version} at URL ${dbUrl}`); 40 | } 41 | 42 | before(setUpDb); 43 | before(setUpDynamicallyGeneratedTests); 44 | 45 | describe('winston-mongodb-manual-tests', function () { 46 | describe('winston-mongodb', function () { 47 | it('should be closeable', function () { 48 | const transport = new MongoDB({ db: dbUrl }); 49 | transport.close(); 50 | }); 51 | }); 52 | }); 53 | 54 | function setUpDynamicallyGeneratedTests() { 55 | testSuite({ name: '{db: url}', Transport: MongoDB, construct: { db: dbUrl }}); 56 | testSuite({ name: '{db: url, dbName: string}', Transport: MongoDB, 57 | construct: { db: dbUrl, dbName }}); 58 | testSuite({ name: '{db: url} on capped collection', Transport: MongoDB, 59 | construct: { db: dbUrl, capped: true, collection: 'cappedLog' }}); 60 | testSuite({ name: '{db: url, dbName: string} on capped collection', Transport: MongoDB, 61 | construct: { db: dbUrl, dbName, capped: true, collection: 'cappedLog' }}); 62 | testSuite({ name: '{db: client promise}', Transport: MongoDB, 63 | construct: { db: mongodb.MongoClient.connect(dbUrl) }}); 64 | testSuite({ name: '{db: client promise, dbName: string}', Transport: MongoDB, 65 | construct: { 66 | dbName, 67 | db: mongodb.MongoClient.connect(dbUrl) } 68 | }); 69 | testSuite({ name: '{db: mongoose client}', Transport: MongoDB, 70 | construct: { db: mongoose.connection }}); 71 | } 72 | --------------------------------------------------------------------------------