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

@bitty/either

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitty/either - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

dist/Either.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.Either = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Either = {}));
}(this, (function (exports) { 'use strict';

@@ -6,0 +6,0 @@

@@ -1,2 +0,2 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).Either={})}(this,(function(n){"use strict";function t(n){return{_kind:"Left",alt:function(n){return n()},map:function(){return t(n)},then:function(){return t(n)},chain:function(){return t(n)},mapLeft:function(r){return t(r(n))},isLeft:function(){return!0},isRight:function(){return!1},match:function(t){return(0,t.left)(n)},fold:function(t){return t(n)},getOrElse:function(t){return t(n)},orElse:function(t){return t(n)},unwrap:function(){return n}}}function r(n){return{_kind:"Right",alt:function(){return r(n)},map:function(t){return r(t(n))},then:function(t){var u=t(n);return function(n){var t,r;return"Left"===(null===(t=n)||void 0===t?void 0:t._kind)||"Right"===(null===(r=n)||void 0===r?void 0:r._kind)}(u)?u:r(u)},chain:function(t){return t(n)},mapLeft:function(){return r(n)},isLeft:function(){return!1},isRight:function(){return!0},match:function(t){return(0,t.right)(n)},fold:function(t,r){return r(n)},getOrElse:function(){return n},orElse:function(){return r(n)},unwrap:function(){return n}}}n.Left=t,n.Right=r,n.fromFalsy=function(n){return function(u){return function(n){return!n}(u)?t(n):r(u)}},n.fromNullish=function(n){return function(u){return function(n){return null==n}(u)?t(n):r(u)}},n.fromPredicate=function(n,u){return function(e){return n(e)?r(e):t(u(e))}},n.tryCatch=function(n,u){try{return r(n())}catch(n){return t(u(n))}},Object.defineProperty(n,"__esModule",{value:!0})}));
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Either={})}(this,(function(n){"use strict";function t(n){return{_kind:"Left",alt:function(n){return n()},map:function(){return t(n)},then:function(){return t(n)},chain:function(){return t(n)},mapLeft:function(r){return t(r(n))},isLeft:function(){return!0},isRight:function(){return!1},match:function(t){return(0,t.left)(n)},fold:function(t){return t(n)},getOrElse:function(t){return t(n)},orElse:function(t){return t(n)},unwrap:function(){return n}}}function r(n){return{_kind:"Right",alt:function(){return r(n)},map:function(t){return r(t(n))},then:function(t){var u=t(n);return function(n){var t,r;return"Left"===(null===(t=n)||void 0===t?void 0:t._kind)||"Right"===(null===(r=n)||void 0===r?void 0:r._kind)}(u)?u:r(u)},chain:function(t){return t(n)},mapLeft:function(){return r(n)},isLeft:function(){return!1},isRight:function(){return!0},match:function(t){return(0,t.right)(n)},fold:function(t,r){return r(n)},getOrElse:function(){return n},orElse:function(){return r(n)},unwrap:function(){return n}}}n.Left=t,n.Right=r,n.fromFalsy=function(n){return function(u){return function(n){return!n}(u)?t(n):r(u)}},n.fromNullish=function(n){return function(u){return function(n){return null==n}(u)?t(n):r(u)}},n.fromPredicate=function(n,u){return function(e){return n(e)?r(e):t(u(e))}},n.tryCatch=function(n,u){try{return r(n())}catch(n){return t(u(n))}},Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=Either.umd.min.js.map
{
"name": "@bitty/either",
"version": "0.0.4",
"version": "0.0.5",
"description": "Either monad implementation.",

@@ -8,3 +8,3 @@ "sideEffects": false,

"main": "dist/Either.js",
"types": "types/Either.d.ts",
"types": "types/index.d.ts",
"unpkg": "dist/Either.umd.js",

@@ -51,13 +51,13 @@ "module": "dist/Either.esm.js",

"@rollup/plugin-node-resolve": "^8.4.0",
"ava": "^3.10.1",
"ava": "^3.11.1",
"prettier": "^2.0.5",
"rollup": "^2.21.0",
"rollup-plugin-terser": "^6.1.0",
"typescript": "^3.9.6"
"rollup": "^2.23.1",
"rollup-plugin-terser": "^7.0.0",
"typescript": "^3.9.7"
},
"dependencies": {
"@bitty/falsy": "0.0.0",
"@bitty/nullish": "0.0.3",
"@bitty/predicate": "0.0.0"
"@bitty/falsy": "0.0.1",
"@bitty/nullish": "0.0.4",
"@bitty/predicate": "0.0.1"
}
}

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