Socket
Socket
Sign inDemoInstall

arm-params-merge

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

2

package.json
{
"name": "arm-params-merge",
"version": "1.0.0",
"version": "2.0.0",
"description": "utility to merge arm param file with specified overrides",

@@ -5,0 +5,0 @@ "main": "param-merge.js",

@@ -10,6 +10,10 @@ 'use strict';

var templateFilename = args[0];
var parameterFilename = args[1];
util.log('reading template file');
var template = require(path.resolve(templateFilename));
util.log('reading parameter file');
var filename = args[0];
var fileParams = require(path.resolve(filename));
var values = args.slice(1);
var fileParams = require(path.resolve(parameterFilename));
var values = args.slice(2);

@@ -24,3 +28,7 @@ var params = {};

}
params[bits[0].trim()] = { value: bits[1].trim() };
var key = bits[0].trim();
var value = bits[1].trim();
if(!!template.parameters[key]){
params[key] = { value: value };
}
});

@@ -31,3 +39,3 @@

util.log('writing output file');
fs.writeFile(filename, JSON.stringify(fileParams, null, 2), (err) => {
fs.writeFile(parameterFilename, JSON.stringify(fileParams, null, 2), (err) => {
if(err){

@@ -34,0 +42,0 @@ util.log(err);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc