From 7591482a1cfe4ebbca1c8035be0454da6686e24e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 3 Dec 2024 00:32:49 +0000 Subject: [PATCH] fix: package.json & package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-AXIOS-6671926 --- package-lock.json | 188 ++++++++++++++++++++++++++++++++++++---------- package.json | 4 +- 2 files changed, 152 insertions(+), 40 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5981454..cd85e92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@apimatic/core": "^0.7.6", + "@apimatic/core": "^0.10.5", "@apimatic/schema": "^0.6.0", "@types/node": "^14.18.21", - "axios": "^1.7.4", + "axios": "^1.7.8", "detect-node": "^2.0.4", "form-data": "^3.0.0", "lodash.flatmap": "^4.5.0", @@ -33,36 +33,99 @@ } }, "node_modules/@apimatic/convert-to-stream": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@apimatic/convert-to-stream/-/convert-to-stream-0.0.1.tgz", - "integrity": "sha512-MT0t9Tcn23VlKLugzhe/q9QDcVbSXPaoH9i2qvNPZZ/JOVGNj8PZ/7z18FHMx+rW0XYegzPVjJVjwzNE8T+zSA==" + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@apimatic/convert-to-stream/-/convert-to-stream-0.0.2.tgz", + "integrity": "sha512-1DRg17ItExfMYsXwjt6WIjJSCgV5RGg3fHPLgYD44/YmiU+7suWj7YfPKKUqmNcnJ/AvMh4lG1+tHrfOT01zXw==", + "license": "ISC", + "engines": { + "node": ">=10.4.0" + } }, "node_modules/@apimatic/core": { - "version": "0.7.6", - "resolved": "https://registry.npmjs.org/@apimatic/core/-/core-0.7.6.tgz", - "integrity": "sha512-FGlCnHZg4K08rXI+CblXIy4qqmgDozxPTWkodszuv3i7MfBeRLL2QaPFb5tzQf9hArfnl5+FVoZd8QlL6nsVjw==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@apimatic/core/-/core-0.10.5.tgz", + "integrity": "sha512-pV5O7AkPdB2+yubQnnVy8b1BR+izr2aNkUWFh2qGfx5jRkvOQzTmfMuQtS/rBSgY718zpfCccDnkcMQ8KjrVmg==", + "license": "MIT", "dependencies": { - "@apimatic/convert-to-stream": "0.0.1", + "@apimatic/convert-to-stream": "^0.0.2", + "@apimatic/core-interfaces": "^0.2.0", + "@apimatic/file-wrapper": "^0.3.0", + "@apimatic/http-headers": "^0.3.0", + "@apimatic/http-query": "^0.3.0", "@apimatic/json-bigint": "^1.2.0", - "@apimatic/schema": "^0.6.0", - "axios": "^0.21.1", + "@apimatic/schema": "^0.7.0", "detect-browser": "^5.3.0", "detect-node": "^2.0.4", "form-data": "^3.0.0", + "json-ptr": "^3.1.0", "lodash.flatmap": "^4.5.0", "tiny-warning": "^1.0.3", "tslib": "^2.1.0" }, "engines": { - "node": ">=10.4.0" + "node": ">=14.15.0 || >=16.0.0" + } + }, + "node_modules/@apimatic/core-interfaces": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@apimatic/core-interfaces/-/core-interfaces-0.2.7.tgz", + "integrity": "sha512-ZGvUL9ka1vuyj/zNwShmqaX38nvLS4QcQOtfuPy/WI65HJv+mdMQxWoHTyjvVq/zVs+YRDgN0UXE2MzkqGoDjQ==", + "license": "MIT", + "dependencies": { + "@apimatic/file-wrapper": "^0.3.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=14.15.0 || >=16.0.0" + } + }, + "node_modules/@apimatic/core/node_modules/@apimatic/schema": { + "version": "0.7.14", + "resolved": "https://registry.npmjs.org/@apimatic/schema/-/schema-0.7.14.tgz", + "integrity": "sha512-Z01QCVpUv57HKiQ4NrsKl4CmUWDt1y+qMGoHx+dzyo/H8u/cJbX25JbicsEH6/RPXAwnM172ZWWYQViXeXU40A==", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=14.15.0 || >=16.0.0" + } + }, + "node_modules/@apimatic/file-wrapper": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/file-wrapper/-/file-wrapper-0.3.3.tgz", + "integrity": "sha512-XIyiRb7PtbILJCof5RKJdElLiRakUk9DQRBYqzUjp1H1tM9MjKTnPYvKa9Rkel+o/wJ1RcB/IEwPtYhYWzQtow==", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=14.15.0 || >=16.0.0" + } + }, + "node_modules/@apimatic/http-headers": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/http-headers/-/http-headers-0.3.3.tgz", + "integrity": "sha512-xfDipaFoYgazLJnaEPeG72TOZOQj1PqhJ8zQgpo4Tsr1D/ggmFyiJnuD7RwSqZXCfiMgcRWN0Xzi2mrk0unhrQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=14.15.0 || >=16.0.0" } }, - "node_modules/@apimatic/core/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "node_modules/@apimatic/http-query": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/http-query/-/http-query-0.3.3.tgz", + "integrity": "sha512-omPc56Bv5o/6QL6rcXfCkZfJ/NFl4yD+vVfotfVYeyb4ewGWCD8pc6v6cSOwID2A06pK2wy41ltjiuSkaQ+QIA==", + "license": "MIT", "dependencies": { - "follow-redirects": "^1.14.0" + "@apimatic/file-wrapper": "^0.3.3", + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=14.15.0 || >=16.0.0" } }, "node_modules/@apimatic/json-bigint": { @@ -3157,9 +3220,9 @@ } }, "node_modules/axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -7845,6 +7908,12 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, + "node_modules/json-ptr": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-ptr/-/json-ptr-3.1.1.tgz", + "integrity": "sha512-SiSJQ805W1sDUCD1+/t1/1BIrveq2Fe9HJqENxZmMCILmrPI7WhS/pePpIOx85v6/H2z1Vy7AI08GV2TzfXocg==", + "license": "MIT" + }, "node_modules/json-schema": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", @@ -12011,37 +12080,75 @@ }, "dependencies": { "@apimatic/convert-to-stream": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@apimatic/convert-to-stream/-/convert-to-stream-0.0.1.tgz", - "integrity": "sha512-MT0t9Tcn23VlKLugzhe/q9QDcVbSXPaoH9i2qvNPZZ/JOVGNj8PZ/7z18FHMx+rW0XYegzPVjJVjwzNE8T+zSA==" + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@apimatic/convert-to-stream/-/convert-to-stream-0.0.2.tgz", + "integrity": "sha512-1DRg17ItExfMYsXwjt6WIjJSCgV5RGg3fHPLgYD44/YmiU+7suWj7YfPKKUqmNcnJ/AvMh4lG1+tHrfOT01zXw==" }, "@apimatic/core": { - "version": "0.7.6", - "resolved": "https://registry.npmjs.org/@apimatic/core/-/core-0.7.6.tgz", - "integrity": "sha512-FGlCnHZg4K08rXI+CblXIy4qqmgDozxPTWkodszuv3i7MfBeRLL2QaPFb5tzQf9hArfnl5+FVoZd8QlL6nsVjw==", - "requires": { - "@apimatic/convert-to-stream": "0.0.1", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@apimatic/core/-/core-0.10.5.tgz", + "integrity": "sha512-pV5O7AkPdB2+yubQnnVy8b1BR+izr2aNkUWFh2qGfx5jRkvOQzTmfMuQtS/rBSgY718zpfCccDnkcMQ8KjrVmg==", + "requires": { + "@apimatic/convert-to-stream": "^0.0.2", + "@apimatic/core-interfaces": "^0.2.0", + "@apimatic/file-wrapper": "^0.3.0", + "@apimatic/http-headers": "^0.3.0", + "@apimatic/http-query": "^0.3.0", "@apimatic/json-bigint": "^1.2.0", - "@apimatic/schema": "^0.6.0", - "axios": "^0.21.1", + "@apimatic/schema": "^0.7.0", "detect-browser": "^5.3.0", "detect-node": "^2.0.4", "form-data": "^3.0.0", + "json-ptr": "^3.1.0", "lodash.flatmap": "^4.5.0", "tiny-warning": "^1.0.3", "tslib": "^2.1.0" }, "dependencies": { - "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "@apimatic/schema": { + "version": "0.7.14", + "resolved": "https://registry.npmjs.org/@apimatic/schema/-/schema-0.7.14.tgz", + "integrity": "sha512-Z01QCVpUv57HKiQ4NrsKl4CmUWDt1y+qMGoHx+dzyo/H8u/cJbX25JbicsEH6/RPXAwnM172ZWWYQViXeXU40A==", "requires": { - "follow-redirects": "^1.14.0" + "tslib": "^2.1.0" } } } }, + "@apimatic/core-interfaces": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@apimatic/core-interfaces/-/core-interfaces-0.2.7.tgz", + "integrity": "sha512-ZGvUL9ka1vuyj/zNwShmqaX38nvLS4QcQOtfuPy/WI65HJv+mdMQxWoHTyjvVq/zVs+YRDgN0UXE2MzkqGoDjQ==", + "requires": { + "@apimatic/file-wrapper": "^0.3.3", + "tslib": "^2.1.0" + } + }, + "@apimatic/file-wrapper": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/file-wrapper/-/file-wrapper-0.3.3.tgz", + "integrity": "sha512-XIyiRb7PtbILJCof5RKJdElLiRakUk9DQRBYqzUjp1H1tM9MjKTnPYvKa9Rkel+o/wJ1RcB/IEwPtYhYWzQtow==", + "requires": { + "tslib": "^2.1.0" + } + }, + "@apimatic/http-headers": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/http-headers/-/http-headers-0.3.3.tgz", + "integrity": "sha512-xfDipaFoYgazLJnaEPeG72TOZOQj1PqhJ8zQgpo4Tsr1D/ggmFyiJnuD7RwSqZXCfiMgcRWN0Xzi2mrk0unhrQ==", + "requires": { + "tslib": "^2.1.0" + } + }, + "@apimatic/http-query": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@apimatic/http-query/-/http-query-0.3.3.tgz", + "integrity": "sha512-omPc56Bv5o/6QL6rcXfCkZfJ/NFl4yD+vVfotfVYeyb4ewGWCD8pc6v6cSOwID2A06pK2wy41ltjiuSkaQ+QIA==", + "requires": { + "@apimatic/file-wrapper": "^0.3.3", + "tslib": "^2.1.0" + } + }, "@apimatic/json-bigint": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@apimatic/json-bigint/-/json-bigint-1.2.0.tgz", @@ -14326,9 +14433,9 @@ "dev": true }, "axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "requires": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -17972,6 +18079,11 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, + "json-ptr": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-ptr/-/json-ptr-3.1.1.tgz", + "integrity": "sha512-SiSJQ805W1sDUCD1+/t1/1BIrveq2Fe9HJqENxZmMCILmrPI7WhS/pePpIOx85v6/H2z1Vy7AI08GV2TzfXocg==" + }, "json-schema": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", diff --git a/package.json b/package.json index 957d62e..2c22bdc 100644 --- a/package.json +++ b/package.json @@ -38,10 +38,10 @@ "typescript": "^3.9.7" }, "dependencies": { - "@apimatic/core": "^0.7.6", + "@apimatic/core": "^0.10.5", "@apimatic/schema": "^0.6.0", "@types/node": "^14.18.21", - "axios": "^1.7.4", + "axios": "^1.7.8", "detect-node": "^2.0.4", "form-data": "^3.0.0", "lodash.flatmap": "^4.5.0",