Skip to content

Commit

Permalink
Bump query-string to 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Aug 31, 2023
1 parent eacdc75 commit 674017a
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 47 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'@babel/preset-env',
{
targets: {
node: 12,
node: 16,
},
shippedProposals: true,
},
Expand Down
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const esModules = [
// query-string and its dependencies
'query-string',
'decode-uri-component',
'split-on-first',
'filter-obj',
];

module.exports = {
testMatch: ['<rootDir>/tests/**/*.test.js'],
testPathIgnorePatterns: ['/node_modules/'],
Expand All @@ -13,4 +21,7 @@ module.exports = {
},
testEnvironment: 'node',
restoreMocks: true,
transformIgnorePatterns: esModules.length
? [`/node_modules/(?!${esModules.join('|')})`]
: [],
};
92 changes: 49 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"form-data": "^4.0.0",
"got": "^11.8.2",
"hash.js": "^1.1.7",
"query-string": "^7.0.1",
"query-string": "^8.1.0",
"tunnel": "^0.0.6",
"yargs": "^17.2.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {spawn} from 'child_process';
import got from 'got';
import FormData from 'form-data';
import {camelCase} from 'change-case';
import {stringify} from 'query-string';
import queryString from 'query-string';

import {
createHMAC,
Expand Down Expand Up @@ -561,7 +561,7 @@ export default class SauceLabs {
* stringify queryParams if stringifyOptions exists within description
*/
const modifiedParams = description.stringifyOptions
? stringify(body, description.stringifyOptions)
? queryString.stringify(body, description.stringifyOptions)
: body;

/**
Expand Down

0 comments on commit 674017a

Please sign in to comment.