-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve labels for scope and missing deps (#163)
- Loading branch information
1 parent
ce20f55
commit 266b66d
Showing
55 changed files
with
1,046 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10 | ||
16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,20 +47,20 @@ | |
"uuid": "^8.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^12.0.0", | ||
"@types/jest": "^28.1.3", | ||
"@types/node": "^16.11.66", | ||
"@types/semver": "^7.3.6", | ||
"@types/uuid": "^8.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.0.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jest": "^26.6.3", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"eslint": "7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"jest": "^28.1.3", | ||
"prettier": "^2.7.1", | ||
"tap": "^15.0.4", | ||
"ts-jest": "^26.5.6", | ||
"ts-node": "^9.1.1", | ||
"typescript": "4.1.*" | ||
} | ||
"ts-jest": "^28.0.8", | ||
"ts-node": "^8.10.2", | ||
"typescript": "4.8.4" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions
37
test/fixtures/missing-deps-in-lock/npm/missing-required-dev-deps-in-lock/expected-tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"dependencies": { | ||
"adm-zip": { | ||
"labels": { | ||
"scope": "dev" | ||
}, | ||
"name": "adm-zip", | ||
"version": "0.4.7" | ||
}, | ||
"debug": { | ||
"labels": { | ||
"scope": "dev" | ||
}, | ||
"name": "debug", | ||
"version": "2.6.9", | ||
"dependencies": { | ||
"ms": { | ||
"name": "ms", | ||
"version": "unknown", | ||
"dependencies": {}, | ||
"labels": { | ||
"scope": "dev", | ||
"missingLockFileEntry": "true" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"hasDevDependencies": true, | ||
"name": "goof", | ||
"size": 4, | ||
"version": "0.0.3", | ||
"meta": { | ||
"lockfileVersion": 2, | ||
"packageManager": "npm" | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
test/fixtures/missing-deps-in-lock/npm/missing-required-dev-deps-in-lock/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
test/fixtures/missing-deps-in-lock/npm/missing-required-dev-deps-in-lock/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "goof", | ||
"version": "0.0.3", | ||
"description": "A vulnerable todo demo application", | ||
"homepage": "https://snyk.io/", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Snyk/snyk-todo-list-demo-app/" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"adm-zip": "0.4.7", | ||
"debug": "^2.2.0" | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
test/fixtures/missing-deps-in-lock/npm/missing-top-level-deps-in-lock/expected-tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"dependencies": { | ||
"adm-zip": { | ||
"labels": { | ||
"scope": "prod", | ||
"missingLockFileEntry": "true" | ||
}, | ||
"name": "adm-zip", | ||
"version": "0.4.7" | ||
}, | ||
"debug": { | ||
"labels": { | ||
"scope": "prod" | ||
}, | ||
"name": "debug", | ||
"version": "2.6.9", | ||
"dependencies": { | ||
"ms": { | ||
"labels": { | ||
"scope": "prod" | ||
}, | ||
"name": "ms", | ||
"version": "2.0.0" | ||
} | ||
} | ||
} | ||
}, | ||
"hasDevDependencies": false, | ||
"name": "goof", | ||
"size": 4, | ||
"version": "0.0.3", | ||
"meta": { | ||
"lockfileVersion": 2, | ||
"packageManager": "npm" | ||
} | ||
} |
Oops, something went wrong.