Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stackaid/stackaid-json-generator

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackaid/stackaid-json-generator - npm Package Compare versions

Comparing version
1.9.2
to
1.9.3
+2
-1
dist/cjs/go.js

@@ -28,3 +28,3 @@ "use strict";

const listDirectDeps = (dir, sourceDir) => {
let output = (0, child_process_1.execSync)(`go list -f '{{if not .Indirect}}{{.}}{{end}}' -m all`, { cwd: path_1.default.resolve(sourceDir, dir) }).toString();
let output = (0, child_process_1.execSync)(`go list -f '{{if not .Indirect}}{{.}}{{end}}' -m all`, { cwd: path_1.default.resolve(sourceDir, dir), maxBuffer: 1024 * 1024 * 10 }).toString();
return output

@@ -42,2 +42,3 @@ .split('\n')

cwd: path_1.default.resolve(sourceDir, dir),
maxBuffer: 1024 * 1024 * 10,
}).toString();

@@ -44,0 +45,0 @@ const graph = {};

@@ -83,3 +83,4 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const result = (yield this.graphql(`
try {
const result = (yield this.graphql(`
query getRepositorySummary(

@@ -103,4 +104,10 @@ $owner: String!

`, { repo, owner, cursor }));
const { dependencyGraphManifests: { edges }, } = result.repository;
return edges;
const { dependencyGraphManifests: { edges }, } = result.repository;
return edges;
}
catch (e) {
// Typically happens when repo cannot be found
console.log(e);
return [];
}
});

@@ -107,0 +114,0 @@ },

@@ -22,3 +22,3 @@ import lodash from 'lodash';

export const listDirectDeps = (dir, sourceDir) => {
let output = execSync(`go list -f '{{if not .Indirect}}{{.}}{{end}}' -m all`, { cwd: path.resolve(sourceDir, dir) }).toString();
let output = execSync(`go list -f '{{if not .Indirect}}{{.}}{{end}}' -m all`, { cwd: path.resolve(sourceDir, dir), maxBuffer: 1024 * 1024 * 10 }).toString();
return output

@@ -35,2 +35,3 @@ .split('\n')

cwd: path.resolve(sourceDir, dir),
maxBuffer: 1024 * 1024 * 10,
}).toString();

@@ -37,0 +38,0 @@ const graph = {};

@@ -68,3 +68,4 @@ import lodash from 'lodash';

async getRepositorySummaryPage(owner, repo, cursor = '') {
const result = (await this.graphql(`
try {
const result = (await this.graphql(`
query getRepositorySummary(

@@ -88,4 +89,10 @@ $owner: String!

`, { repo, owner, cursor }));
const { dependencyGraphManifests: { edges }, } = result.repository;
return edges;
const { dependencyGraphManifests: { edges }, } = result.repository;
return edges;
}
catch (e) {
// Typically happens when repo cannot be found
console.log(e);
return [];
}
},

@@ -92,0 +99,0 @@ async getRepositorySummary(owner, repo, glob = '') {

{
"name": "@stackaid/stackaid-json-generator",
"version": "1.9.2",
"version": "1.9.3",
"private": false,

@@ -5,0 +5,0 @@ "description": "Generate a stackaid.json file based on your repository's dependency graph",