Skip to content

Commit

Permalink
Dependency bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Dec 18, 2021
1 parent 0247b97 commit b29c54e
Show file tree
Hide file tree
Showing 4 changed files with 1,181 additions and 2,470 deletions.
4 changes: 2 additions & 2 deletions __tests__/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('util', () => {

try {
checkParameters(action)
} catch (e) {
expect(e.message).toMatch(
} catch (error) {
expect(extractErrorMessage(error)).toMatch(
'No deployment token was provided. You must provide the action with a Personal Access Token scoped to user:read or org:read.'
)
}
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
"@types/jest": "27.0.3",
"@types/mustache": "4.1.2",
"@types/node": "17.0.0",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"eslint": "7.32.0",
"@typescript-eslint/eslint-plugin": "5.7.0",
"@typescript-eslint/parser": "5.7.0",
"eslint": "8.5.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-jest": "25.3.0",
"eslint-plugin-prettier": "4.0.0",
"jest": "25.5.4",
"jest-circus": "26.6.3",
"jest": "27.4.5",
"jest-circus": "27.4.5",
"nock": "13.2.1",
"prettier": "2.2.1",
"ts-jest": "25.5.1",
"typescript": "3.9.10"
"prettier": "2.5.1",
"ts-jest": "27.1.2",
"typescript": "4.5.4"
}
}
6 changes: 3 additions & 3 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export const suppressSensitiveInformation = (
): string => {
let value = str

const orderedByLength = ([action.token, action.token].filter(
Boolean
) as string[]).sort((a, b) => b.length - a.length)
const orderedByLength = (
[action.token, action.token].filter(Boolean) as string[]
).sort((a, b) => b.length - a.length)

for (const find of orderedByLength) {
value = replaceAll(value, find, '***')
Expand Down
Loading

0 comments on commit b29c54e

Please sign in to comment.