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.27 to 0.1.28

3

cancelable.d.ts

@@ -9,2 +9,5 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void);

export function laterReject(dt: number, error: any): Cancelable<any>;
export function laterReject(dt: number): (error: any) => Cancelable<any>;
export function fetchResponse({url, spec}: {url: URL|string, spec: RequestInit}): Cancelable<Response>;

@@ -11,0 +14,0 @@

4

dist/cjs/cancelable.js
/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

@@ -150,3 +150,3 @@ 'use strict';

// this implementation enforces fn to return a promise
// chainRej :: (e -> Promise g a) -> Promise e a -> Promise g b
// chainRej :: (e -> Promise g b) -> Promise e a -> Promise (e | g) (a | b)
chainRej = semmelRamda.curry((fn, aPromise) =>

@@ -153,0 +153,0 @@ new Promise((resolve, reject_) => {

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

@@ -151,3 +151,3 @@ 'use strict';

// this implementation enforces fn to return a promise
// chainRej :: (e -> Promise g a) -> Promise e a -> Promise g b
// chainRej :: (e -> Promise g b) -> Promise e a -> Promise (e | g) (a | b)
chainRej = semmelRamda.curry((fn, aPromise) =>

@@ -716,2 +716,3 @@ new Promise((resolve, reject_) => {

/** @deprecated */
// keyPromiseToPromiseCollection :: String -> {ki: Promise e vi, k:v …} -> Promise e {ki:vi, k:v …}

@@ -718,0 +719,0 @@ // keyPromiseToPromiseCollection :: Int -> [v,…, Promise e v, v,…] -> Promise e [v]

/* @license Apache-2.0
@visisoft/staticland v.0.1.27 visisoft.de
(Build date: 10/26/2021 - 4:11:51 PM)
@visisoft/staticland v.0.1.28 visisoft.de
(Build date: 11/26/2021 - 6:31:07 PM)
*/

@@ -206,3 +206,3 @@ 'use strict';

// this implementation enforces fn to return a promise
// chainRej :: (e -> Promise g a) -> Promise e a -> Promise g b
// chainRej :: (e -> Promise g b) -> Promise e a -> Promise (e | g) (a | b)
chainRej = semmelRamda.curry((fn, aPromise) =>

@@ -523,2 +523,3 @@ new Promise((resolve, reject_) => {

/** @deprecated */
// keyPromiseToPromiseCollection :: String -> {ki: Promise e vi, k:v …} -> Promise e {ki:vi, k:v …}

@@ -525,0 +526,0 @@ // keyPromiseToPromiseCollection :: Int -> [v,…, Promise e v, v,…] -> Promise e [v]

@@ -5,2 +5,10 @@ export type Left = [any, any];

export function right<A>(a: A): Either<A>;
export function of<A>(a: A): Either<A>;
export function left(e: any): Either<any>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean, makeLeftValue: (a:A) => B, a: A): Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean): (makeLeftValue: (a:A) => B, a: A) => Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean, makeLeftValue: (a:A) => B): (a: A) => Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean): (makeLeftValue: (a:A) => B) => (a: A) => Either<A>;
export function map<T, U>(fn: (x: T) => U, mx: Either<T>): Either<U>;

@@ -11,1 +19,5 @@ export function map<T, U>(fn: (x: T) => U) : (mx: Either<T>) => Either<U>;

export function chain<T, U>(factory: (x: T) => Either<U>): (p: Either<T>) => Either<U>;
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B, m: Either<A>): B;
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B): (m: Either<A>) => B;
export function either<A, B, C>(onLeft: (c: C) => B): (onRight: (a: A) => B) => (m: Either<A>) => B;

@@ -35,1 +35,7 @@ import {Either} from './either';

: (ma: Array<A>) => Applicative<Array<A>>;
export function traverse<A, B, C>(
ofF: (a: A) => Applicative<A>,
liftA2: (f: (a: A) => (b: B) => C) => (ma: Applicative<A>, mb: Applicative<B>) => Applicative<C>):
(effect: (a: A) => Applicative<B>) =>
(ma: Array<A>) => Applicative<Array<A>>;

@@ -13,2 +13,3 @@ {

"@most/scheduler": "^1.3.0",
"@most/types": "^1.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",

@@ -53,3 +54,3 @@ "@types/ramda": "^0.27.38",

},
"./lens" : {
"./lens": {
"require": "./dist/cjs/lens.js",

@@ -101,3 +102,3 @@ "default": "./src/lens.js"

"type": "module",
"version": "0.1.27"
"version": "0.1.28"
}

@@ -5,2 +5,5 @@ import {BinaryCurriedFn} from './common';

export function ap<A, B>(mfn: Promise<(a: A) => B>, mb: Promise<A>): Promise<B>;
export function ap<A, B>(mfn: Promise<(a: A) => B>): (mb: Promise<A>) => Promise<B>;
export function bi_tap<T>(onFailure: (e: any) => void, onSuccess: (t?: T) => any, p: Promise<T>): Promise<T>;

@@ -31,2 +34,3 @@ export function bi_tap<T>(onFailure: (e: any) => void, onSuccess: (t?: T) => any): (p: Promise<T>) => Promise<T>;

*/
export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>, ps: Promise<S>, pt: Promise<T>): Promise<U>;
export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>): (ps: Promise<S>, pt: Promise<T>) => Promise<U>;

@@ -52,1 +56,3 @@ export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>): (ps: Promise<S>) => (pt: Promise<T>) => Promise<U>;

export function tapRegardless<T>(fn: (x?: T) => any): (p: Promise<T>) => Promise<T>;
export function reject(payload: any): Promise<any>;

@@ -9,2 +9,5 @@ export type Cancelable<A> = (res: (a: A) => void, rej: (e: any) => void) => (() => void);

export function laterReject(dt: number, error: any): Cancelable<any>;
export function laterReject(dt: number): (error: any) => Cancelable<any>;
export function fetchResponse({url, spec}: {url: URL|string, spec: RequestInit}): Cancelable<Response>;

@@ -11,0 +14,0 @@

@@ -5,2 +5,10 @@ export type Left = [any, any];

export function right<A>(a: A): Either<A>;
export function of<A>(a: A): Either<A>;
export function left(e: any): Either<any>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean, makeLeftValue: (a:A) => B, a: A): Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean): (makeLeftValue: (a:A) => B, a: A) => Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean, makeLeftValue: (a:A) => B): (a: A) => Either<A>;
export function fromAssertedValue<A, B>(predicate: (a:A) => boolean): (makeLeftValue: (a:A) => B) => (a: A) => Either<A>;
export function map<T, U>(fn: (x: T) => U, mx: Either<T>): Either<U>;

@@ -11,1 +19,5 @@ export function map<T, U>(fn: (x: T) => U) : (mx: Either<T>) => Either<U>;

export function chain<T, U>(factory: (x: T) => Either<U>): (p: Either<T>) => Either<U>;
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B, m: Either<A>): B;
export function either<A, B, C>(onLeft: (c: C) => B, onRight: (a: A) => B): (m: Either<A>) => B;
export function either<A, B, C>(onLeft: (c: C) => B): (onRight: (a: A) => B) => (m: Either<A>) => B;

@@ -35,1 +35,7 @@ import {Either} from './either';

: (ma: Array<A>) => Applicative<Array<A>>;
export function traverse<A, B, C>(
ofF: (a: A) => Applicative<A>,
liftA2: (f: (a: A) => (b: B) => C) => (ma: Applicative<A>, mb: Applicative<B>) => Applicative<C>):
(effect: (a: A) => Applicative<B>) =>
(ma: Array<A>) => Applicative<Array<A>>;

@@ -5,2 +5,5 @@ import {BinaryCurriedFn} from './common';

export function ap<A, B>(mfn: Promise<(a: A) => B>, mb: Promise<A>): Promise<B>;
export function ap<A, B>(mfn: Promise<(a: A) => B>): (mb: Promise<A>) => Promise<B>;
export function bi_tap<T>(onFailure: (e: any) => void, onSuccess: (t?: T) => any, p: Promise<T>): Promise<T>;

@@ -31,2 +34,3 @@ export function bi_tap<T>(onFailure: (e: any) => void, onSuccess: (t?: T) => any): (p: Promise<T>) => Promise<T>;

*/
export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>, ps: Promise<S>, pt: Promise<T>): Promise<U>;
export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>): (ps: Promise<S>, pt: Promise<T>) => Promise<U>;

@@ -52,1 +56,3 @@ export function liftA2<S, T, U>(fn: BinaryCurriedFn<S, T, U>): (ps: Promise<S>) => (pt: Promise<T>) => Promise<U>;

export function tapRegardless<T>(fn: (x?: T) => any): (p: Promise<T>) => Promise<T>;
export function reject(payload: any): Promise<any>;

@@ -49,3 +49,3 @@ /**

// this implementation enforces fn to return a promise
// chainRej :: (e -> Promise g a) -> Promise e a -> Promise g b
// chainRej :: (e -> Promise g b) -> Promise e a -> Promise (e | g) (a | b)
chainRej = curry((fn, aPromise) =>

@@ -52,0 +52,0 @@ new Promise((resolve, reject_) => {

@@ -11,6 +11,23 @@ import {EventStream, Observable } from "baconjs";

export function eitherToCancelable<A>(ma: Either<A>): Cancelable<A>;
export function eitherToPromise<A>(ma: Either<A>): Promise<A>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(key: string, moa: PlainObject): Maybe<PlainObject>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(key: string): (moa: PlainObject) => Maybe<PlainObject>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(index: number, maa: Array<any>): Maybe<Array<any>>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(index: number): (maa: Array<any>) => Maybe<Array<any>>;

@@ -22,2 +39,4 @@

export function observableToCancelable<A>(observable: Observable<A>): Cancelable<A>;
export function promiseToCancelable<A>(p: Promise<A>): Cancelable<A>;

@@ -57,2 +57,3 @@ /**

/** @deprecated */
// keyPromiseToPromiseCollection :: String -> {ki: Promise e vi, k:v …} -> Promise e {ki:vi, k:v …}

@@ -59,0 +60,0 @@ // keyPromiseToPromiseCollection :: Int -> [v,…, Promise e v, v,…] -> Promise e [v]

@@ -11,6 +11,23 @@ import {EventStream, Observable } from "baconjs";

export function eitherToCancelable<A>(ma: Either<A>): Cancelable<A>;
export function eitherToPromise<A>(ma: Either<A>): Promise<A>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(key: string, moa: PlainObject): Maybe<PlainObject>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(key: string): (moa: PlainObject) => Maybe<PlainObject>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(index: number, maa: Array<any>): Maybe<Array<any>>;
/**
* @deprecated
* use lens/view(sequence(maybe/map, indexLens(n)))(obj)
*/
export function keyMaybeToMaybeObj(index: number): (maa: Array<any>) => Maybe<Array<any>>;

@@ -22,2 +39,4 @@

export function observableToCancelable<A>(observable: Observable<A>): Cancelable<A>;
export function promiseToCancelable<A>(p: Promise<A>): Cancelable<A>;
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