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

@ebflat9/fp

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebflat9/fp - npm Package Compare versions

Comparing version 1.2.40 to 1.2.41

14

dist/index.d.ts

@@ -71,7 +71,7 @@ import { EventEmitter } from "events";

*/
export const identity: (x: any) => any;
export const identity: <T>(x: T) => T;
/**
* Constant, x => y => x
*/
export const constant: (a: any) => () => any;
export const constant: <T>(a: T) => () => T;
/**

@@ -710,4 +710,4 @@ * Arity, turn a function into one with n arguments

get isNothing(): boolean;
fold(fn?: (x: any) => any): any;
filter(fn?: (x: any) => any): Maybe;
fold(fn?: <T>(x: T) => T): any;
filter(fn?: <T>(x: T) => T): Maybe;
map(fn: (x: any) => any): Maybe;

@@ -1196,3 +1196,3 @@ flatMap(fn: (x: any) => Maybe): Maybe;

builder(): IReducerBuilder;
combineReducers: (...reducers: Reducer[]) => Reducer;
combineReducers: (...reducers: IReducerFunction[]) => IReducerFunction;
}

@@ -1227,3 +1227,5 @@ interface IReducerBuilder {

export function combineReducers(reducers: IReducerObject): IReducerFunction;
type Selector = (state: any) => any;
type Selector = (state: {
[propKey: PropertyKey]: any;
}) => any;
/**

@@ -1230,0 +1232,0 @@ * createSelector takes some function and memoizes it

{
"name": "@ebflat9/fp",
"version": "1.2.40",
"version": "1.2.41",
"description": "my fp utils",

@@ -5,0 +5,0 @@ "source": "src/index.js",

@@ -405,3 +405,3 @@ /* eslint no-param-reassign: 0 */

;(Object as any).deepFreeze = (Object as any).deepFreeze || deepFreeze
(Object as any).deepFreeze = (Object as any).deepFreeze || deepFreeze

@@ -408,0 +408,0 @@ /**

@@ -10,3 +10,3 @@ /* eslint complexity: 0, no-unused-vars: 0, eqeqeq: 0, no-magic-numbers: 0 */

*/
export const identity = (x: any) => x
export const identity = <T>(x: T): T => x

@@ -16,3 +16,6 @@ /**

*/
export const constant = (a: any) => () => a
export const constant =
<T>(a: T) =>
(): T =>
a

@@ -235,3 +238,3 @@ /**

for (const item of arr) {
;(result[item[key]] || (result[item[key]] = [])).push(item)
(result[item[key]] || (result[item[key]] = [])).push(item)
}

@@ -238,0 +241,0 @@

@@ -67,3 +67,3 @@ /* eslint no-unused-vars: 0, prefer-const: 0, no-param-reassign: 0 */

do {
;({ done, value } = iterator.next())
({ done, value } = iterator.next())
} while (!done && !predicate(value))

@@ -88,3 +88,3 @@ return { done, value }

do {
;({ done, value } = iterator.next())
({ done, value } = iterator.next())
} while (!done && !searcher(value))

@@ -91,0 +91,0 @@ return { done, value }

@@ -13,3 +13,3 @@ /* eslint no-unused-vars: 0 */

builder(): IReducerBuilder
combineReducers: (...reducers: Reducer[]) => Reducer
combineReducers: (...reducers: IReducerFunction[]) => IReducerFunction
}

@@ -16,0 +16,0 @@

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