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

@ctx-core/function

Package Overview
Dependencies
Maintainers
1
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctx-core/function - npm Package Compare versions

Comparing version 10.0.13 to 10.1.0

5

lib/index.d.ts

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

export declare type falsy = false | 0 | '' | null | undefined;
export declare function _val(val: any): () => any;

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

*/
export declare function _a1__wrap(value: any): any[];
export declare function _a1__wrap(value: any | any[]): any[];
/**

@@ -229,3 +230,3 @@ * [wrap](#wrap) `a1` & [concat](#concat) `a1__rest`

*/
export declare function _eq(__a1__value: any): (value: any) => boolean;
export declare function _eq(__a1__value: any[]): (value: any | any[]) => boolean;
export declare const _fn__eq: typeof _eq;

@@ -232,0 +233,0 @@ /**

4

package.json
{
"name": "@ctx-core/function",
"version": "10.0.13",
"version": "10.1.0",
"description": "ctx-core function",

@@ -37,3 +37,3 @@ "main": "lib/index.js",

},
"gitHead": "2a0fb0b1ea033c4cea56701aef36d21ee3d44d67"
"gitHead": "34f704068b4b3624bc0145a6a11c67c2d83856bb"
}

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

export type falsy = false | 0 | '' | null | undefined
/**

@@ -9,3 +10,3 @@ * @typedef {boolean} false

export function _val(val) {
return () => val
return () => val
}

@@ -26,6 +27,6 @@ /**

*/
export function _a1__wrap(value) {
export function _a1__wrap(value:any | any[]):any[] {
return (
isArray(value)
? value
? value as any[]
: [value]

@@ -50,3 +51,3 @@ )

export function call(fn, ...a1__arg) {
return fn(...a1__arg)
return fn(...a1__arg)
}

@@ -119,3 +120,3 @@ /**

export function arg__0__(fn) {
return slice__a1__arg(fn, 0, 1)
return slice__a1__arg(fn, 0, 1)
}

@@ -360,3 +361,3 @@ /**

*/
export function _eq(__a1__value) {
export function _eq(__a1__value:any[]):(value:any|any[]) => boolean {
return value => eq(concat__wrap(__a1__value, value))

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