Commit Graph

12 Commits

Author SHA1 Message Date
Naoki Oketani
d5d84ff3f1 fix(lint): resolve @typescript-eslint/no-explicit-any warnings 2025-05-07 12:11:12 +00:00
Naoki Oketani
fa975d057b fix: resolve prettier and eslint conflict by removing bracketSpacing: false 2025-05-03 12:32:25 +00:00
Naoki Oketani
ed6e8d71b4 feat: migrate codebase to ES Modules 2025-05-03 02:15:44 +00:00
Naoki Oketani
2564984eab refactor(testing): migrate from Jest to Vitest for testing framework 2025-05-02 14:03:34 +00:00
Naoki Oketani
b3d30b2367 chore(package): bump jest from 27.2.5 to 29.3.1 2022-12-18 14:09:18 +09:00
sgkiokas
c4cd169835 feat: add the ability to run with '--json' and output the result (#78)
* addition-of-json-flag

* Set output of npn audit
2020-12-12 20:56:05 +09:00
sgkiokas
42e6d27a29 feat: add the ability to run with '--production' (#75)
* feat: add the ability to run with '--production'

Adding the config options to run npm audit with the --production flag.

Contributes to: #74

Signed-off-by: Stelios Gkiokas <s_giokas@hotmail.com>

* fix: add tests

Adding the relevant tests for the new production flag.

Contributes to: #74

Signed-off-by: Stelios Gkiokas <s_giokas@hotmail.com>
2020-11-12 19:33:56 +09:00
Spencer Small
b0bc596f8e Catch errors thrown by Audit.run and increase child process buffer size (#67)
* Audit.run does not need to be async

* Set max buffer size for npm audit subprocess to 10MiB
2020-07-14 18:59:28 +09:00
Naoki Oketani
ad3449ef9c filter vulnerabilities by audit_level (#55)
* filter vulnerabilities by audit_level

* update README.md

* fix test cases

* restrict audit_level value

* update dist/index.js
2020-03-21 07:08:53 +09:00
Naoki Oketani
0e9661d4a3 Add unit test for error handling (#30) 2019-12-14 12:56:45 +09:00
Naoki Oketani
a0a6093710 add unit test and cleanup (#28)
* remove unnessary import

* use mock for child_process.spawnSync()

* document useful resources

* use v1.1.0 for daily scan
2019-12-13 16:09:10 +09:00
Naoki Oketani
14d92785e4 Set Issue labels by inputs & add unit test (#12)
* Set Issue labels by inputs

* Add unit test
2019-12-09 12:43:13 +09:00