New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@sei-atl/devops

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sei-atl/devops - npm Package Compare versions

Comparing version
1.0.16
to
1.0.17
+7
-0
bin/module.js

@@ -63,4 +63,11 @@ #!/usr/bin/env node

break;
case "print-epoch":
let epoch = (new Date()).getTime()+"";
console.log(epoch);
break;
case "pre-package-yaml":
require('..lib/utils.js').prePackageYaml(args);
break;
default:
console.log("you need to supply a command");
}

@@ -185,3 +185,16 @@ const encryptionHelper = require('@sei-atl/encryption-helper');

});
},
prePackageYaml: (args) => {
let yamlBoost = require('yaml-boost');
let fs = require('fs');
let inPath = args.in;
let outPath = args.out;
let loaded = yamlBoost.load(inPath, args);
let dumped = yamlBoost.dump(loaded);
fs.writeFileSync(outPath,dumped);
}
};
+2
-1
{
"name": "@sei-atl/devops",
"version": "1.0.16",
"version": "1.0.17",
"description": "",

@@ -22,2 +22,3 @@ "main": "./lib/index.js",

"unidecode": "^0.1.8",
"yaml-boost": "^1.9.0",
"yamljs": "^0.3.0"

@@ -24,0 +25,0 @@ },

let { assert, expect } = require('../../node_modules/chai');
let utils = require('../../lib/utils.js');
let fs = require('fs');

@@ -14,2 +15,20 @@ describe('Testing the devops cli', function() {

});
describe('Testing prePackage', function() {
it('should pre package a yaml template', function(done) {
let uid = (new Date()).getTime()+"";
let inPath = "/tmp/"+uid;
let outPath = "/tmp/packaged-"+uid;
fs.writeFileSync("/tmp/"+uid,"Test:\n Test2: value");
utils.prePackageYaml({
in: inPath,
out: outPath
});
let packaged = fs.readFileSync(outPath,'utf8');
expect(packaged).to.equal("Test:\n Test2: value\n");
fs.unlinkSync(inPath);
fs.unlinkSync(outPath);
done();
});
});
});