From 8a2570b6c7e03e8e5919df7ca5606f07e9c75fc3 Mon Sep 17 00:00:00 2001 From: Eugene Fidelin Date: Tue, 16 Jan 2024 12:55:51 +0100 Subject: [PATCH] WIP: enable eslint (#288) * enable eslint * fix more eslint errors * fix more eslint errors * fix more eslint errors * fix all eslint errors * run lint and prettier in ci * drop Node 14 support --- .eslintrc | 140 +- .github/workflows/node.js.yml | 3 +- .husky/pre-commit | 3 +- examples/express-route.js | 18 +- examples/express-status-vs-json.js | 16 +- gulpfile.js | 51 +- lib/express/mock-application.js | 52 +- lib/express/mock-express.js | 28 +- lib/express/mock-request.js | 111 +- lib/express/utils/define-getter.js | 2 - lib/http-mock.js | 16 +- lib/mockEventEmitter.js | 20 +- lib/mockRequest.js | 159 +- lib/mockResponse.js | 217 +- lib/mockWritableStream.js | 10 +- lib/node/_http_incoming.js | 54 +- lib/node/_http_server.js | 2 - lib/node/http.js | 5 +- lib/utils.js | 12 +- package-lock.json | 6001 ++++++++++++++------------ package.json | 17 +- test/.eslintrc | 10 - test/lib/http-mock.test-d.ts | 5 +- test/lib/mockEventEmitter.spec.js | 40 +- test/lib/mockExpressResponse.spec.js | 22 +- test/lib/mockRequest.spec.js | 1182 ----- test/lib/mockRequest.spec.ts | 475 +- test/lib/mockResponse.spec.js | 794 ++-- test/lib/mockWritableStream.spec.js | 28 +- test/lib/node-http-mock.spec.js | 18 +- 30 files changed, 4417 insertions(+), 5094 deletions(-) delete mode 100644 test/.eslintrc delete mode 100644 test/lib/mockRequest.spec.js diff --git a/.eslintrc b/.eslintrc index 38e2867..cc74f19 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,90 +1,50 @@ -env: - node: true - es2017: true - -parserOptions: - ecmaVersion: 2019 - -rules: - comma-dangle: 2 - no-alert: 2 - no-array-constructor: 2 - no-caller: 2 - no-catch-shadow: 2 - no-control-regex: 2 - no-debugger: 2 - no-div-regex: 2 - no-dupe-keys: 2 - no-else-return: 2 - no-empty: 2 - no-empty-character-class: 2 - no-eq-null: 2 - no-eval: 2 - no-ex-assign: 2 - no-func-assign: 0 - no-floating-decimal: 2 - no-implied-eval: 2 - no-with: 2 - no-fallthrough: 2 - no-unreachable: 2 - no-undef: 2 - no-undef-init: 2 - no-unused-expressions: 2 - no-octal: 2 - no-octal-escape: 2 - no-obj-calls: 2 - no-multi-str: 2 - no-new-wrappers: 2 - no-new: 2 - no-new-func: 2 - no-native-reassign: 2 - no-delete-var: 2 - no-return-assign: 2 - no-new-object: 2 - no-label-var: 2 - no-self-compare: 2 - no-sync: 2 - no-loop-func: 2 - no-labels: 2 - no-unused-vars: - - 1 - - argsIgnorePattern: ^_ - varsIgnorePattern: ^_ - no-script-url: 2 - no-proto: 2 - no-iterator: 2 - no-mixed-requires: - - 0 - - false - no-extra-parens: 2 - no-shadow: 2 - no-use-before-define: 2 - no-redeclare: 2 - no-regex-spaces: 2 - no-mixed-spaces-and-tabs: 2 - no-underscore-dangle: 0 - - brace-style: 2 - camelcase: 2 - consistent-this: - - 2 - - self - curly: 2 - dot-notation: 2 - eqeqeq: 2 - new-cap: 2 - new-parens: 2 - quotes: - - 2 - - single - semi: 2 - strict: - - 2 - - global - use-isnan: 2 - valid-typeof: 2 - wrap-iife: 2 - indent: - - 1 - - 4 - - SwitchCase: 1 +{ + "extends": [ + "airbnb-base", + "prettier" + ], + "parser": "@typescript-eslint/parser", + "rules": { + "no-underscore-dangle": "off", + "no-console": "off", + "no-plusplus": "off", + "func-names": [ + "warn", + "as-needed" + ], + "prefer-destructuring": [ + "error", + { + "object": true, + "array": false + } + ], + "no-prototype-builtins": "warn", + "no-restricted-syntax": [ + "error", + { + "selector": "LabeledStatement", + "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." + }, + { + "selector": "WithStatement", + "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." + } + ] + }, + "overrides": [ + { + "files": [ + "test/**/*.js", + "test/**/*.ts" + ], + "rules": { + "no-unused-expressions": "off" + }, + "env": { + "mocha": true + } + } + ], + "root": true +} \ No newline at end of file diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1d1dcc9..876f5f2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x, 20.x] + node-version: [16.x, 18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -28,4 +28,5 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present + - run: npm run check - run: npm test diff --git a/.husky/pre-commit b/.husky/pre-commit index 8ab6149..4e550eb 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npm run format +npm run check + diff --git a/examples/express-route.js b/examples/express-route.js index 6d93ba2..3d5440d 100644 --- a/examples/express-route.js +++ b/examples/express-route.js @@ -1,6 +1,4 @@ -'use strict'; - -var httpMocks = require('../lib/http-mock'); +const httpMocks = require('../lib/http-mock'); // Suppose you have the following Express route: @@ -8,12 +6,12 @@ var httpMocks = require('../lib/http-mock'); // And you have created a function to handle that route's call: -var routeHandler = function (request, response) { - var id = request.params.id; +const routeHandler = function (request, response) { + const { id } = request.params; console.log("We have a '%s' request for %s (ID: %d)", request.method, request.url, id); - var body = { + const body = { name: 'Bob Dog', age: 42, email: 'bob@dog.com' @@ -29,8 +27,8 @@ var routeHandler = function (request, response) { // In another file, you can easily test the routeHandler function // with some code like this using the testing framework of your choice: -exports['routeHandler - Simple testing'] = function (test) { - var request = httpMocks.createRequest({ +exports['routeHandler - Simple testing'] = function testing(test) { + const request = httpMocks.createRequest({ method: 'GET', url: '/user/42', params: { @@ -38,11 +36,11 @@ exports['routeHandler - Simple testing'] = function (test) { } }); - var response = httpMocks.createResponse(); + const response = httpMocks.createResponse(); routeHandler(request, response); - var data = response._getJSONData(); + const data = response._getJSONData(); test.equal('Bob Dog', data.name); test.equal(42, data.age); diff --git a/examples/express-status-vs-json.js b/examples/express-status-vs-json.js index 5586136..4e84d78 100644 --- a/examples/express-status-vs-json.js +++ b/examples/express-status-vs-json.js @@ -1,6 +1,4 @@ -'use strict'; - -var httpMocks = require('../lib/http-mock'); +const httpMocks = require('../lib/http-mock'); // Suppose you have the following Express route: @@ -8,10 +6,10 @@ var httpMocks = require('../lib/http-mock'); // And you have created a function to handle that route's call: -var routeHandler = function (request, response) { +const routeHandler = function (request, response) { console.log("We have a '%s' request for %s", request.method, request.url); - var body = { + const body = { name: 'Bob Dog', age: 42, email: 'bob@dog.com' @@ -25,17 +23,17 @@ var routeHandler = function (request, response) { // In another file, you can easily test the routeHandler function // with some code like this using the testing framework of your choice: -exports['routeHandler - Simple testing of status() vs json()'] = function (test) { - var request = httpMocks.createRequest({ +exports['routeHandler - Simple testing of status() vs json()'] = function testing(test) { + const request = httpMocks.createRequest({ method: 'POST', url: '/users' }); - var response = httpMocks.createResponse(); + const response = httpMocks.createResponse(); routeHandler(request, response); - var data = response._getJSONData(); + const data = response._getJSONData(); test.equal('Bob Dog', data.name); test.equal(42, data.age); diff --git a/gulpfile.js b/gulpfile.js index 98e8395..a3cfa99 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,52 +1,25 @@ -'use strict'; +const gulp = require('gulp'); +const mocha = require('gulp-mocha'); +const istanbul = require('gulp-istanbul'); -var gulp = require('gulp'); -var mocha = require('gulp-mocha'); -var istanbul = require('gulp-istanbul'); -var eslint = require('gulp-eslint'); - -var files = { +const files = { src: ['./lib/**/*.js'], - test: ['./test/**/*.spec.js', './*.js'], + test: ['./test/**/*.spec.js', './test/**/*.spec.ts'], testTs: ['./test/**/*.spec.ts'] }; +gulp.task('dot', () => + gulp.src(files.test, { read: false }).pipe(mocha({ reporter: 'spec', require: 'ts-node/register' })) +); -gulp.task('lint', function () { - return gulp - .src(files.src.concat(files.test)) - .pipe( - eslint({ - // configFile: './.eslintrc', - useEslintrc: true - }) - ) - .pipe(eslint.format()) - .pipe(eslint.failOnError()); -}); - -gulp.task('dot', function () { - return gulp.src(files.test, { read: false }).pipe(mocha({ reporter: 'dot' })); -}); - -gulp.task('test', gulp.series('dot' /*, 'lint'*/)); +gulp.task('test', gulp.series('dot')); -gulp.task('test:ts', function () { - return gulp.src(files.testTs, { read: false }).pipe(mocha({ reporter: 'dot', require: 'ts-node/register' })); -}); - -gulp.task('spec', function () { - return gulp.src(files.test, { read: false }).pipe(mocha({ reporter: 'spec' })); -}); - -gulp.task('spec:ts', function () { - return gulp.src(files.testTs, { read: false }).pipe(mocha({ reporter: 'spec' })); -}); +gulp.task('spec', () => gulp.src(files.test, { read: false }).pipe(mocha({ reporter: 'spec' }))); -gulp.task('coverage', function (done) { +gulp.task('coverage', (done) => { gulp.src(files.src) .pipe(istanbul()) .pipe(istanbul.hookRequire()) - .on('finish', function () { + .on('finish', () => { gulp.src(files.test) .pipe(mocha({ reporter: 'dot' })) .pipe( diff --git a/lib/express/mock-application.js b/lib/express/mock-application.js index 1358900..c95969f 100644 --- a/lib/express/mock-application.js +++ b/lib/express/mock-application.js @@ -1,22 +1,20 @@ -'use strict'; +const methods = require('methods'); +const deprecate = require('depd')('express'); -var methods = require('methods'); -var deprecate = require('depd')('express'); +const app = {}; +const trustProxyDefaultSymbol = '@@symbol:trust_proxy_default'; -var app = (exports = module.exports = {}); -var trustProxyDefaultSymbol = '@@symbol:trust_proxy_default'; - -app.init = function () { +app.init = function init() { this.cache = {}; this.settings = {}; this.engines = {}; this.defaultConfiguration(); }; -app.defaultConfiguration = function () { +app.defaultConfiguration = function defaultConfiguration() { this.enable('x-powered-by'); this.set('etag', 'weak'); - var env = process.env.NODE_ENV || 'development'; + const env = process.env.NODE_ENV || 'development'; this.set('env', env); this.set('query parser', 'extended'); this.set('subdomain offset', 2); @@ -36,7 +34,7 @@ app.defaultConfiguration = function () { } Object.defineProperty(this, 'router', { - get: function () { + get() { throw new Error( "'app.router' is deprecated!\nPlease see the 3.x to 4.x migration guide for details on how to update your app." ); @@ -44,25 +42,25 @@ app.defaultConfiguration = function () { }); }; -app.lazyrouter = function () {}; -app.handle = function () {}; -app.route = function () {}; -app.render = function () {}; -app.listen = function () {}; +app.lazyrouter = () => {}; +app.handle = () => {}; +app.route = () => {}; +app.render = () => {}; +app.listen = () => {}; app.use = function use() { return this; }; -app.engine = function () { +app.engine = function engine() { return this; }; -app.param = function () { +app.param = function param() { return this; }; -app.set = function (setting, val) { +app.set = function set(setting, val) { if (arguments.length === 1) { return this.settings[setting]; } @@ -71,34 +69,36 @@ app.set = function (setting, val) { return this; }; -app.path = function () { +app.path = function path() { return ''; }; -app.enabled = function (setting) { +app.enabled = function enabled(setting) { return !!this.set(setting); }; -app.disabled = function (setting) { +app.disabled = function disabled(setting) { return !this.set(setting); }; -app.enable = function (setting) { +app.enable = function enable(setting) { return this.set(setting, true); }; -app.disable = function (setting) { +app.disable = function disable(setting) { return this.set(setting, false); }; -methods.forEach(function (method) { - app[method] = function () { +methods.forEach((method) => { + app[method] = function httpMethod() { return this; }; }); -app.all = function () { +app.all = function all() { return this; }; app.del = deprecate.function(app.delete, 'app.del: Use app.delete instead'); + +module.exports = app; diff --git a/lib/express/mock-express.js b/lib/express/mock-express.js index d79b609..aa0f355 100644 --- a/lib/express/mock-express.js +++ b/lib/express/mock-express.js @@ -1,37 +1,35 @@ -'use strict'; +const { EventEmitter } = require('events'); -var EventEmitter = require('events').EventEmitter; +const mixin = require('merge-descriptors'); -var mixin = require('merge-descriptors'); +const application = require('./mock-application'); +const request = require('./mock-request'); +const response = require('../mockResponse'); -var application = require('./mock-application'); -var request = require('./mock-request'); -var response = require('../mockResponse'); - -var expressResponse = { +const expressResponse = { createResponse: response.createResponse }; function createApplication() { - var app = function () {}; + const app = function () {}; mixin(app, EventEmitter.prototype, false); mixin(app, application, false); app.request = { __proto__: request, - app: app + app }; app.response = { __proto__: expressResponse.createResponse(), - app: app + app }; app.init(); return app; } -exports = module.exports = createApplication; +module.exports = createApplication; -exports.application = application; -exports.request = request; -exports.response = expressResponse; +module.exports.application = application; +module.exports.request = request; +module.exports.response = expressResponse; diff --git a/lib/express/mock-request.js b/lib/express/mock-request.js index 0a754c0..57b28f7 100644 --- a/lib/express/mock-request.js +++ b/lib/express/mock-request.js @@ -1,62 +1,58 @@ -'use strict'; - -var accepts = require('accepts'); -var typeis = require('type-is'); -var parseRange = require('range-parser'); -var parse = require('parseurl'); -var isIP = require('net').isIP; -var fresh = require('fresh'); - -var defineGetter = require('./utils/define-getter'); -var http = require('http'); - -var req = - (exports = - module.exports = - { - __proto__: http.IncomingMessage.prototype - }); - -req.header = function (name) { - switch ((name = name.toLowerCase())) { +const accepts = require('accepts'); +const typeis = require('type-is'); +const parseRange = require('range-parser'); +const parse = require('parseurl'); +const { isIP } = require('net'); +const fresh = require('fresh'); + +const http = require('http'); +const defineGetter = require('./utils/define-getter'); + +const req = { + __proto__: http.IncomingMessage.prototype +}; + +req.header = function header(name) { + const headerName = name.toLowerCase(); + switch (headerName) { case 'referer': case 'referrer': return this.headers.referrer || this.headers.referer; default: - return this.headers[name]; + return this.headers[headerName]; } }; req.get = req.header; -req.accepts = function () { - var accept = accepts(this); - return accept.types.apply(accept, arguments); +req.accepts = function acceptTypes(...args) { + const accept = accepts(this); + return accept.types(...args); }; -req.acceptsEncodings = function () { - var accept = accepts(this); - return accept.encodings.apply(accept, arguments); +req.acceptsEncodings = function acceptsEncodings(...args) { + const accept = accepts(this); + return accept.encodings(...args); }; req.acceptsEncoding = req.acceptsEncodings; -req.acceptsCharsets = function () { - var accept = accepts(this); - return accept.charsets.apply(accept, arguments); +req.acceptsCharsets = function acceptsCharsets(...args) { + const accept = accepts(this); + return accept.charsets(...args); }; req.acceptsCharset = req.acceptsCharsets; -req.acceptsLanguages = function () { - var accept = accepts(this); - return accept.languages.apply(accept, arguments); +req.acceptsLanguages = function acceptsLanguages(...args) { + const accept = accepts(this); + return accept.languages(...args); }; req.acceptsLanguage = req.acceptsLanguages; -req.range = function (size) { - var range = this.get('Range'); +req.range = function getRange(size) { + const range = this.get('Range'); if (!range) { return undefined; } @@ -64,11 +60,11 @@ req.range = function (size) { }; req.param = function param(name, defaultValue) { - var params = this.params || {}; - var body = this.body || {}; - var query = this.query || {}; + const params = this.params || {}; + const body = this.body || {}; + const query = this.query || {}; - if (params[name] !== null && params.hasOwnProperty(name)) { + if (params[name] !== null && {}.hasOwnProperty.call(params, name)) { return params[name]; } if (body[name] !== null) { @@ -81,15 +77,18 @@ req.param = function param(name, defaultValue) { return defaultValue; }; -req.is = function (types) { - if (!Array.isArray(types)) { - types = [].slice.call(arguments); +req.is = function is(...args) { + let types = args; + + if (Array.isArray(args[0])) { + types = args[0]; } + return typeis(this, types); }; defineGetter(req, 'protocol', function protocol() { - var proto = this.options.proto; + let { proto } = this.options; proto = this.get('X-Forwarded-Proto') || proto; return proto.split(/\s*,\s*/)[0]; }); @@ -107,14 +106,14 @@ defineGetter(req, 'ips', function ips() { }); defineGetter(req, 'subdomains', function subdomains() { - var hostname = this.hostname; + const { hostname } = this; if (!hostname) { return []; } - var offset = this.app.get('subdomain offset'); - var domains = !isIP(hostname) ? hostname.split('.').reverse() : [hostname]; + const offset = this.app.get('subdomain offset'); + const domains = !isIP(hostname) ? hostname.split('.').reverse() : [hostname]; return domains.slice(offset); }); @@ -124,7 +123,7 @@ defineGetter(req, 'path', function path() { }); defineGetter(req, 'hostname', function hostname() { - var host = this.get('X-Forwarded-Host'); + let host = this.get('X-Forwarded-Host'); if (!host) { host = this.get('Host'); @@ -134,19 +133,19 @@ defineGetter(req, 'hostname', function hostname() { return undefined; } - var offset = host[0] === '[' ? host.indexOf(']') + 1 : 0; - var index = host.indexOf(':', offset); + const offset = host[0] === '[' ? host.indexOf(']') + 1 : 0; + const index = host.indexOf(':', offset); - return ~index ? host.substring(0, index) : host; + return index < 0 ? host.substring(0, index) : host; }); defineGetter(req, 'host', function host() { return this.hostname; }); -defineGetter(req, 'fresh', function () { - var method = this.method; - var statusCode = this.res.statusCode; +defineGetter(req, 'fresh', function isFresh() { + const { method } = this; + const { statusCode } = this.res; if (method !== 'GET' && method !== 'HEAD') { return false; @@ -164,6 +163,8 @@ defineGetter(req, 'stale', function stale() { }); defineGetter(req, 'xhr', function xhr() { - var val = this.get('X-Requested-With') || ''; + const val = this.get('X-Requested-With') || ''; return val.toLowerCase() === 'xmlhttprequest'; }); + +module.exports = req; diff --git a/lib/express/utils/define-getter.js b/lib/express/utils/define-getter.js index 456cc32..565c43d 100644 --- a/lib/express/utils/define-getter.js +++ b/lib/express/utils/define-getter.js @@ -1,5 +1,3 @@ -'use strict'; - function defineGetter(obj, name, getter) { Object.defineProperty(obj, name, { configurable: true, diff --git a/lib/http-mock.js b/lib/http-mock.js index 3e04b36..1c449b6 100644 --- a/lib/http-mock.js +++ b/lib/http-mock.js @@ -1,5 +1,3 @@ -'use strict'; - /** * Module: http-mock * @@ -7,9 +5,9 @@ * functions from the other libraries. */ -var request = require('./mockRequest'); -var response = require('./mockResponse'); -var express = require('./express/mock-express'); +const request = require('./mockRequest'); +const response = require('./mockResponse'); +const express = require('./express/mock-express'); /** * Creates linked req and res objects. Enables using methods that require both @@ -21,11 +19,11 @@ var express = require('./express/mock-express'); * @mockResponse.createResponse * @return {Object} Object with both mocks: { req, res } */ -var createRequestResponse = function (reqOpts, resOpts) { - var req = request.createRequest(reqOpts); - var res = response.createResponse(Object.assign({}, resOpts, { req: req })); +const createRequestResponse = function (reqOpts, resOpts) { + const req = request.createRequest(reqOpts); + const res = response.createResponse({ ...resOpts, req }); - return { req: req, res: res }; + return { req, res }; }; exports.createRequest = request.createRequest; diff --git a/lib/mockEventEmitter.js b/lib/mockEventEmitter.js index a45f287..23666e0 100644 --- a/lib/mockEventEmitter.js +++ b/lib/mockEventEmitter.js @@ -1,21 +1,19 @@ -'use strict'; - /* * http://nodejs.org/api/events.html */ function EventEmitter() {} -EventEmitter.prototype.addListener = function () {}; -EventEmitter.prototype.on = function () {}; -EventEmitter.prototype.once = function () {}; -EventEmitter.prototype.removeListener = function () {}; -EventEmitter.prototype.removeAllListeners = function () {}; +EventEmitter.prototype.addListener = () => {}; +EventEmitter.prototype.on = () => {}; +EventEmitter.prototype.once = () => {}; +EventEmitter.prototype.removeListener = () => {}; +EventEmitter.prototype.removeAllListeners = () => {}; // EventEmitter.prototype.removeAllListeners = function([event]) -EventEmitter.prototype.setMaxListeners = function () {}; -EventEmitter.prototype.listeners = function () {}; -EventEmitter.prototype.emit = function () {}; -EventEmitter.prototype.prependListener = function () {}; +EventEmitter.prototype.setMaxListeners = () => {}; +EventEmitter.prototype.listeners = () => {}; +EventEmitter.prototype.emit = () => {}; +EventEmitter.prototype.prependListener = () => {}; // EventEmitter.prototype.emit = function(event, [arg1], [arg2], [...]){} module.exports = EventEmitter; diff --git a/lib/mockRequest.js b/lib/mockRequest.js index 104312a..289ac3b 100644 --- a/lib/mockRequest.js +++ b/lib/mockRequest.js @@ -1,5 +1,3 @@ -'use strict'; - /** * File: mockRequest * @@ -30,14 +28,15 @@ * body - The body values, , see */ -var url = require('url'); -var typeis = require('type-is'); -var accepts = require('accepts'); -var parseRange = require('range-parser'); -var EventEmitter = require('events').EventEmitter; -var utils = require('./utils'); +const url = require('url'); +const typeis = require('type-is'); +const accepts = require('accepts'); +const parseRange = require('range-parser'); +let { EventEmitter } = require('events'); +const querystring = require('querystring'); +const utils = require('./utils'); -var standardRequestOptions = [ +const standardRequestOptions = [ 'method', 'url', 'originalUrl', @@ -52,17 +51,13 @@ var standardRequestOptions = [ 'files' ]; -function createRequest(options) { - if (!options) { - options = {}; - } - +function createRequest(options = {}) { if (options.eventEmitter) { EventEmitter = options.eventEmitter; } // create mockRequest - var mockRequest = Object.create(EventEmitter.prototype); + const mockRequest = Object.create(EventEmitter.prototype); EventEmitter.call(mockRequest); mockRequest.method = options.method ? options.method : 'GET'; @@ -87,11 +82,11 @@ function createRequest(options) { mockRequest.ip = options.ip || '127.0.0.1'; mockRequest.ips = [mockRequest.ip]; - mockRequest.destroy = function () {}; + mockRequest.destroy = () => {}; - //parse query string from url to object + // parse query string from url to object if (Object.keys(mockRequest.query).length === 0) { - mockRequest.query = require('querystring').parse(mockRequest.url.split('?')[1]); + mockRequest.query = querystring.parse(mockRequest.url.split('?')[1]); if (!mockRequest.query.hasOwnProperty) { Object.defineProperty(mockRequest.query, 'hasOwnProperty', { @@ -102,7 +97,7 @@ function createRequest(options) { } // attach any other provided objects into the request for more advanced testing - for (var n in options) { + for (const n in options) { if (standardRequestOptions.indexOf(n) === -1) { mockRequest[n] = options[n]; } @@ -131,19 +126,18 @@ function createRequest(options) { * @return {String} * @api public */ - mockRequest.get = - mockRequest.getHeader = - mockRequest.header = - function (name) { - name = name.toLowerCase(); - switch (name) { - case 'referer': - case 'referrer': - return mockRequest.headers.referrer || mockRequest.headers.referer; - default: - return mockRequest.headers[name]; - } - }; + mockRequest.getHeader = function getHeader(name) { + const headerName = name.toLowerCase(); + switch (headerName) { + case 'referer': + case 'referrer': + return mockRequest.headers.referrer || mockRequest.headers.referer; + default: + return mockRequest.headers[headerName]; + } + }; + mockRequest.header = mockRequest.getHeader; + mockRequest.get = mockRequest.getHeader; /** * Function: is @@ -170,10 +164,13 @@ function createRequest(options) { * @return {String|false|null} Matching content type as string, false if no match, null if request has no body. * @api public */ - mockRequest.is = function (types) { - if (!Array.isArray(types)) { - types = [].slice.call(arguments); + mockRequest.is = function isContentType(...args) { + let types = args; + + if (Array.isArray(args[0])) { + types = args[0]; } + return typeis(mockRequest, types); }; @@ -198,8 +195,8 @@ function createRequest(options) { * @param {String|String[]} types Mime type(s) to check against * @return {String|false} Matching type or false if no match. */ - mockRequest.accepts = function (types) { - var Accepts = accepts(mockRequest); + mockRequest.accepts = function acceptsTypes(types) { + const Accepts = accepts(mockRequest); return Accepts.type(types); }; @@ -210,12 +207,14 @@ function createRequest(options) { * @return {String|Array} * @public */ - mockRequest.acceptsEncodings = function (encodings) { - if (!Array.isArray(encodings)) { - encodings = [].slice.call(arguments); + mockRequest.acceptsEncodings = function acceptsEncodings(...args) { + let encodings = args; + + if (Array.isArray(args[0])) { + encodings = args[0]; } - var accept = accepts(mockRequest); + const accept = accepts(mockRequest); return accept.encodings(encodings); }; @@ -227,12 +226,14 @@ function createRequest(options) { * @return {String|Array} * @public */ - mockRequest.acceptsCharsets = function (charsets) { - if (!Array.isArray(charsets)) { - charsets = [].slice.call(arguments); + mockRequest.acceptsCharsets = function acceptsCharsets(...args) { + let charsets = args; + + if (Array.isArray(args[0])) { + charsets = args[0]; } - var accept = accepts(mockRequest); + const accept = accepts(mockRequest); return accept.charsets(charsets); }; @@ -244,12 +245,14 @@ function createRequest(options) { * @return {String|Array} * @public */ - mockRequest.acceptsLanguages = function (languages) { - if (!Array.isArray(languages)) { - languages = [].slice.call(arguments); + mockRequest.acceptsLanguages = function acceptsLanguages(...args) { + let languages = args; + + if (Array.isArray(args[0])) { + languages = args[0]; } - var accept = accepts(mockRequest); + const accept = accepts(mockRequest); return accept.languages(languages); }; @@ -279,10 +282,10 @@ function createRequest(options) { * @return {false|number|array} * @public */ - mockRequest.range = function (size, opts) { - var range = mockRequest.get('Range'); + mockRequest.range = function isRange(size, opts) { + const range = mockRequest.get('Range'); if (!range) { - return; + return undefined; } return parseRange(size, range, opts); }; @@ -296,12 +299,14 @@ function createRequest(options) { * - req.body * - req.query */ - mockRequest.param = function (parameterName, defaultValue) { - if (mockRequest.params.hasOwnProperty(parameterName)) { + mockRequest.param = function param(parameterName, defaultValue) { + if ({}.hasOwnProperty.call(mockRequest.params, parameterName)) { return mockRequest.params[parameterName]; - } else if (mockRequest.body.hasOwnProperty(parameterName)) { + } + if ({}.hasOwnProperty.call(mockRequest.body, parameterName)) { return mockRequest.body[parameterName]; - } else if (mockRequest.query.hasOwnProperty(parameterName)) { + } + if ({}.hasOwnProperty.call(mockRequest.query, parameterName)) { return mockRequest.query[parameterName]; } return defaultValue; @@ -318,7 +323,7 @@ function createRequest(options) { * key - The key. For instance, 'bob' would be accessed: request.params.bob * value - The value to return when accessed. */ - mockRequest._setParameter = function (key, value) { + mockRequest._setParameter = function _setParameter(key, value) { mockRequest.params[key] = value; }; @@ -328,7 +333,7 @@ function createRequest(options) { * @param variable The variable to store in the session * @param value The value associated with the variable */ - mockRequest._setSessionVariable = function (variable, value) { + mockRequest._setSessionVariable = function _setSessionVariable(variable, value) { if (typeof mockRequest.session !== 'object') { mockRequest.session = {}; } @@ -341,7 +346,7 @@ function createRequest(options) { * @param variable The variable to store in the cookies * @param value The value associated with the variable */ - mockRequest._setCookiesVariable = function (variable, value) { + mockRequest._setCookiesVariable = function _setCookiesVariable(variable, value) { mockRequest.cookies[variable] = value; }; @@ -351,7 +356,7 @@ function createRequest(options) { * @param variable The variable to store in the signed cookies * @param value The value associated with the variable */ - mockRequest._setSignedCookiesVariable = function (variable, value) { + mockRequest._setSignedCookiesVariable = function _setSignedCookiesVariable(variable, value) { if (typeof mockRequest.signedCookies !== 'object') { mockRequest.signedCookies = {}; } @@ -364,9 +369,8 @@ function createRequest(options) { * @param variable The variable to store in the headers * @param value The value associated with the variable */ - mockRequest._setHeadersVariable = function (variable, value) { - variable = variable.toLowerCase(); - mockRequest.headers[variable] = value; + mockRequest._setHeadersVariable = function _setHeadersVariable(variable, value) { + mockRequest.headers[variable.toLowerCase()] = value; }; /** @@ -375,7 +379,7 @@ function createRequest(options) { * @param variable The variable to store in the files * @param value The value associated with the variable */ - mockRequest._setFilesVariable = function (variable, value) { + mockRequest._setFilesVariable = function _setFilesVariable(variable, value) { mockRequest.files[variable] = value; }; @@ -391,7 +395,7 @@ function createRequest(options) { * * Note: We don't validate the string. We just return it. */ - mockRequest._setMethod = function (method) { + mockRequest._setMethod = function _setMethod(method) { mockRequest.method = method; }; @@ -408,7 +412,7 @@ function createRequest(options) { * Note: We don't validate the string. We just return it. Typically, these * do not include hostname, port or that part of the URL. */ - mockRequest._setURL = function (value) { + mockRequest._setURL = function _setURL(value) { mockRequest.url = value; }; @@ -425,7 +429,7 @@ function createRequest(options) { * Note: We don't validate the string. We just return it. Typically, these * do not include hostname, port or that part of the URL. */ - mockRequest._setBaseUrl = function (value) { + mockRequest._setBaseUrl = function _setBaseUrl(value) { mockRequest.baseUrl = value; }; @@ -442,7 +446,7 @@ function createRequest(options) { * Note: We don't validate the string. We just return it. Typically, these * do not include hostname, port or that part of the URL. */ - mockRequest._setOriginalUrl = function (value) { + mockRequest._setOriginalUrl = function _setOriginalUrl(value) { mockRequest.originalUrl = value; }; @@ -466,7 +470,7 @@ function createRequest(options) { * If the client is expecting a JSON object through a REST interface, then * this object could be anything. */ - mockRequest._setBody = function (body) { + mockRequest._setBody = function _setBody(body) { mockRequest.body = body; }; @@ -482,7 +486,7 @@ function createRequest(options) { * key - The key. For instance, 'bob' would be accessed: request.params.bob * value - The value to return when accessed. */ - mockRequest._addBody = function (key, value) { + mockRequest._addBody = function _addBody(key, value) { mockRequest.body[key] = value; }; @@ -495,7 +499,7 @@ function createRequest(options) { * * data - string, array, object, number, buffer */ - mockRequest.send = function (data) { + mockRequest.send = function send(data) { if (Buffer.isBuffer(data)) { this.emit('data', data); } else if (typeof data === 'object' || typeof data === 'number') { @@ -513,12 +517,12 @@ function createRequest(options) { * */ if (!mockRequest.hostname) { - mockRequest.hostname = (function () { + mockRequest.hostname = (function getHostname() { if (!mockRequest.headers.host) { return ''; } - var hostname = mockRequest.headers.host.split(':')[0].split('.'); + const hostname = mockRequest.headers.host.split(':')[0].split('.'); return hostname.join('.'); })(); } @@ -529,13 +533,13 @@ function createRequest(options) { * Subdomains are the dot-separated parts of the host before the main domain of the app. * */ - mockRequest.subdomains = (function () { + mockRequest.subdomains = (function getSubdomains() { if (!mockRequest.headers.host) { return []; } - var offset = 2; - var subdomains = mockRequest.headers.host.split('.').reverse(); + const offset = 2; + const subdomains = mockRequest.headers.host.split('.').reverse(); return subdomains.slice(offset); })(); @@ -551,7 +555,7 @@ function createRequest(options) { let ended = false; let closed = false; let error = null; - let chunks = []; + const chunks = []; let resolvePromise = null; const promiseExecutor = (resolve) => { @@ -605,6 +609,7 @@ function createRequest(options) { try { for (;;) { + // eslint-disable-next-line no-await-in-loop await new Promise(promiseExecutor); let i = 0; for (;;) { diff --git a/lib/mockResponse.js b/lib/mockResponse.js index d5c302d..f847dd9 100644 --- a/lib/mockResponse.js +++ b/lib/mockResponse.js @@ -1,5 +1,3 @@ -'use strict'; - /** * File: mockResponse * @@ -25,29 +23,25 @@ * encoding - The default encoding for the response */ -var WritableStream = require('./mockWritableStream'); -var EventEmitter = require('./mockEventEmitter'); -var mime = require('mime'); -var http = require('./node/http'); -var utils = require('./utils'); -var path = require('path'); -var contentDisposition = require('content-disposition'); - -function createResponse(options) { - if (!options) { - options = {}; - } - - var _endCalled = false; - var _data = ''; - var _buffer = Buffer.alloc(0); - var _chunks = []; - var _size = 0; - var _encoding = options.encoding; - - var _redirectUrl = ''; - var _renderView = ''; - var _renderData = {}; +const mime = require('mime'); +const path = require('path'); +const contentDisposition = require('content-disposition'); +let WritableStream = require('./mockWritableStream'); +let EventEmitter = require('./mockEventEmitter'); +const http = require('./node/http'); +const utils = require('./utils'); + +function createResponse(options = {}) { + let _endCalled = false; + let _data = ''; + let _buffer = Buffer.alloc(0); + const _chunks = []; + let _size = 0; + let _encoding = options.encoding; + + let _redirectUrl = ''; + let _renderView = ''; + let _renderData = {}; if (options.writableStream) { WritableStream = options.writableStream; @@ -55,12 +49,12 @@ function createResponse(options) { if (options.eventEmitter) { EventEmitter = options.eventEmitter; } - var writableStream = new WritableStream(); + const writableStream = new WritableStream(); - var mockRequest = options.req; + const mockRequest = options.req; // create mockResponse - var mockResponse = Object.create(EventEmitter.prototype); + const mockResponse = Object.create(EventEmitter.prototype); EventEmitter.call(mockResponse); mockResponse._headers = {}; @@ -76,24 +70,24 @@ function createResponse(options) { // http://expressjs.com/en/api.html#res.locals mockResponse.locals = options.locals || {}; - mockResponse.cookie = function (name, value, opt) { + mockResponse.cookie = function cookie(name, value, opt) { mockResponse.cookies[name] = { - value: value, + value, options: opt }; return this; }; - mockResponse.clearCookie = function (name, opt) { - var opts = opt || {}; + mockResponse.clearCookie = function clearCookie(name, opt) { + const opts = opt || {}; opts.expires = new Date(1); opts.path = '/'; return this.cookie(name, '', opts); }; - mockResponse.status = function (code) { + mockResponse.status = function status(code) { mockResponse.statusCode = code; return this; }; @@ -109,7 +103,7 @@ function createResponse(options) { * headers - An object of properties that will be used for * the HTTP headers. */ - mockResponse.writeHead = function (statusCode, statusMessage, headers) { + mockResponse.writeHead = function writeHead(statusCode, statusMessage, headers) { if (_endCalled) { throw new Error('The end() method has already been called.'); } @@ -128,7 +122,9 @@ function createResponse(options) { // resolve statusMessage and headers as optional if (Object.prototype.toString.call(statusMessage) === '[object Object]') { + // eslint-disable-next-line no-param-reassign headers = statusMessage; + // eslint-disable-next-line no-param-reassign statusMessage = null; } @@ -154,8 +150,8 @@ function createResponse(options) { * * @param data The data to return. Must be a string. */ - mockResponse.send = function (a, b, c) { - var _formatData = function (data) { + mockResponse.send = function send(a, b, c) { + const _formatData = (data) => { if (typeof data === 'object') { if (data.statusCode) { mockResponse.statusCode = data.statusCode; @@ -231,7 +227,7 @@ function createResponse(options) { */ mockResponse.sendStatus = function sendStatus(statusCode) { - var body = http.STATUS_CODES[statusCode] || String(statusCode); + const body = http.STATUS_CODES[statusCode] || String(statusCode); mockResponse.statusCode = statusCode; mockResponse.type('txt'); @@ -253,7 +249,7 @@ function createResponse(options) { * If not specified, the statusCode defaults to 200. * Second parameter is optional. */ - mockResponse.json = function (a, b) { + mockResponse.json = function json(a, b) { mockResponse.setHeader('Content-Type', 'application/json'); if (typeof a !== 'undefined') { if (typeof a === 'number' && typeof b !== 'undefined') { @@ -286,7 +282,7 @@ function createResponse(options) { * If not specified, the statusCode defaults to 200. * Second parameter is optional. */ - mockResponse.jsonp = function (a, b) { + mockResponse.jsonp = function jsonp(a, b) { mockResponse.setHeader('Content-Type', 'text/javascript'); if (typeof a !== 'undefined') { if (typeof a === 'number' && typeof b !== 'undefined') { @@ -321,9 +317,10 @@ function createResponse(options) { * @return {ServerResponse} for chaining * @api public */ - mockResponse.contentType = mockResponse.type = function (type) { + mockResponse.contentType = function contentType(type) { return mockResponse.set('Content-Type', type.indexOf('/') >= 0 ? type : mime.lookup(type)); }; + mockResponse.type = mockResponse.contentType; /** * Set 'Location' response header. @@ -333,7 +330,7 @@ function createResponse(options) { * @param {String} location The location to set in the header. * @return {ServerResponse} For chaining */ - mockResponse.location = function (location) { + mockResponse.location = function setLocation(location) { return mockResponse.set('Location', location); }; @@ -349,7 +346,7 @@ function createResponse(options) { * encoding - Optional encoding value. */ - mockResponse.write = function (data, encoding) { + mockResponse.write = function write(data, encoding) { mockResponse.headersSent = true; if (data instanceof Buffer) { @@ -373,7 +370,9 @@ function createResponse(options) { * */ function getEndArguments(args) { - var data, encoding, callback; + let data; + let encoding; + let callback; if (args[0]) { if (typeof args[0] === 'function') { callback = args[0]; @@ -382,7 +381,7 @@ function createResponse(options) { } } if (args[1]) { - var type = typeof args[1]; + const type = typeof args[1]; if (type === 'function') { callback = args[1]; } else if (type === 'string' || args[1] instanceof String) { @@ -392,7 +391,7 @@ function createResponse(options) { if (args[2] && typeof args[2] === 'function') { callback = args[2]; } - return { data: data, encoding: encoding, callback: callback }; + return { data, encoding, callback }; } /** @@ -411,7 +410,7 @@ function createResponse(options) { * callback - Optional callback function, called once the logic has run * */ - mockResponse.end = function () { + mockResponse.end = function end(...endArgs) { if (_endCalled) { // Do not emit this event twice. return; @@ -423,7 +422,7 @@ function createResponse(options) { _endCalled = true; - var args = getEndArguments(arguments); + const args = getEndArguments(endArgs); if (args.data) { if (args.data instanceof Buffer) { @@ -441,8 +440,8 @@ function createResponse(options) { break; default: _buffer = Buffer.alloc(_size); - for (var i = 0, pos = 0, l = _chunks.length; i < l; i++) { - var chunk = _chunks[i]; + for (let i = 0, pos = 0, l = _chunks.length; i < l; i++) { + const chunk = _chunks[i]; chunk.copy(_buffer, pos); pos += chunk.length; } @@ -455,7 +454,7 @@ function createResponse(options) { } mockResponse.emit('end'); - mockResponse.writableFinished = true; //Reference: https://nodejs.org/docs/latest-v12.x/api/http.html#http_request_writablefinished + mockResponse.writableFinished = true; // Reference: https://nodejs.org/docs/latest-v12.x/api/http.html#http_request_writablefinished mockResponse.emit('finish'); if (args.callback) { @@ -473,23 +472,19 @@ function createResponse(options) { * res.vary('A-B-Test'); * res.vary(['A-B-Test', 'Known-User']); */ - mockResponse.vary = function (fields) { - var header = mockResponse.getHeader('Vary') || ''; - var values = header.length ? header.split(', ') : []; - - fields = Array.isArray(fields) ? fields : [fields]; + mockResponse.vary = function vary(fields) { + const header = mockResponse.getHeader('Vary') || ''; + let values = header.length ? header.split(', ') : []; - fields = fields.filter(function (field) { - var regex = new RegExp(field, 'i'); + const uniqueFields = (Array.isArray(fields) ? fields : [fields]).filter((field) => { + const regex = new RegExp(field, 'i'); - var matches = values.filter(function (value) { - return value.match(regex); - }); + const matches = values.filter((value) => value.match(regex)); return !matches.length; }); - values = values.concat(fields); + values = values.concat(uniqueFields); return mockResponse.setHeader('Vary', values.join(', ')); }; @@ -531,12 +526,12 @@ function createResponse(options) { * @api public */ mockResponse.append = function append(field, val) { - var prev = mockResponse.get(field); - var value = val; + const prev = mockResponse.get(field); + let value = val; if (prev) { // concat the new and prev vals - value = Array.isArray(prev) ? prev.concat(val) : Array.isArray(val) ? [prev].concat(val) : [prev, val]; + value = Array.isArray(prev) ? prev.concat(val) : [prev].concat(val); } return mockResponse.set(field, value); @@ -559,31 +554,34 @@ function createResponse(options) { * @return {ServerResponse} for chaining * @api public */ - mockResponse.set = mockResponse.header = function header(field, val) { + mockResponse.header = function header(field, val) { if (arguments.length === 2) { + let value; if (Array.isArray(val)) { - val = val.map(String); + value = val.map(String); } else { - val = String(val); + value = String(val); } - mockResponse.setHeader(field, val); + mockResponse.setHeader(field, value); } else if (typeof field === 'string') { return mockResponse.getHeader(field); } else { - // eslint-disable-line - for (var key in field) { - mockResponse.setHeader(key, field[key]); + for (const key in field) { + if ({}.hasOwnProperty.call(field, key)) { + mockResponse.setHeader(key, field[key]); + } } } return mockResponse; }; + mockResponse.set = mockResponse.header; /** * Function: getHeaders * * Returns a shallow copy of the current outgoing headers. */ - mockResponse.getHeaders = function () { + mockResponse.getHeaders = function getHeaders() { return JSON.parse(JSON.stringify(mockResponse._headers)); }; @@ -593,16 +591,17 @@ function createResponse(options) { * * Returns a particular header by name. */ - mockResponse.get = mockResponse.getHeader = function (name) { + mockResponse.getHeader = function getHeader(name) { return mockResponse._headers[name.toLowerCase()]; }; + mockResponse.get = mockResponse.getHeader; /** * Function: getHeaderNames * * Returns an array containing the unique names of the current outgoing headers. */ - mockResponse.getHeaderNames = function () { + mockResponse.getHeaderNames = function getHeaderNames() { return Object.keys(mockResponse._headers); // names are already stored in lowercase }; @@ -611,7 +610,7 @@ function createResponse(options) { * * Returns `true` if the header identified by `name` is currently set. */ - mockResponse.hasHeader = function (name) { + mockResponse.hasHeader = function hasHeader(name) { return name.toLowerCase() in mockResponse._headers; }; @@ -621,7 +620,7 @@ function createResponse(options) { * * Set a particular header by name. */ - mockResponse.setHeader = function (name, value) { + mockResponse.setHeader = function setHeader(name, value) { mockResponse._headers[name.toLowerCase()] = value; return this; }; @@ -631,7 +630,7 @@ function createResponse(options) { * * Removes an HTTP header by name. */ - mockResponse.removeHeader = function (name) { + mockResponse.removeHeader = function removeHeader(name) { delete mockResponse._headers[name.toLowerCase()]; }; @@ -644,11 +643,11 @@ function createResponse(options) { * * encoding - The string representing the encoding value. */ - mockResponse.setEncoding = function (encoding) { + mockResponse.setEncoding = function setEncoding(encoding) { _encoding = encoding; }; - mockResponse.getEncoding = function () { + mockResponse.getEncoding = function getEncoding() { return _encoding; }; @@ -657,7 +656,7 @@ function createResponse(options) { * * Redirect to a url with response code */ - mockResponse.redirect = function (a, b) { + mockResponse.redirect = function redirect(a, b) { switch (arguments.length) { case 1: mockResponse.statusCode = 302; @@ -683,11 +682,11 @@ function createResponse(options) { * Render a view with a callback responding with the * rendered string. */ - mockResponse.render = function (a, b, c) { + mockResponse.render = function render(a, b, c) { _renderView = a; - var data = b; - var done = c; + let data = b; + let done = c; // support callback function as second arg if (typeof b === 'function') { @@ -721,9 +720,8 @@ function createResponse(options) { * @param {Object} supported Object with formats to handler functions. * @return {Object} Whatever handler function returns. */ - mockResponse.format = function (supported) { - supported = supported || {}; - var types = Object.keys(supported); + mockResponse.format = function format(supported = {}) { + const types = Object.keys(supported); if (types.length === 0) { return mockResponse.sendStatus(406); @@ -731,12 +729,11 @@ function createResponse(options) { if (!mockRequest) { throw new Error( - 'Request object unavailable. Use createMocks or pass in a ' + - 'request object in createResponse to use format.' + 'Request object unavailable. Use createMocks or pass in a request object in createResponse to use format.' ); } - var accepted = mockRequest.accepts(types); + const accepted = mockRequest.accepts(types); if (accepted) { return supported[accepted](); @@ -758,16 +755,16 @@ function createResponse(options) { // return writableStream.end.apply(this, arguments); // }; - mockResponse.destroy = function () { - return writableStream.destroy.apply(this, arguments); + mockResponse.destroy = function destroy(...args) { + return writableStream.destroy.apply(this, args); }; - mockResponse.destroySoon = function () { - return writableStream.destroySoon.apply(this, arguments); + mockResponse.destroySoon = function destroySoon(...args) { + return writableStream.destroySoon.apply(this, args); }; - //This mock object stores some state as well - //as some test-analysis functions: + // This mock object stores some state as well + // as some test-analysis functions: /** * Function: _isEndCalled @@ -775,7 +772,7 @@ function createResponse(options) { * Since the function must be called, this function * returns true if it has been called. False otherwise. */ - mockResponse._isEndCalled = function () { + mockResponse._isEndCalled = function _isEndCalled() { return _endCalled; }; @@ -785,7 +782,7 @@ function createResponse(options) { * Returns all the headers that were set. This may be an * empty object, but probably will have "Content-Type" set. */ - mockResponse._getHeaders = function () { + mockResponse._getHeaders = function _getHeaders() { return mockResponse._headers; }; @@ -794,7 +791,7 @@ function createResponse(options) { * * Returns all the locals that were set. */ - mockResponse._getLocals = function () { + mockResponse._getLocals = function _getLocals() { return mockResponse.locals; }; @@ -803,7 +800,7 @@ function createResponse(options) { * * The data sent to the user. */ - mockResponse._getData = function () { + mockResponse._getData = function _getData() { return _data; }; @@ -812,7 +809,7 @@ function createResponse(options) { * * The data sent to the user as JSON. */ - mockResponse._getJSONData = function () { + mockResponse._getJSONData = function _getJSONData() { return JSON.parse(_data); }; @@ -822,7 +819,7 @@ function createResponse(options) { * The buffer containing data to be sent to the user. * Non-empty if Buffers were given in calls to write() and end() */ - mockResponse._getBuffer = function () { + mockResponse._getBuffer = function _getBuffer() { return _buffer; }; @@ -832,7 +829,7 @@ function createResponse(options) { * The buffer containing data to be sent to the user. * Non-empty if Buffers were given in calls to write() and end() */ - mockResponse._getChunks = function () { + mockResponse._getChunks = function _getChunks() { return _chunks; }; @@ -841,7 +838,7 @@ function createResponse(options) { * * The status code that was sent to the user. */ - mockResponse._getStatusCode = function () { + mockResponse._getStatusCode = function _getStatusCode() { return mockResponse.statusCode; }; @@ -850,7 +847,7 @@ function createResponse(options) { * * The status message that was sent to the user. */ - mockResponse._getStatusMessage = function () { + mockResponse._getStatusMessage = function _getStatusMessage() { return mockResponse.statusMessage; }; @@ -860,7 +857,7 @@ function createResponse(options) { * Returns true if the data sent was defined as JSON. * It doesn't validate the data that was sent. */ - mockResponse._isJSON = function () { + mockResponse._isJSON = function _isJSON() { return mockResponse.getHeader('Content-Type') === 'application/json'; }; @@ -874,7 +871,7 @@ function createResponse(options) { * * False if the encoding wasn't set and wasn't set to "utf8". */ - mockResponse._isUTF8 = function () { + mockResponse._isUTF8 = function _isUTF8() { if (!_encoding) { return false; } @@ -893,7 +890,7 @@ function createResponse(options) { * True if the "Content-Length" header was not * set. Otherwise, it compares it. */ - mockResponse._isDataLengthValid = function () { + mockResponse._isDataLengthValid = function _isDataLengthValid() { if (mockResponse.getHeader('Content-Length')) { return mockResponse.getHeader('Content-Length').toString() === _data.length.toString(); } @@ -909,7 +906,7 @@ function createResponse(options) { * * Redirect url */ - mockResponse._getRedirectUrl = function () { + mockResponse._getRedirectUrl = function _getRedirectUrl() { return _redirectUrl; }; @@ -922,7 +919,7 @@ function createResponse(options) { * * render view */ - mockResponse._getRenderView = function () { + mockResponse._getRenderView = function _getRenderView() { return _renderView; }; @@ -935,7 +932,7 @@ function createResponse(options) { * * render data */ - mockResponse._getRenderData = function () { + mockResponse._getRenderData = function _getRenderData() { return _renderData; }; diff --git a/lib/mockWritableStream.js b/lib/mockWritableStream.js index 217eafa..0e3ad22 100644 --- a/lib/mockWritableStream.js +++ b/lib/mockWritableStream.js @@ -1,5 +1,3 @@ -'use strict'; - /* * http://nodejs.org/api/stream.html#stream_writable_stream */ @@ -9,17 +7,17 @@ function WritableStream() {} Object.defineProperty(WritableStream, 'writable', { configurable: true, enumerable: true, - get: function () { + get() { return true; } }); // WritableStream.prototype.write = function(string, [encoding], [fd]){} // WritableStream.prototype.write = function(buffer){} -WritableStream.prototype.end = function () {}; +WritableStream.prototype.end = () => {}; // WritableStream.prototype.end = function(string, encoding){} // WritableStream.prototype.end = function(buffer){} -WritableStream.prototype.destroy = function () {}; -WritableStream.prototype.destroySoon = function () {}; +WritableStream.prototype.destroy = () => {}; +WritableStream.prototype.destroySoon = () => {}; module.exports = WritableStream; diff --git a/lib/node/_http_incoming.js b/lib/node/_http_incoming.js index 125b9b4..e6af488 100644 --- a/lib/node/_http_incoming.js +++ b/lib/node/_http_incoming.js @@ -1,7 +1,5 @@ -'use strict'; - -var util = require('util'); -var Stream = require('stream'); +const util = require('util'); +const Stream = require('stream'); function readStart() {} exports.readStart = readStart; @@ -41,19 +39,20 @@ util.inherits(IncomingMessage, Stream.Readable); exports.IncomingMessage = IncomingMessage; -IncomingMessage.prototype.read = function () {}; -IncomingMessage.prototype._read = function () {}; -IncomingMessage.prototype.destroy = function () {}; +IncomingMessage.prototype.read = () => {}; +IncomingMessage.prototype._read = () => {}; +IncomingMessage.prototype.destroy = () => {}; -IncomingMessage.prototype.setTimeout = function (msecs, callback) { +IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { if (callback) { setTimeout(callback, msecs); } }; -IncomingMessage.prototype._addHeaderLines = function (headers, n) { +IncomingMessage.prototype._addHeaderLines = function _addHeaderLines(headers, n) { if (headers && headers.length) { - var raw, dest; + let raw; + let dest; if (this.complete) { raw = this.rawTrailers; dest = this.trailers; @@ -62,9 +61,9 @@ IncomingMessage.prototype._addHeaderLines = function (headers, n) { dest = this.headers; } - for (var i = 0; i < n; i += 2) { - var k = headers[i]; - var v = headers[i + 1]; + for (let i = 0; i < n; i += 2) { + const k = headers[i]; + const v = headers[i + 1]; raw.push(k); raw.push(v); this._addHeaderLine(k, v, dest); @@ -72,15 +71,17 @@ IncomingMessage.prototype._addHeaderLines = function (headers, n) { } }; -IncomingMessage.prototype._addHeaderLine = function (field, value, dest) { - field = field.toLowerCase(); - switch (field) { +IncomingMessage.prototype._addHeaderLine = function _addHeaderLine(field, value, dest) { + const fieldName = field.toLowerCase(); + switch (fieldName) { // Array headers: case 'set-cookie': - if (!util.isUndefined(dest[field])) { - dest[field].push(value); + if (!util.isUndefined(dest[fieldName])) { + // eslint-disable-next-line no-param-reassign + dest[fieldName].push(value); } else { - dest[field] = [value]; + // eslint-disable-next-line no-param-reassign + dest[fieldName] = [value]; } break; @@ -96,21 +97,24 @@ IncomingMessage.prototype._addHeaderLine = function (field, value, dest) { case 'from': case 'location': case 'max-forwards': - if (util.isUndefined(dest[field])) { - dest[field] = value; + if (util.isUndefined(dest[fieldName])) { + // eslint-disable-next-line no-param-reassign + dest[fieldName] = value; } break; default: - if (!util.isUndefined(dest[field])) { - dest[field] += ', ' + value; + if (!util.isUndefined(dest[fieldName])) { + // eslint-disable-next-line no-param-reassign + dest[fieldName] += `, ${value}`; } else { - dest[field] = value; + // eslint-disable-next-line no-param-reassign + dest[fieldName] = value; } } }; -IncomingMessage.prototype._dump = function () { +IncomingMessage.prototype._dump = function _dump() { if (!this._dumped) { this._dumped = true; } diff --git a/lib/node/_http_server.js b/lib/node/_http_server.js index 3a85fe3..6fc128d 100644 --- a/lib/node/_http_server.js +++ b/lib/node/_http_server.js @@ -1,5 +1,3 @@ -'use strict'; - exports.STATUS_CODES = { 100: 'Continue', 101: 'Switching Protocols', diff --git a/lib/node/http.js b/lib/node/http.js index c216f59..ba3b12d 100644 --- a/lib/node/http.js +++ b/lib/node/http.js @@ -1,6 +1,5 @@ -'use strict'; - -var server = require('./_http_server'); +const server = require('./_http_server'); exports.IncomingMessage = require('./_http_incoming').IncomingMessage; + exports.STATUS_CODES = server.STATUS_CODES; diff --git a/lib/utils.js b/lib/utils.js index 5811a05..1b64323 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,9 +1,9 @@ -'use strict'; - -module.exports.convertKeysToLowerCase = function (map) { - var newMap = {}; - for (var key in map) { - newMap[key.toLowerCase()] = map[key]; +module.exports.convertKeysToLowerCase = (map) => { + const newMap = {}; + for (const key in map) { + if ({}.hasOwnProperty.call(map, key)) { + newMap[key.toLowerCase()] = map[key]; + } } return newMap; }; diff --git a/package-lock.json b/package-lock.json index 0ef3b50..1c9fc27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,10 +25,14 @@ "devDependencies": { "@types/chai": "^4.3.11", "@types/mocha": "^10.0.6", + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", "chai": "^4.2.0", - "eslint": "^7.7.0", + "eslint": "^8.56.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-import": "^2.29.1", "gulp": "^4.0.2", - "gulp-eslint": "^6.0.0", "gulp-istanbul": "^1.1.3", "gulp-mocha": "^8.0.0", "husky": "^8.0.3", @@ -45,6 +49,15 @@ "node": ">=14" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -83,26 +96,56 @@ "node": ">=12" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/@eslint/eslintrc/node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -120,19 +163,28 @@ } } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "argparse": "^2.0.1" }, - "engines": { - "node": ">=8" + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": "*" } }, "node_modules/@eslint/eslintrc/node_modules/ms": { @@ -141,39 +193,24 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.0", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" @@ -196,16 +233,37 @@ } } }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@humanwhocodes/config-array/node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + } + }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "node_modules/@jest/schemas": { @@ -430,6 +488,12 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, "node_modules/@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", @@ -471,6 +535,12 @@ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, "node_modules/@types/serve-static": { "version": "1.15.1", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", @@ -480,157 +550,475 @@ "@types/node": "*" } }, - "node_modules/@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", - "dev": true - }, - "node_modules/abbrev": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", - "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=", - "dev": true - }, - "node_modules/accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.17.0.tgz", + "integrity": "sha512-Vih/4xLXmY7V490dGwBQJTpIZxH4ZFH6eCVmQ4RFkB+wmaCTDAx4dtgoWwMNGKLkqRY1L6rPqzEbjorRnDo4rQ==", + "dev": true, "dependencies": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/type-utils": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">= 0.6" + "node": "^16.0.0 || >=18.0.0" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "ms": "2.1.2" }, "engines": { - "node": ">=0.4.0" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, - "node_modules/acorn-walk": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", - "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, "engines": { - "node": ">=0.4.0" + "node": ">=10" } }, - "node_modules/ajv": { - "version": "6.12.4", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz", - "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==", + "node_modules/@typescript-eslint/parser": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.17.0.tgz", + "integrity": "sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "node_modules/@typescript-eslint/parser/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "optional": true, + "dependencies": { + "ms": "2.1.2" + }, "engines": { - "node": ">=0.4.2" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "node_modules/@typescript-eslint/parser/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.17.0.tgz", + "integrity": "sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==", "dev": true, "dependencies": { - "ansi-wrap": "^0.1.0" + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0" }, "engines": { - "node": ">=0.10.0" + "node": "^16.0.0 || >=18.0.0" } }, - "node_modules/ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "node_modules/@typescript-eslint/type-utils": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.17.0.tgz", + "integrity": "sha512-hDXcWmnbtn4P2B37ka3nil3yi3VCQO2QEB9gBiHJmQp5wmyQWqnjA85+ZcE8c4FqnaB6lBwMrPkgd4aBYz3iNg==", "dev": true, "dependencies": { - "ansi-wrap": "0.1.0" + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": "^16.0.0 || >=18.0.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/ansi-escapes": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", - "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "node_modules/@typescript-eslint/type-utils/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { - "type-fest": "^0.11.0" + "ms": "2.1.2" }, "engines": { - "node": ">=8" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", - "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "node_modules/@typescript-eslint/type-utils/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@typescript-eslint/types": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.17.0.tgz", + "integrity": "sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==", "dev": true, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^16.0.0 || >=18.0.0" } }, - "node_modules/ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.17.0.tgz", + "integrity": "sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==", "dev": true, "dependencies": { - "ansi-wrap": "0.1.0" + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": "^16.0.0 || >=18.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "dependencies": { - "ansi-wrap": "0.1.0" - }, + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.17.0.tgz", + "integrity": "sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.17.0.tgz", + "integrity": "sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.17.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + } + }, + "node_modules/@ungap/promise-all-settled": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", + "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", + "dev": true + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/abbrev": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", + "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", + "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dev": true, + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "dev": true, + "dependencies": { + "type-fest": "^0.11.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", + "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, "engines": { "node": ">=0.10.0" } @@ -771,6 +1159,16 @@ "node": ">=0.10.0" } }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + } + }, "node_modules/array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", @@ -780,6 +1178,22 @@ "node": ">=0.10.0" } }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/array-initial": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", @@ -873,6 +1287,70 @@ "node": ">=0.10.0" } }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", @@ -900,15 +1378,6 @@ "node": ">=0.10.0" } }, - "node_modules/astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", @@ -960,6 +1429,15 @@ "node": ">= 4.5.0" } }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/bach": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", @@ -1016,42 +1494,17 @@ "node": ">=0.10.0" } }, - "node_modules/base/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/base/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/binary-extensions": { @@ -1074,9 +1527,9 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.9.tgz", - "integrity": "sha512-/+o3o6OV1cm3WKrO7U4wykU+ZICE6HiMEuravc2d03NIuM/VaRn5iMcoQ7NyxFXjvpmRICP2EER0YOnh4yIapA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "dependencies": { "balanced-match": "^1.0.0", @@ -1157,6 +1610,17 @@ "node": ">=0.10.0" } }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -1232,12 +1696,6 @@ "node": ">=4" } }, - "node_modules/chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, "node_modules/check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -1297,27 +1755,6 @@ "node": ">=0.10.0" } }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, "node_modules/cliui": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", @@ -1458,6 +1895,12 @@ "typedarray": "^0.0.6" } }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, "node_modules/content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", @@ -1666,13 +2109,29 @@ "node": ">= 0.10" } }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, "dependencies": { - "object-keys": "^1.0.12" + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" }, "engines": { "node": ">= 0.4" @@ -1691,42 +2150,17 @@ "node": ">=0.10.0" } }, - "node_modules/define-property/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-property/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/define-property/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/depd": { @@ -1820,9 +2254,9 @@ } }, "node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "node_modules/end-of-stream": { @@ -1834,34 +2268,100 @@ "once": "^1.4.0" } }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "dependencies": { - "ansi-colors": "^4.1.1" + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" }, "engines": { - "node": ">=8.6" + "node": ">= 0.4" } }, - "node_modules/enquirer/node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" } }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, "dependencies": { - "is-arrayish": "^0.2.1" + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es5-ext": { @@ -1984,60 +2484,95 @@ } }, "node_modules/eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", - "ajv": "^6.10.0", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", - "debug": "^4.0.1", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "enquirer": "^2.3.5", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" }, "bin": { "eslint": "bin/eslint.js" }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, "engines": { "node": "^10.12.0 || >=12.0.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" + } + }, + "node_modules/eslint-config-airbnb-base/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, "node_modules/eslint-formatter-pretty": { @@ -2120,12 +2655,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/eslint-formatter-pretty/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "node_modules/eslint-formatter-pretty/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -2182,6 +2711,143 @@ "node": ">=8" } }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/eslint-rule-docs": { "version": "1.1.235", "resolved": "https://registry.npmjs.org/eslint-rule-docs/-/eslint-rule-docs-1.1.235.tgz", @@ -2189,40 +2855,25 @@ "dev": true }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { - "node": ">=4" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/eslint/node_modules/ansi-regex": { @@ -2244,19 +2895,13 @@ }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/eslint/node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/eslint/node_modules/chalk": { "version": "4.1.2", @@ -2269,9 +2914,6 @@ }, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/eslint/node_modules/color-convert": { @@ -2309,12 +2951,6 @@ } } }, - "node_modules/eslint/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -2322,76 +2958,31 @@ "dev": true, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint/node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/eslint/node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=10" } }, - "node_modules/eslint/node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, "node_modules/eslint/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "is-glob": "^4.0.3" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=10.13.0" } }, "node_modules/eslint/node_modules/has-flag": { @@ -2403,21 +2994,18 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/eslint/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/eslint/node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -2431,6 +3019,18 @@ "node": ">= 0.8.0" } }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2450,90 +3050,62 @@ "dev": true }, "node_modules/eslint/node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" } }, - "node_modules/eslint/node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/eslint/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" + "yocto-queue": "^0.1.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=10" } }, - "node_modules/eslint/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "p-limit": "^3.0.2" }, "engines": { "node": ">=10" } }, - "node_modules/eslint/node_modules/slice-ansi": { + "node_modules/eslint/node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "node": ">=8" } }, - "node_modules/eslint/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/eslint/node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, "node_modules/eslint/node_modules/strip-ansi": { @@ -2548,18 +3120,6 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/eslint/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -2572,38 +3132,6 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/eslint/node_modules/table/node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/eslint/node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -2616,30 +3144,18 @@ "node": ">= 0.8.0" } }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/esprima": { @@ -2656,9 +3172,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -2667,15 +3183,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -2688,7 +3195,7 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", @@ -2697,15 +3204,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", @@ -2838,20 +3336,6 @@ "node": ">=0.10.0" } }, - "node_modules/external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -2862,75 +3346,50 @@ "define-property": "^1.0.0", "expand-brackets": "^2.1.4", "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/extglob/node_modules/is-accessor-descriptor": { + "node_modules/extglob/node_modules/define-property": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", "dev": true, "dependencies": { - "kind-of": "^6.0.0" + "is-descriptor": "^1.0.0" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/extglob/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, "dependencies": { - "kind-of": "^6.0.0" + "is-extendable": "^0.1.0" }, "engines": { "node": ">=0.10.0" } }, "node_modules/extglob/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/fancy-log": { @@ -3060,31 +3519,16 @@ "reusify": "^1.0.4" } }, - "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/file-entry-cache": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "dependencies": { - "flat-cache": "^2.0.1" + "flat-cache": "^3.0.4" }, "engines": { - "node": ">=4" + "node": "^10.12.0 || >=12.0.0" } }, "node_modules/file-uri-to-path": { @@ -3175,23 +3619,23 @@ } }, "node_modules/flat-cache": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "dependencies": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" }, "engines": { - "node": ">=4" + "node": "^10.12.0 || >=12.0.0" } }, "node_modules/flatted": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", - "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, "node_modules/flush-write-stream": { @@ -3204,6 +3648,15 @@ "readable-stream": "^2.3.6" } }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, "node_modules/for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -3284,15 +3737,30 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true }, "node_modules/get-caller-file": { @@ -3310,6 +3778,18 @@ "node": "*" } }, + "node_modules/get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + } + }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -3322,6 +3802,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", @@ -3443,339 +3936,116 @@ } }, "node_modules/globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", - "dev": true, - "dependencies": { - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby/node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/glogg": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", - "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", - "dev": true, - "dependencies": { - "sparkles": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "node_modules/growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true, - "engines": { - "node": ">=4.x" - } - }, - "node_modules/gulp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz", - "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", - "dev": true, - "dependencies": { - "glob-watcher": "^5.0.3", - "gulp-cli": "^2.2.0", - "undertaker": "^1.2.1", - "vinyl-fs": "^3.0.0" - }, - "bin": { - "gulp": "bin/gulp.js" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/gulp-eslint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gulp-eslint/-/gulp-eslint-6.0.0.tgz", - "integrity": "sha512-dCVPSh1sA+UVhn7JSQt7KEb4An2sQNbOdB3PA8UCfxsoPlAKjJHxYHGXdXC7eb+V1FAnilSFFqslPrq037l1ig==", - "dev": true, - "dependencies": { - "eslint": "^6.0.0", - "fancy-log": "^1.3.2", - "plugin-error": "^1.0.1" - } - }, - "node_modules/gulp-eslint/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/gulp-eslint/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/gulp-eslint/node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/gulp-eslint/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/gulp-eslint/node_modules/eslint": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", - "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^1.4.3", - "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", - "esquery": "^1.0.1", - "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "inquirer": "^7.0.0", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.14", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "optionator": "^0.8.3", - "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^6.1.2", - "strip-ansi": "^5.2.0", - "strip-json-comments": "^3.0.1", - "table": "^5.2.3", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^8.10.0 || ^10.13.0 || >=11.10.1" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/gulp-eslint/node_modules/eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/gulp-eslint/node_modules/espree": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", - "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-jsx": "^5.2.0", - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/gulp-eslint/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/gulp-eslint/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/gulp-eslint/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/gulp-eslint/node_modules/plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" + "type-fest": "^0.20.2" }, "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/gulp-eslint/node_modules/regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "node_modules/globals/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, "engines": { - "node": ">=6.5.0" + "node": ">=10" } }, - "node_modules/gulp-eslint/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/gulp-eslint/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "dependencies": { - "shebang-regex": "^1.0.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/gulp-eslint/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "node_modules/glogg": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", + "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", "dev": true, + "dependencies": { + "sparkles": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.10" } }, - "node_modules/gulp-eslint/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" + "get-intrinsic": "^1.1.3" } }, - "node_modules/gulp-eslint/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/graceful-fs": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=4.x" + } + }, + "node_modules/gulp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.2.tgz", + "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", + "dev": true, + "dependencies": { + "glob-watcher": "^5.0.3", + "gulp-cli": "^2.2.0", + "undertaker": "^1.2.1", + "vinyl-fs": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "gulp": "bin/gulp.js" + }, + "engines": { + "node": ">= 0.10" } }, "node_modules/gulp-istanbul": { @@ -3965,17 +4235,11 @@ "node": ">=6" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true }, "node_modules/has-flag": { "version": "1.0.0", @@ -3986,6 +4250,24 @@ "node": ">=0.10.0" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -3998,6 +4280,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", @@ -4037,6 +4331,18 @@ "node": ">=0.10.0" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -4085,31 +4391,19 @@ "node": ">=14" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "dev": true, "engines": { "node": ">= 4" } }, "node_modules/import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, "dependencies": { "parent-module": "^1.0.0", @@ -4122,7 +4416,7 @@ "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "engines": { "node": ">=0.8.19" @@ -4159,148 +4453,18 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, - "node_modules/inquirer": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", - "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.19", - "mute-stream": "0.0.8", - "run-async": "^2.4.0", - "rxjs": "^6.6.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/inquirer/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/inquirer/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/inquirer/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/inquirer/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/inquirer/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/inquirer/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" }, "engines": { - "node": ">=8" + "node": ">= 0.4" } }, "node_modules/interpret": { @@ -4344,27 +4508,26 @@ } }, "node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", + "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", "dev": true, "dependencies": { - "is-buffer": "^1.1.5" + "hasown": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" } }, "node_modules/is-arrayish": { @@ -4373,6 +4536,15 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + } + }, "node_modules/is-binary-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", @@ -4385,69 +4557,78 @@ "node": ">=0.10.0" } }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dev": true, "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "hasown": "^2.0.0" } }, "node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", + "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", "dev": true, "dependencies": { - "kind-of": "^3.0.2" + "hasown": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, - "node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "dev": true, "dependencies": { - "is-buffer": "^1.1.5" + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-descriptor/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/is-extendable": { @@ -4501,6 +4682,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -4513,6 +4703,18 @@ "node": ">=0.10.0" } }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-number/node_modules/kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -4525,6 +4727,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -4546,6 +4757,19 @@ "node": ">=0.10.0" } }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-relative": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", @@ -4558,6 +4782,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + } + }, "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", @@ -4570,6 +4803,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", @@ -4582,18 +4851,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", @@ -4609,6 +4866,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + } + }, "node_modules/is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -4823,9 +5089,9 @@ "dev": true }, "node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "dependencies": { "argparse": "^1.0.7", @@ -4835,6 +5101,12 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -4853,6 +5125,18 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, "node_modules/just-debounce": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz", @@ -4865,6 +5149,15 @@ "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", "dev": true }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -5007,26 +5300,16 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", + "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", "dev": true, "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "chalk": "^4.0.0" }, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/log-symbols/node_modules/ansi-styles": { @@ -5678,9 +5961,9 @@ } }, "node_modules/mocha/node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "dependencies": { "normalize-path": "^3.0.0", @@ -5729,34 +6012,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mocha/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/mocha/node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/mocha/node_modules/chokidar": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", @@ -5851,12 +6106,6 @@ "node": ">=0.3.1" } }, - "node_modules/mocha/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "node_modules/mocha/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -5907,9 +6156,9 @@ } }, "node_modules/mocha/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, "optional": true, @@ -6007,18 +6256,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mocha/node_modules/log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/mocha/node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -6102,18 +6339,6 @@ "node": ">=8" } }, - "node_modules/mocha/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/mocha/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -6239,12 +6464,6 @@ "node": ">= 0.10" } }, - "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, "node_modules/nan": { "version": "2.14.1", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", @@ -6289,7 +6508,7 @@ "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, "node_modules/negotiator": { @@ -6312,12 +6531,6 @@ "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", "dev": true }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, "node_modules/nise": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", @@ -6435,6 +6648,12 @@ "node": ">=0.10.0" } }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true + }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -6457,15 +6676,15 @@ } }, "node_modules/object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, "dependencies": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" }, "engines": { "node": ">= 0.4" @@ -6486,6 +6705,46 @@ "node": ">=0.10.0" } }, + "node_modules/object.entries": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, "node_modules/object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", @@ -6524,6 +6783,20 @@ "node": ">=0.10.0" } }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -6586,15 +6859,6 @@ "node": ">=0.10.0" } }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", @@ -6660,7 +6924,7 @@ "node_modules/parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", "dev": true, "dependencies": { "error-ex": "^1.2.0" @@ -6776,7 +7040,7 @@ "node_modules/path-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", "dev": true, "dependencies": { "graceful-fs": "^4.1.2", @@ -6992,15 +7256,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/pump": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", @@ -7023,9 +7278,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -7086,7 +7341,7 @@ "node_modules/read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", "dev": true, "dependencies": { "load-json-file": "^1.0.0", @@ -7100,7 +7355,7 @@ "node_modules/read-pkg-up": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", "dev": true, "dependencies": { "find-up": "^1.0.0", @@ -7111,9 +7366,9 @@ } }, "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, "dependencies": { "core-util-is": "~1.0.0", @@ -7177,16 +7432,18 @@ "node": ">=0.10.0" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" + "engines": { + "node": ">= 0.4" } }, "node_modules/remove-bom-buffer": { @@ -7272,15 +7529,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", @@ -7288,20 +7536,17 @@ "dev": true }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, "node_modules/resolve-dir": { @@ -7345,19 +7590,6 @@ "deprecated": "https://github.com/lydell/resolve-url#deprecated", "dev": true }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", @@ -7378,9 +7610,9 @@ } }, "node_modules/rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "dependencies": { "glob": "^7.1.3" @@ -7389,15 +7621,6 @@ "rimraf": "bin.js" } }, - "node_modules/run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -7421,18 +7644,27 @@ "queue-microtask": "^1.2.2" } }, - "node_modules/rxjs": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", - "integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==", + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", "dev": true, "dependencies": { - "tslib": "^1.9.0" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" }, "engines": { - "npm": ">=2.0.0" + "node": ">=0.4" } }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -7447,16 +7679,21 @@ "ret": "~0.1.10" } }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } }, "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -7489,6 +7726,35 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", @@ -7537,6 +7803,17 @@ "node": ">=8" } }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -7602,29 +7879,6 @@ "node": ">=8" } }, - "node_modules/slice-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", @@ -7670,42 +7924,17 @@ "node": ">=0.10.0" } }, - "node_modules/snapdragon-node/node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/snapdragon-node/node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, "node_modules/snapdragon-util": { @@ -7914,6 +8143,42 @@ "node": ">=0.10.0" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, "node_modules/strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -7929,7 +8194,7 @@ "node_modules/strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", "dev": true, "dependencies": { "is-utf8": "^0.2.0" @@ -7959,6 +8224,15 @@ "node": ">=8" } }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -8036,75 +8310,10 @@ "es6-symbol": "^3.1.1" } }, - "node_modules/table": { - "version": "5.4.6", - "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", - "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", - "dev": true, - "dependencies": { - "ajv": "^6.10.2", - "lodash": "^4.17.14", - "slice-ansi": "^2.1.0", - "string-width": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/table/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/table/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/table/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, "node_modules/through2": { @@ -8136,18 +8345,6 @@ "node": ">=0.10.0" } }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/to-absolute-glob": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", @@ -8234,6 +8431,18 @@ "node": ">=8" } }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", @@ -8277,16 +8486,25 @@ } } }, - "node_modules/ts-node/node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, "engines": { - "node": ">=0.4.0" + "node": ">=4" } }, "node_modules/tsd": { @@ -8391,12 +8609,6 @@ "node": ">=8" } }, - "node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, "node_modules/type": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", @@ -8445,6 +8657,62 @@ "node": ">= 0.6" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, "node_modules/typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", @@ -8491,6 +8759,18 @@ "node": ">=0.10.0" } }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, "node_modules/unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -8625,9 +8905,9 @@ } }, "node_modules/uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, "dependencies": { "punycode": "^2.1.0" @@ -8655,12 +8935,6 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "node_modules/v8-compile-cache": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", - "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", - "dev": true - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", @@ -8794,12 +9068,41 @@ "which": "bin/which" } }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, "node_modules/which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", @@ -8849,18 +9152,6 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "node_modules/write": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", - "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", - "dev": true, - "dependencies": { - "mkdirp": "^0.5.1" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -8936,6 +9227,12 @@ } }, "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, "@babel/code-frame": { "version": "7.12.11", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", @@ -8968,26 +9265,47 @@ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, "requires": { - "@jridgewell/trace-mapping": "0.3.9" + "@jridgewell/trace-mapping": "0.3.9" + } + }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" } }, + "@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true + }, "@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "requires": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -8997,13 +9315,22 @@ "ms": "2.1.2" } }, - "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "requires": { - "type-fest": "^0.20.2" + "brace-expansion": "^1.1.7" } }, "ms": { @@ -9011,30 +9338,24 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true } } }, + "@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true + }, "@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", "dev": true, "requires": { - "@humanwhocodes/object-schema": "^1.2.0", + "@humanwhocodes/object-schema": "^2.0.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "dependencies": { "debug": { @@ -9046,6 +9367,15 @@ "ms": "2.1.2" } }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -9054,10 +9384,16 @@ } } }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", "dev": true }, "@jest/schemas": { @@ -9264,6 +9600,12 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, "@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", @@ -9305,6 +9647,12 @@ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" }, + "@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, "@types/serve-static": { "version": "1.15.1", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", @@ -9314,12 +9662,234 @@ "@types/node": "*" } }, + "@typescript-eslint/eslint-plugin": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.17.0.tgz", + "integrity": "sha512-Vih/4xLXmY7V490dGwBQJTpIZxH4ZFH6eCVmQ4RFkB+wmaCTDAx4dtgoWwMNGKLkqRY1L6rPqzEbjorRnDo4rQ==", + "dev": true, + "requires": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/type-utils": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/parser": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.17.0.tgz", + "integrity": "sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@typescript-eslint/scope-manager": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.17.0.tgz", + "integrity": "sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0" + } + }, + "@typescript-eslint/type-utils": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.17.0.tgz", + "integrity": "sha512-hDXcWmnbtn4P2B37ka3nil3yi3VCQO2QEB9gBiHJmQp5wmyQWqnjA85+ZcE8c4FqnaB6lBwMrPkgd4aBYz3iNg==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } + } + }, + "@typescript-eslint/types": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.17.0.tgz", + "integrity": "sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.17.0.tgz", + "integrity": "sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.17.0.tgz", + "integrity": "sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "semver": "^7.5.4" + }, + "dependencies": { + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.17.0.tgz", + "integrity": "sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "6.17.0", + "eslint-visitor-keys": "^3.4.1" + } + }, "@ungap/promise-all-settled": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", "dev": true }, + "@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "abbrev": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", @@ -9336,9 +9906,9 @@ } }, "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true }, "acorn-jsx": { @@ -9355,9 +9925,9 @@ "dev": true }, "ajv": { - "version": "6.12.4", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz", - "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==", + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -9534,12 +10104,35 @@ "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", "dev": true }, + "array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + } + }, "array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", "dev": true }, + "array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + } + }, "array-initial": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz", @@ -9612,6 +10205,58 @@ "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, + "array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + } + }, + "array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + } + }, + "arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + } + }, "arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", @@ -9630,12 +10275,6 @@ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, "async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", @@ -9675,6 +10314,12 @@ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", "dev": true }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true + }, "bach": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", @@ -9722,33 +10367,14 @@ "is-descriptor": "^1.0.0" } }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" } } } @@ -9770,9 +10396,9 @@ } }, "brace-expansion": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.9.tgz", - "integrity": "sha512-/+o3o6OV1cm3WKrO7U4wykU+ZICE6HiMEuravc2d03NIuM/VaRn5iMcoQ7NyxFXjvpmRICP2EER0YOnh4yIapA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -9843,6 +10469,17 @@ "unset-value": "^1.0.0" } }, + "call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dev": true, + "requires": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + } + }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -9899,12 +10536,6 @@ "supports-color": "^5.3.0" } }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, "check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -9948,27 +10579,12 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" + "requires": { + "is-descriptor": "^0.1.0" + } + } } }, - "cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true - }, "cliui": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", @@ -10088,6 +10704,12 @@ "typedarray": "^0.0.6" } }, + "confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, "content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", @@ -10256,13 +10878,26 @@ "integrity": "sha1-vLgrqnKtebQmp2cy8aga1t8m1oQ=", "dev": true }, + "define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, "requires": { - "object-keys": "^1.0.12" + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" } }, "define-property": { @@ -10275,33 +10910,14 @@ "isobject": "^3.0.1" }, "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" } } } @@ -10378,9 +10994,9 @@ } }, "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "end-of-stream": { @@ -10392,23 +11008,6 @@ "once": "^1.4.0" } }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.1" - }, - "dependencies": { - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true - } - } - }, "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -10418,6 +11017,84 @@ "is-arrayish": "^0.2.1" } }, + "es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "requires": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + } + }, + "es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" + } + }, + "es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "requires": { + "hasown": "^2.0.0" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, "es5-ext": { "version": "0.10.53", "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz", @@ -10512,51 +11189,49 @@ } }, "eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", - "ajv": "^6.10.0", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", - "debug": "^4.0.1", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "enquirer": "^2.3.5", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" }, "dependencies": { "ansi-regex": { @@ -10574,10 +11249,10 @@ "color-convert": "^2.0.1" } }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, "chalk": { @@ -10614,65 +11289,29 @@ "ms": "2.1.2" } }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" } }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "requires": { - "type-fest": "^0.20.2" + "is-glob": "^4.0.3" } }, "has-flag": { @@ -10681,17 +11320,14 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } }, "levn": { "version": "0.4.1", @@ -10703,6 +11339,15 @@ "type-check": "~0.4.0" } }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -10719,64 +11364,48 @@ "dev": true }, "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "requires": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" } }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "glob": "^7.1.3" + "yocto-queue": "^0.1.0" } }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "requires": { - "lru-cache": "^6.0.0" + "p-limit": "^3.0.2" } }, - "slice-ansi": { + "path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - } + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true }, "strip-ansi": { "version": "6.0.1", @@ -10787,12 +11416,6 @@ "ansi-regex": "^5.0.1" } }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -10802,33 +11425,6 @@ "has-flag": "^4.0.0" } }, - "table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - } - } - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -10837,15 +11433,36 @@ "requires": { "prelude-ls": "^1.2.1" } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + } + } + }, + "eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "requires": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } }, + "eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "requires": {} + }, "eslint-formatter-pretty": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/eslint-formatter-pretty/-/eslint-formatter-pretty-4.1.0.tgz", @@ -10902,12 +11519,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -10919,35 +11530,155 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + } + } + }, + "eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + } + } + }, + "eslint-plugin-import": { + "version": "2.29.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", + "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", + "dev": true, + "requires": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.15.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "ms": "^2.1.1" } }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { - "ansi-regex": "^5.0.1" + "esutils": "^2.0.2" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "brace-expansion": "^1.1.7" } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true } } }, @@ -10958,39 +11689,30 @@ "dev": true }, "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "requires": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" + "estraverse": "^5.2.0" } }, "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true }, "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" } }, "esprima": { @@ -11000,20 +11722,12 @@ "dev": true }, "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "requires": { "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "esrecurse": { @@ -11023,20 +11737,12 @@ "dev": true, "requires": { "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } } }, "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true }, "esutils": { @@ -11150,17 +11856,6 @@ } } }, - "external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, "extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -11195,33 +11890,14 @@ "is-extendable": "^0.1.0" } }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" } } } @@ -11331,22 +12007,13 @@ "reusify": "^1.0.4" } }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, "file-entry-cache": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", - "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "requires": { - "flat-cache": "^2.0.1" + "flat-cache": "^3.0.4" } }, "file-uri-to-path": { @@ -11421,20 +12088,20 @@ "dev": true }, "flat-cache": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", - "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, "requires": { - "flatted": "^2.0.0", - "rimraf": "2.6.3", - "write": "1.0.3" + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" } }, "flatted": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", - "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, "flush-write-stream": { @@ -11447,6 +12114,15 @@ "readable-stream": "^2.3.6" } }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "requires": { + "is-callable": "^1.1.3" + } + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -11504,15 +12180,27 @@ } }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + } + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true }, "get-caller-file": { @@ -11527,12 +12215,34 @@ "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", "dev": true }, + "get-intrinsic": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + } + }, "get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, "get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", @@ -11632,12 +12342,29 @@ } }, "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "requires": { - "type-fest": "^0.8.1" + "type-fest": "^0.20.2" + }, + "dependencies": { + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "requires": { + "define-properties": "^1.1.3" } }, "globby": { @@ -11652,14 +12379,6 @@ "ignore": "^5.2.0", "merge2": "^1.4.1", "slash": "^3.0.0" - }, - "dependencies": { - "ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", - "dev": true - } } }, "glogg": { @@ -11671,12 +12390,27 @@ "sparkles": "^1.0.0" } }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.3" + } + }, "graceful-fs": { "version": "4.2.4", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", "dev": true }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "growl": { "version": "1.10.5", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", @@ -11691,224 +12425,35 @@ "requires": { "glob-watcher": "^5.0.3", "gulp-cli": "^2.2.0", - "undertaker": "^1.2.1", - "vinyl-fs": "^3.0.0" - }, - "dependencies": { - "gulp-cli": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", - "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "archy": "^1.0.0", - "array-sort": "^1.0.0", - "color-support": "^1.1.3", - "concat-stream": "^1.6.0", - "copy-props": "^2.0.1", - "fancy-log": "^1.3.2", - "gulplog": "^1.0.0", - "interpret": "^1.4.0", - "isobject": "^3.0.1", - "liftoff": "^3.1.0", - "matchdep": "^2.0.0", - "mute-stdout": "^1.0.0", - "pretty-hrtime": "^1.0.0", - "replace-homedir": "^1.0.0", - "semver-greatest-satisfied-range": "^1.1.0", - "v8flags": "^3.2.0", - "yargs": "^7.1.0" - } - } - } - }, - "gulp-eslint": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gulp-eslint/-/gulp-eslint-6.0.0.tgz", - "integrity": "sha512-dCVPSh1sA+UVhn7JSQt7KEb4An2sQNbOdB3PA8UCfxsoPlAKjJHxYHGXdXC7eb+V1FAnilSFFqslPrq037l1ig==", - "dev": true, - "requires": { - "eslint": "^6.0.0", - "fancy-log": "^1.3.2", - "plugin-error": "^1.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "eslint": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", - "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "ajv": "^6.10.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^1.4.3", - "eslint-visitor-keys": "^1.1.0", - "espree": "^6.1.2", - "esquery": "^1.0.1", - "esutils": "^2.0.2", - "file-entry-cache": "^5.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "inquirer": "^7.0.0", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.14", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "optionator": "^0.8.3", - "progress": "^2.0.0", - "regexpp": "^2.0.1", - "semver": "^6.1.2", - "strip-ansi": "^5.2.0", - "strip-json-comments": "^3.0.1", - "table": "^5.2.3", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - } - }, - "eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - } - }, - "espree": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", - "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", - "dev": true, - "requires": { - "acorn": "^7.1.1", - "acorn-jsx": "^5.2.0", - "eslint-visitor-keys": "^1.1.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - } - }, - "regexpp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", - "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "undertaker": "^1.2.1", + "vinyl-fs": "^3.0.0" + }, + "dependencies": { + "gulp-cli": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz", + "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.4.0", + "isobject": "^3.0.1", + "liftoff": "^3.1.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.2.0", + "yargs": "^7.1.0" } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true } } }, @@ -12025,14 +12570,11 @@ "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", "dev": true }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true }, "has-flag": { "version": "1.0.0", @@ -12040,12 +12582,36 @@ "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==", "dev": true }, + "has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "dev": true, + "requires": { + "get-intrinsic": "^1.2.2" + } + }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true + }, "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, "has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", @@ -12078,6 +12644,15 @@ } } }, + "hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -12111,25 +12686,16 @@ "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", "dev": true }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", "dev": true }, "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -12139,7 +12705,7 @@ "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true }, "indent-string": { @@ -12170,114 +12736,15 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, - "inquirer": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", - "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", + "internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", "dev": true, "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.19", - "mute-stream": "0.0.8", - "run-async": "^2.4.0", - "rxjs": "^6.6.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" } }, "interpret": { @@ -12309,23 +12776,23 @@ } }, "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", + "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", "dev": true, "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "hasown": "^2.0.0" + } + }, + "is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" } }, "is-arrayish": { @@ -12334,6 +12801,15 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "requires": { + "has-bigints": "^1.0.1" + } + }, "is-binary-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", @@ -12343,58 +12819,63 @@ "binary-extensions": "^1.0.0" } }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true + }, "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", "dev": true, "requires": { - "has": "^1.0.3" + "hasown": "^2.0.0" } }, "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", + "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", "dev": true, "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "hasown": "^2.0.0" + } + }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" } }, "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", "dev": true, "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" } }, "is-extendable": { @@ -12433,6 +12914,12 @@ "integrity": "sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=", "dev": true }, + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true + }, "is-number": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", @@ -12453,6 +12940,21 @@ } } }, + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, "is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -12468,6 +12970,16 @@ "isobject": "^3.0.1" } }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, "is-relative": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", @@ -12477,12 +12989,48 @@ "is-unc-path": "^1.0.0" } }, + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "requires": { + "which-typed-array": "^1.1.11" + } + }, "is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", @@ -12492,12 +13040,6 @@ "unc-path-regex": "^0.1.2" } }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true - }, "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", @@ -12510,6 +13052,15 @@ "integrity": "sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=", "dev": true }, + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2" + } + }, "is-windows": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", @@ -12678,15 +13229,21 @@ "dev": true }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, + "json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -12705,6 +13262,15 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, "just-debounce": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz", @@ -12717,6 +13283,15 @@ "integrity": "sha512-ApcjaOdVTJ7y4r08xI5wIqpvwS48Q0PBG4DJROcEkH1f8MdAiNFyFxz3xoL0LWAVwjrwPYZdVHHxhRHcx/uGLA==", "dev": true }, + "keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "requires": { + "json-buffer": "3.0.1" + } + }, "kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -12832,20 +13407,13 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", + "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", "dev": true, "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "chalk": "^4.0.0" }, "dependencies": { "ansi-styles": { @@ -13331,9 +13899,9 @@ } }, "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "requires": { "normalize-path": "^3.0.0", @@ -13367,27 +13935,6 @@ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "chokidar": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", @@ -13459,12 +14006,6 @@ "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -13497,9 +14038,9 @@ "dev": true }, "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "optional": true }, @@ -13563,15 +14104,6 @@ "p-locate": "^5.0.0" } }, - "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", - "dev": true, - "requires": { - "chalk": "^4.0.0" - } - }, "ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -13631,12 +14163,6 @@ "ansi-regex": "^5.0.1" } }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, "supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -13728,12 +14254,6 @@ "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", "dev": true }, - "mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, "nan": { "version": "2.14.1", "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", @@ -13769,7 +14289,7 @@ "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, "negotiator": { @@ -13789,12 +14309,6 @@ "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", "dev": true }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, "nise": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/nise/-/nise-4.0.4.tgz", @@ -13890,6 +14404,12 @@ } } }, + "object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true + }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -13906,15 +14426,15 @@ } }, "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", "dev": true, "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" } }, "object.defaults": { @@ -13929,6 +14449,40 @@ "isobject": "^3.0.0" } }, + "object.entries": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, + "object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, + "object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, "object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", @@ -13958,6 +14512,17 @@ "make-iterator": "^1.0.0" } }, + "object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -14008,12 +14573,6 @@ "lcid": "^1.0.0" } }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, "p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", @@ -14061,7 +14620,7 @@ "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", "dev": true, "requires": { "error-ex": "^1.2.0" @@ -14152,7 +14711,7 @@ "path-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -14303,12 +14862,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, "pump": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", @@ -14331,9 +14884,9 @@ } }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true }, "queue-microtask": { @@ -14371,7 +14924,7 @@ "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", "dev": true, "requires": { "load-json-file": "^1.0.0", @@ -14382,7 +14935,7 @@ "read-pkg-up": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", "dev": true, "requires": { "find-up": "^1.0.0", @@ -14390,9 +14943,9 @@ } }, "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, "requires": { "core-util-is": "~1.0.0", @@ -14444,11 +14997,16 @@ "safe-regex": "^1.1.0" } }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true + "regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + } }, "remove-bom-buffer": { "version": "3.0.0", @@ -14512,12 +15070,6 @@ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true - }, "require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", @@ -14525,12 +15077,12 @@ "dev": true }, "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, "requires": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } @@ -14566,16 +15118,6 @@ "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - } - }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", @@ -14589,20 +15131,14 @@ "dev": true }, "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "requires": { "glob": "^7.1.3" } }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true - }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -14612,13 +15148,24 @@ "queue-microtask": "^1.2.2" } }, - "rxjs": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", - "integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==", + "safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", "dev": true, "requires": { - "tslib": "^1.9.0" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + } } }, "safe-buffer": { @@ -14635,16 +15182,21 @@ "ret": "~0.1.10" } }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true + "safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true }, "semver-greatest-satisfied-range": { @@ -14671,6 +15223,29 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, + "set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dev": true, + "requires": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + } + }, + "set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "requires": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + } + }, "set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", @@ -14709,6 +15284,17 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", @@ -14760,25 +15346,6 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, - "slice-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", - "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "astral-regex": "^1.0.0", - "is-fullwidth-code-point": "^2.0.0" - }, - "dependencies": { - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true - } - } - }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", @@ -14835,33 +15402,14 @@ "is-descriptor": "^1.0.0" } }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" } } } @@ -15023,6 +15571,39 @@ "strip-ansi": "^3.0.0" } }, + "string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, + "string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, + "string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + } + }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -15035,7 +15616,7 @@ "strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", "dev": true, "requires": { "is-utf8": "^0.2.0" @@ -15056,6 +15637,12 @@ "min-indent": "^1.0.0" } }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -15116,62 +15703,10 @@ "es6-symbol": "^3.1.1" } }, - "table": { - "version": "5.4.6", - "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", - "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", - "dev": true, - "requires": { - "ajv": "^6.10.2", - "lodash": "^4.17.14", - "slice-ansi": "^2.1.0", - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, "through2": { @@ -15200,15 +15735,6 @@ "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", "dev": true }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, "to-absolute-glob": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", @@ -15276,6 +15802,13 @@ "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true }, + "ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "requires": {} + }, "ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", @@ -15295,12 +15828,24 @@ "make-error": "^1.1.1", "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" + } + }, + "tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" }, "dependencies": { - "acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true } } @@ -15381,12 +15926,6 @@ } } }, - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, "type": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", @@ -15423,6 +15962,53 @@ "mime-types": "~2.1.24" } }, + "typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + } + }, + "typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + } + }, + "typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + } + }, + "typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, "typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", @@ -15455,6 +16041,18 @@ } } }, + "unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, "unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", @@ -15567,9 +16165,9 @@ "dev": true }, "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, "requires": { "punycode": "^2.1.0" @@ -15593,12 +16191,6 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "v8-compile-cache": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", - "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", - "dev": true - }, "v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", @@ -15713,12 +16305,38 @@ "isexe": "^2.0.0" } }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, "which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, + "which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, "wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", @@ -15762,15 +16380,6 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "write": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", - "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", - "dev": true, - "requires": { - "mkdirp": "^0.5.1" - } - }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index 3eab504..5a5f0bf 100644 --- a/package.json +++ b/package.json @@ -62,10 +62,14 @@ "devDependencies": { "@types/chai": "^4.3.11", "@types/mocha": "^10.0.6", + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", "chai": "^4.2.0", - "eslint": "^7.7.0", + "eslint": "^8.56.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-import": "^2.29.1", "gulp": "^4.0.2", - "gulp-eslint": "^6.0.0", "gulp-istanbul": "^1.1.3", "gulp-mocha": "^8.0.0", "husky": "^8.0.3", @@ -79,13 +83,14 @@ "typescript": "^5.3.2" }, "scripts": { - "spec": "gulp spec", - "spec:ts": "gulp spec:ts", - "pretest": "prettier --check .", "test": "gulp test", - "test:ts": "gulp test:ts", + "coverage": "gulp coverage", "types": "tsd . --files ./test/**/*.test-d.ts", "format": "prettier --write --list-different .", + "lint": "eslint --fix .", + "check": "npm run check:format && npm run check:lint", + "check:format": "prettier --list-different .", + "check:lint": "eslint .", "postversion": "npm publish && git push --follow-tags", "prepare": "husky install" }, diff --git a/test/.eslintrc b/test/.eslintrc deleted file mode 100644 index 34a7c62..0000000 --- a/test/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -extends: ../.eslintrc - -env: - mocha: true - -rules: - no-unused-expressions: 0 - indent: - - 2 - - 2 diff --git a/test/lib/http-mock.test-d.ts b/test/lib/http-mock.test-d.ts index fcfb4f6..2934c95 100644 --- a/test/lib/http-mock.test-d.ts +++ b/test/lib/http-mock.test-d.ts @@ -1,8 +1,11 @@ import { IncomingMessage as NodeRequest, OutgoingMessage as NodeResponse } from 'http'; +// eslint-disable-next-line import/no-unresolved import { expectAssignable, expectNotAssignable, expectNotType, expectType } from 'tsd'; -import { createMocks, createRequest, createResponse, MockRequest, MockResponse, Mocks } from '../../lib/http-mock'; +// eslint-disable-next-line import/no-unresolved import { Request as ExpressRequest, Response as ExpressResponse } from 'express'; +import { createMocks, createRequest, createResponse, MockRequest, MockResponse, Mocks } from '../../lib/http-mock'; + expectType>(createRequest()); expectNotType>(createRequest()); expectAssignable(createRequest()); diff --git a/test/lib/mockEventEmitter.spec.js b/test/lib/mockEventEmitter.spec.js index c120686..d37b901 100644 --- a/test/lib/mockEventEmitter.spec.js +++ b/test/lib/mockEventEmitter.spec.js @@ -1,26 +1,26 @@ -'use strict'; +const chai = require('chai'); -var chai = require('chai'); -var expect = chai.expect; +const { expect } = chai; -var MockEventEmitter = require('../../lib/mockEventEmitter'); -var mockEventEmitter; +const MockEventEmitter = require('../../lib/mockEventEmitter'); -describe('mockEventEmitter', function () { - before(function () { +let mockEventEmitter; + +describe('mockEventEmitter', () => { + before(() => { mockEventEmitter = new MockEventEmitter(); }); - it('should be a function', function () { + it('should be a function', () => { expect(MockEventEmitter).to.be.a('function'); }); - it('should be an object factory', function () { + it('should be an object factory', () => { expect(mockEventEmitter).to.be.a('object'); expect(mockEventEmitter).to.be.an.instanceof(MockEventEmitter); }); - it('should expose "MockEventEmitter" prototype', function () { + it('should expose "MockEventEmitter" prototype', () => { expect(mockEventEmitter).to.have.property('addListener'); expect(mockEventEmitter.addListener).to.be.a('function'); @@ -49,15 +49,15 @@ describe('mockEventEmitter', function () { expect(mockEventEmitter.prependListener).to.be.a('function'); }); - it('should return undefined when methods called', function () { - expect(mockEventEmitter.addListener()).to.be.undefined; - expect(mockEventEmitter.on()).to.be.undefined; - expect(mockEventEmitter.once()).to.be.undefined; - expect(mockEventEmitter.removeListener()).to.be.undefined; - expect(mockEventEmitter.removeAllListeners()).to.be.undefined; - expect(mockEventEmitter.setMaxListeners()).to.be.undefined; - expect(mockEventEmitter.listeners()).to.be.undefined; - expect(mockEventEmitter.emit()).to.be.undefined; - expect(mockEventEmitter.prependListener()).to.be.undefined; + it('should return undefined when methods called', () => { + expect(mockEventEmitter.addListener()).to.be.an('undefined'); + expect(mockEventEmitter.on()).to.be.an('undefined'); + expect(mockEventEmitter.once()).to.be.an('undefined'); + expect(mockEventEmitter.removeListener()).to.be.an('undefined'); + expect(mockEventEmitter.removeAllListeners()).to.be.an('undefined'); + expect(mockEventEmitter.setMaxListeners()).to.be.an('undefined'); + expect(mockEventEmitter.listeners()).to.be.an('undefined'); + expect(mockEventEmitter.emit()).to.be.an('undefined'); + expect(mockEventEmitter.prependListener()).to.be.an('undefined'); }); }); diff --git a/test/lib/mockExpressResponse.spec.js b/test/lib/mockExpressResponse.spec.js index 2757c1c..a6b7aca 100644 --- a/test/lib/mockExpressResponse.spec.js +++ b/test/lib/mockExpressResponse.spec.js @@ -1,25 +1,25 @@ -'use strict'; +const chai = require('chai'); + +const { expect } = chai; +const sinonChai = require('sinon-chai'); -var chai = require('chai'); -var expect = chai.expect; -var sinonChai = require('sinon-chai'); chai.use(sinonChai); -var mockExpressResponse = require('../../lib/express/mock-express').response; +const mockExpressResponse = require('../../lib/express/mock-express').response; -describe('mockExpressResponse', function () { - it('should expose .createResponse()', function () { +describe('mockExpressResponse', () => { + it('should expose .createResponse()', () => { expect(mockExpressResponse.createResponse).to.be.a('function'); }); - describe('.createResponse()', function () { - var response; + describe('.createResponse()', () => { + let response; - before(function () { + before(() => { response = mockExpressResponse.createResponse(); }); - it('should return an object', function () { + it('should return an object', () => { expect(response).to.be.an('object'); }); }); diff --git a/test/lib/mockRequest.spec.js b/test/lib/mockRequest.spec.js deleted file mode 100644 index 061e283..0000000 --- a/test/lib/mockRequest.spec.js +++ /dev/null @@ -1,1182 +0,0 @@ -'use strict'; - -var chai = require('chai'); -var expect = chai.expect; -var url = require('url'); -var querystring = require('querystring'); -var parseRange = require('range-parser'); - -var mockRequest = require('../../lib/mockRequest'); - -describe('mockRequest', function () { - it('should expose .createRequest()', function () { - expect(mockRequest.createRequest).to.be.a('function'); - }); - - describe('.createRequest()', function () { - var request; - - describe('without options', function () { - before(function () { - request = mockRequest.createRequest(); - }); - - it('should have event emitter prototype functions', function () { - expect(request.on).to.be.a('function'); - expect(request.once).to.be.a('function'); - expect(request.emit).to.be.a('function'); - }); - - it('should return an object', function () { - expect(request).to.be.an('object'); - }); - - it('should be an EventEmitter', function () { - expect(request).to.be.an.instanceof(require('events').EventEmitter); - }); - - it('should expose Express Request object methods', function () { - expect(request).to.have.property('get'); - expect(request.get).to.be.a('function'); - - expect(request).to.have.property('header'); - expect(request.header).to.be.a('function'); - - expect(request).to.have.property('param'); - expect(request.param).to.be.a('function'); - }); - - it('shoud initialize with default options', function () { - expect(request.method).to.equal('GET'); - expect(request.url).to.equal(''); - expect(request.originalUrl).to.equal(request.url); - expect(request.baseUrl).to.equal(request.url); - expect(request.path).to.equal(''); - expect(request.params).to.deep.equal({}); - expect(request.session).to.not.exist; - expect(request.cookies).to.deep.equal({}); - expect(request.signedCookies).to.not.exist; - expect(request.headers).to.deep.equal({}); - expect(request.body).to.deep.equal({}); - expect(request.query).to.deep.equal({}); - expect(request.files).to.deep.equal({}); - expect(request.ip).to.equal('127.0.0.1'); - expect(request.ips).to.deep.equal([request.ip]); - }); - }); - - describe('with options', function () { - afterEach(function () { - request = null; - }); - - it('should set .method to options.method', function () { - var options = { - method: 'POST' - }; - - request = mockRequest.createRequest(options); - expect(request.method).to.equal(options.method); - }); - - it('should set .url to options.url', function () { - var options = { - url: '/this/is/a/url' - }; - - request = mockRequest.createRequest(options); - expect(request.url).to.equal(options.url); - expect(request.originalUrl).to.equal(options.url); - expect(request.baseUrl).to.equal(options.url); - }); - - it('should set .url automatically', function () { - var options = { - path: '/this/is/a/path' - }; - - var expectedUrl = '/this/is/a/path'; - - request = mockRequest.createRequest(options); - expect(request.url).to.equal(expectedUrl); - }); - - it('should set .baseUrl to options.baseUrl', function () { - var options = { - baseUrl: '/this' - }; - - request = mockRequest.createRequest(options); - expect(request.baseUrl).to.equal(options.baseUrl); - }); - - it('should set .originalUrl to options.originalUrl', function () { - var options = { - originalUrl: '/this/is/a/url' - }; - - request = mockRequest.createRequest(options); - expect(request.originalUrl).to.equal(options.originalUrl); - }); - - it('should set .path to options.path', function () { - var options = { - path: '/this/is/a/path' - }; - - request = mockRequest.createRequest(options); - expect(request.path).to.equal(options.path); - }); - - it('should set .path to pathname of options.url', function () { - var options = { - url: '/this/is/a/url' - }; - - request = mockRequest.createRequest(options); - expect(request.path).to.equal(url.parse(options.url).pathname); - }); - - it('should set .params to options.params', function () { - var options = { - params: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.params).to.deep.equal(options.params); - }); - - it('should set .session to options.session', function () { - var options = { - session: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.session).to.deep.equal(options.session); - }); - - it('should set .cookies to options.cookies', function () { - var options = { - cookies: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.cookies).to.deep.equal(options.cookies); - }); - - it('should set .signedCookies to options.signedCookies', function () { - var options = { - signedCookies: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.signedCookies).to.deep.equal(options.signedCookies); - }); - - it('should set .headers to options.headers', function () { - var options = { - headers: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.headers).to.deep.equal(options.headers); - }); - - it('should set .headers to options.headers and be accessible via get() and header() case-insensitively', function () { - var options = { - headers: { - KEY1: 'value1', - Key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.header('KEY1')).to.equal('value1'); - expect(request.get('KEY1')).to.equal('value1'); - expect(request.getHeader('KEY1')).to.equal('value1'); - expect(request.header('KEY2')).to.equal('value2'); - expect(request.get('KEY2')).to.equal('value2'); - expect(request.getHeader('KEY2')).to.equal('value2'); - }); - - it('should set .body to options.body', function () { - var options = { - body: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.body).to.deep.equal(options.body); - }); - - it('should set .query to options.query', function () { - var options = { - query: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.query).to.deep.equal(options.query); - }); - - it('should set .files to options.files', function () { - var options = { - files: { - key1: 'value1', - key2: 'value2' - } - }; - - request = mockRequest.createRequest(options); - expect(request.files).to.deep.equal(options.files); - }); - - it('should set .query to url query params when options.query not set', function () { - var options = { - url: '/path/to/url?key1=value1&key2=value2' - }; - var parsedOptions = querystring.parse(options.url.split('?')[1]); - - request = mockRequest.createRequest(options); - expect(request.query).to.deep.equal(parsedOptions); - }); - - it('should accept and set non-standard options passed to it', function () { - var options = { - mySampleProp: 'la LA LA' - }; - - request = mockRequest.createRequest(options); - expect(request.mySampleProp).to.equal('la LA LA'); - }); - - it('should set .ip to options.ip', function () { - var options = { - ip: '192.168.1.1' - }; - - request = mockRequest.createRequest(options); - expect(request.ip).to.equal(options.ip); - }); - - it('should set .ips to [options.ip]', function () { - var options = { - ip: '192.168.1.1' - }; - - request = mockRequest.createRequest(options); - expect(request.ips).to.deep.equal([options.ip]); - }); - }); - }); - - describe('.get()/.header()', function () { - var request; - - afterEach(function () { - request = null; - }); - - it('should return header, when set', function () { - var options = { - headers: { - key: 'value' - } - }; - request = mockRequest.createRequest(options); - expect(request.get('key')).to.equal('value'); - expect(request.header('key')).to.equal('value'); - expect(request.getHeader('key')).to.equal('value'); - }); - - it('should return referer, when request as referrer', function () { - var options = { - headers: { - referer: 'value' - } - }; - - request = mockRequest.createRequest(options); - expect(request.get('referrer')).to.equal('value'); - expect(request.header('referrer')).to.equal('value'); - expect(request.getHeader('referrer')).to.equal('value'); - }); - - it('should return referrer, when request as referer', function () { - var options = { - headers: { - referrer: 'value' - } - }; - - request = mockRequest.createRequest(options); - expect(request.get('referer')).to.equal('value'); - expect(request.header('referer')).to.equal('value'); - expect(request.getHeader('referer')).to.equal('value'); - }); - - it('should not return header, when not set', function () { - request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.header('key')).to.not.exist; - expect(request.getHeader('key')).to.not.exist; - }); - }); - - describe('.is()', function () { - var request; - - afterEach(function () { - request = null; - }); - - it('should return type, when found in content-type header', function () { - var options = { - headers: { - 'content-type': 'text/html', - 'transfer-encoding': 'chunked' - } - }; - - request = mockRequest.createRequest(options); - expect(request.is('html')).to.equal('html'); - }); - - it('should return first matching type, given array of types', function () { - var options = { - headers: { - 'content-type': 'text/html', - 'transfer-encoding': 'chunked' - } - }; - - request = mockRequest.createRequest(options); - expect(request.is(['json', 'html', 'text'])).to.equal('html'); - }); - - it('should return false when type not found', function () { - var options = { - headers: { - 'content-type': 'text/html', - 'transfer-encoding': 'chunked' - } - }; - - request = mockRequest.createRequest(options); - expect(request.is(['json'])).to.equal(false); - }); - }); - - describe('.accepts()', function () { - var request; - - beforeEach(function () { - request = mockRequest.createRequest({ headers: { accept: 'text/html' } }); - }); - - it('returns type if the same as Accept header', function () { - expect(request.accepts('text/html')).to.equal('text/html'); - expect(request.accepts('html')).to.equal('html'); - }); - - it('returns the first matching type of an array of types', function () { - expect(request.accepts(['json', 'html'])).to.equal('html'); - }); - - it('returns false when types dont match', function () { - expect(request.accepts(['json', 'xml'])).to.equal(false); - }); - }); - - describe('.acceptsEncodings()', function () { - var request; - - beforeEach(function () { - request = mockRequest.createRequest({ headers: { 'Accept-Encoding': 'gzip' } }); - }); - - it('returns type if the same as Accept-Encoding header', function () { - expect(request.acceptsEncodings('gzip')).to.equal('gzip'); - }); - - it('returns the first matching type of an array of types', function () { - expect(request.acceptsEncodings(['compress', 'gzip'])).to.equal('gzip'); - }); - - it('returns false when types dont match', function () { - expect(request.acceptsEncodings(['compress', 'deflate'])).to.equal(false); - }); - }); - - describe('.acceptsCharsets()', function () { - var request; - - beforeEach(function () { - request = mockRequest.createRequest({ headers: { 'Accept-Charset': 'utf-8' } }); - }); - - it('returns type if the same as Accept-Charset header', function () { - expect(request.acceptsCharsets('utf-8')).to.equal('utf-8'); - }); - - it('returns the first matching type of an array of types', function () { - expect(request.acceptsCharsets(['iso-8859-15', 'utf-8'])).to.equal('utf-8'); - }); - - it('returns false when types dont match', function () { - expect(request.acceptsCharsets(['iso-8859-15', 'us-ascii'])).to.equal(false); - }); - }); - - describe('.acceptsLanguages()', function () { - var request; - - beforeEach(function () { - request = mockRequest.createRequest({ headers: { 'Accept-Language': 'en-GB' } }); - }); - - it('returns type if the same as Accept-Language header', function () { - expect(request.acceptsLanguages('en-GB')).to.equal('en-GB'); - }); - - it('returns the first matching type of an array of types', function () { - expect(request.acceptsLanguages(['de-DE', 'en-GB'])).to.equal('en-GB'); - }); - - it('returns false when types dont match', function () { - expect(request.acceptsLanguages(['de-DE', 'fr-FR'])).to.equal(false); - }); - }); - - describe('.range()', function () { - var request; - - afterEach(function () { - request = null; - }); - - it('returns undefined if there is no Range header', function () { - request = mockRequest.createRequest(); - expect(request.range()).to.be.undefined; - }); - - var tests = [ - { - // Unsatisfiable - header: 'bytes=90-100', - size: 10 - }, - { - // Malformed - header: 'by90-100', - size: 10 - }, - { - // Basic range - header: 'bytes=50-55', - size: 100 - }, - { - // Complex, without options - header: 'bytes=50-55,0-10,5-10,56-60', - size: 100 - }, - { - // With options - header: 'bytes=50-55,0-10,5-10,56-60', - size: 100, - options: { - combine: true - } - } - ]; - - tests.forEach(function (t) { - it( - 'returns the result of range-parser if there is a Range header of ' + - t.header + - ' using size: ' + - t.size, - function () { - request = mockRequest.createRequest({ headers: { range: t.header } }); - expect(request.range(t.size, t.options)).to.deep.equal(parseRange(t.size, t.header, t.options)); - } - ); - }); - }); - - describe('.param()', function () { - var request; - - afterEach(function () { - request = null; - }); - - it('should return param, when found in params', function () { - var options = { - params: { - key: 'value' - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal('value'); - }); - - it('should return falsy param, when found in params', function () { - var options = { - params: { - key: 0 - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal(0); - }); - - it('should return param, when found in body', function () { - var options = { - body: { - key: 'value' - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal('value'); - }); - - it('should return falsy param, when found in body', function () { - var options = { - body: { - key: 0 - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal(0); - }); - - it('should return param, when found in query', function () { - var options = { - query: { - key: 'value' - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal('value'); - }); - - it('should return falsy param, when found in query', function () { - var options = { - query: { - key: 0 - } - }; - - request = mockRequest.createRequest(options); - expect(request.param('key')).to.equal(0); - }); - - it('should not return param, when not found in params/body/query', function () { - request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.header('key')).to.not.exist; - }); - - it('should return defaultValue, when not found in params/body/query', function () { - request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.param('key', 'defaultValue')).to.equal('defaultValue'); - }); - - it('should return undefined, when not found in params/body/query', function () { - request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.param('key')).to.be.undefined; - }); - }); - - describe('helper functions', function () { - var request; - - beforeEach(function () { - request = mockRequest.createRequest(); - }); - - afterEach(function () { - request = null; - }); - - describe('._setParameter()', function () { - it('should set param, when called with key and value', function () { - request._setParameter('key', 'value'); - expect(request.param('key')).to.equal('value'); - }); - - it('should unset param, when called with key and no value', function () { - request._setParameter('key', 'value'); - request._setParameter('key'); - expect(request.param('key')).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._setParameter).to.throw; - }); - }); - - describe('._setSessionVariable()', function () { - it('should set session variable, when called with key and value', function () { - request._setSessionVariable('key', 'value'); - expect(request.session.key).to.equal('value'); - }); - - it('should unset session variable, when called with key and no value', function () { - request._setSessionVariable('key', 'value'); - request._setSessionVariable('key'); - expect(request.param('key')).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._setSessionVariable).to.throw; - }); - }); - - describe('._setCookiesVariable()', function () { - it('should set cookie, when called with key and value', function () { - request._setCookiesVariable('key', 'value'); - expect(request.cookies.key).to.equal('value'); - }); - - it('should unset cookie, when called with key and no value', function () { - request._setCookiesVariable('key', 'value'); - request._setCookiesVariable('key'); - expect(request.cookies.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._setCookiesVariable).to.throw; - }); - }); - - describe('._setSignedCookiesVariable()', function () { - it('should set signed cookie, when called with key and value', function () { - request._setSignedCookiesVariable('key', 'value'); - expect(request.signedCookies.key).to.equal('value'); - }); - - it('should unset signed cookie, when called with key and no value', function () { - request._setSignedCookiesVariable('key', 'value'); - request._setSignedCookiesVariable('key'); - expect(request.signedCookies.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._setSignedCookiesVariable).to.throw; - }); - }); - - describe('._setHeadersVariable()', function () { - it('should set header, when called with key and value', function () { - request._setHeadersVariable('key', 'value'); - expect(request.get('key')).to.equal('value'); - expect(request.header('key')).to.equal('value'); - expect(request.getHeader('key')).to.equal('value'); - }); - - it('should throw an error, when called with missing arguments', function () { - expect(request._setHeadersVariable).to.throw; - expect(request._setHeadersVariable.bind(null, 'key')).to.throw; - }); - }); - - describe('._setFilesVariable()', function () { - it('should set file, when called with key and value', function () { - request._setFilesVariable('key', 'value'); - expect(request.files.key).to.equal('value'); - }); - - it('should unset file, when called with key and no value', function () { - request._setFilesVariable('key', 'value'); - request._setFilesVariable('key'); - expect(request.files.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._setFilesVariable).to.throw; - }); - }); - - describe('._setMethod()', function () { - it('should set method, when called with value', function () { - var value = 'HEAD'; - request._setMethod(value); - expect(request.method).to.equal(value); - }); - - it('should unset method, when called with no arguments', function () { - request._setMethod(); - expect(request.method).to.not.exist; - }); - }); - - describe('._setURL()', function () { - it('should set url, when called with value', function () { - var value = '/path/to/url'; - request._setURL(value); - expect(request.url).to.equal(value); - }); - - it('should unset url, when called with no arguments', function () { - request._setURL(); - expect(request.url).to.not.exist; - }); - }); - - describe('._setBaseUrl()', function () { - it('should set baseUrl, when called with value', function () { - var value = '/path'; - request._setBaseUrl(value); - expect(request.baseUrl).to.equal(value); - }); - - it('should unset baseUrl, when called with no arguments', function () { - request._setBaseUrl(); - expect(request.baseUrl).to.not.exist; - }); - }); - - describe('._setOriginalUrl()', function () { - it('should set originalUrl, when called with value', function () { - var value = '/path/to/url'; - request._setOriginalUrl(value); - expect(request.originalUrl).to.equal(value); - }); - - it('should unset originalUrl, when called with no arguments', function () { - request._setOriginalUrl(); - expect(request.originalUrl).to.not.exist; - }); - }); - - describe('._setBody()', function () { - it('should set body, when called with value', function () { - var value = { - key1: 'value1', - key2: 'value2' - }; - request._setBody(value); - expect(request.body).to.deep.equal(value); - }); - - it('should unset body, when called with no arguments', function () { - request._setBody(); - expect(request.body).to.not.exist; - }); - }); - - describe('._addBody()', function () { - it('should add body variable, when called with key and value', function () { - request._addBody('key', 'value'); - expect(request.body.key).to.equal('value'); - }); - - it('should unset body variable, when called with key and no value', function () { - request._addBody('key', 'value'); - request._addBody('key'); - expect(request.body.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - expect(request._addBody).to.throw; - }); - }); - - describe('.send()', function () { - it('should trigger data and end event when string is given', function (done) { - var data = []; - request.on('data', function (chunk) { - data.push(chunk); - }); - request.on('end', function () { - data = Buffer.concat(data).toString(); - expect(data).to.equal('test data'); - done(); - }); - request.send('test data'); - }); - - it('should trigger data and end event when object is given', function (done) { - var data = []; - var dataTosend = { key: 'value' }; - request.on('data', function (chunk) { - data.push(chunk); - }); - request.on('end', function () { - data = Buffer.concat(data).toString(); - expect(JSON.parse(data)).to.deep.equal(dataTosend); - done(); - }); - request.send(dataTosend); - }); - - it('should trigger data and end event when number is given', function (done) { - var data = []; - request.on('data', function (chunk) { - data.push(chunk); - }); - request.on('end', function () { - data = Buffer.concat(data).toString(); - expect(data).to.equal('35'); - done(); - }); - request.send(35); - }); - - it('should trigger data and end event when buffer is given', function (done) { - var data = []; - var bufferdata = Buffer.from('test data'); - request.on('data', function (chunk) { - data.push(chunk); - }); - request.on('end', function () { - data = Buffer.concat(data).toString(); - expect(data).to.equal('test data'); - done(); - }); - request.send(bufferdata); - }); - - it('should trigger data and end event when nothing is given', function (done) { - var data = []; - request.on('data', function (chunk) { - data.push(chunk); - }); - request.on('end', function () { - data = Buffer.concat(data).toString(); - expect(data).to.equal(''); - done(); - }); - request.send(); - }); - }); - - describe('.hostname', function () { - it("should return the host's main domain", function () { - var options = { - headers: { - host: 'tobi.ferrets.example.com:5000' - } - }; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('tobi.ferrets.example.com'); - - options.headers.host = 'tobi.ferrets.example.com'; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('tobi.ferrets.example.com'); - - options.headers.host = 'example.com'; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('example.com'); - - options.headers.host = 'example.com:8443'; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('example.com'); - - options.headers.host = 'localhost:3000'; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('localhost'); - }); - - it('should return an empty string', function () { - var options = { - headers: { - key1: 'key1' - } - }; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal(''); - }); - - it('should return an predefined hostname', function () { - var options = { - hostname: 'predefined.host.com', - headers: { - host: 'other.host' - } - }; - request = mockRequest.createRequest(options); - expect(request.hostname).to.equal('predefined.host.com'); - }); - }); - - describe('.subdomains', function () { - it('should returns the host subdomains', function () { - var options = { - headers: { - host: 'tobi.ferrets.example.com' - } - }; - request = mockRequest.createRequest(options); - expect(request.subdomains).to.be.an('array').that.includes('ferrets'); - expect(request.subdomains).to.be.an('array').that.includes('tobi'); - }); - - it('should returns and empty array', function () { - var options = { - headers: { - key1: 'key1' - } - }; - request = mockRequest.createRequest(options); - expect(request.subdomains).to.be.an('array').that.empty; - - options.headers.host = 'example.com'; - request = mockRequest.createRequest(options); - expect(request.subdomains).to.be.an('array').that.empty; - }); - }); - }); - - describe('asyncIterator', function () { - async function collect(asyncIterable) { - const chunks = []; - for await (const chunk of asyncIterable) { - chunks.push(chunk); - } - return chunks; - } - - it('should iterate when sending data', async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = collect(request); - request.send('test data'); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('test data'); - }); - - it('should iterate synchronous pushes', async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = collect(request); - request.emit('data', Buffer.from('foo')); - request.emit('data', Buffer.from('bar')); - request.emit('data', Buffer.from('baz')); - request.emit('end'); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('foobarbaz'); - }); - - it('should ignore push after end', async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = collect(request); - request.emit('data', Buffer.from('foo')); - request.emit('end'); - request.emit('data', Buffer.from('bar')); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('foo'); - }); - - it('should iterate asynchronous pushes', async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = collect(request); - request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); - request.emit('data', Buffer.from('bar')); - await new Promise((r) => setTimeout(r)); - request.emit('data', Buffer.from('baz')); - await new Promise((r) => setTimeout(r)); - request.emit('end'); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('foobarbaz'); - }); - - it('should support asynchronous pushes while iterating', async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = (async () => { - const extraPushes = ['3', '2', '1']; - const chunks = []; - for await (const chunk of request) { - chunks.push(chunk); - if (extraPushes.length > 0) { - request.emit('data', Buffer.from(extraPushes.pop())); - await new Promise((r) => setTimeout(r)); - } - } - return chunks; - })(); - - request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); - request.emit('data', Buffer.from('bar')); - await new Promise((r) => setTimeout(r)); - request.emit('data', Buffer.from('baz')); - await new Promise((r) => setTimeout(r)); - request.emit('end'); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('foo1bar2baz3'); - }); - - it('supports error', async function () { - const request = mockRequest.createRequest(); - - /** @type {AsyncIterator} */ - const iterator = request[Symbol.asyncIterator](); - const error = new Error('Test error'); - - const nextPromise = iterator.next(); - request.emit('error', error); - - try { - await nextPromise; - expect.fail(); - } catch (e) { - expect(e).to.equal(error); - } - }); - - it('supports throw', async function () { - const request = mockRequest.createRequest(); - - /** @type {AsyncIterator} */ - const iterator = request[Symbol.asyncIterator](); - const error = new Error('Test error'); - - const nextPromise = iterator.next(); - request.emit('data', Buffer.from('foo')); - await nextPromise; - - try { - await iterator.throw(error); - expect.fail(); - } catch (e) { - expect(e).to.equal(error); - return; - } - }); - - it('first error wins', async function () { - const request = mockRequest.createRequest(); - - /** @type {AsyncIterator} */ - const iterator = request[Symbol.asyncIterator](); - const error1 = new Error('Test error 1'); - const error2 = new Error('Test error 2'); - - const nextPromise = iterator.next(); - request.emit('error', error1); - request.emit('error', error2); - - try { - await nextPromise; - expect.fail(); - } catch (e) { - expect(e).to.equal(error1); - } - }); - - it('supports return', async function () { - const request = mockRequest.createRequest(); - - /** @type {AsyncIterator} */ - const iterator = request[Symbol.asyncIterator](); - - const result = await iterator.return(); - expect(result.done).to.equal(true); - }); - - ['close', 'error'].forEach((event) => { - it(`discards buffer on ${event}`, async function () { - const request = mockRequest.createRequest(); - - const chunksPromise = (async () => { - const chunks = []; - try { - for await (const data of request) { - chunks.push(data); - } - } catch (e) { - // Ignore - } - return chunks; - })(); - - request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); - request.emit('data', Buffer.from('bar')); - request.emit(event, event === 'error' ? new Error('Test error') : undefined); - request.emit('data', Buffer.from('baz')); - - const data = Buffer.concat(await chunksPromise).toString(); - expect(data).to.equal('foo'); - }); - }); - - it('emits custom event after creation', async () => { - const request = mockRequest.createRequest(); - - request.on('async_iterator', () => { - request.emit('data', Buffer.from('foo')); - request.emit('data', Buffer.from('bar')); - request.emit('data', Buffer.from('baz')); - request.emit('end'); - }); - - const data = Buffer.concat(await collect(request)).toString(); - expect(data).to.equal('foobarbaz'); - }); - - if (typeof global.Request === 'function') { - it('can be fed to a Fetch API Request body', async function () { - const request = mockRequest.createRequest(); - - // eslint-disable-next-line no-undef - const webRequest = new Request('http://example.com', { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: request, - duplex: 'half' - }); - - request.on('async_iterator', () => { - request.emit('data', Buffer.from('{ "foo": "b')); - request.emit('data', Buffer.from('ar" }')); - request.emit('end'); - }); - - const webRequestJson = await webRequest.json(); - expect(webRequestJson).to.deep.equal({ foo: 'bar' }); - }); - } - }); -}); diff --git a/test/lib/mockRequest.spec.ts b/test/lib/mockRequest.spec.ts index c62e006..32b58b8 100644 --- a/test/lib/mockRequest.spec.ts +++ b/test/lib/mockRequest.spec.ts @@ -2,36 +2,36 @@ import { expect } from 'chai'; import * as url from 'url'; import * as querystring from 'querystring'; import parseRange from 'range-parser'; +import { EventEmitter } from 'events'; -import * as mockRequest from '../../lib/http-mock'; import { IncomingMessage } from 'http'; -import stream from 'stream'; +import * as mockRequest from '../../lib/http-mock'; -describe('mockRequest', function () { - it('should expose .createRequest()', function () { +describe('mockRequest', () => { + it('should expose .createRequest()', () => { expect(mockRequest.createRequest).to.be.a('function'); }); - describe('.createRequest()', function () { - describe('without options', function () { - it('should have event emitter prototype functions', function () { + describe('.createRequest()', () => { + describe('without options', () => { + it('should have event emitter prototype functions', () => { const request = mockRequest.createRequest(); expect(request.on).to.be.a('function'); expect(request.once).to.be.a('function'); expect(request.emit).to.be.a('function'); }); - it('should return an object', function () { + it('should return an object', () => { const request = mockRequest.createRequest(); expect(request).to.be.an('object'); }); - it('should be an EventEmitter', function () { + it('should be an EventEmitter', () => { const request = mockRequest.createRequest(); - expect(request).to.be.an.instanceof(require('events').EventEmitter); + expect(request).to.be.an.instanceof(EventEmitter); }); - it('should expose Express Request object methods', function () { + it('should expose Express Request object methods', () => { const request = mockRequest.createRequest(); expect(request).to.have.property('get'); expect(request.get).to.be.a('function'); @@ -43,7 +43,7 @@ describe('mockRequest', function () { expect(request.param).to.be.a('function'); }); - it('shoud initialize with default options', function () { + it('shoud initialize with default options', () => { const request = mockRequest.createRequest(); expect(request.method).to.equal('GET'); expect(request.url).to.equal(''); @@ -51,9 +51,9 @@ describe('mockRequest', function () { expect(request.baseUrl).to.equal(request.url); expect(request.path).to.equal(''); expect(request.params).to.deep.equal({}); - expect(request.session).to.not.exist; + expect(request.session).to.be.a('undefined'); expect(request.cookies).to.deep.equal({}); - expect(request.signedCookies).to.not.exist; + expect(request.signedCookies).to.be.a('undefined'); expect(request.headers).to.deep.equal({}); expect(request.body).to.deep.equal({}); expect(request.query).to.deep.equal({}); @@ -63,8 +63,8 @@ describe('mockRequest', function () { }); }); - describe('with options', function () { - it('should set .method to options.method', function () { + describe('with options', () => { + it('should set .method to options.method', () => { const options: mockRequest.RequestOptions = { method: 'POST' }; @@ -73,7 +73,7 @@ describe('mockRequest', function () { expect(request.method).to.equal(options.method); }); - it('should set .url to options.url', function () { + it('should set .url to options.url', () => { const options = { url: '/this/is/a/url' }; @@ -84,7 +84,7 @@ describe('mockRequest', function () { expect(request.baseUrl).to.equal(options.url); }); - it('should set .url automatically', function () { + it('should set .url automatically', () => { const options = { path: '/this/is/a/path' }; @@ -95,7 +95,7 @@ describe('mockRequest', function () { expect(request.url).to.equal(expectedUrl); }); - it('should set .baseUrl to options.baseUrl', function () { + it('should set .baseUrl to options.baseUrl', () => { const options = { baseUrl: '/this' }; @@ -104,7 +104,7 @@ describe('mockRequest', function () { expect(request.baseUrl).to.equal(options.baseUrl); }); - it('should set .originalUrl to options.originalUrl', function () { + it('should set .originalUrl to options.originalUrl', () => { const options = { originalUrl: '/this/is/a/url' }; @@ -113,7 +113,7 @@ describe('mockRequest', function () { expect(request.originalUrl).to.equal(options.originalUrl); }); - it('should set .path to options.path', function () { + it('should set .path to options.path', () => { const options = { path: '/this/is/a/path' }; @@ -122,7 +122,7 @@ describe('mockRequest', function () { expect(request.path).to.equal(options.path); }); - it('should set .path to pathname of options.url', function () { + it('should set .path to pathname of options.url', () => { const options = { url: '/this/is/a/url' }; @@ -131,7 +131,7 @@ describe('mockRequest', function () { expect(request.path).to.equal(url.parse(options.url).pathname); }); - it('should set .params to options.params', function () { + it('should set .params to options.params', () => { const options = { params: { key1: 'value1', @@ -143,7 +143,7 @@ describe('mockRequest', function () { expect(request.params).to.deep.equal(options.params); }); - it('should set .session to options.session', function () { + it('should set .session to options.session', () => { const options = { session: { key1: 'value1', @@ -155,7 +155,7 @@ describe('mockRequest', function () { expect(request.session).to.deep.equal(options.session); }); - it('should set .cookies to options.cookies', function () { + it('should set .cookies to options.cookies', () => { const options = { cookies: { key1: 'value1', @@ -167,7 +167,7 @@ describe('mockRequest', function () { expect(request.cookies).to.deep.equal(options.cookies); }); - it('should set .signedCookies to options.signedCookies', function () { + it('should set .signedCookies to options.signedCookies', () => { const options = { signedCookies: { key1: 'value1', @@ -179,7 +179,7 @@ describe('mockRequest', function () { expect(request.signedCookies).to.deep.equal(options.signedCookies); }); - it('should set .headers to options.headers', function () { + it('should set .headers to options.headers', () => { const options = { headers: { key1: 'value1', @@ -191,7 +191,7 @@ describe('mockRequest', function () { expect(request.headers).to.deep.equal(options.headers); }); - it('should set .headers to options.headers and be accessible via get() and header() case-insensitively', function () { + it('should set .headers to options.headers and be accessible via get() and header() case-insensitively', () => { const options = { headers: { KEY1: 'value1', @@ -208,7 +208,7 @@ describe('mockRequest', function () { expect(request.getHeader('KEY2')).to.equal('value2'); }); - it('should set .body to options.body', function () { + it('should set .body to options.body', () => { const options = { body: { key1: 'value1', @@ -220,7 +220,7 @@ describe('mockRequest', function () { expect(request.body).to.deep.equal(options.body); }); - it('should set .query to options.query', function () { + it('should set .query to options.query', () => { const options = { query: { key1: 'value1', @@ -232,7 +232,7 @@ describe('mockRequest', function () { expect(request.query).to.deep.equal(options.query); }); - it('should set .files to options.files', function () { + it('should set .files to options.files', () => { const options = { files: { key1: 'value1', @@ -244,7 +244,7 @@ describe('mockRequest', function () { expect(request.files).to.deep.equal(options.files); }); - it('should set .query to url query params when options.query not set', function () { + it('should set .query to url query params when options.query not set', () => { const options = { url: '/path/to/url?key1=value1&key2=value2' }; @@ -254,7 +254,7 @@ describe('mockRequest', function () { expect(request.query).to.deep.equal(parsedOptions); }); - it('should accept and set non-standard options passed to it', function () { + it('should accept and set non-standard options passed to it', () => { const options = { mySampleProp: 'la LA LA' }; @@ -263,7 +263,7 @@ describe('mockRequest', function () { expect(request.mySampleProp).to.equal('la LA LA'); }); - it('should set .ip to options.ip', function () { + it('should set .ip to options.ip', () => { const options = { ip: '192.168.1.1' }; @@ -272,7 +272,7 @@ describe('mockRequest', function () { expect(request.ip).to.equal(options.ip); }); - it('should set .ips to [options.ip]', function () { + it('should set .ips to [options.ip]', () => { const options = { ip: '192.168.1.1' }; @@ -283,14 +283,8 @@ describe('mockRequest', function () { }); }); - describe('.get()/.header()', function () { - let request; - - afterEach(function () { - const request = null; - }); - - it('should return header, when set', function () { + describe('.get()/.header()', () => { + it('should return header, when set', () => { const options = { headers: { key: 'value' @@ -302,7 +296,7 @@ describe('mockRequest', function () { expect(request.getHeader('key')).to.equal('value'); }); - it('should return referer, when request as referrer', function () { + it('should return referer, when request as referrer', () => { const options = { headers: { referer: 'value' @@ -315,7 +309,7 @@ describe('mockRequest', function () { expect(request.getHeader('referrer')).to.equal('value'); }); - it('should return referrer, when request as referer', function () { + it('should return referrer, when request as referer', () => { const options = { headers: { referrer: 'value' @@ -328,22 +322,16 @@ describe('mockRequest', function () { expect(request.getHeader('referer')).to.equal('value'); }); - it('should not return header, when not set', function () { + it('should not return header, when not set', () => { const request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.header('key')).to.not.exist; - expect(request.getHeader('key')).to.not.exist; + expect(request.get('key')).to.be.a('undefined'); + expect(request.header('key')).to.be.a('undefined'); + expect(request.getHeader('key')).to.be.a('undefined'); }); }); - describe('.is()', function () { - let request; - - afterEach(function () { - const request = null; - }); - - it('should return type, when found in content-type header', function () { + describe('.is()', () => { + it('should return type, when found in content-type header', () => { const options = { headers: { 'content-type': 'text/html', @@ -355,7 +343,7 @@ describe('mockRequest', function () { expect(request.is('html')).to.equal('html'); }); - it('should return first matching type, given array of types', function () { + it('should return first matching type, given array of types', () => { const options = { headers: { 'content-type': 'text/html', @@ -367,7 +355,7 @@ describe('mockRequest', function () { expect(request.is(['json', 'html', 'text'])).to.equal('html'); }); - it('should return false when type not found', function () { + it('should return false when type not found', () => { const options = { headers: { 'content-type': 'text/html', @@ -380,82 +368,82 @@ describe('mockRequest', function () { }); }); - describe('.accepts()', function () { - it('returns type if the same as Accept header', function () { + describe('.accepts()', () => { + it('returns type if the same as Accept header', () => { const request = mockRequest.createRequest({ headers: { accept: 'text/html' } }); expect(request.accepts('text/html')).to.equal('text/html'); expect(request.accepts('html')).to.equal('html'); }); - it('returns the first matching type of an array of types', function () { + it('returns the first matching type of an array of types', () => { const request = mockRequest.createRequest({ headers: { accept: 'text/html' } }); expect(request.accepts(['json', 'html'])).to.equal('html'); }); - it('returns false when types dont match', function () { + it('returns false when types dont match', () => { const request = mockRequest.createRequest({ headers: { accept: 'text/html' } }); expect(request.accepts(['json', 'xml'])).to.equal(false); }); }); - describe('.acceptsEncodings()', function () { - it('returns type if the same as Accept-Encoding header', function () { + describe('.acceptsEncodings()', () => { + it('returns type if the same as Accept-Encoding header', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Encoding': 'gzip' } }); expect(request.acceptsEncodings('gzip')).to.equal('gzip'); }); - it('returns the first matching type of an array of types', function () { + it('returns the first matching type of an array of types', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Encoding': 'gzip' } }); expect(request.acceptsEncodings(['compress', 'gzip'])).to.equal('gzip'); }); - it('returns false when types dont match', function () { + it('returns false when types dont match', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Encoding': 'gzip' } }); expect(request.acceptsEncodings(['compress', 'deflate'])).to.equal(false); }); }); - describe('.acceptsCharsets()', function () { + describe('.acceptsCharsets()', () => { let request: mockRequest.MockRequest; - beforeEach(function () { + beforeEach(() => { request = mockRequest.createRequest({ headers: { 'Accept-Charset': 'utf-8' } }); }); - it('returns type if the same as Accept-Charset header', function () { + it('returns type if the same as Accept-Charset header', () => { expect(request.acceptsCharsets('utf-8')).to.equal('utf-8'); }); - it('returns the first matching type of an array of types', function () { + it('returns the first matching type of an array of types', () => { expect(request.acceptsCharsets(['iso-8859-15', 'utf-8'])).to.equal('utf-8'); }); - it('returns false when types dont match', function () { + it('returns false when types dont match', () => { expect(request.acceptsCharsets(['iso-8859-15', 'us-ascii'])).to.equal(false); }); }); - describe('.acceptsLanguages()', function () { - it('returns type if the same as Accept-Language header', function () { + describe('.acceptsLanguages()', () => { + it('returns type if the same as Accept-Language header', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Language': 'en-GB' } }); expect(request.acceptsLanguages('en-GB')).to.equal('en-GB'); }); - it('returns the first matching type of an array of types', function () { + it('returns the first matching type of an array of types', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Language': 'en-GB' } }); expect(request.acceptsLanguages(['de-DE', 'en-GB'])).to.equal('en-GB'); }); - it('returns false when types dont match', function () { + it('returns false when types dont match', () => { const request = mockRequest.createRequest({ headers: { 'Accept-Language': 'en-GB' } }); expect(request.acceptsLanguages(['de-DE', 'fr-FR'])).to.equal(false); }); }); - describe('.range()', function () { - it('returns undefined if there is no Range header', function () { + describe('.range()', () => { + it('returns undefined if there is no Range header', () => { const request = mockRequest.createRequest(); - expect(request.range(10)).to.be.undefined; + expect(request.range(10)).to.be.an('undefined'); }); const tests = [ @@ -489,28 +477,16 @@ describe('mockRequest', function () { } ]; - tests.forEach(function (t) { - it( - 'returns the result of range-parser if there is a Range header of ' + - t.header + - ' using size: ' + - t.size, - function () { - const request = mockRequest.createRequest({ headers: { range: t.header } }); - expect(request.range(t.size, t.options)).to.deep.equal(parseRange(t.size, t.header, t.options)); - } - ); + tests.forEach((t) => { + it(`returns the result of range-parser if there is a Range header of ${t.header} using size: ${t.size}`, () => { + const request = mockRequest.createRequest({ headers: { range: t.header } }); + expect(request.range(t.size, t.options)).to.deep.equal(parseRange(t.size, t.header, t.options)); + }); }); }); - describe('.param()', function () { - let request; - - afterEach(function () { - const request = null; - }); - - it('should return param, when found in params', function () { + describe('.param()', () => { + it('should return param, when found in params', () => { const options = { params: { key: 'value' @@ -521,7 +497,7 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal('value'); }); - it('should return falsy param, when found in params', function () { + it('should return falsy param, when found in params', () => { const options = { params: { key: 0 @@ -532,7 +508,7 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal(0); }); - it('should return param, when found in body', function () { + it('should return param, when found in body', () => { const options = { body: { key: 'value' @@ -543,7 +519,7 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal('value'); }); - it('should return falsy param, when found in body', function () { + it('should return falsy param, when found in body', () => { const options = { body: { key: 0 @@ -554,7 +530,7 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal(0); }); - it('should return param, when found in query', function () { + it('should return param, when found in query', () => { const options = { query: { key: 'value' @@ -565,7 +541,7 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal('value'); }); - it('should return falsy param, when found in query', function () { + it('should return falsy param, when found in query', () => { const options = { query: { key: 0 @@ -576,108 +552,88 @@ describe('mockRequest', function () { expect(request.param('key')).to.equal(0); }); - it('should not return param, when not found in params/body/query', function () { + it('should not return param, when not found in params/body/query', () => { const request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.header('key')).to.not.exist; + expect(request.get('key')).to.be.a('undefined'); + expect(request.header('key')).to.be.a('undefined'); }); - it('should return defaultValue, when not found in params/body/query', function () { + it('should return defaultValue, when not found in params/body/query', () => { const request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; + expect(request.get('key')).to.be.a('undefined'); expect(request.param('key', 'defaultValue')).to.equal('defaultValue'); }); - it('should return undefined, when not found in params/body/query', function () { + it('should return undefined, when not found in params/body/query', () => { const request = mockRequest.createRequest(); - expect(request.get('key')).to.not.exist; - expect(request.param('key')).to.be.undefined; + expect(request.get('key')).to.be.a('undefined'); + expect(request.param('key')).to.be.an('undefined'); }); }); - describe('helper functions', function () { - describe('._setParameter()', function () { - it('should set param, when called with key and value', function () { + describe('helper functions', () => { + describe('._setParameter()', () => { + it('should set param, when called with key and value', () => { const request = mockRequest.createRequest(); request._setParameter('key', 'value'); expect(request.param('key')).to.equal('value'); }); - it('should unset param, when called with key and no value', function () { + it('should unset param, when called with key and no value', () => { const request = mockRequest.createRequest(); request._setParameter('key', 'value'); request._setParameter('key'); - expect(request.param('key')).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._setParameter).to.throw; + expect(request.param('key')).to.be.a('undefined'); }); }); - describe('._setSessionVariable()', function () { - it('should set session constiable, when called with key and value', function () { + describe('._setSessionVariable()', () => { + it('should set session constiable, when called with key and value', () => { const request = mockRequest.createRequest(); request._setSessionVariable('key', 'value'); expect(request.session.key).to.equal('value'); }); - it('should unset session constiable, when called with key and no value', function () { + it('should unset session constiable, when called with key and no value', () => { const request = mockRequest.createRequest(); request._setSessionVariable('key', 'value'); request._setSessionVariable('key'); - expect(request.param('key')).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._setSessionVariable).to.throw; + expect(request.param('key')).to.be.a('undefined'); }); }); - describe('._setCookiesVariable()', function () { - it('should set cookie, when called with key and value', function () { + describe('._setCookiesVariable()', () => { + it('should set cookie, when called with key and value', () => { const request = mockRequest.createRequest(); request._setCookiesVariable('key', 'value'); expect(request.cookies.key).to.equal('value'); }); - it('should unset cookie, when called with key and no value', function () { + it('should unset cookie, when called with key and no value', () => { const request = mockRequest.createRequest(); request._setCookiesVariable('key', 'value'); request._setCookiesVariable('key'); - expect(request.cookies.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._setCookiesVariable).to.throw; + expect(request.cookies.key).to.be.a('undefined'); }); }); - describe('._setSignedCookiesVariable()', function () { - it('should set signed cookie, when called with key and value', function () { + describe('._setSignedCookiesVariable()', () => { + it('should set signed cookie, when called with key and value', () => { const request = mockRequest.createRequest(); request._setSignedCookiesVariable('key', 'value'); expect(request.signedCookies.key).to.equal('value'); }); - it('should unset signed cookie, when called with key and no value', function () { + it('should unset signed cookie, when called with key and no value', () => { const request = mockRequest.createRequest(); request._setSignedCookiesVariable('key', 'value'); request._setSignedCookiesVariable('key'); - expect(request.signedCookies.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._setSignedCookiesVariable).to.throw; + expect(request.signedCookies.key).to.be.a('undefined'); }); }); - describe('._setHeadersVariable()', function () { - it('should set header, when called with key and value', function () { + describe('._setHeadersVariable()', () => { + it('should set header, when called with key and value', () => { const request = mockRequest.createRequest(); request._setHeadersVariable('key', 'value'); expect(request.get('key')).to.equal('value'); @@ -685,95 +641,89 @@ describe('mockRequest', function () { expect(request.getHeader('key')).to.equal('value'); }); - it('should throw an error, when called with missing arguments', function () { + it('should throw an error, when called with missing arguments', () => { const request = mockRequest.createRequest(); - expect(request._setHeadersVariable).to.throw; - expect(request._setHeadersVariable.bind(null, 'key')).to.throw; + expect(request._setHeadersVariable).to.throw(); }); }); - describe('._setFilesVariable()', function () { - it('should set file, when called with key and value', function () { + describe('._setFilesVariable()', () => { + it('should set file, when called with key and value', () => { const request = mockRequest.createRequest(); request._setFilesVariable('key', 'value'); expect(request.files.key).to.equal('value'); }); - it('should unset file, when called with key and no value', function () { + it('should unset file, when called with key and no value', () => { const request = mockRequest.createRequest(); request._setFilesVariable('key', 'value'); request._setFilesVariable('key'); - expect(request.files.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._setFilesVariable).to.throw; + expect(request.files.key).to.be.a('undefined'); }); }); - describe('._setMethod()', function () { - it('should set method, when called with value', function () { + describe('._setMethod()', () => { + it('should set method, when called with value', () => { const request = mockRequest.createRequest(); const value = 'HEAD'; request._setMethod(value); expect(request.method).to.equal(value); }); - it('should unset method, when called with no arguments', function () { + it('should unset method, when called with no arguments', () => { const request = mockRequest.createRequest(); request._setMethod(); - expect(request.method).to.not.exist; + expect(request.method).to.be.a('undefined'); }); }); - describe('._setURL()', function () { - it('should set url, when called with value', function () { + describe('._setURL()', () => { + it('should set url, when called with value', () => { const request = mockRequest.createRequest(); const value = '/path/to/url'; request._setURL(value); expect(request.url).to.equal(value); }); - it('should unset url, when called with no arguments', function () { + it('should unset url, when called with no arguments', () => { const request = mockRequest.createRequest(); request._setURL(); - expect(request.url).to.not.exist; + expect(request.url).to.be.a('undefined'); }); }); - describe('._setBaseUrl()', function () { - it('should set baseUrl, when called with value', function () { + describe('._setBaseUrl()', () => { + it('should set baseUrl, when called with value', () => { const value = '/path'; const request = mockRequest.createRequest(); request._setBaseUrl(value); expect(request.baseUrl).to.equal(value); }); - it('should unset baseUrl, when called with no arguments', function () { + it('should unset baseUrl, when called with no arguments', () => { const request = mockRequest.createRequest(); request._setBaseUrl(); - expect(request.baseUrl).to.not.exist; + expect(request.baseUrl).to.be.a('undefined'); }); }); - describe('._setOriginalUrl()', function () { - it('should set originalUrl, when called with value', function () { + describe('._setOriginalUrl()', () => { + it('should set originalUrl, when called with value', () => { const value = '/path/to/url'; const request = mockRequest.createRequest(); request._setOriginalUrl(value); expect(request.originalUrl).to.equal(value); }); - it('should unset originalUrl, when called with no arguments', function () { + it('should unset originalUrl, when called with no arguments', () => { const request = mockRequest.createRequest(); request._setOriginalUrl(); - expect(request.originalUrl).to.not.exist; + expect(request.originalUrl).to.be.a('undefined'); }); }); - describe('._setBody()', function () { - it('should set body, when called with value', function () { + describe('._setBody()', () => { + it('should set body, when called with value', () => { const value = { key1: 'value1', key2: 'value2' @@ -783,41 +733,36 @@ describe('mockRequest', function () { expect(request.body).to.deep.equal(value); }); - it('should unset body, when called with no arguments', function () { + it('should unset body, when called with no arguments', () => { const request = mockRequest.createRequest(); request._setBody(); - expect(request.body).to.not.exist; + expect(request.body).to.be.a('undefined'); }); }); - describe('._addBody()', function () { - it('should add body constiable, when called with key and value', function () { + describe('._addBody()', () => { + it('should add body constiable, when called with key and value', () => { const request = mockRequest.createRequest(); request._addBody('key', 'value'); expect(request.body.key).to.equal('value'); }); - it('should unset body constiable, when called with key and no value', function () { + it('should unset body constiable, when called with key and no value', () => { const request = mockRequest.createRequest(); request._addBody('key', 'value'); request._addBody('key'); - expect(request.body.key).to.not.exist; - }); - - it('should throw an error, when called with no arguments', function () { - const request = mockRequest.createRequest(); - expect(request._addBody).to.throw; + expect(request.body.key).to.be.a('undefined'); }); }); - describe('.send()', function () { - it('should trigger data and end event when string is given', function (done) { - const data = Array(); + describe('.send()', () => { + it('should trigger data and end event when string is given', (done) => { + const data = [] as string[]; const request = mockRequest.createRequest(); - request.on('data', function (chunk: any) { + request.on('data', (chunk: any) => { data.push(chunk); }); - request.on('end', function () { + request.on('end', () => { const result = data.join(''); expect(result).to.equal('test data'); done(); @@ -825,14 +770,14 @@ describe('mockRequest', function () { request.send('test data'); }); - it('should trigger data and end event when object is given', function (done) { - const data = Array(); + it('should trigger data and end event when object is given', (done) => { + const data = [] as string[]; const dataTosend = { key: 'value' }; const request = mockRequest.createRequest(); - request.on('data', function (chunk: any) { + request.on('data', (chunk: any) => { data.push(chunk); }); - request.on('end', function () { + request.on('end', () => { const result = data.join(''); expect(JSON.parse(result)).to.deep.equal(dataTosend); done(); @@ -840,13 +785,13 @@ describe('mockRequest', function () { request.send(dataTosend); }); - it('should trigger data and end event when number is given', function (done) { - const data = Array(); + it('should trigger data and end event when number is given', (done) => { + const data = [] as string[]; const request = mockRequest.createRequest(); - request.on('data', function (chunk: any) { + request.on('data', (chunk: any) => { data.push(chunk); }); - request.on('end', function () { + request.on('end', () => { const result = data.join(''); expect(result).to.equal('35'); done(); @@ -854,14 +799,14 @@ describe('mockRequest', function () { request.send(35); }); - it('should trigger data and end event when buffer is given', function (done) { - const data = Array(); + it('should trigger data and end event when buffer is given', (done) => { + const data = [] as string[]; const bufferdata = Buffer.from('test data'); const request = mockRequest.createRequest(); - request.on('data', function (chunk: any) { + request.on('data', (chunk: any) => { data.push(chunk); }); - request.on('end', function () { + request.on('end', () => { const result = data.join(''); expect(result).to.equal('test data'); done(); @@ -869,13 +814,13 @@ describe('mockRequest', function () { request.send(bufferdata); }); - it('should trigger data and end event when nothing is given', function (done) { - const data = Array(); + it('should trigger data and end event when nothing is given', (done) => { + const data = [] as string[]; const request = mockRequest.createRequest(); - request.on('data', function (chunk: any) { + request.on('data', (chunk: any) => { data.push(chunk); }); - request.on('end', function () { + request.on('end', () => { const result = data.join(''); expect(result).to.equal(''); done(); @@ -884,8 +829,8 @@ describe('mockRequest', function () { }); }); - describe('.hostname', function () { - it("should return the host's main domain", function () { + describe('.hostname', () => { + it("should return the host's main domain", () => { const options = { headers: { host: 'tobi.ferrets.example.com:5000' @@ -912,7 +857,7 @@ describe('mockRequest', function () { expect(request.hostname).to.equal('localhost'); }); - it('should return an empty string', function () { + it('should return an empty string', () => { const options = { headers: { key1: 'key1' @@ -922,7 +867,7 @@ describe('mockRequest', function () { expect(request.hostname).to.equal(''); }); - it('should return an predefined hostname', function () { + it('should return an predefined hostname', () => { const options = { hostname: 'predefined.host.com', headers: { @@ -934,8 +879,8 @@ describe('mockRequest', function () { }); }); - describe('.subdomains', function () { - it('should returns the host subdomains', function () { + describe('.subdomains', () => { + it('should returns the host subdomains', () => { const options = { headers: { host: 'tobi.ferrets.example.com' @@ -946,7 +891,7 @@ describe('mockRequest', function () { expect(request.subdomains).to.be.an('array').that.includes('tobi'); }); - it('should returns and empty array', function () { + it('should returns and empty array', () => { const options: mockRequest.RequestOptions = { headers: { key1: 'key1' @@ -955,25 +900,25 @@ describe('mockRequest', function () { let request: mockRequest.MockRequest; request = mockRequest.createRequest(options); - expect(request.subdomains).to.be.an('array').that.empty; + expect(request.subdomains).to.be.an('array').to.have.lengthOf(0); options.headers!.host = 'example.com'; request = mockRequest.createRequest(options); - expect(request.subdomains).to.be.an('array').that.empty; + expect(request.subdomains).to.be.an('array').to.have.lengthOf(0); }); }); }); - describe('asyncIterator', function () { + describe('asyncIterator', () => { async function collect(asyncIterable: any) { - const chunks = Array(); + const chunks = [] as string[]; for await (const chunk of asyncIterable) { chunks.push(chunk); } return chunks; } - it('should iterate when sending data', async function () { + it('should iterate when sending data', async () => { const request = mockRequest.createRequest(); const chunksPromise = collect(request); @@ -983,7 +928,7 @@ describe('mockRequest', function () { expect(data).to.equal('test data'); }); - it('should iterate synchronous pushes', async function () { + it('should iterate synchronous pushes', async () => { const request = mockRequest.createRequest(); const chunksPromise = collect(request); @@ -996,7 +941,7 @@ describe('mockRequest', function () { expect(data).to.equal('foobarbaz'); }); - it('should ignore push after end', async function () { + it('should ignore push after end', async () => { const request = mockRequest.createRequest(); const chunksPromise = collect(request); @@ -1008,52 +953,66 @@ describe('mockRequest', function () { expect(data).to.equal('foo'); }); - it('should iterate asynchronous pushes', async function () { + it('should iterate asynchronous pushes', async () => { const request = mockRequest.createRequest(); const chunksPromise = collect(request); request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('data', Buffer.from('bar')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('data', Buffer.from('baz')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('end'); const data = (await chunksPromise).join(''); expect(data).to.equal('foobarbaz'); }); - it('should support asynchronous pushes while iterating', async function () { + it('should support asynchronous pushes while iterating', async () => { const request = mockRequest.createRequest(); const chunksPromise = (async () => { const extraPushes = ['3', '2', '1']; - const chunks = Array(); + const chunks = [] as string[]; for await (const chunk of request) { chunks.push(chunk); if (extraPushes.length > 0) { const toCreate = extraPushes.pop()!; request.emit('data', Buffer.from(toCreate)); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); } } return chunks; })(); request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('data', Buffer.from('bar')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('data', Buffer.from('baz')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('end'); const data = (await chunksPromise).join(''); expect(data).to.equal('foo1bar2baz3'); }); - it('supports error', async function () { + it('supports error', async () => { const request = mockRequest.createRequest(); /** @type {AsyncIterator} */ @@ -1071,7 +1030,7 @@ describe('mockRequest', function () { } }); - it('supports throw', async function () { + it('supports throw', async () => { const request = mockRequest.createRequest(); /** @type {AsyncIterator} */ @@ -1087,11 +1046,10 @@ describe('mockRequest', function () { expect.fail(); } catch (e) { expect(e).to.equal(error); - return; } }); - it('first error wins', async function () { + it('first error wins', async () => { const request = mockRequest.createRequest(); /** @type {AsyncIterator} */ @@ -1111,7 +1069,7 @@ describe('mockRequest', function () { } }); - it('supports return', async function () { + it('supports return', async () => { const request = mockRequest.createRequest(); /** @type {AsyncIterator} */ @@ -1122,11 +1080,11 @@ describe('mockRequest', function () { }); ['close', 'error'].forEach((event) => { - it(`discards buffer on ${event}`, async function () { + it(`discards buffer on ${event}`, async () => { const request = mockRequest.createRequest(); const chunksPromise = (async () => { - const chunks = Array(); + const chunks = [] as string[]; try { for await (const data of request) { chunks.push(data); @@ -1138,7 +1096,9 @@ describe('mockRequest', function () { })(); request.emit('data', Buffer.from('foo')); - await new Promise((r) => setTimeout(r)); + await new Promise((r) => { + setTimeout(r); + }); request.emit('data', Buffer.from('bar')); request.emit(event, event === 'error' ? new Error('Test error') : undefined); request.emit('data', Buffer.from('baz')); @@ -1161,5 +1121,32 @@ describe('mockRequest', function () { const data = (await collect(request)).join(''); expect(data).to.equal('foobarbaz'); }); + + if (typeof global.Request === 'function') { + it('can be fed to a Fetch API Request body', async () => { + // TODO: what is the purpose of this test? + const request = mockRequest.createRequest(); + + const webRequest = new Request('http://example.com', { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + // @ts-ignore:next-line + body: request, + // @ts-ignore:next-line + duplex: 'half' + }); + + request.on('async_iterator', () => { + request.emit('data', Buffer.from('{ "foo": "b')); + request.emit('data', Buffer.from('ar" }')); + request.emit('end'); + }); + + const webRequestJson = await webRequest.json(); + expect(webRequestJson).to.deep.equal({ foo: 'bar' }); + }); + } }); }); diff --git a/test/lib/mockResponse.spec.js b/test/lib/mockResponse.spec.js index 5c86a81..a268738 100644 --- a/test/lib/mockResponse.spec.js +++ b/test/lib/mockResponse.spec.js @@ -1,33 +1,33 @@ -'use strict'; +const chai = require('chai'); + +const { expect } = chai; +const sinon = require('sinon'); +const sinonChai = require('sinon-chai'); -var chai = require('chai'); -var expect = chai.expect; -var sinon = require('sinon'); -var sinonChai = require('sinon-chai'); chai.use(sinonChai); -var mockResponse = require('../../lib/mockResponse'); -var mockRequest = require('../../lib/mockRequest'); +const mockResponse = require('../../lib/mockResponse'); +const mockRequest = require('../../lib/mockRequest'); -describe('mockResponse', function () { - it('should expose .createResponse()', function () { +describe('mockResponse', () => { + it('should expose .createResponse()', () => { expect(mockResponse.createResponse).to.be.a('function'); }); - describe('.createResponse()', function () { - var response; + describe('.createResponse()', () => { + let response; - before(function () { + before(() => { response = mockResponse.createResponse({ locals: { a: 'b' } }); }); - it('should return an object', function () { + it('should return an object', () => { expect(response).to.be.an('object'); }); - it('should expose Express Response methods', function () { + it('should expose Express Response methods', () => { expect(response).to.have.property('cookie'); expect(response.cookie).to.be.a('function'); @@ -78,7 +78,7 @@ describe('mockResponse', function () { expect(response.render).to.be.a('function'); }); - it('should expose Node OutgoingMessage methods', function () { + it('should expose Node OutgoingMessage methods', () => { expect(response).to.have.property('getHeader'); expect(response.getHeader).to.be.a('function'); @@ -95,12 +95,12 @@ describe('mockResponse', function () { expect(response.end).to.be.a('function'); }); - it('should expose Node ServerResponse methods', function () { + it('should expose Node ServerResponse methods', () => { expect(response).to.have.property('writeHead'); expect(response.writeHead).to.be.a('function'); }); - it('should expose Node WritableStream methods', function () { + it('should expose Node WritableStream methods', () => { expect(response).to.have.property('destroy'); expect(response.destroy).to.be.a('function'); @@ -108,7 +108,7 @@ describe('mockResponse', function () { expect(response.destroySoon).to.be.a('function'); }); - it('should expose Node EventEmitter methods', function () { + it('should expose Node EventEmitter methods', () => { expect(response).to.have.property('addListener'); expect(response.addListener).to.be.a('function'); @@ -137,7 +137,7 @@ describe('mockResponse', function () { expect(response.prependListener).to.be.a('function'); }); - it('should expose helper methods', function () { + it('should expose helper methods', () => { expect(response).to.have.property('_isEndCalled'); expect(response._isEndCalled).to.be.a('function'); @@ -172,27 +172,27 @@ describe('mockResponse', function () { expect(response._getRenderData).to.be.a('function'); }); - it('shoud initialize with default options', function () { + it('shoud initialize with default options', () => { expect(response.statusCode).to.equal(200); expect(response.cookies).to.deep.equal({}); expect(response.locals).to.deep.equal({ a: 'b' }); }); }); - describe('Express Response methods', function () { - describe('.cookie()', function () { - var response; + describe('Express Response methods', () => { + describe('.cookie()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should set cookie, when called with, name and value', function () { - var cookie = { + it('should set cookie, when called with, name and value', () => { + const cookie = { value: 'value', options: undefined }; @@ -200,8 +200,8 @@ describe('mockResponse', function () { expect(response.cookies.name).to.deep.equal(cookie); }); - it('should set cookie, when called with, name, value and options', function () { - var cookie = { + it('should set cookie, when called with, name, value and options', () => { + const cookie = { value: 'value', options: { domain: 'foo.bar.com', @@ -212,12 +212,8 @@ describe('mockResponse', function () { expect(response.cookies.name).to.deep.equal(cookie); }); - it('should throw and error, when called without arguments', function () { - expect(response.cookie).to.throw; - }); - - it('should allow chaining', function () { - var cookie = { + it('should allow chaining', () => { + const cookie = { value: 'value', options: { domain: 'foo.bar.com', @@ -225,24 +221,24 @@ describe('mockResponse', function () { } }; - var chainedResponse = response.cookie('name', cookie.value, cookie.options); + const chainedResponse = response.cookie('name', cookie.value, cookie.options); expect(chainedResponse).to.deep.equal(response); }); }); - describe('.clearCookie()', function () { - var response; + describe('.clearCookie()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should set an already expired date to the cookie, when called with existing cookie', function () { - var cookie = { + it('should set an already expired date to the cookie, when called with existing cookie', () => { + const cookie = { value: '', options: { expires: new Date(1), @@ -254,8 +250,8 @@ describe('mockResponse', function () { expect(response.cookies.name).to.deep.equal(cookie); }); - it('should keep the options of the cookie except expiration date and path, if provided', function () { - var cookie = { + it('should keep the options of the cookie except expiration date and path, if provided', () => { + const cookie = { value: '', options: { expires: new Date(1), @@ -269,130 +265,130 @@ describe('mockResponse', function () { expect(response.cookies.name).to.deep.equal(cookie); }); - it('should return silently, when called with non-existing cookie', function () { - expect(response.clearCookie.bind(null, 'invalid')).not.to.throw; + it('should return silently, when called with non-existing cookie', () => { + expect(response.clearCookie.bind(response, 'invalid')).not.to.throw(); }); - it('should allow chaining', function () { + it('should allow chaining', () => { response.cookie('name', 'value'); - var chainedResponse = response.clearCookie('name'); + const chainedResponse = response.clearCookie('name'); expect(chainedResponse).to.deep.equal(response); }); }); - describe('.status()', function () { - var response; + describe('.status()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should set cookie, when called with, name and value', function () { + it('should set cookie, when called with, name and value', () => { response.status(404); expect(response.statusCode).to.equal(404); }); - it('should statusCode to undefined, when called without arguments', function () { + it('should statusCode to undefined, when called without arguments', () => { response.status(); - expect(response.statusCode).to.not.exist; + expect(response.statusCode).to.be.a('undefined'); }); }); - describe('.sendStatus()', function () { - var response; + describe('.sendStatus()', () => { + let response; - before(function () { + before(() => { response = mockResponse.createResponse(); sinon.spy(response, 'send'); }); - after(function () { + after(() => { response.send.restore(); response = null; }); - it('should set .statusCode, set .type to "text/plain", and call .send()', function () { + it('should set .statusCode, set .type to "text/plain", and call .send()', () => { response.sendStatus(404); expect(response.statusCode).to.equal(404); expect(response.get('Content-Type')).to.equal('text/plain'); - expect(response.send).to.have.been.calledOnce; + expect(response.send).to.have.callCount(1); }); }); - describe('.contentType()/.type()', function () { - var response; + describe('.contentType()/.type()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - it('should set "Content-Type"', function () { + it('should set "Content-Type"', () => { response.type('html'); expect(response.get('Content-Type')).to.equal('text/html'); response.contentType('txt'); expect(response.get('Content-Type')).to.equal('text/plain'); }); - it('should trow an error, when called without arguments', function () { - expect(response.type).to.throw; - expect(response.contentType).to.throw; + it('should trow an error, when called without arguments', () => { + expect(response.type).to.throw(); + expect(response.contentType).to.throw(); }); }); - describe('.vary()', function () { - var response; + describe('.vary()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'setHeader'); }); - afterEach(function () { + afterEach(() => { response.setHeader.restore(); response = null; }); - it('should set vary header, when called with a single field', function () { + it('should set vary header, when called with a single field', () => { response.vary('value1'); expect(response.setHeader).to.have.been.calledWith('Vary', 'value1'); expect(response.get('Vary')).to.equal('value1'); }); - it('should set vary header, when called with a an array of fields', function () { + it('should set vary header, when called with a an array of fields', () => { response.vary(['value1', 'value2']); expect(response.setHeader).to.have.been.calledWith('Vary', 'value1, value2'); expect(response.get('Vary')).to.equal('value1, value2'); }); - it('should not duplicate vary header values (regardless of case)', function () { + it('should not duplicate vary header values (regardless of case)', () => { response.vary(['value1', 'value2']); response.vary(['Value1', 'VALUE2', 'value3']); expect(response.get('Vary')).to.equal('value1, value2, value3'); }); }); - describe('.append()', function () { - var response; + describe('.append()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'setHeader'); }); - afterEach(function () { + afterEach(() => { response.setHeader.restore(); response = null; }); - it('should append multiple headers', function () { + it('should append multiple headers', () => { response.append('Link', ''); response.append('Link', ''); - expect(response.setHeader).to.have.been.calledTwice; + expect(response.setHeader).to.have.callCount(2); expect(response.setHeader).to.have.been.calledWith('Link', ''); expect(response.setHeader).to.have.been.calledWith('Link', [ '', @@ -402,59 +398,59 @@ describe('mockResponse', function () { expect(response.get('Link')).to.deep.equal(['', '']); }); - it('should accept array of values', function () { + it('should accept array of values', () => { response.append('Set-Cookie', ['foo=bar', 'fizz=buzz']); expect(response.setHeader).to.have.been.calledWith('Set-Cookie', ['foo=bar', 'fizz=buzz']); expect(response.get('Set-Cookie')).to.deep.equal(['foo=bar', 'fizz=buzz']); }); - it('should get reset by res.set(field, val)', function () { + it('should get reset by res.set(field, val)', () => { response.append('Link', ''); response.append('Link', ''); response.set('Link', ''); - expect(response.setHeader).to.have.been.calledThrice; + expect(response.setHeader).to.have.callCount(3); expect(response.get('Link')).to.equal(''); }); - it('should work with res.set(field, val) first', function () { + it('should work with res.set(field, val) first', () => { response.set('Link', ''); response.append('Link', ''); - expect(response.setHeader).to.have.been.calledTwice; + expect(response.setHeader).to.have.callCount(2); expect(response.get('Link')).to.deep.equal(['', '']); }); }); - describe('.location()', function () { - var response; + describe('.location()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - it('sets the Location header to the given path', function () { + it('sets the Location header to the given path', () => { response.location('/a/nice/location'); expect(response.get('Location')).to.equal('/a/nice/location'); }); - it('returns the response object', function () { + it('returns the response object', () => { expect(response.location('')).to.equal(response); }); }); - describe('.set()/.header()', function () { - var response; + describe('.set()/.header()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'setHeader'); }); - afterEach(function () { + afterEach(() => { response.setHeader.restore(); response = null; }); - it('should set header, when called with name and value strings', function () { + it('should set header, when called with name and value strings', () => { response.set('name1', 'value1'); expect(response.setHeader).to.have.been.calledWith('name1', 'value1'); expect(response.get('name1')).to.equal('value1'); @@ -464,10 +460,10 @@ describe('mockResponse', function () { expect(response.get('name2')).to.equal('value2'); }); - it('should convert value to string, when called with called with non-string value', function () { - var num = 1; - var obj = { key: 'value' }; - var bool = false; + it('should convert value to string, when called with called with non-string value', () => { + const num = 1; + const obj = { key: 'value' }; + const bool = false; response.set('num', num); expect(response.setHeader).to.have.been.calledWith('num', num.toString()); @@ -482,44 +478,39 @@ describe('mockResponse', function () { expect(response.get('bool')).to.equal(bool.toString()); }); - it('returns the header value when called with only a key', function () { + it('returns the header value when called with only a key', () => { response.header('x', 'y'); expect(response.header('x')).to.equal('y'); }); - it('should set headers, when called with a hash of key/values', function () { - var headers = { + it('should set headers, when called with a hash of key/values', () => { + const headers = { name1: 'value1', name2: 'value2' }; response.set(headers); - expect(response.setHeader).to.have.been.calledTwice; + expect(response.setHeader).to.have.callCount(2); expect(response.setHeader).to.have.been.calledWith('name1', 'value1'); expect(response.setHeader).to.have.been.calledWith('name2', 'value2'); expect(response.get('name1')).to.equal('value1'); expect(response.get('name2')).to.equal('value2'); }); - - it('should throw an error when called without arguments', function () { - expect(response.set).to.throw; - expect(response.header).to.throw; - }); }); - describe('.get()', function () { - var response; + describe('.get()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should get header, when called existing header name', function () { + it('should get header, when called existing header name', () => { response.set('name1', 'value1'); expect(response.get('name1')).to.equal('value1'); @@ -527,36 +518,36 @@ describe('mockResponse', function () { expect(response.get('name2')).to.equal('value2'); }); - it('should throw and error, when called without arguments', function () { - expect(response.get).to.throw; - expect(response.getHeader).to.throw; + it('should throw and error, when called without arguments', () => { + expect(response.get).to.throw(); + expect(response.getHeader).to.throw(); }); }); - describe('.redirect()', function () { - var response; + describe('.redirect()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); it('should mimic Express Response.redirect()'); - it('should redirect with status 302, when not specified', function () { - var url = '/path/to/redirect'; + it('should redirect with status 302, when not specified', () => { + const url = '/path/to/redirect'; response.redirect(url); expect(response.statusCode).to.equal(302); expect(response._getRedirectUrl()).to.equal(url); }); - it('should redirect with status specified status', function () { - var statusCode = 301; - var url = '/path/to/redirect'; + it('should redirect with status specified status', () => { + const statusCode = 301; + const url = '/path/to/redirect'; response.redirect(statusCode, url); expect(response.statusCode).to.equal(statusCode); @@ -565,143 +556,143 @@ describe('mockResponse', function () { }); // TODO: fix in 2.0; method should mimic Express Response.render() - describe('.render()', function () { - var response; + describe('.render()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'emit'); }); - afterEach(function () { + afterEach(() => { response.emit.restore(); response = null; }); it('should mimic Express Response.render()'); - it('should accept view argument only', function () { - var view = 'view'; + it('should accept view argument only', () => { + const view = 'view'; response.render(view); expect(response._getRenderView()).to.equal(view); expect(response._getRenderData()).to.deep.equal({}); - expect(response.emit).to.have.been.calledThrice; + expect(response.emit).to.have.callCount(3); expect(response.emit).to.have.been.calledWith('render'); expect(response.emit).to.have.been.calledWith('end'); expect(response.emit).to.have.been.calledWith('finish'); }); - it('should accept view and data arguments', function () { - var view = 'view'; - var data = { key: 'value' }; + it('should accept view and data arguments', () => { + const view = 'view'; + const data = { key: 'value' }; response.render(view, data); expect(response._getRenderView()).to.equal(view); expect(response._getRenderData()).to.deep.equal(data); - expect(response.emit).to.have.been.calledThrice; + expect(response.emit).to.have.callCount(3); expect(response.emit).to.have.been.calledWith('render'); expect(response.emit).to.have.been.calledWith('end'); expect(response.emit).to.have.been.calledWith('finish'); }); - it('should accept view, data, and callback arguments', function () { - var view = 'view'; - var data = { key: 'value' }; - var callback = sinon.stub(); + it('should accept view, data, and callback arguments', () => { + const view = 'view'; + const data = { key: 'value' }; + const callback = sinon.stub(); response.render(view, data, callback); expect(response._getRenderView()).to.equal(view); expect(response._getRenderData()).to.deep.equal(data); expect(callback).to.have.been.calledWith(null, ''); - expect(response.emit).not.to.have.been.called; + expect(response.emit).not.to.have.callCount(1); }); - it('should accept view and callback arguments', function () { - var view = 'view'; - var callback = sinon.stub(); + it('should accept view and callback arguments', () => { + const view = 'view'; + const callback = sinon.stub(); response.render(view, callback); expect(response._getRenderView()).to.equal(view); expect(response._getRenderData()).to.deep.equal({}); expect(callback).to.have.been.calledWith(null, ''); - expect(response.emit).not.to.have.been.called; + expect(response.emit).not.to.have.callCount(1); }); }); // TODO: fix in 2.0; method should mimic Express Response.send() - describe('.send()', function () { + describe('.send()', () => { it('should mimic Express Response.send()'); - it('should return the response', function () { - var response = mockResponse.createResponse(); + it('should return the response', () => { + const response = mockResponse.createResponse(); expect(response.send({})).to.equal(response); }); }); // TODO: fix in 2.0; method should mimic Express Response.json() - describe('.json()', function () { - var response; + describe('.json()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'emit'); }); - afterEach(function () { + afterEach(() => { response.emit.restore(); response = null; }); it('method should mimic Express Response.json()'); - it('should emit send and end events', function () { + it('should emit send and end events', () => { response.json({}); - expect(response.emit).to.have.been.calledThrice; + expect(response.emit).to.have.callCount(3); expect(response.emit).to.have.been.calledWith('send'); expect(response.emit).to.have.been.calledWith('end'); expect(response.emit).to.have.been.calledWith('finish'); }); - it('should set data and statusCode if first argument is data and second is number', function () { + it('should set data and statusCode if first argument is data and second is number', () => { response.json({}, 400); expect(response.statusCode).to.equal(400); expect(response._getData()).to.equal('{}'); }); - it('should set data and statusCode if second argument is data and first is number', function () { + it('should set data and statusCode if second argument is data and first is number', () => { response.json(400, {}); expect(response.statusCode).to.equal(400); expect(response._getData()).to.equal('{}'); }); - it('should set data to number if passed number as only argument', function () { + it('should set data to number if passed number as only argument', () => { response.json(400); expect(response.statusCode).to.equal(200); expect(response._getData()).to.equal('400'); }); - it('should set data to "false" if passed false', function () { + it('should set data to "false" if passed false', () => { response.json(false); expect(response._getData()).to.equal('false'); }); - it('should set data to "null" if passed null', function () { + it('should set data to "null" if passed null', () => { response.json(null); expect(response._getData()).to.equal('null'); }); - it('should return the response', function () { + it('should return the response', () => { expect(response.json(null)).to.equal(response); }); // reference : https://github.com/howardabrams/node-mocks-http/pull/98 - it('should call .write()', function () { - var originalWrite = response.write.bind(response); - var hackedContent = JSON.stringify({ foo: 'bar' }); - response.write = function (data, encoding) { + it('should call .write()', () => { + const originalWrite = response.write.bind(response); + const hackedContent = JSON.stringify({ foo: 'bar' }); + response.write = function write(data, encoding) { return originalWrite(hackedContent, encoding); }; response.json({ hello: 'world' }); @@ -710,127 +701,128 @@ describe('mockResponse', function () { }); // TODO: fix in 2.0; method should mimic Express Response.jsonp() - describe('.jsonp()', function () { - var response; + describe('.jsonp()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); sinon.spy(response, 'emit'); }); - afterEach(function () { + afterEach(() => { response.emit.restore(); response = null; }); it('method should mimic Express Response.jsonp()'); - it('should emit send and end events', function () { + it('should emit send and end events', () => { response.jsonp({}); - expect(response.emit).to.have.been.calledThrice; + expect(response.emit).to.have.callCount(3); expect(response.emit).to.have.been.calledWith('send'); expect(response.emit).to.have.been.calledWith('end'); expect(response.emit).to.have.been.calledWith('finish'); }); - it('should set data and statusCode if first argument is data and second is number', function () { + it('should set data and statusCode if first argument is data and second is number', () => { response.jsonp({}, 400); expect(response.statusCode).to.equal(400); expect(response._getData()).to.equal('{}'); }); - it('should set data and statusCode if second argument is data and first is number', function () { + it('should set data and statusCode if second argument is data and first is number', () => { response.jsonp(400, {}); expect(response.statusCode).to.equal(400); expect(response._getData()).to.equal('{}'); }); - it('should set data to number if passed number as only argument', function () { + it('should set data to number if passed number as only argument', () => { response.jsonp(400); expect(response.statusCode).to.equal(200); expect(response._getData()).to.equal('400'); }); - it('should set data to "false" if passed false', function () { + it('should set data to "false" if passed false', () => { response.jsonp(false); expect(response._getData()).to.equal('false'); }); - it('should set data to "null" if passed null', function () { + it('should set data to "null" if passed null', () => { response.jsonp(null); expect(response._getData()).to.equal('null'); }); - it('should return the response', function () { + it('should return the response', () => { expect(response.jsonp(null)).to.equal(response); }); }); // TODO: fix in 2.0; method should mimic Express Response.redirect() - describe('.redirect()', function () { + describe('.redirect()', () => { it('method should mimic Express Response.redirect()'); }); - describe('.format()', function () { - var response, request; + describe('.format()', () => { + let response; + let request; - beforeEach(function () { + beforeEach(() => { request = mockRequest.createRequest(); response = mockResponse.createResponse({ req: request }); }); - it('sends 406 when given no supported formats', function () { + it('sends 406 when given no supported formats', () => { response.format({}); expect(response.statusCode).to.equal(406); expect(response._getData()).to.equal('Not Acceptable'); }); - it('throws when no request object is available', function () { + it('throws when no request object is available', () => { response = mockResponse.createResponse(); - expect(function () { - response.format({ html: function () {} }); + expect(() => { + response.format({ html() {} }); }).to.throw(Error, /Request object unavailable/); }); - it('calls the handler for the closest accepted type', function () { - var htmlSpy = sinon.spy(); - var jsonSpy = sinon.spy(); + it('calls the handler for the closest accepted type', () => { + const htmlSpy = sinon.spy(); + const jsonSpy = sinon.spy(); request.headers.accept = 'application/json'; response.format({ html: htmlSpy, json: jsonSpy }); - expect(htmlSpy).to.not.have.been.called; - expect(jsonSpy).to.have.been.called; + expect(htmlSpy).to.have.callCount(0); + expect(jsonSpy).to.have.callCount(1); }); - it('sends 406 when no match is found', function () { - var htmlSpy = sinon.spy(); - var jsonSpy = sinon.spy(); + it('sends 406 when no match is found', () => { + const htmlSpy = sinon.spy(); + const jsonSpy = sinon.spy(); request.headers.accept = 'text/xml'; response.format({ html: htmlSpy, json: jsonSpy }); - expect(htmlSpy).to.not.have.been.called; - expect(jsonSpy).to.not.have.been.called; + expect(htmlSpy).to.have.callCount(0); + expect(jsonSpy).to.have.callCount(0); expect(response.statusCode).to.equal(406); }); - it('runs default function if it exists and no match is found', function () { - var defaultSpy = sinon.spy(); + it('runs default function if it exists and no match is found', () => { + const defaultSpy = sinon.spy(); response.format({ default: defaultSpy }); - expect(defaultSpy).to.have.been.called; + expect(defaultSpy).to.have.callCount(1); }); }); - describe('.attachment()', function () { - var response; + describe('.attachment()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - it('adds Content-Disposition header', function () { + it('adds Content-Disposition header', () => { response.attachment('download.csv'); expect(response._headers).to.have.property('content-disposition'); @@ -840,11 +832,11 @@ describe('mockResponse', function () { }); // TODO: fix in 2.0; methods should be inherited from Node ServerResponse - describe('Node ServerResponse methods', function () { - describe('.writeHead()', function () { - var response; + describe('Node ServerResponse methods', () => { + describe('.writeHead()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); expect(response.statusCode).to.equal(200); @@ -852,30 +844,30 @@ describe('mockResponse', function () { expect(response.getHeaders()).to.be.empty; }); - afterEach(function () { + afterEach(() => { response = null; }); it('should inherit from ServerResponse.writeHead()'); - it('writes the statusCode of the response', function () { + it('writes the statusCode of the response', () => { response.writeHead(400); expect(response.statusCode).to.equal(400); }); - it('writes the statusMessage of the response', function () { + it('writes the statusMessage of the response', () => { response.writeHead(400, 'NotOK'); expect(response.statusMessage).to.equal('NotOK'); }); - it('writes the headers of the response', function () { - var headers = { 'x-header': 'test llama' }; + it('writes the headers of the response', () => { + const headers = { 'x-header': 'test llama' }; response.writeHead(400, headers); expect(response.getHeaders()).to.deep.equal(headers); }); - it('updates the headersSent property of the response', function () { - var headers = { 'x-header': 'test llama' }; + it('updates the headersSent property of the response', () => { + const headers = { 'x-header': 'test llama' }; response.writeHead(400, headers); // headers are only sent by node with first body byte expect(response.headersSent).to.equal(false); @@ -889,39 +881,39 @@ describe('mockResponse', function () { expect(response.getHeaders()).to.deep.equal(headers); }); - it('works with statusMessage and headers as optional', function () { + it('works with statusMessage and headers as optional', () => { response.writeHead(400); expect(response.statusCode).to.equal(400); expect(response.statusMessage).to.equal('OK'); expect(response.getHeaders()).to.be.empty; }); - it('works with statusMessage as optional', function () { - var headers = { 'x-header': 'test llama' }; + it('works with statusMessage as optional', () => { + const headers = { 'x-header': 'test llama' }; response.writeHead(400, headers); expect(response.statusMessage).to.equal('OK'); expect(response.getHeaders()).to.deep.equal(headers); }); - it('works with headers as optional', function () { + it('works with headers as optional', () => { response.writeHead(400, 'NotOK'); expect(response.statusMessage).to.equal('NotOK'); expect(response.getHeaders()).to.be.empty; }); - it('works with statusCode, statusMessage, and headers defined', function () { - var headers = { 'x-header': 'test llama' }; + it('works with statusCode, statusMessage, and headers defined', () => { + const headers = { 'x-header': 'test llama' }; response.writeHead(400, 'NotOK', headers); expect(response.statusMessage).to.equal('NotOK'); expect(response.getHeaders()).to.deep.equal(headers); }); - it('throws if end has already been called', function () { + it('throws if end has already been called', () => { response.end(); expect(response.writeHead.bind(response, 200)).to.throw('The end() method has already been called'); }); - it('merges the given headers with the ones specified earlier (set with `setHeader`)', function () { + it('merges the given headers with the ones specified earlier (set with `setHeader`)', () => { response.setHeader('Access-Control-Allow-Origin', '*'); response.writeHead(200, { 'Access-Control-Max-Age': '86400' }); expect(response.getHeaders()).to.contain.all.keys({ @@ -933,44 +925,44 @@ describe('mockResponse', function () { }); // TODO: fix in 2.0; methods should be inherited from Node OutogingMessage - describe('Node OutogingMessage methods', function () { - describe('.setHeader()', function () { - var response; + describe('Node OutogingMessage methods', () => { + describe('.setHeader()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should set header, when called with name and value strings', function () { + it('should set header, when called with name and value strings', () => { response.setHeader('name', 'value'); expect(response.getHeader('name')).to.equal('value'); }); - it('should throw an error when called without arguments', function () { - expect(response.setHeader).to.throw; + it('should throw an error when called without arguments', () => { + expect(response.setHeader).to.throw(); }); - it('should return this', function () { + it('should return this', () => { expect(response.setHeader('name', 'value')).to.equal(response); }); }); - describe('.getHeader()', function () { - var response; + describe('.getHeader()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should get header, when called existing header', function () { + it('should get header, when called existing header', () => { response.set('name1', 'value1'); expect(response.getHeader('name1')).to.equal('value1'); @@ -978,7 +970,7 @@ describe('mockResponse', function () { expect(response.getHeader('name2')).to.equal('value2'); }); - it('should get header regardless of case, when called existing header', function () { + it('should get header regardless of case, when called existing header', () => { response.set('NAME1', 'value1'); expect(response.getHeader('name1')).to.equal('value1'); @@ -989,27 +981,27 @@ describe('mockResponse', function () { expect(response.getHeader('name3')).to.equal('value3'); }); - it('should throw and error, when called without arguments', function () { - expect(response.getHeader).to.throw; + it('should throw and error, when called without arguments', () => { + expect(response.getHeader).to.throw(); }); }); - describe('.getHeaderNames()', function () { - var response; + describe('.getHeaderNames()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should return an empty array when no headers were set', function () { + it('should return an empty array when no headers were set', () => { expect(response.getHeaderNames()).to.deep.equal([]); }); - it('should return names of headers previously set', function () { + it('should return names of headers previously set', () => { response.setHeader('name1', 'value1'); response.setHeader('name2', 'value2'); @@ -1017,146 +1009,146 @@ describe('mockResponse', function () { }); }); - describe('.getHeaders()', function () { - var response; + describe('.getHeaders()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should return an empty object when no headers were set', function () { + it('should return an empty object when no headers were set', () => { expect(response.getHeaders()).to.deep.equal({}); }); - it('should return headers previously set', function () { + it('should return headers previously set', () => { response.setHeader('name1', 'value1'); response.setHeader('name2', 'value2'); - var headers = response.getHeaders(); + const headers = response.getHeaders(); expect(headers.name1).to.equal('value1'); expect(headers.name2).to.equal('value2'); }); - it('should return a shallow copy', function () { - var array = [1, 2]; + it('should return a shallow copy', () => { + const array = [1, 2]; response.setHeader('name1', array); - var headers = response.getHeaders(); + const headers = response.getHeaders(); expect(headers.name1).not.to.equal(array); expect(headers.name1).to.deep.equal(array); }); }); - describe('.hasHeader()', function () { - var response; + describe('.hasHeader()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should return true if the header was set', function () { + it('should return true if the header was set', () => { response.setHeader('name1'); - expect(response.hasHeader('name1')).to.be.true; + expect(response.hasHeader('name1')).to.equal(true); }); - it('should return false if the header is missing', function () { - expect(response.hasHeader('name1')).to.be.false; + it('should return false if the header is missing', () => { + expect(response.hasHeader('name1')).to.equal(false); }); - it('should be case-insensitive', function () { + it('should be case-insensitive', () => { response.setHeader('name1'); - expect(response.hasHeader('NAME1')).to.be.true; + expect(response.hasHeader('NAME1')).to.equal(true); }); }); - describe('.removeHeader()', function () { - var response; + describe('.removeHeader()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - it('should delete header, when with called existing header', function () { + it('should delete header, when with called existing header', () => { response.set('namer1'); response.removeHeader('name1'); - expect(response.getHeader('name1')).not.to.exist; + expect(response.getHeader('name1')).to.be.a('undefined'); }); - it('should delete header regardless of case, when called existing header', function () { + it('should delete header regardless of case, when called existing header', () => { response.set('NAME1', 'value1'); response.removeHeader('name1'); - expect(response.getHeader('name1')).not.to.exist; + expect(response.getHeader('name1')).to.be.a('undefined'); response.set('name2', 'value2'); response.removeHeader('name2'); - expect(response.getHeader('NAME2')).not.to.exist; + expect(response.getHeader('NAME2')).to.be.a('undefined'); response.set('Name3', 'value3'); response.removeHeader('name3'); - expect(response.getHeader('name3')).not.to.exist; + expect(response.getHeader('name3')).to.be.a('undefined'); }); - it('should exit silently, when with called non-existing header', function () { - expect(response.getHeader('name2')).not.to.exist; + it('should exit silently, when with called non-existing header', () => { + expect(response.getHeader('name2')).to.be.a('undefined'); response.removeHeader('name2'); }); - it('should throw and error, when called without arguments', function () { - expect(response.removeHeader).to.throw; + it('should throw and error, when called without arguments', () => { + expect(response.removeHeader).to.throw(); }); }); - describe('.write()', function () { - var response; + describe('.write()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - it('should accept a string and hold it in _data', function () { - var payload1 = 'payload1'; - var encoding = 'utf8'; + it('should accept a string and hold it in _data', () => { + const payload1 = 'payload1'; + const encoding = 'utf8'; response.write(payload1, encoding); expect(response._getData()).to.equal(payload1); expect(response.getEncoding()).to.equal(encoding); }); - it('should accept multiple strings and concatenate them in _data', function () { - var payload1 = 'payload1'; - var payload2 = 'payload2'; + it('should accept multiple strings and concatenate them in _data', () => { + const payload1 = 'payload1'; + const payload2 = 'payload2'; response.write(payload1); response.write(payload2); expect(response._getData()).to.equal(payload1 + payload2); }); - it('should accept a buffer and hold it in _chunks', function () { - var payload1 = 'payload1'; + it('should accept a buffer and hold it in _chunks', () => { + const payload1 = 'payload1'; response.write(Buffer.from(payload1)); - var chunks = response._getChunks(); + const chunks = response._getChunks(); expect(chunks.length).to.eql(1); expect(chunks[0].toString()).to.equal(payload1); }); - it('should accept multiple buffers and hold them in _chunks', function () { - var payload1 = 'payload1'; - var payload2 = 'payload2'; + it('should accept multiple buffers and hold them in _chunks', () => { + const payload1 = 'payload1'; + const payload2 = 'payload2'; response.write(Buffer.from(payload1)); response.write(Buffer.from(payload2)); - var chunks = response._getChunks(); + const chunks = response._getChunks(); expect(chunks.length).to.eql(2); expect(chunks[0].toString()).to.equal(payload1); expect(chunks[1].toString()).to.equal(payload2); @@ -1165,17 +1157,17 @@ describe('mockResponse', function () { it('should inherit from Node OutogingMessage.write()'); }); - describe('.end()', function () { - var response; + describe('.end()', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); // Issue 119 - it('only emits end once', function () { - var emits = 0; - response.emit = function (event) { + it('only emits end once', () => { + let emits = 0; + response.emit = function emit(event) { if (event === 'end') { emits += 1; } @@ -1185,165 +1177,165 @@ describe('mockResponse', function () { expect(emits).to.eql(1); }); - it('should set writableEnded to true', function () { + it('should set writableEnded to true', () => { response.end(); expect(response.writableEnded).to.eql(true); expect(response.writableFinished).to.eql(true); }); - it('writes to _data if a string is supplied', function () { - var payload1 = 'payload1'; - var encoding = 'utf8'; + it('writes to _data if a string is supplied', () => { + const payload1 = 'payload1'; + const encoding = 'utf8'; response.end(payload1, encoding); expect(response._getData()).to.equal(payload1); expect(response.getEncoding()).to.equal(encoding); }); - it('writes to _buffer if a Buffer is supplied', function () { - var payload1 = 'payload1'; + it('writes to _buffer if a Buffer is supplied', () => { + const payload1 = 'payload1'; response.end(Buffer.from(payload1)); - var buffer = response._getBuffer(); + const buffer = response._getBuffer(); expect(buffer.toString()).to.equal(payload1); }); it('should inherit from Node OutogingMessage.end()'); - it('triggers callback provided as 1st argument', function () { - var callback = sinon.spy(); + it('triggers callback provided as 1st argument', () => { + const callback = sinon.spy(); response.end(callback); - expect(callback).to.have.been.called; + expect(callback).to.have.callCount(1); }); - it('triggers callback provided as 2nd argument', function () { - var payload = 'random-text'; - var callback = sinon.spy(); + it('triggers callback provided as 2nd argument', () => { + const payload = 'random-text'; + const callback = sinon.spy(); response.end(Buffer.from(payload), callback); - expect(callback).to.have.been.called; + expect(callback).to.have.callCount(1); expect(response._getBuffer().toString()).to.equal(payload); }); - it('triggers callback provided as 3rd argument', function () { - var payload = 'random-text'; - var callback = sinon.spy(); + it('triggers callback provided as 3rd argument', () => { + const payload = 'random-text'; + const callback = sinon.spy(); response.end(Buffer.from(payload), 'utf8', callback); - expect(callback).to.have.been.called; + expect(callback).to.have.callCount(1); expect(response._getBuffer().toString()).to.equal(payload); }); }); }); - describe('write() + end() interactions', function () { - var response; + describe('write() + end() interactions', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - it('should accept strings through write() and end() and concatenate them in _data', function () { - var payload1 = 'payload1'; - var payload2 = 'payload2'; + it('should accept strings through write() and end() and concatenate them in _data', () => { + const payload1 = 'payload1'; + const payload2 = 'payload2'; response.write(payload1); response.end(payload2); expect(response._getData()).to.equal(payload1 + payload2); }); - it('should accept buffers through write() and end() and concatenate them in _buffer', function () { - var payload1 = 'payload1'; - var payload2 = 'payload2'; + it('should accept buffers through write() and end() and concatenate them in _buffer', () => { + const payload1 = 'payload1'; + const payload2 = 'payload2'; response.write(Buffer.from(payload1)); response.end(Buffer.from(payload2)); - var buffer = response._getBuffer(); + const buffer = response._getBuffer(); expect(buffer.toString()).to.equal(payload1 + payload2); }); }); // TODO: fix in 2.0; methods should be inherited from Node WritableStream - describe('node WritableStream methods', function () { - describe('.destroy()', function () { + describe('node WritableStream methods', () => { + describe('.destroy()', () => { it('should inherit from Node WritableStream.destroy()'); }); - describe('.destroySoon()', function () { + describe('.destroySoon()', () => { it('should inherit from Node WritableStream.destroySoon()'); }); }); // TODO: fix in 2.0; methods should be inherited from Node EventEmitter - describe('node EventEmitter methods', function () { - describe('.addListener()', function () { + describe('node EventEmitter methods', () => { + describe('.addListener()', () => { it('should inherit from Node EventEmitter.addListener()'); }); - describe('.on()', function () { + describe('.on()', () => { it('should inherit from Node EventEmitter.on()'); }); - describe('.once()', function () { + describe('.once()', () => { it('should inherit from Node EventEmitter.once()'); }); - describe('.removeListener()', function () { + describe('.removeListener()', () => { it('should inherit from Node EventEmitter.removeListener()'); }); - describe('.removeAllListeners()', function () { + describe('.removeAllListeners()', () => { it('should inherit from Node EventEmitter.removeAllListeners()'); }); - describe('.setMaxListeners()', function () { + describe('.setMaxListeners()', () => { it('should inherit from Node EventEmitter.setMaxListeners()'); }); - describe('.listeners()', function () { + describe('.listeners()', () => { it('should inherit from Node EventEmitter.listeners()'); }); - describe('.emit()', function () { + describe('.emit()', () => { it('should inherit from Node EventEmitter.emit()'); }); - describe('.prependListener()', function () { + describe('.prependListener()', () => { it('should inherit from Node EventEmitter.prependListener()'); }); }); // TODO: deprecate helper methods in 2.0 - describe('helper methods', function () { - var response; + describe('helper methods', () => { + let response; - beforeEach(function () { + beforeEach(() => { response = mockResponse.createResponse(); }); - afterEach(function () { + afterEach(() => { response = null; }); - describe('._isEndCalled()', function () { + describe('._isEndCalled()', () => { it('will be deprecated in 2.0'); - it("should return false when .end() hasn't been called", function () { - expect(response._isEndCalled()).to.be.false; + it("should return false when .end() hasn't been called", () => { + expect(response._isEndCalled()).to.equal(false); }); - it('should return true when .end() has been called', function () { + it('should return true when .end() has been called', () => { response.end(); - expect(response._isEndCalled()).to.be.true; + expect(response._isEndCalled()).to.equal(true); }); }); - describe('._getHeaders()', function () { + describe('._getHeaders()', () => { it('will be deprecated in 2.0'); - it('should return empty object when no headers have been set', function () { + it('should return empty object when no headers have been set', () => { expect(response._getHeaders()).to.deep.equal({}); }); - it('should return true when .end() has been called', function () { - var headers = { + it('should return true when .end() has been called', () => { + const headers = { 'content-type': 'text/plain' }; response.type('txt'); @@ -1351,13 +1343,13 @@ describe('mockResponse', function () { }); }); - describe('._getLocals()', function () { - it('should return empty object when no locals have been set', function () { + describe('._getLocals()', () => { + it('should return empty object when no locals have been set', () => { expect(response._getLocals()).to.deep.equal({}); }); - it('should set the locals -object correctly', function () { - var locals = { + it('should set the locals -object correctly', () => { + const locals = { token: 'Test' }; response.locals = locals; @@ -1365,149 +1357,149 @@ describe('mockResponse', function () { }); }); - describe('._getData()', function () { + describe('._getData()', () => { it('will be deprecated in 2.0'); - it('should return empty string when no data has been sent', function () { + it('should return empty string when no data has been sent', () => { expect(response._getData()).to.equal(''); }); - it('should return sent data', function () { + it('should return sent data', () => { response.send('data'); expect(response._getData()).to.equal('data'); }); }); - describe('._getJSONData()', function () { + describe('._getJSONData()', () => { it('will be deprecated in 2.0'); - it('should return sent data', function () { - var data = { a: 1, b: { c: 2 } }; + it('should return sent data', () => { + const data = { a: 1, b: { c: 2 } }; response.send(JSON.stringify(data)); expect(response._getJSONData()).to.deep.equal(data); }); }); - describe('._getStatusCode()', function () { + describe('._getStatusCode()', () => { it('will be deprecated in 2.0'); - it('should return default status code, when not set', function () { + it('should return default status code, when not set', () => { expect(response._getStatusCode()).to.equal(200); }); - it('should return set status code', function () { + it('should return set status code', () => { response.status(404); expect(response._getStatusCode()).to.equal(404); }); }); - describe('._getStatusMessage()', function () { + describe('._getStatusMessage()', () => { it('will be deprecated in 2.0'); - it('should return the default status message, when not set', function () { + it('should return the default status message, when not set', () => { expect(response._getStatusMessage()).to.equal('OK'); }); - it('should return set status message', function () { + it('should return set status message', () => { response.statusMessage = 'NotOK'; expect(response._getStatusMessage()).to.equal('NotOK'); }); - it('should return status message set by .writeHead()', function () { + it('should return status message set by .writeHead()', () => { response.writeHead(400, 'NotOK'); expect(response._getStatusMessage()).to.equal('NotOK'); }); }); - describe('._isJSON()', function () { + describe('._isJSON()', () => { it('will be deprecated in 2.0'); - it('should return true, when Content-Type is JSON', function () { + it('should return true, when Content-Type is JSON', () => { response.type('json'); - expect(response._isJSON()).to.be.true; + expect(response._isJSON()).to.equal(true); }); - it('should return false, when Content-Type is not JSON', function () { + it('should return false, when Content-Type is not JSON', () => { response.type('html'); - expect(response._isJSON()).to.be.false; + expect(response._isJSON()).to.equal(false); }); }); - describe('._isUTF8()', function () { + describe('._isUTF8()', () => { it('will be deprecated in 2.0'); - it('should return false, when enconding is not UTF-8', function () { - expect(response._isUTF8()).to.be.false; + it('should return false, when enconding is not UTF-8', () => { + expect(response._isUTF8()).to.equal(false); }); - it('should return true, when enconding is UTF-8', function () { + it('should return true, when enconding is UTF-8', () => { response.setEncoding('utf8'); - expect(response._isUTF8()).to.be.true; + expect(response._isUTF8()).to.equal(true); }); }); - describe('._isDataLengthValid()', function () { + describe('._isDataLengthValid()', () => { it('will be deprecated in 2.0'); - it('should return true, when Content-Length not present', function () { - expect(response._isDataLengthValid()).to.be.true; + it('should return true, when Content-Length not present', () => { + expect(response._isDataLengthValid()).to.equal(true); }); - it('should return true, when Content-Length equals data size', function () { + it('should return true, when Content-Length equals data size', () => { response.send('data'); response.header('Content-Length', '4'); - expect(response._isDataLengthValid()).to.be.true; + expect(response._isDataLengthValid()).to.equal(true); }); - it('should return false, when Content-Length does not equal data size', function () { + it('should return false, when Content-Length does not equal data size', () => { response.send('data'); response.header('Content-Length', '5'); - expect(response._isDataLengthValid()).to.be.false; + expect(response._isDataLengthValid()).to.equal(false); }); }); - describe('._getRedirectUrl()', function () { + describe('._getRedirectUrl()', () => { it('will be deprecated in 2.0'); - it('should return empty string, when .redirect() not called', function () { + it('should return empty string, when .redirect() not called', () => { expect(response._getRedirectUrl()).to.equal(''); }); - it('should return redirect url', function () { - var url = '/path/to/redirect'; + it('should return redirect url', () => { + const url = '/path/to/redirect'; response.redirect(url); expect(response._getRedirectUrl()).to.equal(url); }); }); - describe('._getRenderView()', function () { + describe('._getRenderView()', () => { it('will be deprecated in 2.0'); - it('should return empty string, when .render() not called', function () { + it('should return empty string, when .render() not called', () => { expect(response._getRenderView()).to.equal(''); }); - it('should return name of rendered view', function () { - var view = 'view'; + it('should return name of rendered view', () => { + const view = 'view'; response.render(view); expect(response._getRenderView()).to.equal(view); }); }); - describe('._getRenderData()', function () { + describe('._getRenderData()', () => { it('will be deprecated in 2.0'); - it('should return empty object, when .render() not called', function () { + it('should return empty object, when .render() not called', () => { expect(response._getRenderData()).to.deep.equal({}); }); - it('should return empty object, when .render() called without data', function () { + it('should return empty object, when .render() called without data', () => { response.render('view'); expect(response._getRenderData()).to.deep.equal({}); }); - it('should return data object, when .render() called with data', function () { - var data = { + it('should return data object, when .render() called with data', () => { + const data = { key: 'value' }; response.render('view', data); diff --git a/test/lib/mockWritableStream.spec.js b/test/lib/mockWritableStream.spec.js index 5329a62..59ef340 100644 --- a/test/lib/mockWritableStream.spec.js +++ b/test/lib/mockWritableStream.spec.js @@ -1,26 +1,26 @@ -'use strict'; +const chai = require('chai'); -var chai = require('chai'); -var expect = chai.expect; +const { expect } = chai; -var MockWritableStream = require('../../lib/mockWritableStream'); -var mockWritableStream; +const MockWritableStream = require('../../lib/mockWritableStream'); -describe('mockWritableStream', function () { - before(function () { +let mockWritableStream; + +describe('mockWritableStream', () => { + before(() => { mockWritableStream = new MockWritableStream(); }); - it('should be a function', function () { + it('should be a function', () => { expect(MockWritableStream).to.be.a('function'); }); - it('should be an object factory', function () { + it('should be an object factory', () => { expect(mockWritableStream).to.be.a('object'); expect(mockWritableStream).to.be.an.instanceof(MockWritableStream); }); - it('should expose "MockWritableStream" prototype', function () { + it('should expose "MockWritableStream" prototype', () => { expect(mockWritableStream).to.have.property('end'); expect(mockWritableStream.end).to.be.a('function'); @@ -31,9 +31,9 @@ describe('mockWritableStream', function () { expect(mockWritableStream.destroySoon).to.be.a('function'); }); - it('should return undefined when methods called', function () { - expect(mockWritableStream.end()).to.be.undefined; - expect(mockWritableStream.destroy()).to.be.undefined; - expect(mockWritableStream.destroySoon()).to.be.undefined; + it('should return undefined when methods called', () => { + expect(mockWritableStream.end()).to.be.an('undefined'); + expect(mockWritableStream.destroy()).to.be.an('undefined'); + expect(mockWritableStream.destroySoon()).to.be.an('undefined'); }); }); diff --git a/test/lib/node-http-mock.spec.js b/test/lib/node-http-mock.spec.js index d294739..a00b780 100644 --- a/test/lib/node-http-mock.spec.js +++ b/test/lib/node-http-mock.spec.js @@ -1,20 +1,14 @@ -'use strict'; +const chai = require('chai'); +const httpMock = require('../../lib/http-mock'); -var chai = require('chai'); -var expect = chai.expect; +const { expect } = chai; -var httpMock; - -describe('http-mock', function () { - before(function () { - httpMock = require('../../lib/http-mock'); - }); - - it('should export .createRequest()', function () { +describe('http-mock', () => { + it('should export .createRequest()', () => { expect(httpMock.createRequest).to.be.a('function'); }); - it('should export .createResponse()', function () { + it('should export .createResponse()', () => { expect(httpMock.createResponse).to.be.a('function'); }); });