New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jitesoft/audit-for-gitlab

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitesoft/audit-for-gitlab - npm Package Compare versions

Comparing version

to
0.0.7

6

bin.js

@@ -13,2 +13,4 @@ "use strict";

var _os = require("os");
var _fs = require("fs");

@@ -37,3 +39,5 @@

return new _promise.default((resolve, reject) => {
(0, _child_process.exec)(`cd ${process.cwd()} && npm audit --json`, async (e, stdout, stderr) => {
(0, _child_process.exec)('npm audit --json', {
maxBuffer: Math.round((0, _os.freemem)() * 0.85)
}, async (e, stdout, stderr) => {
return resolve(JSON.parse(stdout));

@@ -40,0 +44,0 @@ });

5

index.js

@@ -0,1 +1,2 @@

import { freemem } from 'os';
import { promises as fs } from 'fs';

@@ -19,4 +20,4 @@ import { exec } from 'child_process';

return new Promise((resolve, reject) => {
exec(`cd ${process.cwd()} && npm audit --json`, async (e, stdout, stderr) => {
return resolve(JSON.parse(stdout));
exec('npm audit --json', { maxBuffer: Math.round(freemem() * 0.85) }, async (e, stdout, stderr) => {
return resolve(JSON.parse(stdout));
});

@@ -23,0 +24,0 @@ });

{
"name": "@jitesoft/audit-for-gitlab",
"version": "0.0.6",
"version": "0.0.7",
"description": "Tiny converter to convert npm audit report into gitlab-ci vulnerability report format.",

@@ -5,0 +5,0 @@ "main": "run.js",