Skip to content

Commit 2f9d8e0

Browse files
authored
Merge pull request #19 from nodesource/fix/soc2-dependency-vulnerabilities
fix: resolve SOC2 security vulnerabilities in dependencies
2 parents 1f10036 + 1f6a204 commit 2f9d8e0

5 files changed

Lines changed: 6896 additions & 2195 deletions

File tree

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ const analyze = async ({
88
dir,
99
tree,
1010
token,
11-
pageSize: pageSize = 50,
12-
concurrency: concurrency = 5,
13-
onPkgs: onPkgs = () => {},
14-
filter: filter = () => true,
11+
pageSize = 50,
12+
concurrency = 5,
13+
onPkgs = () => {},
14+
filter = () => true,
1515
url
1616
}) => {
1717
if (!tree) tree = await readUniversalTree(dir)
1818
const pkgs = filterPkgs(tree, filter)
1919
onPkgs(pkgs)
20-
let data = new Set()
20+
const data = new Set()
2121
const pages = splitSet(pkgs, pageSize)
2222
const batches = splitSet(pages, concurrency)
2323
for (const batch of batches) {

lib/graphql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
const { GraphQLClient } = require('graphql-request')
66

7-
const NCMAPI_URL = process.env.NCMAPI_URL || 'https://api.nodesource.com/ncm2/api/v1'
7+
const NCMAPI_URL = process.env.NCMAPI_URL || 'https://api.ncm.nodesource.com/ncm2/api/v2/graphql'
88

99
module.exports = (opts, query, variables) => {
1010
if (typeof opts === 'string') {

0 commit comments

Comments
 (0)