Skip to content

Commit

Permalink
Merge pull request #35 from snyk-tech-services/fix/swap-snyk-for-prot…
Browse files Browse the repository at this point in the history
…ect-pkg

fix: use the smaller @snyk/protect instead of snyk for patches
  • Loading branch information
lili2311 authored Sep 28, 2021
2 parents 59ba9f1 + 1f4bd8d commit 42a3e5f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dist
package-lock.json
yarn.lock
.eslintcache
.dccache
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,30 @@
],
"homepage": "https://github.com/snyk-tech-services/snyk2spdx#readme",
"dependencies": {
"debug": "^4.1.1",
"@snyk/protect": "1.724.0",
"debug": "4.3.2",
"lodash": "^4.17.15",
"snyk": "^1.606.0",
"source-map-support": "^0.5.16",
"tslib": "^1.10.0",
"uuid": "8.3.2",
"yargs": "16.2.0"
},
"devDependencies": {
"@semantic-release/exec": "5.0.0",
"@types/debug": "4.1.7",
"@types/jest": "26.0.23",
"@types/lodash": "^4.14.149",
"@types/node": "14.17.1",
"@types/uuid": "8.3.1",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"eslint": "7.27.0",
"eslint-config-prettier": "8.3.0",
"i": "0.3.7",
"jest": "^27.0.1",
"node-notifier": "9.0.1",
"npm": "7.24.1",
"prettier": "2.3.0",
"@semantic-release/exec": "5.0.0",
"semantic-release": "17.4.3",
"ts-jest": "27.0.0",
"ts-node": "8.6.2",
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/snyk:test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function handler(argv: {
} else {
console.log(spdxOutputStringified);
}
} catch (e) {
} catch (e: any) {
debug('Failed to generate data.\n' + e.message);
console.error(
`ERROR! Failed to convert to SPDX. Try running with \`DEBUG=snyk* <command> for more info\`.\nERROR: ${e}`,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/get-input-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function getInputData<InputType>(): Promise<InputType> {
try {
const inputData = await readInputFromStdin();
return JSON.parse(inputData);
} catch (e) {
} catch (e: any) {
throw new Error(`Failed to parse input. ERROR: ${e.message}`);
}
}

0 comments on commit 42a3e5f

Please sign in to comment.