Skip to content

Commit

Permalink
Merge pull request #51 from snyk/feat/package-lock-filter
Browse files Browse the repository at this point in the history
feat: allow fetching package-lock.json to support npm5 projects
  • Loading branch information
darscan authored Jun 20, 2017
2 parents 574bf0c + 81dfc78 commit 7684fc0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"path": "/projects/:project/repos/:repo/browse*/package.json",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*/package-lock.json",
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
Expand Down
14 changes: 14 additions & 0 deletions client-templates/github/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
"path": "commits.*.modified.*",
"value": "package.json"
},
{
"path": "commits.*.added.*",
"value": "package-lock.json"
},
{
"path": "commits.*.modified.*",
"value": "package-lock.json"
},
{
"path": "commits.*.added.*",
"value": "Gemfile.lock"
Expand Down Expand Up @@ -103,6 +111,12 @@
"path": "/:name/:repo/:branch*/package.json",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/:name/:repo/:branch*/package-lock.json",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
Expand Down

0 comments on commit 7684fc0

Please sign in to comment.