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

@matechs/effect

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matechs/effect - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

lib/index.d.ts

@@ -51,6 +51,6 @@ import * as F from "fluture";

export declare function promise<A>(ma: Effect<NoEnv, any, A>): Promise<A>;
export declare function fork<A, E>(res: (a: A) => void, rej: (e: E) => void): (ma: Effect<NoEnv, E, A>) => Cancel;
export declare function bracket<R, E, A, B, E2>(acquire: Effect<R, E, A>, use: (a: A) => Effect<R, E2, B>, release: (a: A, e: Ei.Either<E | E2, B>) => Effect<R, E, void>): Effect<R, E | E2, B>;
export declare function fork<E, A>(res: (a: A) => void, rej: (e: E) => void): (op: Effect<NoEnv, E, A>) => Cancel;
export declare function toTaskLike<R, E, A>(ma: Effect<R, E, A>): Effect<R, NoErr, Ei.Either<E, A>>;
export declare function fromTaskLike<R, E, A>(ma: Effect<R, never, Ei.Either<E, A>>): Effect<R, E, A>;
export declare function fromNullableM<R, E, A>(ma: Effect<R, E, A>): Effect<R, E, Option<A>>;

@@ -75,3 +75,3 @@ "use strict";

function tryCatchIO(f, onLeft) {
return function (_) { return F.mapRej(onLeft)(F.encase(f)({})); };
return function (_) { return F.mapRej(onLeft)(F.attempt(f)); };
}

@@ -132,6 +132,2 @@ exports.tryCatchIO = tryCatchIO;

exports.promise = promise;
function fork(res, rej) {
return function (ma) { return F.fork(rej)(res)(ma(exports.noEnv)); };
}
exports.fork = fork;
/* bracket */

@@ -148,2 +144,6 @@ function bracket(acquire, use, release) {

exports.bracket = bracket;
function fork(res, rej) {
return function (op) { return F.fork(rej)(res)(op(exports.noEnv)); };
}
exports.fork = fork;
/* Task-like converters, convert operations that can fail into non failing and vice versa */

@@ -150,0 +150,0 @@ function toTaskLike(ma) {

{
"name": "@matechs/effect",
"version": "0.0.11",
"version": "0.0.12",
"license": "MIT",

@@ -37,3 +37,3 @@ "private": false,

},
"gitHead": "c89bbb7b17debb0479c5b861d6e0794a7b78f99a"
"gitHead": "128a8f4c9ed026b0b442f0b8b0efb981dcc121b2"
}

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