Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lib-task-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-task-scheduler - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

dist/src/source_sink_runner.d.ts

@@ -6,3 +6,3 @@ /// <reference types="node" />

source: MessageSource<T>;
transformer: MessageTransformer<T, R>;
transformer?: MessageTransformer<T, R>;
sink?: MessageSink<R>;

@@ -9,0 +9,0 @@ logger?: Logger;

@@ -59,4 +59,10 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const outMessages = yield this.config.transformer.transform(message);
this.log.debug(`Transformed message ${message.id}`);
let outMessages;
if (this.config.transformer) {
outMessages = yield this.config.transformer.transform(message);
this.log.debug(`Transformed message ${message.id}`);
}
else {
outMessages = message;
}
if (outMessages) {

@@ -68,3 +74,3 @@ const outbounds = Array.isArray(outMessages) ? outMessages : [outMessages];

else if (outMessages) {
throw new Error('Transformer produced a message, but no sink is configured.');
throw new Error('A sink must be configured, when the transformer produces messages (or no transformer is configured).');
}

@@ -71,0 +77,0 @@ }

{
"name": "lib-task-scheduler",
"version": "1.0.10",
"version": "1.0.11",
"description": "A lightweight, modular task scheduler.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/convoyinc/lib-task-scheduler",

Sorry, the diff of this file is not supported yet

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