Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): resolve vulnerability in axios version #256

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ language: node_js
dist: jammy

node_js:
- 14
- 16
- 18
- 20

cache:
npm: false
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This project contains core functionality required by Node.js code generated by t

## Prerequisites
- Node.js version 14 or newer
- Note that v14 is technically *supported* but not officially *guaranteed* as we only test on v16 and higher

## Usage
This package exports a single object containing a number of modules as top level properties.
Expand Down
4 changes: 2 additions & 2 deletions test/unit/request-wrapper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ describe('sendRequest', () => {
mockAxiosInstance.mockResolvedValue(axiosResolveValue);

await expect(requestWrapperInstance.sendRequest(parameters)).rejects.toThrow(
'Error processing HTTP response: SyntaxError: Unexpected end of JSON input'
'Error processing HTTP response: SyntaxError'
);
expect(verboseLogSpy).toHaveBeenCalledTimes(2);
expect(verboseLogSpy.mock.calls[0][0]).toBe(
Expand Down Expand Up @@ -969,7 +969,7 @@ describe('formatError', () => {

expect(() => {
requestWrapperInstance.formatError(newAxiosError);
}).toThrow('Error processing HTTP response: SyntaxError: Unexpected end of JSON input');
}).toThrow('Error processing HTTP response: SyntaxError');
expect(verboseLogSpy).toHaveBeenCalledTimes(2);
expect(verboseLogSpy.mock.calls[0][0]).toBe(
'Response body was supposed to have JSON content but JSON parsing failed.'
Expand Down