diff --git a/package.json b/package.json index 76afcd2b1e..1547f3e329 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@types/chai-as-promised": "^7.1.5", "@types/mocha": "^10.0.1", "@types/qs": "^6.9.7", + "@types/node": ">=12.0.0", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "chai": "^4.3.6", @@ -55,9 +56,16 @@ "nanoid": "^3.2.0" }, "dependencies": { - "@types/node": ">=8.1.0", "qs": "^6.11.0" }, + "peerDependencies": { + "@types/node": ">=8.1.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + }, "license": "MIT", "scripts": { "build": "yarn build-esm && yarn build-cjs", @@ -101,4 +109,4 @@ "require": "./cjs/stripe.cjs.node.js" } } -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index ed4ae6c1fc..2179a7ab54 100644 --- a/yarn.lock +++ b/yarn.lock @@ -454,10 +454,12 @@ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.1.tgz#2f4f65bb08bc368ac39c96da7b2f09140b26851b" integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== -"@types/node@>=8.1.0": - version "18.11.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.3.tgz#78a6d7ec962b596fc2d2ec102c4dd3ef073fea6a" - integrity sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A== +"@types/node@>=12.0.0": + version "22.5.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.4.tgz#83f7d1f65bc2ed223bdbf57c7884f1d5a4fa84e8" + integrity sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg== + dependencies: + undici-types "~6.19.2" "@types/qs@^6.9.7": version "6.9.7" @@ -3144,6 +3146,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + update-browserslist-db@^1.0.9: version "1.0.10" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3"