@cumulus/cumulus-message-adapter-js
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -10,3 +10,3 @@ import { Context } from 'aws-lambda'; | ||
*/ | ||
export declare function generateCMASpawnArguments(command: string): Promise<[string, string[]]>; | ||
export declare function generateCMASpawnArguments(command: string): Promise<[string, string[], Object]>; | ||
/** | ||
@@ -13,0 +13,0 @@ * Invoke the cumulus-message-adapter |
@@ -52,6 +52,6 @@ "use strict"; | ||
if (systemPython && process.env.USE_CMA_BINARY !== 'true') { | ||
return [systemPython, [`${adapterDir}`, command]]; | ||
return [systemPython, [`${adapterDir}`, command], { env: { ...process.env, PYTHONUTF8: 1 } }]; | ||
} | ||
// If there is no system python, attempt use of pre-packaged CMA binary | ||
return [`${adapterDir}/cma_bin/cma`, [command]]; | ||
return [`${adapterDir}/cma_bin/cma`, [command], { env: { ...process.env, PYTHONUTF8: 1 } }]; | ||
} | ||
@@ -58,0 +58,0 @@ exports.generateCMASpawnArguments = generateCMASpawnArguments; |
{ | ||
"name": "@cumulus/cumulus-message-adapter-js", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Cumulus message adapter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
51404
5