Socket
Socket
Sign inDemoInstall

@typed/maybe

Package Overview
Dependencies
3
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.0 to 9.0.1

11

package.json
{
"name": "@typed/maybe",
"version": "9.0.0",
"version": "9.0.1",
"description": "Data structure for working with values that may not exist",

@@ -26,3 +26,3 @@ "main": "./cjs/index.js",

"dependencies": {
"@typed/lambda": "^2.0.0"
"@typed/lambda": "^2.0.1"
},

@@ -36,7 +36,4 @@ "publishConfig": {

"sideEffects": false,
"gitHead": "cf1bf36aefe0f8968036149e65eba567cde9d23a",
"unpkg": "./umd/index.js",
"exports": {
".": "./esm/index.js"
}
"gitHead": "e36eeac429e22e43156a9723ef9d4e4b0648eeac",
"unpkg": "./umd/index.js"
}

@@ -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).Typed=n.Typed||{},n.Typed.Maybe={}))}(this,function(n){"use strict";const t=n=>(function n(t,e,o){if(t<2)return e;return(...u)=>{const r=o.concat(u);return r.length>=t?e(...r):n(t,e,r)}})(n.length,n,[]);const e="@typed/Just";function o(n){return n[e]}(n.Just||(n.Just={})).of=function(n){return{[e]:n}};const u="@typed/Nothing",r={[u]:!0};function c(n){return!!n[u]}const f=t(function(n,t){return c(t)?t:n(o(t))});(n.Maybe||(n.Maybe={})).of=t=>null==t?r:n.Just.of(t);const i=t(function(t,e){return f(e=>n.Maybe.of(t(e)),e)});const s=t(function(n,t){return f(n=>i(n,t),n)});const p=t(function(t,e){return e.some(c)?r:n.Just.of(t(...e.map(o)))});const a=t(function(n,t,e){return p(n,[t,e])});function y(n){return n.hasOwnProperty(e)}const d=t(function(n,t){return y(t)?o(t):n});const l=t((n,t)=>y(n)?n:t),h=t((n,t)=>d(null,i(n,t)));n.JUST=e,n.NOTHING=u,n.Nothing=r,n.ap=s,n.chain=f,n.combine=a,n.combineArray=p,n.fromJust=o,n.isJust=y,n.isNothing=c,n.map=i,n.race=l,n.unpack=(n,t,e)=>y(e)?h(n,e):t(),n.unwrap=h,n.withDefault=d,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=n||self).Typed=n.Typed||{},n.Typed.Maybe={}))}(this,(function(n){"use strict";const t=n=>(function n(t,e,o){if(t<2)return e;return(...u)=>{const r=o.concat(u);return r.length>=t?e(...r):n(t,e,r)}})(n.length,n,[]);const e="@typed/Just";function o(n){return n[e]}(n.Just||(n.Just={})).of=function(n){return{[e]:n}};const u="@typed/Nothing",r={[u]:!0};function c(n){return!!n[u]}const f=t((function(n,t){return c(t)?t:n(o(t))}));(n.Maybe||(n.Maybe={})).of=t=>null==t?r:n.Just.of(t);const i=t((function(t,e){return f(e=>n.Maybe.of(t(e)),e)}));const s=t((function(n,t){return f(n=>i(n,t),n)}));const p=t((function(t,e){return e.some(c)?r:n.Just.of(t(...e.map(o)))}));const a=t((function(n,t,e){return p(n,[t,e])}));function y(n){return n.hasOwnProperty(e)}const d=t((function(n,t){return y(t)?o(t):n}));const l=t((n,t)=>y(n)?n:t),h=t((n,t)=>d(null,i(n,t)));n.JUST=e,n.NOTHING=u,n.Nothing=r,n.ap=s,n.chain=f,n.combine=a,n.combineArray=p,n.fromJust=o,n.isJust=y,n.isNothing=c,n.map=i,n.race=l,n.unpack=(n,t,e)=>y(e)?h(n,e):t(),n.unwrap=h,n.withDefault=d,Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc