From bb59083cd670c185afac011f233ef968e32d2db2 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Fri, 20 Dec 2024 11:37:48 +0100 Subject: [PATCH] Move to ESM --- Makefile | 2 +- ava.config.js | 43 +- babel.config.cjs | 33 + babel.config.js | 20 - bundle.cjs | 45 + bundle.js | 40 - eslint.config.mjs => eslint.config.js | 6 +- package-lock.json | 1689 +++++++++---------- package.json | 8 +- packages/base64/package.json | 1 + packages/client-core/package.json | 1 + packages/client/browser.js | 37 +- packages/client/example.js | 8 +- packages/client/index.js | 45 +- packages/client/lib/getDomain.js | 6 +- packages/client/package.json | 1 + packages/client/react-native.js | 37 +- packages/client/test/getDomain.js | 6 +- packages/component-core/package.json | 1 + packages/component/package.json | 1 + packages/connection-tcp/package.json | 1 + packages/connection/package.json | 1 + packages/debug/package.json | 1 + packages/error/package.json | 1 + packages/events/package.json | 1 + packages/id/package.json | 1 + packages/iq/package.json | 1 + packages/jid/package.json | 1 + packages/middleware/package.json | 1 + packages/reconnect/package.json | 1 + packages/resolve/package.json | 1 + packages/resource-binding/package.json | 1 + packages/sasl-anonymous/package.json | 1 + packages/sasl-plain/package.json | 1 + packages/sasl-scram-sha-1/package.json | 1 + packages/sasl/package.json | 1 + packages/session-establishment/package.json | 1 + packages/starttls/package.json | 1 + packages/stream-features/package.json | 1 + packages/stream-management/package.json | 1 + packages/tcp/package.json | 1 + packages/test/package.json | 1 + packages/time/package.json | 1 + packages/tls/package.json | 1 + packages/uri/package.json | 1 + packages/websocket/package.json | 1 + packages/xml/package.json | 1 + packages/xmpp.js/package.json | 1 + prettier.config.js | 4 +- 49 files changed, 970 insertions(+), 1092 deletions(-) create mode 100644 babel.config.cjs delete mode 100644 babel.config.js create mode 100755 bundle.cjs delete mode 100755 bundle.js rename eslint.config.mjs => eslint.config.js (95%) diff --git a/Makefile b/Makefile index 61388dbab..75c3748db 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ bundlesize: ./node_modules/.bin/bundlesize bundle: - node bundle.js + node bundle.cjs size: make bundle diff --git a/ava.config.js b/ava.config.js index 5e725f616..f53eb169b 100644 --- a/ava.config.js +++ b/ava.config.js @@ -1,25 +1,26 @@ export default { - babel: { - testOptions: { - babelrc: false, - plugins: [ - [ - "@babel/plugin-transform-react-jsx", - { - pragma: "xml", - throwIfNamespace: false, - }, - ], - [ - "babel-plugin-jsx-pragmatic", - { - module: "@xmpp/xml", - import: "xml", - }, - ], - ], - }, - }, + // babel: { + // testOptions: { + // babelrc: false, + // plugins: [ + // [ + // "@babel/plugin-transform-react-jsx", + // { + // pragma: "xml", + // throwIfNamespace: false, + // }, + // ], + // [ + // "babel-plugin-jsx-pragmatic", + // { + // module: "@xmpp/xml", + // import: "xml", + // }, + // ], + // ], + // }, + // }, + // nodeArguments: ["--loader=babel-register-esm"], files: [ "packages/**/test.js", "packages/**/test/*.js", diff --git a/babel.config.cjs b/babel.config.cjs new file mode 100644 index 000000000..1e862e36d --- /dev/null +++ b/babel.config.cjs @@ -0,0 +1,33 @@ +module.exports = { + presets: [ + [ + "@babel/preset-env", + { + targets: { + ie: "11", + }, + loose: true, + }, + ], + ], + plugins: [ + "@babel/plugin-transform-runtime", + "babel-plugin-transform-async-to-promises", + "@babel/plugin-proposal-object-rest-spread", + + // [ + // "@babel/plugin-transform-react-jsx", + // { + // pragma: "xml", + // throwIfNamespace: false, + // }, + // ], + // [ + // "babel-plugin-jsx-pragmatic", + // { + // module: "@xmpp/xml", + // import: "xml", + // }, + // ], + ], +}; diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index c705ac4e8..000000000 --- a/babel.config.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -module.exports = { - presets: [ - [ - "@babel/preset-env", - { - targets: { - ie: "10", - }, - loose: true, - }, - ], - ], - plugins: [ - "@babel/plugin-transform-runtime", - "babel-plugin-transform-async-to-promises", - "@babel/plugin-proposal-object-rest-spread", - ], -}; diff --git a/bundle.cjs b/bundle.cjs new file mode 100755 index 000000000..0b6f3a559 --- /dev/null +++ b/bundle.cjs @@ -0,0 +1,45 @@ +#!/usr/bin/env node + +/* eslint-disable no-console */ + +"use strict"; + +const fs = require("fs"); +const path = require("path"); +const browserify = require("browserify"); +const commonShake = require("common-shakeify"); +const packFlat = require("browser-pack-flat"); +const exorcist = require("exorcist"); +const { minify } = require("uglify-js"); + +const dist = path.join(__dirname, "packages/client/dist"); + +browserify(path.join(__dirname, "packages/client/"), { + debug: true, + standalone: "XMPP", +}) + .transform("babelify", { global: true }) + .plugin(commonShake) + .plugin(packFlat) + // .on('dep', dep => { + // console.log(dep.file) + // }) + .bundle() + .pipe(exorcist(path.join(dist, "xmpp.js.map"))) + .pipe(fs.createWriteStream(path.join(dist, "xmpp.js"))) + .on("finish", () => { + const bundled = fs.readFileSync(path.join(dist, "xmpp.js")).toString(); + const sourceMap = fs + .readFileSync(path.join(dist, "xmpp.js.map")) + .toString(); + const { code, map, error } = minify(bundled, { + sourceMap: { + content: sourceMap, + url: "xmpp.min.js.map", + filename: "xmpp.min.js", + }, + }); + if (error) return console.error(error); + fs.writeFileSync(path.join(dist, "xmpp.min.js"), code); + fs.writeFileSync(path.join(dist, "xmpp.min.js.map"), map); + }); diff --git a/bundle.js b/bundle.js deleted file mode 100755 index 2a35ef659..000000000 --- a/bundle.js +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env node - -/* eslint-disable no-console */ - -'use strict' // eslint-disable-line node/shebang - -const fs = require('fs') -const path = require('path') -const browserify = require('browserify') -const commonShake = require('common-shakeify') -const packFlat = require('browser-pack-flat') -const exorcist = require('exorcist') -const {minify} = require('uglify-js') - -const dist = path.join(__dirname, 'packages/client/dist') - -browserify(path.join(__dirname, 'packages/client/'), {debug: true, standalone: 'XMPP'}) - .transform('babelify', {global: true}) - .plugin(commonShake) - .plugin(packFlat) - // .on('dep', dep => { - // console.log(dep.file) - // }) - .bundle() - .pipe(exorcist(path.join(dist, 'xmpp.js.map'))) - .pipe(fs.createWriteStream(path.join(dist, 'xmpp.js'))) - .on('finish', () => { - const bundled = fs.readFileSync(path.join(dist, 'xmpp.js')).toString() - const sourceMap = fs.readFileSync(path.join(dist, 'xmpp.js.map')).toString() - const {code, map, error} = minify(bundled, { - sourceMap: { - content: sourceMap, - url: 'xmpp.min.js.map', - filename: 'xmpp.min.js', - }, - }) - if (error) return console.error(error) - fs.writeFileSync(path.join(dist, 'xmpp.min.js'), code) - fs.writeFileSync(path.join(dist, 'xmpp.min.js.map'), map) - }) diff --git a/eslint.config.mjs b/eslint.config.js similarity index 95% rename from eslint.config.mjs rename to eslint.config.js index 9f73dd2b7..8b9f855f6 100644 --- a/eslint.config.mjs +++ b/eslint.config.js @@ -32,7 +32,7 @@ export default [ jsx: true, }, }, - sourceType: "script", + sourceType: "module", }, rules: { @@ -65,6 +65,10 @@ export default [ "error", { allowModules: ["ava", "sinon", "@xmpp/test"] }, ], + "n/no-extraneous-import": [ + "error", + { allowModules: ["ava", "sinon", "@xmpp/test"] }, + ], // promise // https://github.com/xjamundx/eslint-plugin-promise diff --git a/package-lock.json b/package-lock.json index 0ee1d65fd..8a47cfefd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,9 +18,10 @@ "@babel/plugin-transform-runtime": "^7.25.9", "@babel/preset-env": "^7.26.0", "@babel/runtime": "^7.26.0", - "ava": "^3.15.0", + "ava": "^4.3.3", "babel-plugin-jsx-pragmatic": "^1.0.2", "babel-plugin-transform-async-to-promises": "^0.8.18", + "babel-register-esm": "^1.2.5", "babelify": "^10.0.0", "babylon": "^6.18.0", "browser-pack-flat": "^3.5.0", @@ -272,7 +273,8 @@ }, "node_modules/@babel/core": { "version": "7.26.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", + "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.26.0", @@ -1852,25 +1854,6 @@ "node": ">=6.9.0" } }, - "node_modules/@concordance/react": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "arrify": "^1.0.1" - }, - "engines": { - "node": ">=6.12.3 <7 || >=8.9.4 <9 || >=10.0.0" - } - }, - "node_modules/@concordance/react/node_modules/arrify": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@emnapi/core": { "version": "1.3.1", "dev": true, @@ -2374,20 +2357,6 @@ "dev": true, "license": "Python-2.0" }, - "node_modules/@lerna/create/node_modules/ci-info": { - "version": "3.9.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/@lerna/create/node_modules/cliui": { "version": "8.0.1", "dev": true, @@ -3601,14 +3570,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@sindresorhus/is": { - "version": "0.14.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "dev": true, @@ -3648,17 +3609,6 @@ "dev": true, "license": "(Unlicense OR Apache-2.0)" }, - "node_modules/@szmarczak/http-timer": { - "version": "1.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "defer-to-connect": "^1.0.1" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/@tufjs/canonical-json": { "version": "2.0.0", "dev": true, @@ -3968,9 +3918,13 @@ } }, "node_modules/acorn-walk": { - "version": "8.1.1", + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", "dev": true, - "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, "engines": { "node": ">=0.4.0" } @@ -4015,14 +3969,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ansi-align": { - "version": "3.0.1", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.1.0" - } - }, "node_modules/ansi-colors": { "version": "4.1.3", "dev": true, @@ -4186,14 +4132,6 @@ "inherits": "2.0.1" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/async": { "version": "3.2.6", "dev": true, @@ -4205,227 +4143,585 @@ "license": "MIT" }, "node_modules/ava": { - "version": "3.15.0", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/ava/-/ava-4.3.3.tgz", + "integrity": "sha512-9Egq/d9R74ExrWohHeqUlexjDbgZJX5jA1Wq4KCTqc3wIfpGEK79zVy4rBtofJ9YKIxs4PzhJ8BgbW5PlAYe6w==", "dev": true, - "license": "MIT", "dependencies": { - "@concordance/react": "^2.0.0", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "ansi-styles": "^5.0.0", + "acorn": "^8.7.1", + "acorn-walk": "^8.2.0", + "ansi-styles": "^6.1.0", "arrgv": "^1.0.2", - "arrify": "^2.0.1", - "callsites": "^3.1.0", - "chalk": "^4.1.0", - "chokidar": "^3.4.3", + "arrify": "^3.0.0", + "callsites": "^4.0.0", + "cbor": "^8.1.0", + "chalk": "^5.0.1", + "chokidar": "^3.5.3", "chunkd": "^2.0.1", - "ci-info": "^2.0.0", + "ci-info": "^3.3.1", "ci-parallel-vars": "^1.0.1", "clean-yaml-object": "^0.1.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^3.0.0", + "cli-truncate": "^3.1.0", + "code-excerpt": "^4.0.0", "common-path-prefix": "^3.0.0", - "concordance": "^5.0.1", - "convert-source-map": "^1.7.0", + "concordance": "^5.0.4", "currently-unhandled": "^0.4.1", - "debug": "^4.3.1", - "del": "^6.0.0", - "emittery": "^0.8.0", - "equal-length": "^1.0.0", - "figures": "^3.2.0", - "globby": "^11.0.1", - "ignore-by-default": "^2.0.0", - "import-local": "^3.0.2", - "indent-string": "^4.0.0", + "debug": "^4.3.4", + "del": "^6.1.1", + "emittery": "^0.11.0", + "figures": "^4.0.1", + "globby": "^13.1.1", + "ignore-by-default": "^2.1.0", + "indent-string": "^5.0.0", "is-error": "^2.2.2", "is-plain-object": "^5.0.0", "is-promise": "^4.0.0", - "lodash": "^4.17.20", - "matcher": "^3.0.0", - "md5-hex": "^3.0.1", - "mem": "^8.0.0", + "matcher": "^5.0.0", + "mem": "^9.0.2", "ms": "^2.1.3", - "ora": "^5.2.0", - "p-event": "^4.2.0", - "p-map": "^4.0.0", - "picomatch": "^2.2.2", - "pkg-conf": "^3.1.0", - "plur": "^4.0.0", + "p-event": "^5.0.1", + "p-map": "^5.4.0", + "picomatch": "^2.3.1", + "pkg-conf": "^4.0.0", + "plur": "^5.1.0", "pretty-ms": "^7.0.1", - "read-pkg": "^5.2.0", "resolve-cwd": "^3.0.0", "slash": "^3.0.0", - "source-map-support": "^0.5.19", - "stack-utils": "^2.0.3", - "strip-ansi": "^6.0.0", - "supertap": "^2.0.0", + "stack-utils": "^2.0.5", + "strip-ansi": "^7.0.1", + "supertap": "^3.0.1", "temp-dir": "^2.0.0", - "trim-off-newlines": "^1.0.1", - "update-notifier": "^5.0.1", - "write-file-atomic": "^3.0.3", - "yargs": "^16.2.0" + "write-file-atomic": "^4.0.1", + "yargs": "^17.5.1" }, "bin": { - "ava": "cli.js" + "ava": "entrypoints/cli.mjs" }, "engines": { - "node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0 <15 || >=15" + "node": ">=12.22 <13 || >=14.17 <15 || >=16.4 <17 || >=18" + }, + "peerDependencies": { + "@ava/typescript": "*" + }, + "peerDependenciesMeta": { + "@ava/typescript": { + "optional": true + } } }, - "node_modules/ava/node_modules/chalk": { - "version": "4.1.2", + "node_modules/ava/node_modules/aggregate-error": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-4.0.1.tgz", + "integrity": "sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "clean-stack": "^4.0.0", + "indent-string": "^5.0.0" }, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ava/node_modules/chalk/node_modules/ansi-styles": { - "version": "4.3.0", + "node_modules/ava/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" + "engines": { + "node": ">=12" }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ava/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.4", + "node_modules/ava/node_modules/arrify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-3.0.0.tgz", + "integrity": "sha512-tLkvA81vQG/XqE2mjDkGQHoOINtMHtysSnemrmoGe6PydDPMRbVugqyk4A6V/WDWEfm3l+0d8anA9r8cv/5Jaw==", "dev": true, - "license": "MIT", "engines": { - "node": ">= 0.4" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/axios": { - "version": "1.7.9", + "node_modules/ava/node_modules/callsites": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-4.2.0.tgz", + "integrity": "sha512-kfzR4zzQtAE9PC7CzZsjl3aBNbXWuXiSeOCdLcPpBfGW8YuCqQHcRPFDbr/BPVmd3EEPVpuFzLyuT/cUhPr4OQ==", "dev": true, - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/babel-plugin-espower": { - "version": "3.0.1", + "node_modules/ava/node_modules/chalk": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.0.tgz", + "integrity": "sha512-ZkD35Mx92acjB2yNJgziGqT9oKHEOxjTBTDRpOsRWtdecL/0jM3z5kM/CTzHWvHIen1GvkM85p6TuFfDGfc8/Q==", "dev": true, - "license": "MIT", - "dependencies": { - "@babel/generator": "^7.0.0", - "@babel/parser": "^7.0.0", - "call-matcher": "^1.0.0", - "core-js": "^2.0.0", - "espower-location-detector": "^1.0.0", - "espurify": "^1.6.0", - "estraverse": "^4.1.1" + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/babel-plugin-jsx-pragmatic": { - "version": "1.0.2", - "license": "MIT", + "node_modules/ava/node_modules/clean-stack": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-4.2.0.tgz", + "integrity": "sha512-LYv6XPxoyODi36Dp976riBtSY27VmFo+MKqEU9QCCWyTrdEPDog+RWA7xQWHi6Vbp61j5c4cdzzX1NidnwtUWg==", + "dev": true, "dependencies": { - "babel-plugin-syntax-jsx": "^6.0.0" + "escape-string-regexp": "5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.12", + "node_modules/ava/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.3", - "semver": "^6.3.1" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + "engines": { + "node": ">=12" } }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", + "node_modules/ava/node_modules/cliui/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, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": ">=8" } }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", + "node_modules/ava/node_modules/cliui/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, - "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" + "ansi-regex": "^5.0.1" }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.3", + "node_modules/ava/node_modules/figures": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/figures/-/figures-4.0.1.tgz", + "integrity": "sha512-rElJwkA/xS04Vfg+CaZodpso7VqBknOYbzi6I76hI4X80RUjkSxO2oAyPmGbuXUppywjqndOrQDl817hDnI++w==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.3" + "escape-string-regexp": "^5.0.0", + "is-unicode-supported": "^1.2.0" }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/babel-plugin-syntax-jsx": { - "version": "6.18.0", - "license": "MIT" - }, - "node_modules/babel-plugin-transform-async-to-promises": { - "version": "0.8.18", + "node_modules/ava/node_modules/find-up": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", "dev": true, - "license": "MIT" + "dependencies": { + "locate-path": "^7.1.0", + "path-exists": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/babelify": { - "version": "10.0.0", + "node_modules/ava/node_modules/globby": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", + "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", "dev": true, - "license": "MIT", + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.3.0", + "ignore": "^5.2.4", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, "engines": { - "node": ">=6.9.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/babylon": { - "version": "6.18.0", + "node_modules/ava/node_modules/globby/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", "dev": true, - "license": "MIT", - "bin": { - "babylon": "bin/babylon.js" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "license": "MIT" - }, - "node_modules/base-64": { - "version": "1.0.0", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", + "node_modules/ava/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/load-json-file": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-7.0.1.tgz", + "integrity": "sha512-Gnxj3ev3mB5TkVBGad0JM6dmLiQL+o0t23JPBZ9sd+yvSLk05mFoqKBw5N8gbbkU4TNXyqCgIrl/VM17OgUIgQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/locate-path": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", + "dev": true, + "dependencies": { + "p-locate": "^6.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/p-limit": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/p-locate": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", + "dev": true, + "dependencies": { + "p-limit": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/p-map": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", + "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", + "dev": true, + "dependencies": { + "aggregate-error": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/path-exists": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/ava/node_modules/pkg-conf": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-4.0.0.tgz", + "integrity": "sha512-7dmgi4UY4qk+4mj5Cd8v/GExPo0K+SlY+hulOSdfZ/T6jVH6//y7NtzZo5WrfhDBxuQ0jCa7fLZmNaNh7EWL/w==", + "dev": true, + "dependencies": { + "find-up": "^6.0.0", + "load-json-file": "^7.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ava/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/ava/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ava/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/ava/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/ava/node_modules/yocto-queue": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz", + "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.7.9", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-plugin-espower": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/generator": "^7.0.0", + "@babel/parser": "^7.0.0", + "call-matcher": "^1.0.0", + "core-js": "^2.0.0", + "espower-location-detector": "^1.0.0", + "espurify": "^1.6.0", + "estraverse": "^4.1.1" + } + }, + "node_modules/babel-plugin-jsx-pragmatic": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "babel-plugin-syntax-jsx": "^6.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.12", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.3", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.3" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-syntax-jsx": { + "version": "6.18.0", + "license": "MIT" + }, + "node_modules/babel-plugin-transform-async-to-promises": { + "version": "0.8.18", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-register-esm": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/babel-register-esm/-/babel-register-esm-1.2.5.tgz", + "integrity": "sha512-WaVd3Rm42kndYnufn8u1SbUUwuCxL2GAQX/7QXUL3w/7PffB+HcXrzmAqk1x01TjhFh/npSZ9Z3MNBc6dDb6Uw==", + "dev": true, + "engines": { + "node": ">=12.17.0" + }, + "peerDependencies": { + "@babel/core": "*" + } + }, + "node_modules/babelify": { + "version": "10.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babylon": { + "version": "6.18.0", + "dev": true, + "license": "MIT", + "bin": { + "babylon": "bin/babylon.js" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/base-64": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", "dev": true, "funding": [ { @@ -4549,78 +4845,6 @@ "dev": true, "license": "MIT" }, - "node_modules/boxen": { - "version": "5.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.0", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/boxen/node_modules/camelcase": { - "version": "6.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/chalk": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "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/boxen/node_modules/type-fest": { - "version": "0.20.2", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "license": "MIT", @@ -5031,53 +5255,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/cacheable-request": { - "version": "6.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cacheable-request/node_modules/lowercase-keys": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/normalize-url": { - "version": "4.5.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/cached-path-relative": { "version": "1.0.2", "dev": true, @@ -5193,6 +5370,18 @@ ], "license": "CC-BY-4.0" }, + "node_modules/cbor": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz", + "integrity": "sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg==", + "dev": true, + "dependencies": { + "nofilter": "^3.1.0" + }, + "engines": { + "node": ">=12.19" + } + }, "node_modules/chalk": { "version": "4.1.0", "dev": true, @@ -5269,9 +5458,19 @@ "license": "MIT" }, "node_modules/ci-info": { - "version": "2.0.0", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true, - "license": "MIT" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } }, "node_modules/ci-parallel-vars": { "version": "1.0.1", @@ -5321,17 +5520,6 @@ "node": ">=0.10.0" } }, - "node_modules/cli-boxes": { - "version": "2.2.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cli-cursor": { "version": "3.1.0", "dev": true, @@ -5355,20 +5543,71 @@ } }, "node_modules/cli-truncate": { - "version": "2.1.0", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", + "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", "dev": true, - "license": "MIT", "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" + "slice-ansi": "^5.0.0", + "string-width": "^5.0.0" }, "engines": { - "node": ">=8" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/cli-truncate/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/cli-truncate/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/cli-truncate/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-truncate/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/cli-width": { "version": "3.0.0", "dev": true, @@ -5417,22 +5656,6 @@ "node": ">=0.10.0" } }, - "node_modules/clone-response": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^1.0.0" - } - }, - "node_modules/clone-response/node_modules/mimic-response": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/cmd-shim": { "version": "6.0.3", "dev": true, @@ -5442,14 +5665,15 @@ } }, "node_modules/code-excerpt": { - "version": "3.0.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz", + "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==", "dev": true, - "license": "MIT", "dependencies": { - "convert-to-spaces": "^1.0.1" + "convert-to-spaces": "^2.0.1" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/code-point-at": { @@ -5618,22 +5842,6 @@ "node": ">=10" } }, - "node_modules/configstore": { - "version": "5.0.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/console-browserify": { "version": "1.2.0", "dev": true @@ -5988,11 +6196,12 @@ "license": "MIT" }, "node_modules/convert-to-spaces": { - "version": "1.0.2", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz", + "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">= 4" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/core-js": { @@ -6110,14 +6319,6 @@ "node": "*" } }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/cssesc": { "version": "3.0.0", "dev": true, @@ -6308,11 +6509,6 @@ "clone": "^1.0.2" } }, - "node_modules/defer-to-connect": { - "version": "1.1.3", - "dev": true, - "license": "MIT" - }, "node_modules/define-lazy-prop": { "version": "2.0.0", "dev": true, @@ -6337,9 +6533,10 @@ "license": "MIT" }, "node_modules/del": { - "version": "6.0.0", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", + "integrity": "sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==", "dev": true, - "license": "MIT", "dependencies": { "globby": "^11.0.1", "graceful-fs": "^4.2.4", @@ -6533,11 +6730,6 @@ "readable-stream": "^2.0.2" } }, - "node_modules/duplexer3": { - "version": "0.1.4", - "dev": true, - "license": "BSD-3-Clause" - }, "node_modules/eastasianwidth": { "version": "0.2.0", "dev": true, @@ -6581,11 +6773,12 @@ "license": "MIT" }, "node_modules/emittery": { - "version": "0.8.1", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.11.0.tgz", + "integrity": "sha512-S/7tzL6v5i+4iJd627Nhv9cLFIo5weAIlGccqJFpnBoDB8U1TF2k5tez4J/QNuxyyhWuFqHg1L84Kd3m7iXg6g==", "dev": true, - "license": "MIT", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -6696,14 +6889,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/equal-length": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/err-code": { "version": "2.0.3", "dev": true, @@ -6847,20 +7032,16 @@ "node": ">=6" } }, - "node_modules/escape-goat": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/escape-string-regexp": { - "version": "2.0.0", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/escope": { @@ -8212,28 +8393,6 @@ "node": ">= 6" } }, - "node_modules/global-dirs": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ini": "2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/global-dirs/node_modules/ini": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, "node_modules/globals": { "version": "11.12.0", "license": "MIT", @@ -8260,57 +8419,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/got": { - "version": "9.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/got/node_modules/decompress-response": { - "version": "3.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/got/node_modules/get-stream": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/got/node_modules/mimic-response": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/graceful-fs": { "version": "4.2.11", "dev": true, @@ -8436,14 +8544,6 @@ "dev": true, "license": "ISC" }, - "node_modules/has-yarn": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/hash-base": { "version": "3.1.0", "license": "MIT", @@ -8661,9 +8761,10 @@ } }, "node_modules/ignore-by-default": { - "version": "2.0.0", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-2.1.0.tgz", + "integrity": "sha512-yiWd4GVmJp0Q6ghmM2B/V3oZGRmjrKLXvHR3TE1nfoXsmoggllfZUQe74EN0fJdPFZu2NIvNdrMMLm3OsV7Ohw==", "dev": true, - "license": "ISC", "engines": { "node": ">=10 <11 || >=12 <13 || >=14" } @@ -8726,14 +8827,6 @@ "node": ">=4" } }, - "node_modules/import-lazy": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/import-local": { "version": "3.1.0", "dev": true, @@ -8953,9 +9046,10 @@ "license": "Unlicense" }, "node_modules/irregular-plurals": { - "version": "3.3.0", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.5.0.tgz", + "integrity": "sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -9044,17 +9138,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-ci": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/is-core-module": { "version": "2.6.0", "dev": true, @@ -9147,21 +9230,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-installed-globally": { - "version": "0.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-interactive": { "version": "1.0.0", "dev": true, @@ -9185,17 +9253,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-npm": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-number": { "version": "7.0.0", "devOptional": true, @@ -9227,16 +9284,18 @@ }, "node_modules/is-path-cwd": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "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, - "license": "MIT", "engines": { "node": ">=8" } @@ -9392,11 +9451,6 @@ "node": ">=8" } }, - "node_modules/is-yarn-global": { - "version": "0.3.0", - "dev": true, - "license": "MIT" - }, "node_modules/isarray": { "version": "1.0.0", "dev": true, @@ -9545,11 +9599,6 @@ "node": ">=6" } }, - "node_modules/json-buffer": { - "version": "3.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/json-parse-better-errors": { "version": "1.0.2", "dev": true, @@ -9647,14 +9696,6 @@ "dev": true, "license": "MIT" }, - "node_modules/keyv": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.0" - } - }, "node_modules/kind-of": { "version": "6.0.3", "license": "MIT", @@ -9675,17 +9716,6 @@ "stream-splicer": "^2.0.0" } }, - "node_modules/latest-version": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "package-json": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/lerna": { "version": "8.1.9", "dev": true, @@ -9785,20 +9815,6 @@ "dev": true, "license": "Python-2.0" }, - "node_modules/lerna/node_modules/ci-info": { - "version": "3.9.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/lerna/node_modules/cliui": { "version": "8.0.1", "dev": true, @@ -10324,17 +10340,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lint-staged/node_modules/mimic-fn": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/lint-staged/node_modules/npm-run-path": { "version": "5.3.0", "dev": true, @@ -10454,32 +10459,6 @@ "dev": true, "license": "MIT" }, - "node_modules/listr2/node_modules/is-fullwidth-code-point": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/listr2/node_modules/slice-ansi": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, "node_modules/listr2/node_modules/string-width": { "version": "7.2.0", "dev": true, @@ -10843,14 +10822,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/lowercase-keys": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/lru-cache": { "version": "6.0.0", "dev": true, @@ -10878,20 +10849,6 @@ "sourcemap-codec": "^1.4.1" } }, - "node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/make-fetch-happen": { "version": "13.0.1", "dev": true, @@ -10916,8 +10873,9 @@ }, "node_modules/map-age-cleaner": { "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", "dev": true, - "license": "MIT", "dependencies": { "p-defer": "^1.0.0" }, @@ -10937,22 +10895,15 @@ } }, "node_modules/matcher": { - "version": "3.0.0", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-5.0.0.tgz", + "integrity": "sha512-s2EMBOWtXFc8dgqvoAzKJXxNHibcdJMV0gwqKUaw9E2JBJuGUK7DrNKrA6g/i+v72TT16+6sVm5mS3thaMLQUw==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^4.0.0" + "escape-string-regexp": "^5.0.0" }, "engines": { - "node": ">=10" - } - }, - "node_modules/matcher/node_modules/escape-string-regexp": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -10979,15 +10930,16 @@ } }, "node_modules/mem": { - "version": "8.1.1", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/mem/-/mem-9.0.2.tgz", + "integrity": "sha512-F2t4YIv9XQUBHt6AOJ0y7lSmP1+cY7Fm1DRh9GClTGzKST7UWLMx6ly9WZdLH/G/ppM5RL4MlQfRT71ri9t19A==", "dev": true, - "license": "MIT", "dependencies": { "map-age-cleaner": "^0.1.3", - "mimic-fn": "^3.1.0" + "mimic-fn": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=12.20" }, "funding": { "url": "https://github.com/sindresorhus/mem?sponsor=1" @@ -11134,11 +11086,15 @@ } }, "node_modules/mimic-fn": { - "version": "3.1.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/mimic-function": { @@ -11743,6 +11699,15 @@ "version": "2.0.19", "license": "MIT" }, + "node_modules/nofilter": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", + "integrity": "sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==", + "dev": true, + "engines": { + "node": ">=12.19" + } + }, "node_modules/noop-logger": { "version": "0.1.1", "dev": true, @@ -12311,31 +12276,37 @@ "node": ">=0.10.0" } }, - "node_modules/p-cancelable": { - "version": "1.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/p-defer": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/p-event": { - "version": "4.2.0", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-5.0.1.tgz", + "integrity": "sha512-dd589iCQ7m1L0bmC5NLlVYfy3TbBEsMUfWx9PyAgPeIcFZ/E2yaTZ4Rz4MiBmmJShviiftHVXOqfnfzJ6kyMrQ==", "dev": true, - "license": "MIT", "dependencies": { - "p-timeout": "^3.1.0" + "p-timeout": "^5.0.2" }, "engines": { - "node": ">=8" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-event/node_modules/p-timeout": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz", + "integrity": "sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==", + "dev": true, + "engines": { + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12480,20 +12451,6 @@ "node": ">=8" } }, - "node_modules/package-json": { - "version": "6.5.0", - "dev": true, - "license": "MIT", - "dependencies": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/package-json-from-dist": { "version": "1.0.1", "dev": true, @@ -12915,14 +12872,15 @@ } }, "node_modules/plur": { - "version": "4.0.0", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/plur/-/plur-5.1.0.tgz", + "integrity": "sha512-VP/72JeXqak2KiOzjgKtQen5y3IZHn+9GOuLDafPv0eXa47xq0At93XahYBs26MsifCQ4enGKwbjBTKgb9QJXg==", "dev": true, - "license": "MIT", "dependencies": { - "irregular-plurals": "^3.2.0" + "irregular-plurals": "^3.3.0" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12984,14 +12942,6 @@ "node": ">= 0.8.0" } }, - "node_modules/prepend-http": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/prettier": { "version": "3.4.2", "dev": true, @@ -13228,17 +13178,6 @@ "dev": true, "license": "MIT" }, - "node_modules/pupa": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-goat": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/querystring": { "version": "0.2.0", "dev": true, @@ -13615,28 +13554,6 @@ "regjsparser": "bin/parser" } }, - "node_modules/registry-auth-token": { - "version": "4.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "rc": "^1.2.8" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/registry-url": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "rc": "^1.2.8" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/regjsgen": { "version": "0.8.0", "dev": true, @@ -13726,14 +13643,6 @@ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "node_modules/responselike": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "lowercase-keys": "^1.0.0" - } - }, "node_modules/restore-cursor": { "version": "3.1.0", "dev": true, @@ -13770,8 +13679,10 @@ }, "node_modules/rimraf": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -13928,21 +13839,11 @@ "semver": "bin/semver.js" } }, - "node_modules/semver-diff": { - "version": "3.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/serialize-error": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.13.1" }, @@ -13955,8 +13856,9 @@ }, "node_modules/serialize-error/node_modules/type-fest": { "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -14110,32 +14012,45 @@ } }, "node_modules/slice-ansi": { - "version": "3.0.0", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", + "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "ansi-styles": "^6.0.0", + "is-fullwidth-code-point": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", + "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/smart-buffer": { "version": "4.2.0", "dev": true, @@ -14287,9 +14202,10 @@ } }, "node_modules/stack-utils": { - "version": "2.0.3", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -14297,6 +14213,15 @@ "node": ">=10" } }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/stream-browserify": { "version": "3.0.0", "dev": true, @@ -14531,18 +14456,57 @@ } }, "node_modules/supertap": { - "version": "2.0.0", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/supertap/-/supertap-3.0.1.tgz", + "integrity": "sha512-u1ZpIBCawJnO+0QePsEiOknOfCRq0yERxiAchT0i4li0WHNUJbf0evXXSXOcCAR4M8iMDoajXYmstm/qO81Isw==", "dev": true, - "license": "MIT", "dependencies": { - "arrify": "^2.0.1", - "indent-string": "^4.0.0", - "js-yaml": "^3.14.0", + "indent-string": "^5.0.0", + "js-yaml": "^3.14.1", "serialize-error": "^7.0.1", - "strip-ansi": "^6.0.0" + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=10" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/supertap/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/supertap/node_modules/indent-string": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supertap/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, "node_modules/supports-color": { @@ -14739,14 +14703,6 @@ "node": ">=14.14" } }, - "node_modules/to-readable-stream": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "devOptional": true, @@ -14840,14 +14796,6 @@ "node": ">=8" } }, - "node_modules/trim-off-newlines": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/tsconfig-paths": { "version": "4.2.0", "dev": true, @@ -15073,17 +15021,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/unique-string": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/universal-user-agent": { "version": "6.0.1", "dev": true, @@ -15134,76 +15071,6 @@ "browserslist": ">= 4.21.0" } }, - "node_modules/update-notifier": { - "version": "5.1.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "boxen": "^5.0.0", - "chalk": "^4.1.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.4.0", - "is-npm": "^5.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.1.0", - "pupa": "^2.1.1", - "semver": "^7.3.4", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/yeoman/update-notifier?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/update-notifier/node_modules/chalk": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "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/update-notifier/node_modules/semver": { - "version": "7.3.5", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/uri-js": { "version": "4.4.1", "dev": true, @@ -15229,17 +15096,6 @@ "querystring": "0.2.0" } }, - "node_modules/url-parse-lax": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "prepend-http": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/url/node_modules/punycode": { "version": "1.3.2", "dev": true, @@ -15448,17 +15304,6 @@ "string-width": "^1.0.2 || 2 || 3 || 4" } }, - "node_modules/widest-line": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "string-width": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/word-wrap": { "version": "1.2.5", "dev": true, @@ -15647,14 +15492,6 @@ } } }, - "node_modules/xdg-basedir": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/xml-name-validator": { "version": "5.0.0", "dev": true, diff --git a/package.json b/package.json index ff5909d30..8c7f74bf6 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,20 @@ { "private": true, + "type": "module", "bin": { "serverctl": "server/ctl.js" }, "devDependencies": { - "@ava/babel": "^2.0.0", "@babel/core": "^7.26.0", "@babel/plugin-proposal-object-rest-spread": "^7.16.5", "@babel/plugin-transform-react-jsx": "^7.25.9", "@babel/plugin-transform-runtime": "^7.25.9", "@babel/preset-env": "^7.26.0", "@babel/runtime": "^7.26.0", - "ava": "^3.15.0", + "ava": "^4.3.3", "babel-plugin-jsx-pragmatic": "^1.0.2", "babel-plugin-transform-async-to-promises": "^0.8.18", + "babel-register-esm": "^1.2.5", "babelify": "^10.0.0", "babylon": "^6.18.0", "browser-pack-flat": "^3.5.0", @@ -43,12 +44,13 @@ "preversion": "make bundle" }, "engines": { - "node": ">= 12.4", + "node": ">= 14", "npm": ">= 7" }, "workspaces": [ "packages/*" ], + "browserslist": "> 0.25%, not dead", "bundlesize": [ { "path": "./packages/client/dist/xmpp.min.js", diff --git a/packages/base64/package.json b/packages/base64/package.json index 3d87aa032..228094b60 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "base64" diff --git a/packages/client-core/package.json b/packages/client-core/package.json index 9c5d6b87b..203a496a9 100644 --- a/packages/client-core/package.json +++ b/packages/client-core/package.json @@ -5,6 +5,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "dependencies": { "@xmpp/connection": "^0.13.2", "@xmpp/jid": "^0.13.2", diff --git a/packages/client/browser.js b/packages/client/browser.js index 8751aea7c..e4c7f84b9 100644 --- a/packages/client/browser.js +++ b/packages/client/browser.js @@ -1,25 +1,23 @@ -"use strict"; +import { xml, jid, Client } from "@xmpp/client-core"; +import getDomain from "./lib/getDomain.js"; -const { xml, jid, Client } = require("@xmpp/client-core"); -const getDomain = require("./lib/getDomain"); - -const _reconnect = require("@xmpp/reconnect"); -const _websocket = require("@xmpp/websocket"); -const _middleware = require("@xmpp/middleware"); -const _streamFeatures = require("@xmpp/stream-features"); -const _iqCaller = require("@xmpp/iq/caller"); -const _iqCallee = require("@xmpp/iq/callee"); -const _resolve = require("@xmpp/resolve"); +import _reconnect from "@xmpp/reconnect"; +import _websocket from "@xmpp/websocket"; +import _middleware from "@xmpp/middleware"; +import _streamFeatures from "@xmpp/stream-features"; +import _iqCaller from "@xmpp/iq/caller.js"; +import _iqCallee from "@xmpp/iq/callee.js"; +import _resolve from "@xmpp/resolve"; // Stream features - order matters and define priority -const _sasl = require("@xmpp/sasl"); -const _resourceBinding = require("@xmpp/resource-binding"); -const _sessionEstablishment = require("@xmpp/session-establishment"); -const _streamManagement = require("@xmpp/stream-management"); +import _sasl from "@xmpp/sasl"; +import _resourceBinding from "@xmpp/resource-binding"; +import _sessionEstablishment from "@xmpp/session-establishment"; +import _streamManagement from "@xmpp/stream-management"; // SASL mechanisms - order matters and define priority -const anonymous = require("@xmpp/sasl-anonymous"); -const plain = require("@xmpp/sasl-plain"); +import plain from "@xmpp/sasl-plain"; +import anonymous from "@xmpp/sasl-anonymous"; function client(options = {}) { const { resource, credentials, username, password, ...params } = options; @@ -76,6 +74,5 @@ function client(options = {}) { }); } -module.exports.xml = xml; -module.exports.jid = jid; -module.exports.client = client; +// eslint-disable-next-line unicorn/prefer-export-from +export { xml, jid, client }; diff --git a/packages/client/example.js b/packages/client/example.js index 9bd532aaa..59abc50d9 100644 --- a/packages/client/example.js +++ b/packages/client/example.js @@ -1,9 +1,7 @@ -/* eslint-disable n/no-extraneous-require */ +import { client, xml } from "@xmpp/client"; -"use strict"; - -const { client, xml } = require("@xmpp/client"); -const debug = require("@xmpp/debug"); +// eslint-disable-next-line n/no-extraneous-import +import debug from "@xmpp/debug"; // Insecure! // process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; diff --git a/packages/client/index.js b/packages/client/index.js index 1f1d46b01..cd342425c 100644 --- a/packages/client/index.js +++ b/packages/client/index.js @@ -1,29 +1,27 @@ -"use strict"; +import { xml, jid, Client } from "@xmpp/client-core"; +import getDomain from "./lib/getDomain.js"; -const { xml, jid, Client } = require("@xmpp/client-core"); -const getDomain = require("./lib/getDomain"); - -const _reconnect = require("@xmpp/reconnect"); -const _websocket = require("@xmpp/websocket"); -const _tcp = require("@xmpp/tcp"); -const _tls = require("@xmpp/tls"); -const _middleware = require("@xmpp/middleware"); -const _streamFeatures = require("@xmpp/stream-features"); -const _iqCaller = require("@xmpp/iq/caller"); -const _iqCallee = require("@xmpp/iq/callee"); -const _resolve = require("@xmpp/resolve"); +import _reconnect from "@xmpp/reconnect"; +import _websocket from "@xmpp/websocket"; +import _tcp from "@xmpp/tcp"; +import _tls from "@xmpp/tls"; +import _middleware from "@xmpp/middleware"; +import _streamFeatures from "@xmpp/stream-features"; +import _iqCaller from "@xmpp/iq/caller.js"; +import _iqCallee from "@xmpp/iq/callee.js"; +import _resolve from "@xmpp/resolve"; // Stream features - order matters and define priority -const _starttls = require("@xmpp/starttls/client"); -const _sasl = require("@xmpp/sasl"); -const _resourceBinding = require("@xmpp/resource-binding"); -const _sessionEstablishment = require("@xmpp/session-establishment"); -const _streamManagement = require("@xmpp/stream-management"); +import _starttls from "@xmpp/starttls/client.js"; +import _sasl from "@xmpp/sasl"; +import _resourceBinding from "@xmpp/resource-binding"; +import _sessionEstablishment from "@xmpp/session-establishment"; +import _streamManagement from "@xmpp/stream-management"; // SASL mechanisms - order matters and define priority -const scramsha1 = require("@xmpp/sasl-scram-sha-1"); -const plain = require("@xmpp/sasl-plain"); -const anonymous = require("@xmpp/sasl-anonymous"); +import scramsha1 from "@xmpp/sasl-scram-sha-1"; +import plain from "@xmpp/sasl-plain"; +import anonymous from "@xmpp/sasl-anonymous"; function client(options = {}) { const { resource, credentials, username, password, ...params } = options; @@ -88,6 +86,5 @@ function client(options = {}) { }); } -module.exports.xml = xml; -module.exports.jid = jid; -module.exports.client = client; +// eslint-disable-next-line unicorn/prefer-export-from +export { xml, jid, client }; diff --git a/packages/client/lib/getDomain.js b/packages/client/lib/getDomain.js index aecd8088b..bc0f67884 100644 --- a/packages/client/lib/getDomain.js +++ b/packages/client/lib/getDomain.js @@ -1,6 +1,4 @@ -"use strict"; - -module.exports = function getDomain(service) { +export default function getDomain(service) { const domain = service.split("://")[1] || service; return domain.split(":")[0].split("/")[0]; -}; +} diff --git a/packages/client/package.json b/packages/client/package.json index 6b6a44762..3539c03fc 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -5,6 +5,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "module", "dependencies": { "@babel/cli": "^7.26.4", "@babel/core": "^7.26.0", diff --git a/packages/client/react-native.js b/packages/client/react-native.js index 8751aea7c..e4c7f84b9 100644 --- a/packages/client/react-native.js +++ b/packages/client/react-native.js @@ -1,25 +1,23 @@ -"use strict"; +import { xml, jid, Client } from "@xmpp/client-core"; +import getDomain from "./lib/getDomain.js"; -const { xml, jid, Client } = require("@xmpp/client-core"); -const getDomain = require("./lib/getDomain"); - -const _reconnect = require("@xmpp/reconnect"); -const _websocket = require("@xmpp/websocket"); -const _middleware = require("@xmpp/middleware"); -const _streamFeatures = require("@xmpp/stream-features"); -const _iqCaller = require("@xmpp/iq/caller"); -const _iqCallee = require("@xmpp/iq/callee"); -const _resolve = require("@xmpp/resolve"); +import _reconnect from "@xmpp/reconnect"; +import _websocket from "@xmpp/websocket"; +import _middleware from "@xmpp/middleware"; +import _streamFeatures from "@xmpp/stream-features"; +import _iqCaller from "@xmpp/iq/caller.js"; +import _iqCallee from "@xmpp/iq/callee.js"; +import _resolve from "@xmpp/resolve"; // Stream features - order matters and define priority -const _sasl = require("@xmpp/sasl"); -const _resourceBinding = require("@xmpp/resource-binding"); -const _sessionEstablishment = require("@xmpp/session-establishment"); -const _streamManagement = require("@xmpp/stream-management"); +import _sasl from "@xmpp/sasl"; +import _resourceBinding from "@xmpp/resource-binding"; +import _sessionEstablishment from "@xmpp/session-establishment"; +import _streamManagement from "@xmpp/stream-management"; // SASL mechanisms - order matters and define priority -const anonymous = require("@xmpp/sasl-anonymous"); -const plain = require("@xmpp/sasl-plain"); +import plain from "@xmpp/sasl-plain"; +import anonymous from "@xmpp/sasl-anonymous"; function client(options = {}) { const { resource, credentials, username, password, ...params } = options; @@ -76,6 +74,5 @@ function client(options = {}) { }); } -module.exports.xml = xml; -module.exports.jid = jid; -module.exports.client = client; +// eslint-disable-next-line unicorn/prefer-export-from +export { xml, jid, client }; diff --git a/packages/client/test/getDomain.js b/packages/client/test/getDomain.js index d7d5d919a..97079d71e 100644 --- a/packages/client/test/getDomain.js +++ b/packages/client/test/getDomain.js @@ -1,7 +1,5 @@ -"use strict"; - -const test = require("ava"); -const getDomain = require("../lib/getDomain"); +import test from "ava"; +import getDomain from "../lib/getDomain.js"; test("getDomain", (t) => { t.is(getDomain("ws://foo:123/foobar"), "foo"); diff --git a/packages/component-core/package.json b/packages/component-core/package.json index 2685d5f6d..b2105b20b 100644 --- a/packages/component-core/package.json +++ b/packages/component-core/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "component", diff --git a/packages/component/package.json b/packages/component/package.json index 573a4e018..a1e63f475 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "component" diff --git a/packages/connection-tcp/package.json b/packages/connection-tcp/package.json index 7a8d1fb4e..11881687b 100644 --- a/packages/connection-tcp/package.json +++ b/packages/connection-tcp/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "connection", diff --git a/packages/connection/package.json b/packages/connection/package.json index 08e0eb719..cf42e6b0a 100644 --- a/packages/connection/package.json +++ b/packages/connection/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "connection" diff --git a/packages/debug/package.json b/packages/debug/package.json index 94bc2a2c4..ac4006974 100644 --- a/packages/debug/package.json +++ b/packages/debug/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "debug" diff --git a/packages/error/package.json b/packages/error/package.json index 9154e92c3..fa22d787c 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "xmpp", "error" diff --git a/packages/events/package.json b/packages/events/package.json index a367e6892..1685c1556 100644 --- a/packages/events/package.json +++ b/packages/events/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "event", "events", diff --git a/packages/id/package.json b/packages/id/package.json index 3ad7058d3..6516eb637 100644 --- a/packages/id/package.json +++ b/packages/id/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "id" diff --git a/packages/iq/package.json b/packages/iq/package.json index 3e2eecb20..36cec3bf8 100644 --- a/packages/iq/package.json +++ b/packages/iq/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "iq", diff --git a/packages/jid/package.json b/packages/jid/package.json index 855c9a1d8..933aa79e6 100644 --- a/packages/jid/package.json +++ b/packages/jid/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "JID" diff --git a/packages/middleware/package.json b/packages/middleware/package.json index 98c22f952..cb8d4c508 100644 --- a/packages/middleware/package.json +++ b/packages/middleware/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "middleware" diff --git a/packages/reconnect/package.json b/packages/reconnect/package.json index 1c1b268c9..0a11b8274 100644 --- a/packages/reconnect/package.json +++ b/packages/reconnect/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "reconnect" diff --git a/packages/resolve/package.json b/packages/resolve/package.json index 5b31a914b..a65ad6ca2 100644 --- a/packages/resolve/package.json +++ b/packages/resolve/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "dns", diff --git a/packages/resource-binding/package.json b/packages/resource-binding/package.json index 606caa67a..3f9080fb1 100644 --- a/packages/resource-binding/package.json +++ b/packages/resource-binding/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "bind", diff --git a/packages/sasl-anonymous/package.json b/packages/sasl-anonymous/package.json index e2f0762d0..ca786f89f 100644 --- a/packages/sasl-anonymous/package.json +++ b/packages/sasl-anonymous/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "sasl", diff --git a/packages/sasl-plain/package.json b/packages/sasl-plain/package.json index c2946438a..b8ac7f6d1 100644 --- a/packages/sasl-plain/package.json +++ b/packages/sasl-plain/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "sasl", diff --git a/packages/sasl-scram-sha-1/package.json b/packages/sasl-scram-sha-1/package.json index fcb269f76..c7debced6 100644 --- a/packages/sasl-scram-sha-1/package.json +++ b/packages/sasl-scram-sha-1/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "sasl", diff --git a/packages/sasl/package.json b/packages/sasl/package.json index 4a336e3be..9632031f4 100644 --- a/packages/sasl/package.json +++ b/packages/sasl/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "sasl" diff --git a/packages/session-establishment/package.json b/packages/session-establishment/package.json index fdd45d71e..f7af8fd87 100644 --- a/packages/session-establishment/package.json +++ b/packages/session-establishment/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "session", diff --git a/packages/starttls/package.json b/packages/starttls/package.json index 91cc7de60..31c829447 100644 --- a/packages/starttls/package.json +++ b/packages/starttls/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "STARTTLS" diff --git a/packages/stream-features/package.json b/packages/stream-features/package.json index ed65c6d14..715a562ef 100644 --- a/packages/stream-features/package.json +++ b/packages/stream-features/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "stream", diff --git a/packages/stream-management/package.json b/packages/stream-management/package.json index f52a4327d..6d8f985bc 100644 --- a/packages/stream-management/package.json +++ b/packages/stream-management/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "stream", diff --git a/packages/tcp/package.json b/packages/tcp/package.json index 37a36e5f6..7ec589774 100644 --- a/packages/tcp/package.json +++ b/packages/tcp/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "dependencies": { "@xmpp/connection-tcp": "^0.13.2" }, diff --git a/packages/test/package.json b/packages/test/package.json index e43570e5d..de0128b37 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "test" diff --git a/packages/time/package.json b/packages/time/package.json index 2b6dae6b2..7bb410496 100644 --- a/packages/time/package.json +++ b/packages/time/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "time", diff --git a/packages/tls/package.json b/packages/tls/package.json index cb43d8fc0..662d88198 100644 --- a/packages/tls/package.json +++ b/packages/tls/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "dependencies": { "@xmpp/connection": "^0.13.2", "@xmpp/connection-tcp": "^0.13.2" diff --git a/packages/uri/package.json b/packages/uri/package.json index ea951f3ce..41d9cbe41 100644 --- a/packages/uri/package.json +++ b/packages/uri/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "URI" diff --git a/packages/websocket/package.json b/packages/websocket/package.json index 86eedfac5..33240f065 100644 --- a/packages/websocket/package.json +++ b/packages/websocket/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "dependencies": { "@xmpp/connection": "^0.13.2", "@xmpp/xml": "^0.13.2", diff --git a/packages/xml/package.json b/packages/xml/package.json index 475e9ced2..8559c552a 100644 --- a/packages/xml/package.json +++ b/packages/xml/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "stanza", diff --git a/packages/xmpp.js/package.json b/packages/xmpp.js/package.json index 5f91fbeb5..cc0733ca2 100644 --- a/packages/xmpp.js/package.json +++ b/packages/xmpp.js/package.json @@ -6,6 +6,7 @@ "bugs": "http://github.com/xmppjs/xmpp.js/issues", "version": "0.13.2", "license": "ISC", + "type": "commonjs", "keywords": [ "XMPP", "jabber", diff --git a/prettier.config.js b/prettier.config.js index a6eb9fc83..061f3b6f6 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,5 +1,3 @@ -"use strict"; - -module.exports = { +export default { trailingComma: "all", };