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

@visisoft/staticland

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visisoft/staticland - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

4

dist/cjs/either.js
/* @license Apache-2.0
@visisoft/staticland v.0.1.12 visisoft.de
(Build date: 1/12/2021 - 8:41:02 PM)
@visisoft/staticland v.0.1.13 visisoft.de
(Build date: 1/13/2021 - 6:38:35 PM)
*/

@@ -5,0 +5,0 @@ 'use strict';

/* @license Apache-2.0
@visisoft/staticland v.0.1.12 visisoft.de
(Build date: 1/12/2021 - 8:41:02 PM)
@visisoft/staticland v.0.1.13 visisoft.de
(Build date: 1/13/2021 - 6:38:35 PM)
*/

@@ -5,0 +5,0 @@ 'use strict';

/* @license Apache-2.0
@visisoft/staticland v.0.1.12 visisoft.de
(Build date: 1/12/2021 - 8:41:02 PM)
@visisoft/staticland v.0.1.13 visisoft.de
(Build date: 1/13/2021 - 6:38:35 PM)
*/

@@ -187,4 +187,30 @@ 'use strict';

.catch(reject_);
}));
})),
/// Combinators ///
// :: [Promise e a] -> Promise e [a]
all = promises => Promise.all(promises),
// :: [Promise e a] -> Promise e a
race = promises => Promise.race(promises),
/**
* Providing a means for a fallback or alternative value, alt combines two Promises and will
* resolve with the value of the first resolved promise it encounters or
* reject with the value of the last Rejected instance if it does not encounter a Resolved instance.
*/
// :: Promise e a -> Promise e a -> Promise e a
alt = semmelRamda.curry((pa, pb) => new Promise((resolve_, reject_) => {
const
rejectGenerator = function* () {
reject_(yield);
},
rejectIterator = rejectGenerator(),
rejectSecond = e => rejectIterator.next(e);
pa.then(resolve_, rejectSecond);
pb.then(resolve_, rejectSecond);
}));
let join = semmelRamda.identity;

@@ -194,2 +220,4 @@ /** @deprecated */

exports.all = all;
exports.alt = alt;
exports.ap = ap;

@@ -208,2 +236,3 @@ exports.bimap = bimap;

exports.of = of;
exports.race = race;
exports.reject = reject;

@@ -210,0 +239,0 @@ exports.tap = tap;

/* @license Apache-2.0
@visisoft/staticland v.0.1.12 visisoft.de
(Build date: 1/12/2021 - 8:41:02 PM)
@visisoft/staticland v.0.1.13 visisoft.de
(Build date: 1/13/2021 - 6:38:35 PM)
*/

@@ -187,4 +187,30 @@ 'use strict';

.catch(reject_);
}));
})),
/// Combinators ///
// :: [Promise e a] -> Promise e [a]
all = promises => Promise.all(promises),
// :: [Promise e a] -> Promise e a
race = promises => Promise.race(promises),
/**
* Providing a means for a fallback or alternative value, alt combines two Promises and will
* resolve with the value of the first resolved promise it encounters or
* reject with the value of the last Rejected instance if it does not encounter a Resolved instance.
*/
// :: Promise e a -> Promise e a -> Promise e a
alt = semmelRamda.curry((pa, pb) => new Promise((resolve_, reject_) => {
const
rejectGenerator = function* () {
reject_(yield);
},
rejectIterator = rejectGenerator(),
rejectSecond = e => rejectIterator.next(e);
pa.then(resolve_, rejectSecond);
pb.then(resolve_, rejectSecond);
}));
let join = semmelRamda.identity;

@@ -197,2 +223,4 @@ /** @deprecated */

of: of,
all: all,
alt: alt,
ap: ap,

@@ -208,2 +236,3 @@ bimap: bimap,

mapRej: mapRej,
race: race,
reject: reject,

@@ -442,3 +471,3 @@ tap: tap,

// :: Either b a -> Either b a -> Either b a
alt = semmelRamda.curry((ma, mb) =>
alt$1 = semmelRamda.curry((ma, mb) =>
either(semmelRamda.always(mb), of$2, ma)

@@ -451,3 +480,3 @@ );

__proto__: null,
alt: alt,
alt: alt$1,
chain: chain$2,

@@ -454,0 +483,0 @@ either: either,

/* @license Apache-2.0
@visisoft/staticland v.0.1.12 visisoft.de
(Build date: 1/12/2021 - 8:41:02 PM)
@visisoft/staticland v.0.1.13 visisoft.de
(Build date: 1/13/2021 - 6:38:35 PM)
*/

@@ -237,4 +237,22 @@ 'use strict';

.catch(reject_);
}));
})),
/**
* Providing a means for a fallback or alternative value, alt combines two Promises and will
* resolve with the value of the first resolved promise it encounters or
* reject with the value of the last Rejected instance if it does not encounter a Resolved instance.
*/
// :: Promise e a -> Promise e a -> Promise e a
alt$1 = semmelRamda.curry((pa, pb) => new Promise((resolve_, reject_) => {
const
rejectGenerator = function* () {
reject_(yield);
},
rejectIterator = rejectGenerator(),
rejectSecond = e => rejectIterator.next(e);
pa.then(resolve_, rejectSecond);
pb.then(resolve_, rejectSecond);
}));
/**

@@ -241,0 +259,0 @@ * StaticLand: maybe.js

@@ -70,3 +70,3 @@ {

"type": "module",
"version": "0.1.12"
"version": "0.1.13"
}

@@ -180,6 +180,33 @@ /**

.catch(reject_);
}));
})),
/// Combinators ///
// :: [Promise e a] -> Promise e [a]
all = promises => Promise.all(promises),
// :: [Promise e a] -> Promise e a
race = promises => Promise.race(promises),
/**
* Providing a means for a fallback or alternative value, alt combines two Promises and will
* resolve with the value of the first resolved promise it encounters or
* reject with the value of the last Rejected instance if it does not encounter a Resolved instance.
*/
// :: Promise e a -> Promise e a -> Promise e a
alt = curry((pa, pb) => new Promise((resolve_, reject_) => {
const
rejectGenerator = function* () {
reject_(yield);
},
rejectIterator = rejectGenerator(),
rejectSecond = e => rejectIterator.next(e);
pa.then(resolve_, rejectSecond);
pb.then(resolve_, rejectSecond);
}));
export {
of, ap, bimap, chain, chainIf, chainTap, chainRej, coalesce, create, map, mapRej, reject, tap, tapRegardless, empty
of, all, alt, ap, bimap, chain, chainIf, chainTap, chainRej, coalesce, create, map, mapRej,
race, reject, tap, tapRegardless, empty
};

@@ -186,0 +213,0 @@

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