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

bs-sentia-std

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-sentia-std - npm Package Compare versions

Comparing version 11.0.0 to 12.0.0

309

lib/js/src/std.js

@@ -116,9 +116,6 @@ // Generated by BUCKLESCRIPT VERSION 1.9.0, PLEASE EDIT WITH CARE

function fromRemote(res) {
switch (res.tag | 0) {
case 0 :
case 1 :
return /* None */0;
case 2 :
return /* Some */[res[0]];
if (typeof res === "number" || res.tag !== 1) {
return /* None */0;
} else {
return /* Some */[res[0]];
}

@@ -168,59 +165,181 @@ }

function init(a) {
return /* Init */Block.__(0, [a]);
function ready(a) {
return /* Ready */Block.__(1, [a]);
}
function pending(a) {
return /* Pending */Block.__(1, [a]);
function error(x) {
return /* Failed */Block.__(0, [x]);
}
function ready(a) {
return /* Ready */Block.__(2, [a]);
function map$1(f, remote) {
if (typeof remote === "number") {
if (remote) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (remote.tag) {
return /* Ready */Block.__(1, [Curry._1(f, remote[0])]);
} else {
return /* Failed */Block.__(0, [remote[0]]);
}
}
function isInit(remote) {
switch (remote.tag | 0) {
case 0 :
return /* true */1;
case 1 :
case 2 :
return /* false */0;
function map2$1(f, r1, r2) {
if (typeof r1 === "number") {
if (r1) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r1.tag) {
if (typeof r2 === "number") {
if (r2) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r2.tag) {
return /* Ready */Block.__(1, [Curry._2(f, r1[0], r2[0])]);
} else {
return /* Failed */Block.__(0, [r2[0]]);
}
} else {
return /* Failed */Block.__(0, [r1[0]]);
}
}
function map3$1(f, r1, r2, r3) {
if (typeof r1 === "number") {
if (r1) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r1.tag) {
if (typeof r2 === "number") {
if (r2) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r2.tag) {
if (typeof r3 === "number") {
if (r3) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r3.tag) {
return /* Ready */Block.__(1, [Curry._3(f, r1[0], r2[0], r3[0])]);
} else {
return /* Failed */Block.__(0, [r3[0]]);
}
} else {
return /* Failed */Block.__(0, [r2[0]]);
}
} else {
return /* Failed */Block.__(0, [r1[0]]);
}
}
function flatten$1(r) {
if (typeof r === "number") {
if (r) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (r.tag) {
return r[0];
} else {
return /* Failed */Block.__(0, [r[0]]);
}
}
function flatMap$1(f, remote) {
if (typeof remote === "number") {
if (remote) {
return /* Pending */1;
} else {
return /* NotAsked */0;
}
} else if (remote.tag) {
return Curry._1(f, remote[0]);
} else {
return /* Failed */Block.__(0, [remote[0]]);
}
}
function withDefault$1(a, rem) {
if (typeof rem === "number" || rem.tag !== 1) {
return a;
} else {
return rem[0];
}
}
function fromResult$1(res) {
if (res.tag) {
return /* Ready */Block.__(1, [res[0]]);
} else {
return /* Failed */Block.__(0, [res[0]]);
}
}
function fromOption(opt) {
if (opt) {
return /* Ready */Block.__(1, [opt[0]]);
} else {
return /* NotAsked */0;
}
}
function isNotAsked(remote) {
if (typeof remote === "number" && remote === 0) {
return /* true */1;
} else {
return /* false */0;
}
}
function isPending(remote) {
switch (remote.tag | 0) {
case 1 :
return /* true */1;
case 0 :
case 2 :
return /* false */0;
if (typeof remote === "number" && remote !== 0) {
return /* true */1;
} else {
return /* false */0;
}
}
function isFailed(remote) {
if (typeof remote === "number" || remote.tag) {
return /* false */0;
} else {
return /* true */1;
}
}
function isReady(remote) {
switch (remote.tag | 0) {
case 0 :
case 1 :
return /* false */0;
case 2 :
return /* true */1;
if (typeof remote === "number" || remote.tag !== 1) {
return /* false */0;
} else {
return /* true */1;
}
}
function encode$1(encoder, readyEncoder, r) {
switch (r.tag | 0) {
case 0 :
case 1 :
return Curry._1(encoder, r[0]);
case 2 :
return Curry._1(readyEncoder, r[0]);
function encode$1(failEncoder, successEncoder, r) {
if (typeof r === "number") {
if (r) {
return "Pending";
} else {
return "NotAsked";
}
} else if (r.tag) {
return Curry._1(successEncoder, r[0]);
} else {
return Curry._1(failEncoder, r[0]);
}
}
function map$1(f, res) {
function map$2(f, res) {
if (res.tag) {

@@ -233,3 +352,3 @@ return /* Ok */Block.__(1, [Curry._1(f, res[0])]);

function map2$1(f, r1, r2) {
function map2$2(f, r1, r2) {
if (r1.tag) {

@@ -246,3 +365,3 @@ if (r2.tag) {

function map3$1(f, r1, r2, r3) {
function map3$2(f, r1, r2, r3) {
if (r1.tag) {

@@ -263,3 +382,3 @@ if (r2.tag) {

function flatten$1(r) {
function flatten$2(r) {
if (r.tag) {

@@ -272,3 +391,3 @@ return r[0];

function flatMap$1(f, res) {
function flatMap$2(f, res) {
if (res.tag) {

@@ -281,3 +400,3 @@ return Curry._1(f, res[0]);

function withDefault$1(a, res) {
function withDefault$2(a, res) {
if (res.tag) {

@@ -290,3 +409,3 @@ return res[0];

function fromOption(err, opt) {
function fromOption$1(err, opt) {
if (opt) {

@@ -324,9 +443,9 @@ return /* Ok */Block.__(1, [opt[0]]);

var Result = /* module */[
/* map */map$1,
/* map2 */map2$1,
/* map3 */map3$1,
/* flatten */flatten$1,
/* flatMap */flatMap$1,
/* withDefault */withDefault$1,
/* fromOption */fromOption,
/* map */map$2,
/* map2 */map2$2,
/* map3 */map3$2,
/* flatten */flatten$2,
/* flatMap */flatMap$2,
/* withDefault */withDefault$2,
/* fromOption */fromOption$1,
/* isError */isError,

@@ -460,3 +579,3 @@ /* isOk */isOk,

function flatten$2(xs) {
function flatten$3(xs) {
return foldLeft(append, /* [] */0, xs);

@@ -629,7 +748,7 @@ }

function map$2(f, xs) {
function map$3(f, xs) {
if (xs) {
return /* :: */[
Curry._1(f, xs[0]),
map$2(f, xs[1])
map$3(f, xs[1])
];

@@ -655,7 +774,7 @@ } else {

function map2$2(f, xs, ys) {
function map2$3(f, xs, ys) {
if (xs && ys) {
return /* :: */[
Curry._2(f, xs[0], ys[0]),
map2$2(f, xs[1], ys[1])
map2$3(f, xs[1], ys[1])
];

@@ -667,5 +786,5 @@ } else {

function flatMap$2(f, xs) {
function flatMap$3(f, xs) {
if (xs) {
return Pervasives.$at(Curry._1(f, xs[0]), flatMap$2(f, xs[1]));
return Pervasives.$at(Curry._1(f, xs[0]), flatMap$3(f, xs[1]));
} else {

@@ -946,3 +1065,3 @@ return /* [] */0;

function keys(dict) {
return map$2((function (param) {
return map$3((function (param) {
return param[0];

@@ -953,3 +1072,3 @@ }), dict);

function values(dict) {
return map$2((function (param) {
return map$3((function (param) {
return param[1];

@@ -967,4 +1086,4 @@ }), dict);

function map$3(f, dict) {
return map$2((function (param) {
function map$4(f, dict) {
return map$3((function (param) {
var k = param[0];

@@ -979,3 +1098,3 @@ return /* tuple */[

function mapValues(f, dict) {
return map$2((function (param) {
return map$3((function (param) {
return /* tuple */[

@@ -989,3 +1108,3 @@ param[0],

function mapKeys(f, dict) {
return map$2((function (param) {
return map$3((function (param) {
return /* tuple */[

@@ -1037,3 +1156,3 @@ Curry._1(f, param[0]),

/* iter */iter$1,
/* map */map$3,
/* map */map$4,
/* mapValues */mapValues,

@@ -1346,3 +1465,3 @@ /* mapKeys */mapKeys,

function map$4(f, task) {
function map$5(f, task) {
return (function (param, param$1) {

@@ -1355,3 +1474,3 @@ return Curry._2(task, param, (function (x) {

function map2$3(f, t1, t2) {
function map2$4(f, t1, t2) {
return (function (param, param$1) {

@@ -1366,3 +1485,3 @@ return Curry._2(t1, param, (function (a1) {

function map3$2(f, t1, t2, t3) {
function map3$3(f, t1, t2, t3) {
return (function (param, param$1) {

@@ -1379,3 +1498,3 @@ return Curry._2(t1, param, (function (a1) {

function flatMap$3(f, task) {
function flatMap$4(f, task) {
return (function (param, param$1) {

@@ -1415,3 +1534,3 @@ return Curry._2(task, param, (function (x) {

function fromOption$1(err, opt) {
function fromOption$2(err, opt) {
if (opt) {

@@ -1429,3 +1548,3 @@ var a = opt[0];

function fromResult$1(res) {
function fromResult$2(res) {
if (res.tag) {

@@ -1474,6 +1593,16 @@ var a = res[0];

ready,
init,
pending,
isInit,
error,
/* Pending */1,
/* NotAsked */0,
map$1,
map2$1,
map3$1,
flatten$1,
flatMap$1,
withDefault$1,
fromResult$1,
fromOption,
isNotAsked,
isPending,
isFailed,
isReady,

@@ -1492,3 +1621,3 @@ encode$1

append,
flatten$2,
flatten$3,
zip,

@@ -1507,6 +1636,6 @@ head,

filter,
map$2,
map$3,
mapIndexed,
map2$2,
flatMap$2,
map2$3,
flatMap$3,
flatMap2,

@@ -1583,10 +1712,10 @@ filterMap,

fail,
map$4,
map2$3,
map3$2,
map$5,
map2$4,
map3$3,
biMap,
flatMap$3,
flatMap$4,
fold,
fromResult$1,
fromOption$1,
fromResult$2,
fromOption$2,
fork,

@@ -1593,0 +1722,0 @@ fromLazyPromise

{
"name": "bs-sentia-std",
"version": "11.0.0",
"version": "12.0.0",
"scripts": {

@@ -5,0 +5,0 @@ "clean": "bsb -clean-world",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc