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

@cumulus/cumulus-message-adapter-js

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/cumulus-message-adapter-js - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

23

CHANGELOG.md

@@ -9,2 +9,7 @@ # Changelog

## [v1.0.6] - 2018-11-07
### Added
- Add environment variable `REINGEST_GRANULE` to indicate if the granule is manually reingested [CUMULUS-906]
## [v1.0.5] - 2018-10-10

@@ -30,3 +35,3 @@

- Evironment variables for task name, task version, and execution name.
- Environment variables for task name, task version, and execution name.

@@ -43,10 +48,12 @@ ## [v1.0.1] - 2018-03-08

[Unreleased]:
https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.5...HEAD
https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.6...HEAD
[v1.0.6]:
https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.5...v1.0.6
[v1.0.5]:
https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.4...v1.0.5
https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.4...v1.0.5
[v1.0.4]:
https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.3...v1.0.4
[v1.0.3]: https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.2...v1.0.3
[v1.0.2]: https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.1...v1.0.2
[v1.0.1]: https://github.com/cumulus-nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.0...v1.0.1
[v1.0.0]: https://github.com/cumulus-nasa/cumulus-message-adapter-js/tree/v1.0.0
https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.3...v1.0.4
[v1.0.3]: https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.2...v1.0.3
[v1.0.2]: https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.1...v1.0.2
[v1.0.1]: https://github.com/nasa/cumulus-cumulus-message-adapter-js/compare/v1.0.0...v1.0.1
[v1.0.0]: https://github.com/nasa/cumulus-message-adapter-js/tree/v1.0.0

@@ -9,3 +9,3 @@ # Contributing

If you have any questions or ideas, or notice any problems or bugs, first [search open issues](https://github.com/cumulus-nasa/cumulus-message-adapter-js/issues) to see if the issue has already been submitted. We may already be working on the issue. If you think your issue is new, you're welcome to [create a new issue](https://github.com/cumulus-nasa/cumulus-message-adapter-js/issues/new).
If you have any questions or ideas, or notice any problems or bugs, first [search open issues](https://github.com/nasa/cumulus-message-adapter-js/issues) to see if the issue has already been submitted. We may already be working on the issue. If you think your issue is new, you're welcome to [create a new issue](https://github.com/nasa/cumulus-message-adapter-js/issues/new).

@@ -19,3 +19,3 @@ ## Pull Requests

* If an issue does't already exist, submit one (see above)
* [Create a pull request](https://help.github.com/articles/creating-a-pull-request/) from your fork into the target branch of the cumulus-nasa/cumulus-message-adapter-js repo
* [Create a pull request](https://help.github.com/articles/creating-a-pull-request/) from your fork into the target branch of the nasa/cumulus-message-adapter-js repo
* Be sure to [mention the corresponding issue number](https://help.github.com/articles/closing-issues-using-keywords/) in the PR description, i.e. "Fixes Issue #10"

@@ -22,0 +22,0 @@ * Upon submission of a pull request, the Cumulus development team will review the code

@@ -162,3 +162,8 @@ 'use strict';

const promisedNestedEvent = promisedRemoteEvent
.then((event) => loadNestedEvent(event, context, schemas));
.then((event) => {
// indicate if the granule is manually reingested
process.env.REINGEST_GRANULE = (event.meta.reingestGranule === true);
return loadNestedEvent(event, context, schemas);
});
const promisedTaskOutput = promisedNestedEvent

@@ -165,0 +170,0 @@ .then((nestedEvent) => taskFunction(nestedEvent, context));

{
"name": "@cumulus/cumulus-message-adapter-js",
"version": "1.0.5",
"version": "1.0.6",
"description": "Cumulus message adapter",

@@ -23,3 +23,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/cumulus-nasa/cumulus-message-adapter-js.git"
"url": "git+https://github.com/nasa/cumulus-message-adapter-js.git"
},

@@ -32,5 +32,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/cumulus-nasa/cumulus-message-adapter-js/issues"
"url": "https://github.com/nasa/cumulus-message-adapter-js/issues"
},
"homepage": "https://github.com/cumulus-nasa/cumulus-message-adapter-js#readme",
"homepage": "https://github.com/nasa/cumulus-message-adapter-js#readme",
"devDependencies": {

@@ -37,0 +37,0 @@ "ava": "^0.25.0",

@@ -12,3 +12,3 @@ # @cumulus/cumulus-message-adapter-js

Read the [Cumulus Documentation](https://cumulus-nasa.github.io/)
Read the [Cumulus Documentation](https://nasa.github.io/cumulus)

@@ -96,3 +96,3 @@ ## What is the Cumulus Message Adapter?

During deployment, Cumulus will automatically obtain and inject the [Cumulus Message Adapter](https://github.com/cumulus-nasa/cumulus-message-adapter)
During deployment, Cumulus will automatically obtain and inject the [Cumulus Message Adapter](https://github.com/nasa/cumulus-message-adapter)
into the compiled code and create a zip file to be deployed to Lambda.

@@ -118,3 +118,3 @@

- `CUMULUS_MESSAGE_ADAPTER_DIR`
- The default directory for Cumulus Message Adapter is the root directory of the lambda function. There are rare cases (see [cumulus-ecs-task](https://github.com/cumulus-nasa/cumulus-ecs-task) for an example) where the adapter directory will be in a different location. This env var is unlikely to be useful for tasks, only for libraries that are working with Cumulus tasks at a higher level.
- The default directory for Cumulus Message Adapter is the root directory of the lambda function. There are rare cases (see [cumulus-ecs-task](https://github.com/nasa/cumulus-ecs-task) for an example) where the adapter directory will be in a different location. This env var is unlikely to be useful for tasks, only for libraries that are working with Cumulus tasks at a higher level.

@@ -121,0 +121,0 @@ ## Development

/* eslint-disable no-param-reassign */
const test = require('ava');
const test = require('ava').serial;

@@ -156,1 +156,17 @@ const fs = require('fs-extra');

});
test.cb('The task receives the correct environment variables', (t) => {
const context = { b: 2 };
const inputEvent = clonedeep(testContext.inputEvent);
inputEvent.meta.reingestGranule = true;
function businessLogic(actualNestedEvent, actualContext) {
t.deepEqual(actualContext, context);
t.is(process.env.REINGEST_GRANULE, 'true');
return 42;
}
return cumulusMessageAdapter
.runCumulusTask(businessLogic, inputEvent, context, t.end);
});
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc