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

@golemio/cli

Package Overview
Dependencies
Maintainers
0
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golemio/cli - npm Package Compare versions

Comparing version

to
1.7.1-dev.1488617730

7

dist/commands/asyncapi.js

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

const [action] = parameters.array;
let { header: aspsHeaderFilePath, output: aspsMergedOutputFilePath, asps: aspsFilePath, input: fileInput, container: containerName, } = parameters.options;
let { header: aspsHeaderFilePath, output: aspsMergedOutputFilePath, asps: aspsFilePath, input: fileInput, } = parameters.options;
const asyncapiConfig = {

@@ -17,3 +17,2 @@ aspsHeaderFilePath: aspsHeaderFilePath !== null && aspsHeaderFilePath !== void 0 ? aspsHeaderFilePath : null,

fileInputPath: fileInput !== null && fileInput !== void 0 ? fileInput : null,
containerName: containerName !== null && containerName !== void 0 ? containerName : null,
};

@@ -43,3 +42,3 @@ switch (action) {

case "upload": {
if (!asyncapiConfig.aspsMergedOutputFilePath || !asyncapiConfig.fileInputPath || !asyncapiConfig.containerName) {
if (!asyncapiConfig.aspsMergedOutputFilePath || !asyncapiConfig.fileInputPath) {
print.error("Missing required parameters");

@@ -49,3 +48,3 @@ process.exitCode = 1;

}
const { isError, message } = await (0, asyncapi_utils_1.uploadFile)(asyncapiConfig.fileInputPath, asyncapiConfig.aspsMergedOutputFilePath, asyncapiConfig.containerName);
const { isError, message } = await (0, asyncapi_utils_1.uploadFile)(asyncapiConfig.fileInputPath, asyncapiConfig.aspsMergedOutputFilePath);
if (isError) {

@@ -52,0 +51,0 @@ print.error(message);

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

exports.generateAsyncApiConfig = generateAsyncApiConfig;
const uploadFile = async (input, output, container) => {
const uploadFile = async (input, output) => {
try {

@@ -74,3 +74,3 @@ const util = require("util");

const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${process.env.AZURE_BLOB_ACCOUNT}.blob.core.windows.net`, credentials);
const containerClient = blobServiceClient.getContainerClient(container);
const containerClient = blobServiceClient.getContainerClient(process.env.AZURE_BLOB_CONTAINER_NAME);
const blobClient = containerClient.getBlockBlobClient(file);

@@ -77,0 +77,0 @@ const filePath = path_1.default.resolve(process.cwd(), file);

{
"name": "@golemio/cli",
"version": "1.7.1-dev.1481757873",
"version": "1.7.1-dev.1488617730",
"description": "Collection of executables intended for use with Golemio services and modules",

@@ -5,0 +5,0 @@ "main": "bin/golemio.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet