From 773dde0d63692fc79224190f75a02c578a1ec493 Mon Sep 17 00:00:00 2001 From: Dima Grossman Date: Tue, 5 Dec 2023 14:06:16 +0200 Subject: [PATCH] chore(providers): Update axios versions (#4940) * chore(providers): Update kannel axios * refactor(providers): remove unused imports * fix: axios for twillio --- libs/dal/package.json | 1 - packages/node/package.json | 1 - packages/stateless/package.json | 1 - pnpm-lock.yaml | 46 +++++++++++++++++++++------------ providers/kannel/jest.config.js | 3 +++ providers/kannel/package.json | 2 +- providers/sendgrid/package.json | 2 +- providers/twilio/jest.config.js | 5 +++- providers/twilio/package.json | 2 +- 9 files changed, 39 insertions(+), 24 deletions(-) diff --git a/libs/dal/package.json b/libs/dal/package.json index da644740d84..e5dba0264ff 100644 --- a/libs/dal/package.json +++ b/libs/dal/package.json @@ -25,7 +25,6 @@ "@aws-sdk/s3-request-presigner": "^3.382.0", "@faker-js/faker": "^6.0.0", "@novu/shared": "^0.22.0", - "@sendgrid/mail": "^7.4.2", "JSONStream": "^1.3.5", "archiver": "^5.0.0", "async": "^3.2.0", diff --git a/packages/node/package.json b/packages/node/package.json index 06b137e0027..a702498edf1 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -50,7 +50,6 @@ "uuid": "^9.0.1" }, "devDependencies": { - "@sendgrid/mail": "^7.4.6", "@types/jest": "29.5.2", "@types/lodash.get": "^4.4.6", "@types/lodash.merge": "^4.6.6", diff --git a/packages/stateless/package.json b/packages/stateless/package.json index 5ac47dedc3a..8441733ff74 100644 --- a/packages/stateless/package.json +++ b/packages/stateless/package.json @@ -47,7 +47,6 @@ "lodash.merge": "^4.6.2" }, "devDependencies": { - "@sendgrid/mail": "^7.4.6", "@types/jest": "29.5.2", "@types/lodash.get": "^4.4.6", "@types/lodash.merge": "^4.6.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0dd9561b568..065bbb20aea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1633,9 +1633,6 @@ importers: '@novu/shared': specifier: ^0.22.0 version: link:../shared - '@sendgrid/mail': - specifier: ^7.4.2 - version: 7.7.0 JSONStream: specifier: ^1.3.5 version: 1.3.5 @@ -2629,9 +2626,6 @@ importers: specifier: ^9.0.1 version: 9.0.1 devDependencies: - '@sendgrid/mail': - specifier: ^7.4.6 - version: 7.7.0 '@types/jest': specifier: 29.5.2 version: 29.5.2 @@ -3032,9 +3026,6 @@ importers: specifier: ^4.6.2 version: 4.6.2 devDependencies: - '@sendgrid/mail': - specifier: ^7.4.6 - version: 7.7.0 '@types/jest': specifier: 29.5.2 version: 29.5.2 @@ -4128,8 +4119,8 @@ importers: specifier: ^0.22.0 version: link:../../packages/stateless axios: - specifier: ^0.27.2 - version: 0.27.2 + specifier: ^1.6.2 + version: 1.6.2 devDependencies: '@istanbuljs/nyc-config-typescript': specifier: ^1.0.1 @@ -5352,7 +5343,7 @@ importers: specifier: ^0.22.0 version: link:../../packages/stateless '@sendgrid/mail': - specifier: ^7.4.6 + specifier: ^7.7.0 version: 7.7.0 devDependencies: '@istanbuljs/nyc-config-typescript': @@ -5948,8 +5939,8 @@ importers: specifier: ^0.22.0 version: link:../../packages/stateless twilio: - specifier: ^4.14.1 - version: 4.15.0 + specifier: ^4.19.3 + version: 4.19.3 devDependencies: '@istanbuljs/nyc-config-typescript': specifier: 1.0.2 @@ -20170,12 +20161,14 @@ packages: axios: 0.26.1 transitivePeerDependencies: - debug + dev: false /@sendgrid/helpers@7.7.0: resolution: {integrity: sha512-3AsAxfN3GDBcXoZ/y1mzAAbKzTtUZ5+ZrHOmWQ279AuaFXUNCh9bPnRpN504bgveTqoW+11IzPg3I0WVgDINpw==} engines: {node: '>= 6.0.0'} dependencies: deepmerge: 4.3.1 + dev: false /@sendgrid/mail@7.7.0: resolution: {integrity: sha512-5+nApPE9wINBvHSUxwOxkkQqM/IAAaBYoP9hw7WwgDNQPxraruVqHizeTitVtKGiqWCKm2mnjh4XGN3fvFLqaw==} @@ -20185,6 +20178,7 @@ packages: '@sendgrid/helpers': 7.7.0 transitivePeerDependencies: - debug + dev: false /@sentry-internal/tracing@7.47.0: resolution: {integrity: sha512-udpHnCzF8DQsWf0gQwd0XFGp6Y8MOiwnl8vGt2ohqZGS3m1+IxoRLXsSkD8qmvN6KKDnwbaAvYnK0z0L+AW95g==} @@ -23650,7 +23644,7 @@ packages: dependencies: '@storybook/client-logger': 7.4.2 memoizerific: 1.11.3 - qs: 6.11.1 + qs: 6.11.2 react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -27568,6 +27562,7 @@ packages: follow-redirects: 1.15.2 transitivePeerDependencies: - debug + dev: false /axios@0.27.2: resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==} @@ -32336,7 +32331,7 @@ packages: eslint: 8.51.0 eslint-import-resolver-node: 0.3.7 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.58.0)(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-webpack@0.13.7)(eslint@8.51.0) - has: 1.0.3 + has: 1.0.4 is-core-module: 2.13.0 is-glob: 4.0.3 minimatch: 3.1.2 @@ -36780,7 +36775,7 @@ packages: pretty-format: 27.5.1 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@types/node@16.11.7)(typescript@4.9.5) + ts-node: 10.9.1(@types/node@14.18.42)(typescript@4.9.5) transitivePeerDependencies: - bufferutil - canvas @@ -49415,6 +49410,23 @@ packages: - supports-color dev: false + /twilio@4.19.3: + resolution: {integrity: sha512-3X5Czl9Vg4QFl+2pnfMQ+H8YfEDQ4WeuAmqjUpbK65x0DfmxTCHuPEFWUKVZCJZew6iltJB/1whhVvIKETe54A==} + engines: {node: '>=14.0'} + dependencies: + axios: 1.6.2 + dayjs: 1.11.9 + https-proxy-agent: 5.0.1 + jsonwebtoken: 9.0.0 + qs: 6.11.2 + scmp: 2.1.0 + url-parse: 1.5.10 + xmlbuilder: 13.0.2 + transitivePeerDependencies: + - debug + - supports-color + dev: false + /type-check@0.3.2: resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} engines: {node: '>= 0.8.0'} diff --git a/providers/kannel/jest.config.js b/providers/kannel/jest.config.js index e86e13bab91..61faa20934a 100644 --- a/providers/kannel/jest.config.js +++ b/providers/kannel/jest.config.js @@ -2,4 +2,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', + moduleNameMapper: { + axios: 'axios/dist/node/axios.cjs', + }, }; diff --git a/providers/kannel/package.json b/providers/kannel/package.json index 6e2138c03c0..5c803bab1ad 100644 --- a/providers/kannel/package.json +++ b/providers/kannel/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@novu/stateless": "^0.22.0", - "axios": "^0.27.2" + "axios": "^1.6.2" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.1", diff --git a/providers/sendgrid/package.json b/providers/sendgrid/package.json index 1518b725c56..9ab67d9274d 100644 --- a/providers/sendgrid/package.json +++ b/providers/sendgrid/package.json @@ -46,7 +46,7 @@ }, "dependencies": { "@novu/stateless": "^0.22.0", - "@sendgrid/mail": "^7.4.6" + "@sendgrid/mail": "^7.7.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "1.0.2", diff --git a/providers/twilio/jest.config.js b/providers/twilio/jest.config.js index 8cbf8940ccd..61faa20934a 100644 --- a/providers/twilio/jest.config.js +++ b/providers/twilio/jest.config.js @@ -2,4 +2,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', -}; \ No newline at end of file + moduleNameMapper: { + axios: 'axios/dist/node/axios.cjs', + }, +}; diff --git a/providers/twilio/package.json b/providers/twilio/package.json index a3afcb1fec9..94f69422949 100644 --- a/providers/twilio/package.json +++ b/providers/twilio/package.json @@ -45,7 +45,7 @@ }, "dependencies": { "@novu/stateless": "^0.22.0", - "twilio": "^4.14.1" + "twilio": "^4.19.3" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "1.0.2",