Skip to content

Commit

Permalink
fix: migrate from deprecated projects api
Browse files Browse the repository at this point in the history
* chore: migrate projects v1 calls

* feat: wip migrate to new endpoints

* feat: update tests and mocks

* fix: update snyk client

* feat: update .snyk file

* fix: update styling

* feat: api version as a const

---------

Co-authored-by: Ofek Atar <[email protected]>
  • Loading branch information
logangeorgebrown and ofekatr authored Oct 19, 2023
1 parent f947098 commit bfe5644
Show file tree
Hide file tree
Showing 12 changed files with 315 additions and 504 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
snyk: snyk/[email protected]

jobs:
build-test-monitor:
docker:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**/.DS_Store
dist
node_modules
node_modules
.idea
.eslintcache
191 changes: 6 additions & 185 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,188 +1,9 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.19.0
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
SNYK-JS-TAR-1579147:
- snyk-api-ts-client > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
- snyk-api-ts-client > snyk-request-manager > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
SNYK-JS-TAR-1579152:
- snyk-api-ts-client > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
- snyk-api-ts-client > snyk-request-manager > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
SNYK-JS-TAR-1579155:
- snyk-api-ts-client > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
- snyk-api-ts-client > snyk-request-manager > snyk > tar:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
SNYK-JS-AXIOS-1579269:
- snyk-api-ts-client > axios:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
- snyk-api-ts-client > snyk-request-manager > axios:
reason: None given
expires: '2021-10-05T13:54:01.451Z'
SNYK-JS-ANSIREGEX-1583908:
- '@types/jest > pretty-format > ansi-regex':
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- '@types/jest > jest-diff > pretty-format > ansi-regex':
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- yargs > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- yargs > cliui > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk > @snyk/fix > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- yargs > cliui > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- yargs > cliui > wrap-ansi > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk > @snyk/fix > ora > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/fix > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- yargs > cliui > wrap-ansi > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/fix > ora > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.121Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > wrap-ansi > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > widest-line > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > wrap-ansi > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > wrap-ansi > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > widest-line > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > wrap-ansi > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-13T07:44:03.122Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T12:19:40.579Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.540Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.540Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.541Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.541Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.541Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T14:54:22.541Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.239Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.239Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.239Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.239Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.240Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: no upgrade available
expires: '2021-10-16T14:59:01.240Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
- snyk-api-ts-client > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
- snyk-api-ts-client > snyk-request-manager > snyk > @snyk/inquirer > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
- snyk-api-ts-client > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
- snyk-api-ts-client > snyk-request-manager > snyk > update-notifier > boxen > ansi-align > string-width > strip-ansi > ansi-regex:
reason: None given
expires: '2021-10-16T15:15:48.406Z'
SNYK-JS-SSH2-1656673:
- snyk-api-ts-client > snyk > snyk-docker-plugin > docker-modem > ssh2:
reason: None given
expires: '2021-10-22T08:01:12.198Z'
- snyk-api-ts-client > snyk-request-manager > snyk > snyk-docker-plugin > docker-modem > ssh2:
reason: None given
expires: '2021-10-22T08:01:12.198Z'
patch: {}
SNYK-JS-SEMVER-3247795:
- '*':
reason: No upgrade path
expires: '2023-11-19T13:54:01.451Z'
patch: {}
Loading

0 comments on commit bfe5644

Please sign in to comment.