From 234e674a5712f07078def37c92952d0d81ebc22a Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 11:53:36 +0000 Subject: [PATCH 1/7] chore(): bump dependencies --- package-lock.json | 893 +++++++++++++++++----------------------------- 1 file changed, 335 insertions(+), 558 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd4d21a..0d39227 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,33 @@ "url": "https://github.com/sponsors/tiagosiebler" } }, + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/compat-data": { "version": "7.14.7", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.14.7.tgz", @@ -72,59 +99,10 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "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" @@ -140,28 +118,20 @@ } }, "node_modules/@babel/generator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.14.5.tgz", - "integrity": "sha512-y3rlP+/G25OIX3mYKKIOlQRcqj7YgrvHxOLbVmyLJ9bPmi5ttvUmpydVjcFjZphOktWuA7ovbx91ECloWTfjIA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dev": true, "dependencies": { - "@babel/types": "^7.14.5", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@babel/helper-compilation-targets": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.14.5.tgz", @@ -181,47 +151,43 @@ } }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "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/@babel/helper-function-name": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz", - "integrity": "sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==", + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, - "dependencies": { - "@babel/helper-get-function-arity": "^7.14.5", - "@babel/template": "^7.14.5", - "@babel/types": "^7.14.5" - }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz", - "integrity": "sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==", + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/types": "^7.14.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz", - "integrity": "sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "dependencies": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -270,15 +236,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-module-transforms/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-optimise-call-expression": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.14.5.tgz", @@ -328,17 +285,35 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz", - "integrity": "sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, "dependencies": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-validator-option": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", @@ -362,10 +337,38 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/highlight": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.14.7.tgz", - "integrity": "sha512-X67Z5y+VBJuHB/RjwECp8kSl5uYi0BvRbNeWqkaJCVh+LiTPl19WBUfG627psSgp9rSf6ojuXghQM3ha6qHHdA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -537,81 +540,33 @@ } }, "node_modules/@babel/template": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.14.5.tgz", - "integrity": "sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.14.5", - "@babel/types": "^7.14.5" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/template/node_modules/@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template/node_modules/@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/traverse": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.14.7.tgz", - "integrity": "sha512-9vDr5NzHu27wgwejuKL7kIOm4bwEtaPQ4Z6cpCmjSuaRqpH/7xc4qcGEscwMqlkwgcXl6MvqoAjZkQ24uSdIZQ==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.14.5", - "@babel/helper-function-name": "^7.14.5", - "@babel/helper-hoist-variables": "^7.14.5", - "@babel/helper-split-export-declaration": "^7.14.5", - "@babel/parser": "^7.14.7", - "@babel/types": "^7.14.5", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -619,55 +574,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/traverse/node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -678,27 +584,19 @@ } }, "node_modules/@babel/types": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.14.5.tgz", - "integrity": "sha512-M/NzBpEL95I5Hh4dwhin5JlE7EzO5PHMAuzjxss3tiOBD46KfQvVedN/3jEPZvdRvtsK2222XfdHogNIttFgcg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/types/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", @@ -2563,7 +2461,7 @@ "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, "node_modules/colorette": { @@ -2871,7 +2769,7 @@ "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, "engines": { "node": ">=0.8.0" @@ -3664,7 +3562,7 @@ "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "engines": { "node": ">=4" @@ -4013,9 +3911,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "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" @@ -4618,55 +4516,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-message-util/node_modules/@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/jest-message-util/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/jest-message-util/node_modules/@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/jest-message-util/node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/jest-message-util/node_modules/@jest/types": { "version": "27.0.2", "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.0.2.tgz", @@ -5568,9 +5417,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "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" @@ -6042,6 +5891,12 @@ "node": ">=6" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -6110,6 +5965,12 @@ "node": ">=0.10.0" } }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, "node_modules/resolve": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", @@ -6258,9 +6119,9 @@ } }, "node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "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" @@ -6663,14 +6524,15 @@ } }, "node_modules/tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", - "universalify": "^0.1.2" + "universalify": "^0.2.0", + "url-parse": "^1.5.3" }, "engines": { "node": ">=6" @@ -6828,9 +6690,9 @@ } }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "dev": true, "engines": { "node": ">= 4.0.0" @@ -6845,6 +6707,16 @@ "punycode": "^2.1.0" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -7197,9 +7069,9 @@ } }, "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -7419,6 +7291,29 @@ } }, "dependencies": { + "@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dev": true, + "requires": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } + } + }, "@babel/compat-data": { "version": "7.14.7", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.14.7.tgz", @@ -7448,47 +7343,10 @@ "source-map": "^0.5.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.14.5" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - }, - "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true }, "source-map": { @@ -7500,22 +7358,15 @@ } }, "@babel/generator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.14.5.tgz", - "integrity": "sha512-y3rlP+/G25OIX3mYKKIOlQRcqj7YgrvHxOLbVmyLJ9bPmi5ttvUmpydVjcFjZphOktWuA7ovbx91ECloWTfjIA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dev": true, "requires": { - "@babel/types": "^7.14.5", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" } }, "@babel/helper-compilation-targets": { @@ -7531,40 +7382,36 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } }, - "@babel/helper-function-name": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz", - "integrity": "sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.14.5", - "@babel/template": "^7.14.5", - "@babel/types": "^7.14.5" - } + "@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true }, - "@babel/helper-get-function-arity": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz", - "integrity": "sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==", + "@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" } }, "@babel/helper-hoist-variables": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz", - "integrity": "sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.22.5" } }, "@babel/helper-member-expression-to-functions": { @@ -7599,14 +7446,6 @@ "@babel/template": "^7.14.5", "@babel/traverse": "^7.14.5", "@babel/types": "^7.14.5" - }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - } } }, "@babel/helper-optimise-call-expression": { @@ -7646,14 +7485,26 @@ } }, "@babel/helper-split-export-declaration": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz", - "integrity": "sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, "requires": { - "@babel/types": "^7.14.5" + "@babel/types": "^7.22.5" } }, + "@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true + }, "@babel/helper-validator-option": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", @@ -7671,10 +7522,34 @@ "@babel/types": "^7.14.5" } }, + "@babel/highlight": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "dependencies": { + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + } + } + }, "@babel/parser": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.14.7.tgz", - "integrity": "sha512-X67Z5y+VBJuHB/RjwECp8kSl5uYi0BvRbNeWqkaJCVh+LiTPl19WBUfG627psSgp9rSf6ojuXghQM3ha6qHHdA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "dev": true }, "@babel/plugin-syntax-async-generators": { @@ -7795,109 +7670,34 @@ } }, "@babel/template": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.14.5.tgz", - "integrity": "sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.14.5", - "@babel/types": "^7.14.5" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.14.5" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - }, - "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - } + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" } }, "@babel/traverse": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.14.7.tgz", - "integrity": "sha512-9vDr5NzHu27wgwejuKL7kIOm4bwEtaPQ4Z6cpCmjSuaRqpH/7xc4qcGEscwMqlkwgcXl6MvqoAjZkQ24uSdIZQ==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "dev": true, "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.14.5", - "@babel/helper-function-name": "^7.14.5", - "@babel/helper-hoist-variables": "^7.14.5", - "@babel/helper-split-export-declaration": "^7.14.5", - "@babel/parser": "^7.14.7", - "@babel/types": "^7.14.5", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", "globals": "^11.1.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.14.5" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - }, - "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -7907,21 +7707,14 @@ } }, "@babel/types": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.14.5.tgz", - "integrity": "sha512-M/NzBpEL95I5Hh4dwhin5JlE7EzO5PHMAuzjxss3tiOBD46KfQvVedN/3jEPZvdRvtsK2222XfdHogNIttFgcg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.14.5", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" - }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - } } }, "@bcoe/v8-coverage": { @@ -9444,7 +9237,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, "colorette": { @@ -9690,7 +9483,7 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true }, "escodegen": { @@ -10276,7 +10069,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true }, "html-encoding-sniffer": { @@ -10538,9 +10331,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -11091,45 +10884,6 @@ "stack-utils": "^2.0.3" }, "dependencies": { - "@babel/code-frame": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", - "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.14.5" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", - "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==", - "dev": true - }, - "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - } - } - }, "@jest/types": { "version": "27.0.2", "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.0.2.tgz", @@ -11824,9 +11578,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -12190,6 +11944,12 @@ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -12232,6 +11992,12 @@ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, "resolve": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", @@ -12322,9 +12088,9 @@ } }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "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" @@ -12612,14 +12378,15 @@ "dev": true }, "tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, "requires": { "psl": "^1.1.33", "punycode": "^2.1.1", - "universalify": "^0.1.2" + "universalify": "^0.2.0", + "url-parse": "^1.5.3" } }, "tr46": { @@ -12712,9 +12479,9 @@ "dev": true }, "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "dev": true }, "uri-js": { @@ -12726,6 +12493,16 @@ "punycode": "^2.1.0" } }, + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -12985,9 +12762,9 @@ } }, "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true }, "wrap-ansi": { From 7460cf4b5cefb078f80a9efee3a55ebe33fcc1d5 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 12:22:04 +0000 Subject: [PATCH 2/7] feat(): add deprecation warnings for v1/v2 REST clients --- src/account-asset-client.ts | 30 +++++++------ src/inverse-client.ts | 68 +++++++++++++++------------- src/inverse-futures-client.ts | 36 ++++++++------- src/linear-client.ts | 84 ++++++++++++++++++----------------- src/spot-client.ts | 17 ++++--- src/usdc-option-client.ts | 84 ++++++++++++++++++----------------- src/usdc-perpetual-client.ts | 70 +++++++++++++++-------------- 7 files changed, 208 insertions(+), 181 deletions(-) diff --git a/src/account-asset-client.ts b/src/account-asset-client.ts index ccdf57c..cd30af0 100644 --- a/src/account-asset-client.ts +++ b/src/account-asset-client.ts @@ -17,6 +17,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for Account Asset APIs + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class AccountAssetClient extends BaseRestClient { getClientType() { @@ -35,29 +39,29 @@ export class AccountAssetClient extends BaseRestClient { */ createInternalTransfer( - params: InternalTransferRequest + params: InternalTransferRequest, ): Promise> { return this.postPrivate('/asset/v1/private/transfer', params); } createSubAccountTransfer( - params: SubAccountTransferRequest + params: SubAccountTransferRequest, ): Promise> { return this.postPrivate('/asset/v1/private/sub-member/transfer', params); } getInternalTransfers( - params?: TransferQueryRequest + params?: TransferQueryRequest, ): Promise> { return this.getPrivate('/asset/v1/private/transfer/list', params); } getSubAccountTransfers( - params?: TransferQueryRequest + params?: TransferQueryRequest, ): Promise> { return this.getPrivate( '/asset/v1/private/sub-member/transfer/list', - params + params, ); } @@ -66,19 +70,19 @@ export class AccountAssetClient extends BaseRestClient { } enableUniversalTransfer( - params?: EnableUniversalTransferRequest + params?: EnableUniversalTransferRequest, ): Promise> { return this.postPrivate('/asset/v1/private/transferable-subs/save', params); } createUniversalTransfer( - params: UniversalTransferRequest + params: UniversalTransferRequest, ): Promise> { return this.postPrivate('/asset/v1/private/universal/transfer', params); } getUniversalTransfers( - params?: TransferQueryRequest + params?: TransferQueryRequest, ): Promise> { return this.getPrivate('/asset/v1/private/universal/transfer/list', params); } @@ -90,19 +94,19 @@ export class AccountAssetClient extends BaseRestClient { */ getSupportedDepositList( - params?: SupportedDepositListRequest + params?: SupportedDepositListRequest, ): Promise> { return this.get('/asset/v1/public/deposit/allowed-deposit-list', params); } getDepositRecords( - params?: DepositRecordsRequest + params?: DepositRecordsRequest, ): Promise> { return this.getPrivate('/asset/v1/private/deposit/record/query', params); } getWithdrawRecords( - params?: WithdrawalRecordsRequest + params?: WithdrawalRecordsRequest, ): Promise> { return this.getPrivate('/asset/v1/private/withdraw/record/query', params); } @@ -112,13 +116,13 @@ export class AccountAssetClient extends BaseRestClient { } getAssetInformation( - params?: AccountAssetInformationRequest + params?: AccountAssetInformationRequest, ): Promise> { return this.getPrivate('/asset/v1/private/asset-info/query', params); } submitWithdrawal( - params: WithdrawalRequest + params: WithdrawalRequest, ): Promise> { return this.postPrivate('/asset/v1/private/withdraw', params); } diff --git a/src/inverse-client.ts b/src/inverse-client.ts index abe8d47..b860e17 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -32,6 +32,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for Inverse Perpetual Futures APIs (v2) + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class InverseClient extends BaseRestClient { getClientType() { @@ -54,7 +58,7 @@ export class InverseClient extends BaseRestClient { } getKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/kline/list', params); } @@ -63,7 +67,7 @@ export class InverseClient extends BaseRestClient { * Get latest information for symbol */ getTickers( - params?: Partial + params?: Partial, ): Promise> { return this.get('v2/public/tickers', params); } @@ -77,19 +81,19 @@ export class InverseClient extends BaseRestClient { } getMarkPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/mark-price-kline', params); } getIndexPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/index-price-kline', params); } getPremiumIndexKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/premium-index-kline', params); } @@ -101,19 +105,19 @@ export class InverseClient extends BaseRestClient { */ getOpenInterest( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/open-interest', params); } getLatestBigDeal( - params: SymbolLimitParam + params: SymbolLimitParam, ): Promise> { return this.get('v2/public/big-deal', params); } getLongShortRatio( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/account-ratio', params); } @@ -135,25 +139,25 @@ export class InverseClient extends BaseRestClient { */ getWalletBalance( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('v2/private/wallet/balance', params); } getWalletFundRecords( - params?: WalletFundRecordsReq + params?: WalletFundRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/fund/records', params); } getWithdrawRecords( - params?: WithdrawRecordsReq + params?: WithdrawRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/withdraw/list', params); } getAssetExchangeRecords( - params?: AssetExchangeRecordsReq + params?: AssetExchangeRecordsReq, ): Promise> { return this.getPrivate('v2/private/exchange-order/list', params); } @@ -183,37 +187,37 @@ export class InverseClient extends BaseRestClient { */ placeActiveOrder( - orderRequest: InverseOrderRequest + orderRequest: InverseOrderRequest, ): Promise> { return this.postPrivate('v2/private/order/create', orderRequest); } getActiveOrderList( - params: InverseActiveOrdersRequest + params: InverseActiveOrdersRequest, ): Promise> { return this.getPrivate('v2/private/order/list', params); } cancelActiveOrder( - params: InverseCancelOrderRequest + params: InverseCancelOrderRequest, ): Promise> { return this.postPrivate('v2/private/order/cancel', params); } cancelAllActiveOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('v2/private/order/cancelAll', params); } replaceActiveOrder( - params: InverseReplaceOrderRequest + params: InverseReplaceOrderRequest, ): Promise> { return this.postPrivate('v2/private/order/replace', params); } queryActiveOrder( - params: InverseGetOrderRequest + params: InverseGetOrderRequest, ): Promise> { return this.getPrivate('v2/private/order', params); } @@ -223,38 +227,38 @@ export class InverseClient extends BaseRestClient { */ placeConditionalOrder( - params: InverseConditionalOrderRequest + params: InverseConditionalOrderRequest, ): Promise> { return this.postPrivate('v2/private/stop-order/create', params); } /** get conditional order list. This may see delays, use queryConditionalOrder() for real-time queries */ getConditionalOrder( - params: InverseActiveConditionalOrderRequest + params: InverseActiveConditionalOrderRequest, ): Promise> { return this.getPrivate('v2/private/stop-order/list', params); } cancelConditionalOrder( - params: InverseCancelConditionalOrderRequest + params: InverseCancelConditionalOrderRequest, ): Promise> { return this.postPrivate('v2/private/stop-order/cancel', params); } cancelAllConditionalOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('v2/private/stop-order/cancelAll', params); } replaceConditionalOrder( - params: InverseReplaceConditionalOrderRequest + params: InverseReplaceConditionalOrderRequest, ): Promise> { return this.postPrivate('v2/private/stop-order/replace', params); } queryConditionalOrder( - params: InverseGetOrderRequest + params: InverseGetOrderRequest, ): Promise> { return this.getPrivate('v2/private/stop-order', params); } @@ -264,49 +268,49 @@ export class InverseClient extends BaseRestClient { */ getPosition( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('v2/private/position/list', params); } changePositionMargin( - params: InverseChangePositionMarginRequest + params: InverseChangePositionMarginRequest, ): Promise> { return this.postPrivate('position/change-position-margin', params); } setTradingStop( - params: InverseSetTradingStopRequest + params: InverseSetTradingStopRequest, ): Promise> { return this.postPrivate('v2/private/position/trading-stop', params); } setUserLeverage( - params: InverseSetLeverageRequest + params: InverseSetLeverageRequest, ): Promise> { return this.postPrivate('v2/private/position/leverage/save', params); } getTradeRecords( - params: InverseGetTradeRecordsRequest + params: InverseGetTradeRecordsRequest, ): Promise> { return this.getPrivate('v2/private/execution/list', params); } getClosedPnl( - params: InverseGetClosedPnlRequest + params: InverseGetClosedPnlRequest, ): Promise> { return this.getPrivate('v2/private/trade/closed-pnl/list', params); } setSlTpPositionMode( - params: InverseSetSlTpPositionModeRequest + params: InverseSetSlTpPositionModeRequest, ): Promise> { return this.postPrivate('v2/private/tpsl/switch-mode', params); } setMarginType( - params: InverseSetMarginTypeRequest + params: InverseSetMarginTypeRequest, ): Promise> { return this.postPrivate('v2/private/position/switch-isolated', params); } diff --git a/src/inverse-futures-client.ts b/src/inverse-futures-client.ts index 8fecd14..eb8646b 100644 --- a/src/inverse-futures-client.ts +++ b/src/inverse-futures-client.ts @@ -16,6 +16,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for Inverse Futures APIs (e.g. quarterly futures) (v2) + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class InverseFuturesClient extends BaseRestClient { getClientType() { @@ -38,7 +42,7 @@ export class InverseFuturesClient extends BaseRestClient { } getKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/kline/list', params); } @@ -47,7 +51,7 @@ export class InverseFuturesClient extends BaseRestClient { * Get latest information for symbol */ getTickers( - params?: Partial + params?: Partial, ): Promise> { return this.get('v2/public/tickers', params); } @@ -64,19 +68,19 @@ export class InverseFuturesClient extends BaseRestClient { } getMarkPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/mark-price-kline', params); } getIndexPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/index-price-kline', params); } getPremiumIndexKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('v2/public/premium-index-kline', params); } @@ -88,19 +92,19 @@ export class InverseFuturesClient extends BaseRestClient { */ getOpenInterest( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/open-interest', params); } getLatestBigDeal( - params: SymbolLimitParam + params: SymbolLimitParam, ): Promise> { return this.get('v2/public/big-deal', params); } getLongShortRatio( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/account-ratio', params); } @@ -122,25 +126,25 @@ export class InverseFuturesClient extends BaseRestClient { */ getWalletBalance( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('v2/private/wallet/balance', params); } getWalletFundRecords( - params?: WalletFundRecordsReq + params?: WalletFundRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/fund/records', params); } getWithdrawRecords( - params?: WithdrawRecordsReq + params?: WithdrawRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/withdraw/list', params); } getAssetExchangeRecords( - params?: AssetExchangeRecordsReq + params?: AssetExchangeRecordsReq, ): Promise> { return this.getPrivate('v2/private/exchange-order/list', params); } @@ -204,7 +208,7 @@ export class InverseFuturesClient extends BaseRestClient { } cancelAllActiveOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('futures/private/order/cancelAll', params); } @@ -266,7 +270,7 @@ export class InverseFuturesClient extends BaseRestClient { } cancelAllConditionalOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('futures/private/stop-order/cancelAll', params); } @@ -298,7 +302,7 @@ export class InverseFuturesClient extends BaseRestClient { * Get position list */ getPosition( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('futures/private/position/list', params); } @@ -309,7 +313,7 @@ export class InverseFuturesClient extends BaseRestClient { }): Promise> { return this.postPrivate( 'futures/private/position/change-position-margin', - params + params, ); } diff --git a/src/linear-client.ts b/src/linear-client.ts index 4ab0086..2e6a637 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -42,6 +42,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for linear/USD perpetual futures APIs (v2) + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class LinearClient extends BaseRestClient { getClientType() { @@ -64,7 +68,7 @@ export class LinearClient extends BaseRestClient { } getKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('public/linear/kline', params); } @@ -73,7 +77,7 @@ export class LinearClient extends BaseRestClient { * Get latest information for symbol */ getTickers( - params?: Partial + params?: Partial, ): Promise> { return this.get('v2/public/tickers', params); } @@ -91,19 +95,19 @@ export class LinearClient extends BaseRestClient { } getMarkPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('public/linear/mark-price-kline', params); } getIndexPriceKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('public/linear/index-price-kline', params); } getPremiumIndexKline( - params: SymbolIntervalFromLimitParam + params: SymbolIntervalFromLimitParam, ): Promise> { return this.get('public/linear/premium-index-kline', params); } @@ -115,19 +119,19 @@ export class LinearClient extends BaseRestClient { */ getOpenInterest( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/open-interest', params); } getLatestBigDeal( - params: SymbolLimitParam + params: SymbolLimitParam, ): Promise> { return this.get('v2/public/big-deal', params); } getLongShortRatio( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('v2/public/account-ratio', params); } @@ -149,25 +153,25 @@ export class LinearClient extends BaseRestClient { */ getWalletBalance( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('v2/private/wallet/balance', params); } getWalletFundRecords( - params?: WalletFundRecordsReq + params?: WalletFundRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/fund/records', params); } getWithdrawRecords( - params?: WithdrawRecordsReq + params?: WithdrawRecordsReq, ): Promise> { return this.getPrivate('v2/private/wallet/withdraw/list', params); } getAssetExchangeRecords( - params?: AssetExchangeRecordsReq + params?: AssetExchangeRecordsReq, ): Promise> { return this.getPrivate('v2/private/exchange-order/list', params); } @@ -193,37 +197,37 @@ export class LinearClient extends BaseRestClient { */ placeActiveOrder( - params: NewLinearOrder + params: NewLinearOrder, ): Promise> { return this.postPrivate('private/linear/order/create', params); } getActiveOrderList( - params: LinearGetOrdersRequest + params: LinearGetOrdersRequest, ): Promise> { return this.getPrivate('private/linear/order/list', params); } cancelActiveOrder( - params: LinearCancelOrderRequest + params: LinearCancelOrderRequest, ): Promise> { return this.postPrivate('private/linear/order/cancel', params); } cancelAllActiveOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('private/linear/order/cancel-all', params); } replaceActiveOrder( - params: LinearReplaceOrderRequest + params: LinearReplaceOrderRequest, ): Promise> { return this.postPrivate('private/linear/order/replace', params); } queryActiveOrder( - params: LinearGetOrderRequest + params: LinearGetOrderRequest, ): Promise> { return this.getPrivate('private/linear/order/search', params); } @@ -233,37 +237,37 @@ export class LinearClient extends BaseRestClient { */ placeConditionalOrder( - params: LinearConditionalOrderRequest + params: LinearConditionalOrderRequest, ): Promise> { return this.postPrivate('private/linear/stop-order/create', params); } getConditionalOrder( - params: LinearGetConditionalOrderRequest + params: LinearGetConditionalOrderRequest, ): Promise> { return this.getPrivate('private/linear/stop-order/list', params); } cancelConditionalOrder( - params: LinearCancelConditionalOrderRequest + params: LinearCancelConditionalOrderRequest, ): Promise> { return this.postPrivate('private/linear/stop-order/cancel', params); } cancelAllConditionalOrders( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.postPrivate('private/linear/stop-order/cancel-all', params); } replaceConditionalOrder( - params: LinearReplaceConditionalOrderRequest + params: LinearReplaceConditionalOrderRequest, ): Promise> { return this.postPrivate('private/linear/stop-order/replace', params); } queryConditionalOrder( - params: LinearQueryConditionalOrderRequest + params: LinearQueryConditionalOrderRequest, ): Promise> { return this.getPrivate('private/linear/stop-order/search', params); } @@ -275,26 +279,26 @@ export class LinearClient extends BaseRestClient { getPosition(): Promise>; getPosition( - params: Partial + params: Partial, ): Promise>; getPosition( - params?: Partial + params?: Partial, ): Promise> { return this.getPrivate('private/linear/position/list', params); } setAutoAddMargin( - params?: LinearSetAutoAddMarginRequest + params?: LinearSetAutoAddMarginRequest, ): Promise> { return this.postPrivate( 'private/linear/position/set-auto-add-margin', - params + params, ); } setMarginSwitch( - params?: LinearSetMarginSwitchRequest + params?: LinearSetMarginSwitchRequest, ): Promise> { return this.postPrivate('private/linear/position/switch-isolated', params); } @@ -303,7 +307,7 @@ export class LinearClient extends BaseRestClient { * Switch between one-way vs hedge mode. Use `linearPositionModeEnum` for the mode parameter. */ setPositionMode( - params: LinearSetPositionModeRequest + params: LinearSetPositionModeRequest, ): Promise> { return this.postPrivate('private/linear/position/switch-mode', params); } @@ -313,46 +317,46 @@ export class LinearClient extends BaseRestClient { * This is set with the setTradingStop() method. Use `positionTpSlModeEnum` for the tp_sl_mode parameter. */ setPositionTpSlMode( - params: LinearSetPositionTpSlModeRequest + params: LinearSetPositionTpSlModeRequest, ): Promise> { return this.postPrivate('private/linear/tpsl/switch-mode', params); } setAddReduceMargin( - params?: LinearSetAddReduceMarginRequest + params?: LinearSetAddReduceMarginRequest, ): Promise> { return this.postPrivate('private/linear/position/add-margin', params); } setUserLeverage( - params: LinearSetUserLeverageRequest + params: LinearSetUserLeverageRequest, ): Promise> { return this.postPrivate('private/linear/position/set-leverage', params); } setTradingStop( - params: LinearSetTradingStopRequest + params: LinearSetTradingStopRequest, ): Promise> { return this.postPrivate('private/linear/position/trading-stop', params); } getTradeRecords( - params: LinearGetTradeRecordsRequest + params: LinearGetTradeRecordsRequest, ): Promise> { return this.getPrivate('private/linear/trade/execution/list', params); } getHistoryTradeRecords( - params: LinearGetHistoryTradeRecordsRequest + params: LinearGetHistoryTradeRecordsRequest, ): Promise> { return this.getPrivate( '/private/linear/trade/execution/history-list', - params + params, ); } getClosedPnl( - params: LinearGetClosedPnlRequest + params: LinearGetClosedPnlRequest, ): Promise> { return this.getPrivate('private/linear/trade/closed-pnl/list', params); } @@ -366,7 +370,7 @@ export class LinearClient extends BaseRestClient { } setRiskLimit( - params: LinearSetRiskLimitRequest + params: LinearSetRiskLimitRequest, ): Promise> { return this.postPrivate('private/linear/position/set-risk', params); } @@ -376,7 +380,7 @@ export class LinearClient extends BaseRestClient { */ getPredictedFundingFee( - params: SymbolParam + params: SymbolParam, ): Promise> { return this.getPrivate('private/linear/funding/predicted-funding', params); } diff --git a/src/spot-client.ts b/src/spot-client.ts index 5860433..c18ae0c 100644 --- a/src/spot-client.ts +++ b/src/spot-client.ts @@ -14,8 +14,11 @@ import BaseRestClient from './util/BaseRestClient'; import { REST_CLIENT_TYPE_ENUM } from './util/requestUtils'; /** - * @deprecated Use SpotV3Client instead, which leverages the newer v3 APIs * REST API client for Spot APIs (v1) + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class SpotClient extends BaseRestClient { getClientType() { @@ -51,7 +54,7 @@ export class SpotClient extends BaseRestClient { getMergedOrderBook( symbol: string, scale?: number, - limit?: number + limit?: number, ): Promise> { return this.get('/spot/quote/v1/depth/merged', { symbol, @@ -72,7 +75,7 @@ export class SpotClient extends BaseRestClient { interval: KlineInterval, limit?: number, startTime?: number, - endTime?: number + endTime?: number, ): Promise> { return this.get('/spot/quote/v1/kline', { symbol, @@ -92,7 +95,7 @@ export class SpotClient extends BaseRestClient { getLastTradedPrice(symbol: string): Promise>; getLastTradedPrice( - symbol?: string + symbol?: string, ): Promise> { return this.get('/spot/quote/v1/ticker/price', { symbol }); } @@ -135,7 +138,7 @@ export class SpotClient extends BaseRestClient { getOpenOrders( symbol?: string, orderId?: string, - limit?: number + limit?: number, ): Promise> { return this.getPrivate('/spot/v1/open-orders', { symbol, @@ -147,7 +150,7 @@ export class SpotClient extends BaseRestClient { getPastOrders( symbol?: string, orderId?: string, - limit?: number + limit?: number, ): Promise> { return this.getPrivate('/spot/v1/history-orders', { symbol, @@ -160,7 +163,7 @@ export class SpotClient extends BaseRestClient { symbol?: string, limit?: number, fromId?: number, - toId?: number + toId?: number, ): Promise> { return this.getPrivate('/spot/v1/myTrades', { symbol, diff --git a/src/usdc-option-client.ts b/src/usdc-option-client.ts index ea6d3cf..8db52e7 100644 --- a/src/usdc-option-client.ts +++ b/src/usdc-option-client.ts @@ -25,6 +25,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for USDC Option APIs + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class USDCOptionClient extends BaseRestClient { getClientType() { @@ -49,7 +53,7 @@ export class USDCOptionClient extends BaseRestClient { /** Fetch trading rules (such as min/max qty). Query for all if blank. */ getContractInfo( - params?: USDCOptionsContractInfoRequest + params?: USDCOptionsContractInfoRequest, ): Promise> { return this.get('/option/usdc/openapi/public/v1/symbols', params); } @@ -61,18 +65,18 @@ export class USDCOptionClient extends BaseRestClient { /** Get delivery information */ getDeliveryPrice( - params?: USDCOptionsDeliveryPriceRequest + params?: USDCOptionsDeliveryPriceRequest, ): Promise> { return this.get('/option/usdc/openapi/public/v1/delivery-price', params); } /** Returned records are Taker Buy in default. */ getLast500Trades( - params: USDCOptionsRecentTradesRequest + params: USDCOptionsRecentTradesRequest, ): Promise> { return this.get( '/option/usdc/openapi/public/v1/query-trade-latest', - params + params, ); } @@ -84,11 +88,11 @@ export class USDCOptionClient extends BaseRestClient { * Both startTime & endTime entered together or both are left blank */ getHistoricalVolatility( - params?: USDCOptionsHistoricalVolatilityRequest + params?: USDCOptionsHistoricalVolatilityRequest, ): Promise> { return this.get( '/option/usdc/openapi/public/v1/query-historical-volatility', - params + params, ); } @@ -108,7 +112,7 @@ export class USDCOptionClient extends BaseRestClient { submitOrder(params: USDCOptionsOrderRequest): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/place-order', - params + params, ); } @@ -116,91 +120,91 @@ export class USDCOptionClient extends BaseRestClient { * Each request supports a max. of four orders. The reduceOnly parameter should be separate and unique for each order in the request. */ batchSubmitOrders( - orderRequest: USDCOptionsOrderRequest[] + orderRequest: USDCOptionsOrderRequest[], ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/batch-place-orders', - { orderRequest } + { orderRequest }, ); } /** For Options, at least one of the three parameters — price, quantity or implied volatility — must be input. */ modifyOrder( - params: USDCOptionsModifyOrderRequest + params: USDCOptionsModifyOrderRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/replace-order', - params + params, ); } /** Each request supports a max. of four orders. The reduceOnly parameter should be separate and unique for each order in the request. */ batchModifyOrders( - replaceOrderRequest: USDCOptionsModifyOrderRequest[] + replaceOrderRequest: USDCOptionsModifyOrderRequest[], ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/batch-replace-orders', - { replaceOrderRequest } + { replaceOrderRequest }, ); } /** Cancel order */ cancelOrder( - params: USDCOptionsCancelOrderRequest + params: USDCOptionsCancelOrderRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/cancel-order', - params + params, ); } /** Batch cancel orders */ batchCancelOrders( - cancelRequest: USDCOptionsCancelOrderRequest[] + cancelRequest: USDCOptionsCancelOrderRequest[], ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/batch-cancel-orders', - { cancelRequest } + { cancelRequest }, ); } /** This is used to cancel all active orders. The real-time response indicates whether the request is successful, depending on retCode. */ cancelActiveOrders( - params?: USDCOptionsCancelAllOrdersRequest + params?: USDCOptionsCancelAllOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/cancel-all', - params + params, ); } /** Query Unfilled/Partially Filled Orders(real-time), up to last 7 days of partially filled/unfilled orders */ getActiveRealtimeOrders( - params?: USDCOptionsActiveOrdersRealtimeRequest + params?: USDCOptionsActiveOrdersRealtimeRequest, ): Promise> { return this.getPrivate( '/option/usdc/openapi/private/v1/trade/query-active-orders', - params + params, ); } /** Query Unfilled/Partially Filled Orders */ getActiveOrders( - params: USDCOptionsActiveOrdersRequest + params: USDCOptionsActiveOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-active-orders', - params + params, ); } /** Query order history. The endpoint only supports up to 30 days of queried records */ getHistoricOrders( - params: USDCOptionsHistoricOrdersRequest + params: USDCOptionsHistoricOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-order-history', - params + params, ); } @@ -210,11 +214,11 @@ export class USDCOptionClient extends BaseRestClient { * An error will be returned if startTime is more than 30 days. */ getOrderExecutionHistory( - params: USDCOptionsOrderExecutionRequest + params: USDCOptionsOrderExecutionRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/execution-list', - params + params, ); } @@ -222,18 +226,18 @@ export class USDCOptionClient extends BaseRestClient { /** The endpoint only supports up to 30 days of queried records. An error will be returned if startTime is more than 30 days. */ getTransactionLog( - params: USDCTransactionLogRequest + params: USDCTransactionLogRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-transaction-log', - params + params, ); } /** Wallet info for USDC account. */ getBalances(): Promise> { return this.postPrivate( - '/option/usdc/openapi/private/v1/query-wallet-balance' + '/option/usdc/openapi/private/v1/query-wallet-balance', ); } @@ -241,7 +245,7 @@ export class USDCOptionClient extends BaseRestClient { getAssetInfo(baseCoin?: string): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-asset-info', - { baseCoin } + { baseCoin }, ); } @@ -252,18 +256,18 @@ export class USDCOptionClient extends BaseRestClient { * Rest API returns the result of checking prerequisites. You could get the real status of margin mode change by subscribing margin mode. */ setMarginMode( - newMarginMode: 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN' + newMarginMode: 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN', ): Promise> { return this.postPrivate( '/option/usdc/private/asset/account/setMarginMode', - { setMarginMode: newMarginMode } + { setMarginMode: newMarginMode }, ); } /** Query margin mode for USDC account. */ getMarginMode(): Promise> { return this.postPrivate( - '/option/usdc/openapi/private/v1/query-margin-info' + '/option/usdc/openapi/private/v1/query-margin-info', ); } @@ -273,27 +277,27 @@ export class USDCOptionClient extends BaseRestClient { getPositions(params: USDCPositionsRequest): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-position', - params + params, ); } /** Query Delivery History */ getDeliveryHistory( - params: USDCOptionsDeliveryHistoryRequest + params: USDCOptionsDeliveryHistoryRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-delivery-list', - params + params, ); } /** Query Positions Info Upon Expiry */ getPositionsInfoUponExpiry( - params?: USDCOptionsPositionsInfoExpiryRequest + params?: USDCOptionsPositionsInfoExpiryRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-position-exp-date', - params + params, ); } @@ -303,7 +307,7 @@ export class USDCOptionClient extends BaseRestClient { modifyMMP(params: USDCOptionsModifyMMPRequest): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/mmp-modify', - params + params, ); } diff --git a/src/usdc-perpetual-client.ts b/src/usdc-perpetual-client.ts index a6886b9..58ab690 100644 --- a/src/usdc-perpetual-client.ts +++ b/src/usdc-perpetual-client.ts @@ -23,6 +23,10 @@ import BaseRestClient from './util/BaseRestClient'; /** * REST API client for USDC Perpetual APIs + * + * @deprecated WARNING: V1/V2 private endpoints (Rest API & Websocket Stream) for mainnet + * will be switched off gradually from 30 Oct 2023 UTC, so they are not promised a stability. + * Please note that you are at your own risk of using old endpoints going forward, and please move to V5 ASAP. */ export class USDCPerpetualClient extends BaseRestClient { getClientType() { @@ -47,7 +51,7 @@ export class USDCPerpetualClient extends BaseRestClient { /** Fetch trading rules (such as min/max qty). Query for all if blank. */ getContractInfo( - params?: USDCSymbolDirectionLimit + params?: USDCSymbolDirectionLimit, ): Promise> { return this.get('/perpetual/usdc/openapi/public/v1/symbols', params); } @@ -64,48 +68,48 @@ export class USDCPerpetualClient extends BaseRestClient { getMarkPrice(params: USDCKlineRequest): Promise> { return this.get( '/perpetual/usdc/openapi/public/v1/mark-price-kline', - params + params, ); } getIndexPrice(params: USDCKlineRequest): Promise> { return this.get( '/perpetual/usdc/openapi/public/v1/index-price-kline', - params + params, ); } getIndexPremium(params: USDCKlineRequest): Promise> { return this.get( '/perpetual/usdc/openapi/public/v1/premium-index-kline', - params + params, ); } getOpenInterest( - params: USDCOpenInterestRequest + params: USDCOpenInterestRequest, ): Promise> { return this.get('/perpetual/usdc/openapi/public/v1/open-interest', params); } getLargeOrders( - params: SymbolLimitParam + params: SymbolLimitParam, ): Promise> { return this.get('/perpetual/usdc/openapi/public/v1/big-deal', params); } getLongShortRatio( - params: SymbolPeriodLimitParam + params: SymbolPeriodLimitParam, ): Promise> { return this.get('/perpetual/usdc/openapi/public/v1/account-ratio', params); } getLast500Trades( - params: USDCLast500TradesRequest + params: USDCLast500TradesRequest, ): Promise> { return this.get( '/option/usdc/openapi/public/v1/query-trade-latest', - params + params, ); } @@ -125,7 +129,7 @@ export class USDCPerpetualClient extends BaseRestClient { submitOrder(params: USDCPerpOrderRequest): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/place-order', - params + params, ); } @@ -133,7 +137,7 @@ export class USDCPerpetualClient extends BaseRestClient { modifyOrder(params: USDCPerpModifyOrderRequest): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/replace-order', - params + params, ); } @@ -141,14 +145,14 @@ export class USDCPerpetualClient extends BaseRestClient { cancelOrder(params: USDCPerpCancelOrderRequest): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/cancel-order', - params + params, ); } /** Cancel all active orders. The real-time response indicates whether the request is successful, depending on retCode. */ cancelActiveOrders( symbol: string, - orderFilter: USDCOrderFilter + orderFilter: USDCOrderFilter, ): Promise> { return this.postPrivate('/perpetual/usdc/openapi/private/v1/cancel-all', { symbol, @@ -158,31 +162,31 @@ export class USDCPerpetualClient extends BaseRestClient { /** Query Unfilled/Partially Filled Orders */ getActiveOrders( - params: USDCPerpActiveOrdersRequest + params: USDCPerpActiveOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-active-orders', - params + params, ); } /** Query order history. The endpoint only supports up to 30 days of queried records */ getHistoricOrders( - params: USDCPerpHistoricOrdersRequest + params: USDCPerpHistoricOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-order-history', - params + params, ); } /** Query trade history. The endpoint only supports up to 30 days of queried records. An error will be returned if startTime is more than 30 days. */ getOrderExecutionHistory( - params: USDCPerpActiveOrdersRequest + params: USDCPerpActiveOrdersRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/execution-list', - params + params, ); } @@ -190,18 +194,18 @@ export class USDCPerpetualClient extends BaseRestClient { /** The endpoint only supports up to 30 days of queried records. An error will be returned if startTime is more than 30 days. */ getTransactionLog( - params: USDCTransactionLogRequest + params: USDCTransactionLogRequest, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-transaction-log', - params + params, ); } /** Wallet info for USDC account. */ getBalances(): Promise> { return this.postPrivate( - '/option/usdc/openapi/private/v1/query-wallet-balance' + '/option/usdc/openapi/private/v1/query-wallet-balance', ); } @@ -209,7 +213,7 @@ export class USDCPerpetualClient extends BaseRestClient { getAssetInfo(baseCoin?: string): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-asset-info', - { baseCoin } + { baseCoin }, ); } @@ -220,18 +224,18 @@ export class USDCPerpetualClient extends BaseRestClient { * Rest API returns the result of checking prerequisites. You could get the real status of margin mode change by subscribing margin mode. */ setMarginMode( - newMarginMode: 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN' + newMarginMode: 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN', ): Promise> { return this.postPrivate( '/option/usdc/private/asset/account/setMarginMode', - { setMarginMode: newMarginMode } + { setMarginMode: newMarginMode }, ); } /** Query margin mode for USDC account. */ getMarginMode(): Promise> { return this.postPrivate( - '/option/usdc/openapi/private/v1/query-margin-info' + '/option/usdc/openapi/private/v1/query-margin-info', ); } @@ -241,7 +245,7 @@ export class USDCPerpetualClient extends BaseRestClient { getPositions(params: USDCPositionsRequest): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/query-position', - params + params, ); } @@ -249,17 +253,17 @@ export class USDCPerpetualClient extends BaseRestClient { setLeverage(symbol: string, leverage: string): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/position/leverage/save', - { symbol, leverage } + { symbol, leverage }, ); } /** Query Settlement History */ getSettlementHistory( - params?: USDCSymbolDirectionLimitCursor + params?: USDCSymbolDirectionLimitCursor, ): Promise> { return this.postPrivate( '/option/usdc/openapi/private/v1/session-settlement', - params + params, ); } @@ -271,7 +275,7 @@ export class USDCPerpetualClient extends BaseRestClient { '/perpetual/usdc/openapi/public/v1/risk-limit/list', { symbol, - } + }, ); } @@ -279,7 +283,7 @@ export class USDCPerpetualClient extends BaseRestClient { setRiskLimit(symbol: string, riskId: number): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/position/set-risk-limit', - { symbol, riskId } + { symbol, riskId }, ); } @@ -296,7 +300,7 @@ export class USDCPerpetualClient extends BaseRestClient { getPredictedFundingRate(symbol: string): Promise> { return this.postPrivate( '/perpetual/usdc/openapi/private/v1/predicted-funding', - { symbol } + { symbol }, ); } From eb33084b7f1c4c44072f9622106d5bb17f35fb00 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 12:48:42 +0000 Subject: [PATCH 3/7] chore(): fix jsdoc param --- src/util/BaseRestClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index d1a69b1..fdbb3a8 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -98,7 +98,7 @@ export default abstract class BaseRestClient { /** * Create an instance of the REST client. Pass API credentials in the object in the first parameter. - * @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity + * @param {RestClientOptions} [restOptions={}] options to configure REST API connectivity * @param {AxiosRequestConfig} [networkOptions={}] HTTP networking options for axios */ constructor( From a790fcaf049884ff700bcd313b3c8186b36f7a22 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 13:47:40 +0000 Subject: [PATCH 4/7] feat(#251): add optional bapi rate limit parsing to REST clients --- src/types/request/v5-market.ts | 4 +-- src/types/shared.ts | 27 ++++++++++++---- src/util/BaseRestClient.ts | 13 +++++++- src/util/requestUtils.ts | 58 ++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 9 deletions(-) diff --git a/src/types/request/v5-market.ts b/src/types/request/v5-market.ts index 0fe9f0c..9e836b7 100644 --- a/src/types/request/v5-market.ts +++ b/src/types/request/v5-market.ts @@ -52,8 +52,8 @@ export interface GetOrderbookParamsV5 { limit?: number; } -export interface GetTickersParamsV5 { - category: CategoryV5; +export interface GetTickersParamsV5 { + category: TCategory; symbol?: string; baseCoin?: string; expDate?: string; diff --git a/src/types/shared.ts b/src/types/shared.ts index 3e13c34..9be7676 100644 --- a/src/types/shared.ts +++ b/src/types/shared.ts @@ -61,18 +61,33 @@ export interface APIResponse { result: T; } +export interface APIRateLimit { + /** Remaining requests to this endpoint before the next reset */ + remainingRequests: number; + /** Max requests for this endpoint per rollowing window (before next reset) */ + maxRequests: number; + /** + * Timestamp when the rate limit resets if you have exceeded your current maxRequests. + * Otherwise, this is approximately your current timestamp. + */ + resetAtTimestamp: number; +} + export interface APIResponseV3 { retCode: number; retMsg: 'OK' | string; result: T; + /** + * These are per-UID per-endpoint rate limits, automatically parsed from response headers if available. + * + * Note: + * - this is primarily for V5 (or newer) APIs. + * - these rate limits are per-endpoint per-account, so will not appear for public API calls + */ + rateLimitApi?: APIRateLimit; } -export interface APIResponseV3WithTime { - retCode: number; - retMsg: 'OK' | string; - result: T; - time: number; -} +export type APIResponseV3WithTime = APIResponseV3 & { time: number }; export interface APIResponseWithTime extends APIResponse { /** UTC timestamp */ diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index fdbb3a8..d7682fd 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -7,6 +7,7 @@ import { RestClientOptions, RestClientType, getRestBaseUrl, + parseRateLimitHeaders, serializeParams, } from './requestUtils'; import { signMessage } from './node-support'; @@ -323,7 +324,17 @@ export default abstract class BaseRestClient { return axios(options) .then((response) => { if (response.status == 200) { - return response.data; + const perAPIRateLimits = this.options.parseAPIRateLimits + ? parseRateLimitHeaders( + response.headers, + this.options.throwOnFailedRateLimitParse === true, + ) + : undefined; + + return { + rateLimitApi: perAPIRateLimits, + ...response.data, + }; } throw response; diff --git a/src/util/requestUtils.ts b/src/util/requestUtils.ts index 8699ab6..3297ea1 100644 --- a/src/util/requestUtils.ts +++ b/src/util/requestUtils.ts @@ -1,3 +1,4 @@ +import { APIRateLimit } from '../types'; import { WebsocketSucceededTopicSubscriptionConfirmationEvent } from '../types/ws-events/succeeded-topic-subscription-confirmation'; import { WebsocketTopicSubscriptionConfirmationEvent } from '../types/ws-events/topic-subscription-confirmation'; @@ -46,6 +47,12 @@ export interface RestClientOptions { /** Default: true. whether to try and post-process request exceptions. */ parse_exceptions?: boolean; + + /** Default: false. Enable to parse/include per-API/endpoint rate limits in responses. */ + parseAPIRateLimits?: boolean; + + /** Default: false. Enable to throw error if rate limit parser fails */ + throwOnFailedRateLimitParse?: boolean; } /** @@ -169,3 +176,54 @@ export const REST_CLIENT_TYPE_ENUM = { export type RestClientType = (typeof REST_CLIENT_TYPE_ENUM)[keyof typeof REST_CLIENT_TYPE_ENUM]; + +/** Parse V5 rate limit response headers, if enabled */ +export function parseRateLimitHeaders( + headers: Record = {}, + throwOnFailedRateLimitParse: boolean, +): APIRateLimit | undefined { + try { + const remaining = headers['x-bapi-limit-status']; + const max = headers['x-bapi-limit']; + const resetAt = headers['x-bapi-limit-reset-timestamp']; + + if ( + typeof remaining === 'undefined' || + typeof max === 'undefined' || + typeof resetAt === 'undefined' + ) { + return; + } + + const result: APIRateLimit = { + remainingRequests: Number(remaining), + maxRequests: Number(max), + resetAtTimestamp: Number(resetAt), + }; + + if ( + isNaN(result.remainingRequests) || + isNaN(result.maxRequests) || + isNaN(result.resetAtTimestamp) + ) { + return; + } + + return result; + } catch (e) { + if (throwOnFailedRateLimitParse) { + console.log( + new Date(), + 'parseRateLimitHeaders()', + 'Failed to parse rate limit headers', + { + headers, + exception: e, + }, + ); + throw e; + } + } + + return undefined; +} From 27192d23e693a74810e1d5722c8427423f531736 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 13:48:01 +0000 Subject: [PATCH 5/7] feat(): improve dynamic types for getTickers --- src/rest-client-v5.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 14f12c7..646cfee 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -136,6 +136,7 @@ import { WithdrawParamsV5, WithdrawalRecordV5, } from './types'; + import { REST_CLIENT_TYPE_ENUM } from './util'; import BaseRestClient from './util/BaseRestClient'; @@ -248,6 +249,22 @@ export class RestClientV5 extends BaseRestClient { return this.get('/v5/market/orderbook', params); } + getTickers( + params: GetTickersParamsV5<'linear' | 'inverse'>, + ): Promise< + APIResponseV3WithTime< + CategoryListV5 + > + >; + + getTickers( + params: GetTickersParamsV5<'option'>, + ): Promise>>; + + getTickers( + params: GetTickersParamsV5<'spot'>, + ): Promise>>; + /** * Query the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours. * From 7c67d5f98f906dd0e0e8918d5536858c30a4ca52 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 13:53:25 +0000 Subject: [PATCH 6/7] v3.7.4: feat(#251, #291) add optional endpoint rate limit parsing, add deprecation warnings for v1/v2 rest clients, improve v5 types, bump dependencies --- README.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b77069..87b7a37 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,12 @@ const restClientOptions = { /** Default: true. whether to try and post-process request exceptions. */ parse_exceptions?: boolean; + + /** Default: false. Enable to parse/include per-API/endpoint rate limits in responses. */ + parseAPIRateLimits?: boolean; + + /** Default: false. Enable to throw error if rate limit parser fails */ + throwOnFailedRateLimitParse?: boolean; }; const API_KEY = 'xxx'; diff --git a/package-lock.json b/package-lock.json index 0d39227..5449efa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.7.3", + "version": "3.7.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.7.3", + "version": "3.7.4", "license": "MIT", "dependencies": { "axios": "^0.21.0", diff --git a/package.json b/package.json index c397e1c..ee96ea9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.7.3", + "version": "3.7.4", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", From 976a4e86ab05e8b335cfe7803dbfa4e67c5ffc8c Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 30 Oct 2023 14:04:38 +0000 Subject: [PATCH 7/7] chore(): skip tests for deprecated API categories --- test/inverse-futures/private.read.test.ts | 2 +- test/inverse-futures/private.write.test.ts | 2 +- test/inverse-futures/public.test.ts | 2 +- test/inverse/private.read.test.ts | 2 +- test/inverse/private.write.test.ts | 2 +- test/inverse/public.test.ts | 2 +- test/inverse/ws.private.test.ts | 6 +++--- test/inverse/ws.public.test.ts | 4 ++-- test/linear/private.read.test.ts | 2 +- test/linear/private.write.test.ts | 2 +- test/linear/public.test.ts | 2 +- test/linear/ws.private.test.ts | 6 +++--- test/linear/ws.public.test.ts | 2 +- 13 files changed, 18 insertions(+), 18 deletions(-) diff --git a/test/inverse-futures/private.read.test.ts b/test/inverse-futures/private.read.test.ts index 00d883a..73d0632 100644 --- a/test/inverse-futures/private.read.test.ts +++ b/test/inverse-futures/private.read.test.ts @@ -2,7 +2,7 @@ import { InverseFuturesClient } from '../../src/inverse-futures-client'; import { getTestProxy } from '../proxy.util'; import { successResponseList, successResponseObject } from '../response.util'; -describe('Private Inverse-Futures REST API GET Endpoints', () => { +describe.skip('Private Inverse-Futures REST API GET Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse-futures/private.write.test.ts b/test/inverse-futures/private.write.test.ts index 32f5989..ad15698 100644 --- a/test/inverse-futures/private.write.test.ts +++ b/test/inverse-futures/private.write.test.ts @@ -2,7 +2,7 @@ import { API_ERROR_CODE, InverseFuturesClient } from '../../src'; import { getTestProxy } from '../proxy.util'; import { successResponseObject } from '../response.util'; -describe('Private Inverse-Futures REST API POST Endpoints', () => { +describe.skip('Private Inverse-Futures REST API POST Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse-futures/public.test.ts b/test/inverse-futures/public.test.ts index b514324..1f5bbf0 100644 --- a/test/inverse-futures/public.test.ts +++ b/test/inverse-futures/public.test.ts @@ -6,7 +6,7 @@ import { successResponseObject, } from '../response.util'; -describe('Public Inverse-Futures REST API Endpoints', () => { +describe.skip('Public Inverse-Futures REST API Endpoints', () => { const api = new InverseFuturesClient({}, getTestProxy()); const symbol = 'BTCUSD'; diff --git a/test/inverse/private.read.test.ts b/test/inverse/private.read.test.ts index 54a8b3e..7f32d4e 100644 --- a/test/inverse/private.read.test.ts +++ b/test/inverse/private.read.test.ts @@ -2,7 +2,7 @@ import { InverseClient } from '../../src/'; import { getTestProxy } from '../proxy.util'; import { successResponseList, successResponseObject } from '../response.util'; -describe('Private Inverse REST API GET Endpoints', () => { +describe.skip('Private Inverse REST API GET Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse/private.write.test.ts b/test/inverse/private.write.test.ts index 2035340..e45efc4 100644 --- a/test/inverse/private.write.test.ts +++ b/test/inverse/private.write.test.ts @@ -3,7 +3,7 @@ import { InverseClient } from '../../src/inverse-client'; import { getTestProxy } from '../proxy.util'; import { successResponseObject } from '../response.util'; -describe('Private Inverse REST API POST Endpoints', () => { +describe.skip('Private Inverse REST API POST Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/inverse/public.test.ts b/test/inverse/public.test.ts index 7bce2b6..e951d38 100644 --- a/test/inverse/public.test.ts +++ b/test/inverse/public.test.ts @@ -6,7 +6,7 @@ import { successResponseObject, } from '../response.util'; -describe('Public Inverse REST API Endpoints', () => { +describe.skip('Public Inverse REST API Endpoints', () => { const api = new InverseClient({}, getTestProxy()); const symbol = 'BTCUSD'; diff --git a/test/inverse/ws.private.test.ts b/test/inverse/ws.private.test.ts index b4000ba..bc78fa6 100644 --- a/test/inverse/ws.private.test.ts +++ b/test/inverse/ws.private.test.ts @@ -9,7 +9,7 @@ import { waitForSocketEvent, } from '../ws.util'; -describe('Private Inverse Perps Websocket Client', () => { +describe.skip('Private Inverse Perps Websocket Client', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; @@ -27,7 +27,7 @@ describe('Private Inverse Perps Websocket Client', () => { key: 'bad', secret: 'bad', }, - getSilentLogger('expect401') + getSilentLogger('expect401'), ); const wsOpenPromise = waitForSocketEvent(badClient, 'open', 2500); @@ -55,7 +55,7 @@ describe('Private Inverse Perps Websocket Client', () => { beforeAll(() => { wsClient = new WebsocketClient( wsClientOptions, - getSilentLogger('expectSuccess') + getSilentLogger('expectSuccess'), ); wsClient.connectPrivate(); }); diff --git a/test/inverse/ws.public.test.ts b/test/inverse/ws.public.test.ts index 305059e..96b75e6 100644 --- a/test/inverse/ws.public.test.ts +++ b/test/inverse/ws.public.test.ts @@ -13,7 +13,7 @@ import { waitForSocketEvent, } from '../ws.util'; -describe('Public Inverse Perps Websocket Client', () => { +describe.skip('Public Inverse Perps Websocket Client', () => { let wsClient: WebsocketClient; const wsClientOptions: WSClientConfigurableOptions = { @@ -66,7 +66,7 @@ describe('Public Inverse Perps Websocket Client', () => { } catch (e) { console.error( `Wait for "${wsTopic}" subscription response exception: `, - e + e, ); } diff --git a/test/linear/private.read.test.ts b/test/linear/private.read.test.ts index 3457c34..cce0f32 100644 --- a/test/linear/private.read.test.ts +++ b/test/linear/private.read.test.ts @@ -2,7 +2,7 @@ import { LinearClient } from '../../src/linear-client'; import { getTestProxy } from '../proxy.util'; import { successResponseList, successResponseObject } from '../response.util'; -describe('Private Linear REST API GET Endpoints', () => { +describe.skip('Private Linear REST API GET Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/linear/private.write.test.ts b/test/linear/private.write.test.ts index fda077d..74e55b5 100644 --- a/test/linear/private.write.test.ts +++ b/test/linear/private.write.test.ts @@ -2,7 +2,7 @@ import { LinearClient } from '../../src'; import { getTestProxy } from '../proxy.util'; import { successResponseObject } from '../response.util'; -describe('Private Linear REST API POST Endpoints', () => { +describe.skip('Private Linear REST API POST Endpoints', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; diff --git a/test/linear/public.test.ts b/test/linear/public.test.ts index d2a2c06..ce504d2 100644 --- a/test/linear/public.test.ts +++ b/test/linear/public.test.ts @@ -6,7 +6,7 @@ import { successResponseObject, } from '../response.util'; -describe('Public Linear REST API Endpoints', () => { +describe.skip('Public Linear REST API Endpoints', () => { const api = new LinearClient({}, getTestProxy()); const symbol = 'BTCUSDT'; diff --git a/test/linear/ws.private.test.ts b/test/linear/ws.private.test.ts index f6bf92a..8a7f683 100644 --- a/test/linear/ws.private.test.ts +++ b/test/linear/ws.private.test.ts @@ -9,7 +9,7 @@ import { waitForSocketEvent, } from '../ws.util'; -describe('Private Linear Perps Websocket Client', () => { +describe.skip('Private Linear Perps Websocket Client', () => { const API_KEY = process.env.API_KEY_COM; const API_SECRET = process.env.API_SECRET_COM; @@ -27,7 +27,7 @@ describe('Private Linear Perps Websocket Client', () => { key: 'bad', secret: 'bad', }, - getSilentLogger('expect401') + getSilentLogger('expect401'), ); const wsOpenPromise = waitForSocketEvent(badClient, 'open', 2500); @@ -59,7 +59,7 @@ describe('Private Linear Perps Websocket Client', () => { beforeAll(() => { wsClient = new WebsocketClient( wsClientOptions, - getSilentLogger('expectSuccess') + getSilentLogger('expectSuccess'), ); wsClient.connectPrivate(); }); diff --git a/test/linear/ws.public.test.ts b/test/linear/ws.public.test.ts index 75647bb..aee4ffc 100644 --- a/test/linear/ws.public.test.ts +++ b/test/linear/ws.public.test.ts @@ -9,7 +9,7 @@ import { waitForSocketEvent, } from '../ws.util'; -describe('Public Linear Perps Websocket Client', () => { +describe.skip('Public Linear Perps Websocket Client', () => { let wsClient: WebsocketClient; const wsClientOptions: WSClientConfigurableOptions = {