Skip to content

feat: npm audit fix #152

feat: npm audit fix

feat: npm audit fix #152

Triggered via pull request July 5, 2024 21:05
Status Failure
Total duration 44s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
build: src/app.ts#L28
Prefer `String#replaceAll()` over `String#replace()`
build: src/app.ts#L49
Prefer `RegExp#test(…)` over `String#match(…)`
build: src/app.ts#L98
Prefer `utf8` over `utf-8`
build: src/app.ts#L100
/\b[2-6]{1}\d{3}[\s-]*\d{4}[\s-]*\d{4}[\s-]*\d{4}[\s-]*\b/gm can be optimized to /\b[2-6]\d{3}(?:[\s-]*\d{4}){3}[\s-]*\b/gm
build: src/app.ts#L101
/\b[1-9]{1}\d{3}[\s-]*\d{4}[\s-]*\d{4}[\s-]*\d{4}[\s-]*\b/gm can be optimized to /\b[1-9]\d{3}(?:[\s-]*\d{4}){3}[\s-]*\b/gm
build: src/app.ts#L106
Prefer `.some(…)` over non-zero length check from `.filter(…)`
build: test/fixtures/javascript/good.js#L7
This number literal will lose precision at runtime
build: test/fixtures/typescript/bad.ts#L7
'cardNumberNoSpaces' is assigned a value but never used. Allowed unused vars must match /^_+/u
build: test/fixtures/typescript/bad.ts#L8
'cardNumberSingleSpace' is assigned a value but never used. Allowed unused vars must match /^_+/u
build: test/fixtures/typescript/bad.ts#L9
'cardNumberSingleDash' is assigned a value but never used. Allowed unused vars must match /^_+/u
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v1, actions/cache@preview. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-node@v1, actions/cache@preview. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/