New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.0.0-alpha.2 to 2.0.0-alpha.3

1

cancelable.d.ts

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

/** @deprecated */
export function fetchResponse({url, spec}: {url: URL|string, spec: RequestInit|{[key: string]: any}}): Cancelable<Response>;

@@ -27,0 +26,0 @@

66

dist/cjs/cancelable.js
/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

@@ -820,2 +820,25 @@ 'use strict';

const
/**
* @type {(fantasyfy: (fn: any) => any) => (spec: {url: String|URL, init: {[key: string]: any}}) => import('@visisoft/staticland/cancelable').Cancelable<Response>}
*/
// fetchResponse :: {url: (String|URL), init: {}} -> CancelableComputation Error Response
fetchResponse$1 = fantasyfy => ({url, init = {}}) => fantasyfy((resolve, reject) => {
const
abortController = new AbortController(),
cancelPromiseContinuation =
__promiseToCancelable(
fetch(
url.toString(),
{...init, signal: abortController.signal}
)
)(resolve, reject);
return () => {
cancelPromiseContinuation();
abortController.abort();
};
});
const
fromNodeCallbackWithArityFactory = fantasyfy => (arity, callbackComputation) =>

@@ -943,39 +966,2 @@ ramda.curryN(arity, (...args) => fantasyfy(

/***
* Browser version
*/
const IS_ABORT_CONTROLLER_SUPPORTED = typeof AbortController === 'function',
/**
* @deprecated
* use fetchResponseIsoModule
* @param {Object} options
* @param {String|URL} options.url
* @param {Object} [options.init]
* @return {CancelableComputation}
*/
// fetchResponse :: {url: (String|URL), init: {}} -> CancelableComputation Error Response
fetchResponse = ({url, init = {}}) => (resolve, reject) => {
const
abortController = IS_ABORT_CONTROLLER_SUPPORTED ? new AbortController() : undefined,
cancelPromiseContinuation =
__promiseToCancelable(
fetch(
url.toString(),
{...init, signal: abortController ? abortController.signal: undefined}
)
)(resolve, reject);
return () => {
cancelPromiseContinuation();
if (abortController) {
abortController.abort();
}
};
};
/**

@@ -1034,2 +1020,4 @@ * @typedef {function(function(*): void, function(*): void): function(): void} CancelableComputation

fetchResponse = fetchResponse$1(__fantasyfy),
//// Transformation ////

@@ -1036,0 +1024,0 @@

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -79,0 +79,0 @@ }

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -47,0 +47,0 @@

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -45,0 +45,0 @@

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER$1;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER$1;
}

@@ -889,3 +889,3 @@

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -1965,2 +1965,25 @@ }

const
/**
* @type {(fantasyfy: (fn: any) => any) => (spec: {url: String|URL, init: {[key: string]: any}}) => import('@visisoft/staticland/cancelable').Cancelable<Response>}
*/
// fetchResponse :: {url: (String|URL), init: {}} -> CancelableComputation Error Response
fetchResponse$1 = fantasyfy => ({url, init = {}}) => fantasyfy((resolve, reject) => {
const
abortController = new AbortController(),
cancelPromiseContinuation =
__promiseToCancelable(
fetch(
url.toString(),
{...init, signal: abortController.signal}
)
)(resolve, reject);
return () => {
cancelPromiseContinuation();
abortController.abort();
};
});
const
fromNodeCallbackWithArityFactory = fantasyfy => (arity, callbackComputation) =>

@@ -2088,40 +2111,2 @@ ramda.curryN(arity, (...args) => fantasyfy(

/***
* Browser version
*/
const
IS_ABORT_CONTROLLER_SUPPORTED = typeof AbortController === 'function',
/**
* @deprecated
* use fetchResponseIsoModule
* @param {Object} options
* @param {String|URL} options.url
* @param {Object} [options.init]
* @return {CancelableComputation}
*/
// fetchResponse :: {url: (String|URL), init: {}} -> CancelableComputation Error Response
fetchResponse = ({url, init = {}}) => (resolve, reject) => {
const
abortController = IS_ABORT_CONTROLLER_SUPPORTED ? new AbortController() : undefined,
cancelPromiseContinuation =
__promiseToCancelable(
fetch(
url.toString(),
{...init, signal: abortController ? abortController.signal: undefined}
)
)(resolve, reject);
return () => {
cancelPromiseContinuation();
if (abortController) {
abortController.abort();
}
};
};
/**

@@ -2181,2 +2166,4 @@ * @typedef {function(function(*): void, function(*): void): function(): void} CancelableComputation

fetchResponse = fetchResponse$1(__fantasyfy),
//// Transformation ////

@@ -2183,0 +2170,0 @@

/* @license Apache-2.0
@visisoft/staticland v.2.0.0-alpha.2 visisoft.de
(Build date: 9/19/2023 - 12:17:15 PM)
@visisoft/staticland v.2.0.0-alpha.3 visisoft.de
(Build date: 10/24/2023 - 9:47:10 PM)
*/

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

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER$1;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER$1;
}

@@ -563,3 +563,3 @@ }

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !ramda.isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -566,0 +566,0 @@

@@ -27,2 +27,3 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common';

export function bimap<T, U>(fnLeft: (e: any) => any, fn: (x: T) => U): (mx: Either<T>) => Either<U>;
export function bi_tap<T>(fnLeft: (e: any) => void, fn: (x: T) => void): (mx: Either<T>) => Either<T>;

@@ -42,3 +43,3 @@ /** @deprecated Use FL compliant utility function e.g. R.chain */

export function isEither(me: Either<any>): boolean;
export function isEither(me: any): boolean;
export function isRight(me: Either<any>): boolean;

@@ -45,0 +46,0 @@ export function isLeft(me: Either<any>): boolean;

@@ -106,3 +106,3 @@ {

"type": "module",
"version": "2.0.0-alpha.2"
"version": "2.0.0-alpha.3"
}

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

/** @deprecated */
export function fetchResponse({url, spec}: {url: URL|string, spec: RequestInit|{[key: string]: any}}): Cancelable<Response>;

@@ -27,0 +26,0 @@

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

import __fetchResponseIsoModuleFactory from './cancelable/fetchResponseIsoModule.js';
import __fetchResponseFactory from './cancelable/fetchResponse.js';
import __fromNodeCallbackWithArityFactory from './cancelable/fromNodeCallback.js';

@@ -21,4 +22,2 @@ import __bi_tap from './cancelable/biTap.js';

export {default as fetchResponse} from './cancelable/fetchResponse.js';
const

@@ -73,2 +72,4 @@ /**

fetchResponse = __fetchResponseFactory(__fantasyfy),
//// Transformation ////

@@ -144,2 +145,3 @@

fetchResponseIsoModule,
fetchResponse,
fromNodeCallbackWithArity,

@@ -146,0 +148,0 @@ later,

@@ -1,22 +0,11 @@

/***
* Browser version
*/
import __promiseToCancelable from "./internal/_promiseToCancelable.js";
const
IS_ABORT_CONTROLLER_SUPPORTED = typeof AbortController === 'function',
/**
* @deprecated
* use fetchResponseIsoModule
* @param {Object} options
* @param {String|URL} options.url
* @param {Object} [options.init]
* @return {CancelableComputation}
* @type {(fantasyfy: (fn: any) => any) => (spec: {url: String|URL, init: {[key: string]: any}}) => import('@visisoft/staticland/cancelable').Cancelable<Response>}
*/
// fetchResponse :: {url: (String|URL), init: {}} -> CancelableComputation Error Response
fetchResponse = ({url, init = {}}) => (resolve, reject) => {
fetchResponse = fantasyfy => ({url, init = {}}) => fantasyfy((resolve, reject) => {
const
abortController = IS_ABORT_CONTROLLER_SUPPORTED ? new AbortController() : undefined,
abortController = new AbortController(),

@@ -27,3 +16,3 @@ cancelPromiseContinuation =

url.toString(),
{...init, signal: abortController ? abortController.signal: undefined}
{...init, signal: abortController.signal}
)

@@ -34,9 +23,6 @@ )(resolve, reject);

cancelPromiseContinuation();
if (abortController) {
abortController.abort();
}
abortController.abort();
};
};
});
export default fetchResponse;

@@ -27,2 +27,3 @@ import {BinaryCurriedFn, Opaque, PlainObjectOf, TernaryCurriedFn} from './common';

export function bimap<T, U>(fnLeft: (e: any) => any, fn: (x: T) => U): (mx: Either<T>) => Either<U>;
export function bi_tap<T>(fnLeft: (e: any) => void, fn: (x: T) => void): (mx: Either<T>) => Either<T>;

@@ -42,3 +43,3 @@ /** @deprecated Use FL compliant utility function e.g. R.chain */

export function isEither(me: Either<any>): boolean;
export function isEither(me: any): boolean;
export function isRight(me: Either<any>): boolean;

@@ -45,0 +46,0 @@ export function isLeft(me: Either<any>): boolean;

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

import { equals as deepEquals, identity } from "ramda";
import { equals as deepEquals, identity, isNil } from "ramda";
import map from '../fantasyland/map.js';

@@ -60,3 +60,3 @@

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -63,0 +63,0 @@ }

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

import { equals, identity } from "ramda";
import { equals, identity, isNil } from "ramda";
import map from '../fantasyland/map.js';

@@ -26,3 +26,3 @@

static [Symbol.hasInstance](instance) {
return instance['@@type'] === TYPE_IDENTIFIER;
return !isNil(instance) && instance['@@type'] === TYPE_IDENTIFIER;
}

@@ -29,0 +29,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