Skip to content

Commit

Permalink
feat(deps): update axios from 0.26.1 to 1.7.2 (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss authored Jul 9, 2024
1 parent 90e3e1e commit c27de87
Show file tree
Hide file tree
Showing 10 changed files with 16,545 additions and 9,364 deletions.
6 changes: 5 additions & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ module.exports = {
'!**/node_modules/**',
'!**/index.ts',
'!**/register.ts'
]
],
moduleNameMapper: {
// see https://github.com/uuidjs/uuid/issues/451
uuid: require.resolve('uuid')
}
};
25,821 changes: 16,498 additions & 9,323 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"homepage": "https://github.com/NeuraLegion/sectester-js#readme",
"dependencies": {
"@har-sdk/core": "^1.4.3",
"axios": "^0.26.1",
"axios-rate-limit": "^1.3.0",
"axios": "^1.7.2",
"axios-rate-limit": "^1.4.0",
"chalk": "^4.1.2",
"ci-info": "^3.3.0",
"content-type": "^1.0.4",
Expand All @@ -94,7 +94,7 @@
"tslib": "~2.3.1",
"tsyringe": "^4.6.0",
"tty-table": "^4.1.5",
"uuid": "^8.3.2"
"uuid": "^10.0.0"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
Expand All @@ -110,7 +110,7 @@
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/content-type": "^1.1.5",
"@types/jest": "27.4.1",
"@types/jest": "29.5.12",
"@types/node": "18.7.1",
"@types/request-promise": "^4.1.48",
"@types/semver": "^7.3.9",
Expand All @@ -124,14 +124,14 @@
"eslint-plugin-jest": "^26.8.3",
"husky": "^8.0.1",
"is-ci": "~3.0.1",
"jest": "27.5.1",
"jest": "29.7.0",
"lint-staged": "^15.2.7",
"nock": "^13.2.9",
"nx": "14.5.6",
"prettier": "2.7.1",
"semantic-release": "^22.0.12",
"socket.io": "^4.7.5",
"ts-jest": "27.1.4",
"ts-jest": "29.1.5",
"ts-mockito": "^2.6.1",
"typescript": "4.7.4"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/core/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
export default {
displayName: 'core',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json'
}
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json'
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/core'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'reflect-metadata';
import { ExponentialBackoffRetryStrategy } from './ExponentialBackoffRetryStrategy';
import { HttpCommandError } from '../exceptions';
import { AxiosRequestConfig } from 'axios';
import { AxiosHeaders, InternalAxiosRequestConfig } from 'axios';

class TestError extends Error {
constructor(
Expand Down Expand Up @@ -103,7 +103,10 @@ describe('ExponentialBackoffRetryStrategy', () => {
const retryStrategy = new ExponentialBackoffRetryStrategy({
maxDepth: 1
});
const config: AxiosRequestConfig<undefined> = { method: 'POST' };
const config: InternalAxiosRequestConfig = {
method: 'POST',
headers: new AxiosHeaders()
};
const error = new HttpCommandError({
config,
name: 'Error',
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/exceptions/HttpCommandError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SecTesterError } from './SecTesterError';
import { isStream, isPresent } from '../utils';
import { AxiosError } from 'axios';

export class HttpCommandError extends SecTesterError {
Expand All @@ -17,7 +16,7 @@ export class HttpCommandError extends SecTesterError {
} = cause;

this.method = method;
this.message = !isStream(data) && isPresent(data) ? data : message;
this.message = data && typeof data === 'string' ? data : message;
this.status = status;
this.code = code;
}
Expand Down
12 changes: 6 additions & 6 deletions packages/repeater/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
export default {
displayName: 'repeater',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json'
}
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json'
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/repeater'
Expand Down
12 changes: 6 additions & 6 deletions packages/reporter/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
export default {
displayName: 'reporter',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json'
}
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json'
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/reporter'
Expand Down
12 changes: 6 additions & 6 deletions packages/runner/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
export default {
displayName: 'runner',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json'
}
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json'
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/runner'
Expand Down
12 changes: 6 additions & 6 deletions packages/scan/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
export default {
displayName: 'scan',
preset: '../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json'
}
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json'
}
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/scan'
Expand Down

0 comments on commit c27de87

Please sign in to comment.