@cumulus/cumulus-message-adapter-js
Advanced tools
Comparing version
@@ -9,2 +9,18 @@ # Changelog | ||
## Unreleased | ||
## [v2.0.5] 2022-05-10 | ||
### Fixed | ||
- **CUMULUS-2920** | ||
- Handled EPIPE exception when writing to stdin of an exited CMA process | ||
### Updated | ||
- **CUMULUS-2920** | ||
- Update dev dependencies to allow inter-version compatibility | ||
- Update package-lock.json to use new dependencies/newer npm format | ||
- Update circleCi build to use npm@8.6.0 | ||
## [v2.0.4] 2021-12-09 | ||
@@ -11,0 +27,0 @@ |
@@ -89,2 +89,5 @@ "use strict"; | ||
}); | ||
cmaProcess.stdin.on('error', (error) => { | ||
console.log(`CMA stdin on error: ${error.message}`); | ||
}); | ||
cmaProcess.stderr.on('data', (data) => { | ||
@@ -176,3 +179,3 @@ errorObj.stderrBuffer += String(data); | ||
const rl = readline.createInterface({ | ||
input: cmaProcess.stdout | ||
input: cmaProcess.stdout, | ||
}); | ||
@@ -197,3 +200,3 @@ let lambdaTimer; | ||
context, | ||
schemas | ||
schemas, | ||
})); | ||
@@ -211,3 +214,3 @@ cmaStdin.write('\n<EOC>\n'); | ||
schemas, | ||
context | ||
context, | ||
})); | ||
@@ -230,3 +233,3 @@ cmaStdin.write('\n<EOC>\n'); | ||
message_config: loadNestedEventOutput.messageConfig, | ||
schemas | ||
schemas, | ||
})); | ||
@@ -258,3 +261,3 @@ cmaStdin.write('\n<EOC>\n'); | ||
return { | ||
...cumulusMessage, payload: null, exception: error.name | ||
...cumulusMessage, payload: null, exception: error.name, | ||
}; | ||
@@ -261,0 +264,0 @@ } |
@@ -1,3 +0,3 @@ | ||
export { generateCMASpawnArguments, invokeCumulusMessageAdapter, runCumulusTask } from './cma'; | ||
export { generateCMASpawnArguments, invokeCumulusMessageAdapter, runCumulusTask, } from './cma'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@cumulus/cumulus-message-adapter-js", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Cumulus message adapter", | ||
@@ -17,3 +17,4 @@ "main": "dist/index.js", | ||
"test/test*.js" | ||
] | ||
], | ||
"timeout": "15m" | ||
}, | ||
@@ -45,4 +46,4 @@ "publishConfig": { | ||
"@types/sinon": "^9.0.4", | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"@typescript-eslint/parser": "^2.29.0", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"ava": "^3.8.1", | ||
@@ -52,6 +53,6 @@ "babel-eslint": "^10.0.3", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-airbnb-typescript": "^7.2.1", | ||
"eslint-config-airbnb-typescript": "^14.0.1", | ||
"eslint-plugin-eslint-comments": "^3.0.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-jsdoc": "^22.1.0", | ||
"eslint-plugin-jsdoc": "^38.1.6", | ||
"eslint-plugin-lodash": "^2.7.0", | ||
@@ -58,0 +59,0 @@ "eslint-plugin-node": "^7.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58215
1.15%486
0.62%2
100%