Socket
Socket
Sign inDemoInstall

effection

Package Overview
Dependencies
Maintainers
1
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effection - npm Package Compare versions

Comparing version 0.4.0-9675f2c to 0.4.0-9a7c74e

11

dist-node/index.js

@@ -33,5 +33,11 @@ 'use strict';

let noop = x => x;
let noop = x => x; // return values of succeed and fail are deliberately ignored.
// see https://github.com/thefrontside/effection.js/pull/44
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care
promise.then(value => {
succeed(value);
}, error => {
fail(error);
}); // this execution has passed out of scope, so we don't care
// what happened to the promise, so make the callbacks noops.

@@ -384,3 +390,2 @@ // this effectively "unsubscribes" to the promise.

exports.fork = fork;
exports.promiseOf = promiseOf;
exports.timeout = timeout;
export { timeout } from "./timeout.js";
export { fork } from "./fork.js";
export { promiseOf } from "./promise-of.js";
export { fork } from "./fork.js";

@@ -11,5 +11,11 @@ /**

let noop = x => x;
let noop = x => x; // return values of succeed and fail are deliberately ignored.
// see https://github.com/thefrontside/effection.js/pull/44
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care
promise.then(value => {
succeed(value);
}, error => {
fail(error);
}); // this execution has passed out of scope, so we don't care
// what happened to the promise, so make the callbacks noops.

@@ -16,0 +22,0 @@ // this effectively "unsubscribes" to the promise.

@@ -30,5 +30,11 @@ /**

let noop = x => x;
let noop = x => x; // return values of succeed and fail are deliberately ignored.
// see https://github.com/thefrontside/effection.js/pull/44
promise.then(value => succeed(value), error => fail(error)); // this execution has passed out of scope, so we don't care
promise.then(value => {
succeed(value);
}, error => {
fail(error);
}); // this execution has passed out of scope, so we don't care
// what happened to the promise, so make the callbacks noops.

@@ -338,2 +344,2 @@ // this effectively "unsubscribes" to the promise.

export { fork, promiseOf, timeout };
export { fork, timeout };
{
"name": "effection",
"description": "Effortlessly composable structured concurrency primitive for JavaScript",
"version": "0.4.0-9675f2c",
"version": "0.4.0-9a7c74e",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

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