Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.0.3 to 3.1.1 (#3284)
Browse files Browse the repository at this point in the history
Closes #3273
  • Loading branch information
char0n authored Dec 14, 2023
1 parent ca88043 commit 20231b6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 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 @@ -98,7 +98,7 @@
"lint-staged": "=15.2.0",
"lodash": "^4.17.21",
"npm-run-all": "=4.1.5",
"prettier": "^3.0.0",
"prettier": "^3.1.1",
"rimraf": "=5.0.5",
"source-map-explorer": "^2.5.3",
"terser-webpack-plugin": "^5.0.3",
Expand Down
8 changes: 4 additions & 4 deletions src/execute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ function oas3BaseUrl({ spec, pathName, method, server, contextUrl, serverVariabl
servers = isNonEmptyServerList(operationLevelServers) // eslint-disable-line no-nested-ternary
? operationLevelServers
: isNonEmptyServerList(pathItemLevelServers) // eslint-disable-line no-nested-ternary
? pathItemLevelServers
: isNonEmptyServerList(rootLevelServers)
? rootLevelServers
: [DEFAULT_OPENAPI_3_SERVER];
? pathItemLevelServers
: isNonEmptyServerList(rootLevelServers)
? rootLevelServers
: [DEFAULT_OPENAPI_3_SERVER];

// pick the first server that matches the server url
if (server) {
Expand Down
4 changes: 2 additions & 2 deletions src/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ function formatKeyValueBySerializationOption(key, value, skipEncoding, serializa
const escape = skipEncoding
? false
: serializationOption && serializationOption.allowReserved
? 'unsafe'
: 'reserved';
? 'unsafe'
: 'reserved';
const encodeFn = (v) => encodeDisallowedCharacters(v, { escape });
const encodeKeyFn = skipEncoding ? (k) => k : (k) => encodeDisallowedCharacters(k, { escape });

Expand Down

0 comments on commit 20231b6

Please sign in to comment.