🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fargate-helper

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fargate-helper - npm Package Compare versions

Comparing version

to
0.4.9-0

25

lib/FargateHelper.js

@@ -32,11 +32,9 @@ const AWS = require("aws-sdk");

const fileString = fs.readFileSync(value, "UTF-8");
console.log(`ENV-FILE:\n${fileString}`)
const lines = fileString.split("\n");
for (const line of lines) {
if (line.trim().indexOf("=") === -1) {
continue;
}
const keyValue = line.trim().split(/=(.+)/);
const envKey = keyValue[0];
options.env[envKey] = keyValue[1];
}
FargateHelper._linesToOptions(lines)
} else if (key == "envContents") {
// Read in an env file
const lines = value.split(" ");
FargateHelper._linesToOptions(lines)
} else {

@@ -228,4 +226,15 @@ options[key] = value;

}
static _linesToOptions(options, lines) {
for (const line of lines) {
if (line.trim().indexOf("=") === -1) {
continue;
}
const keyValue = line.trim().split(/=(.+)/);
const envKey = keyValue[0];
options.env[envKey] = keyValue[1];
}
}
}
module.exports = FargateHelper;
{
"name": "fargate-helper",
"version": "0.4.8",
"version": "0.4.9-0",
"description": "Helper scripts for deploying to Fargate",

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