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

@teleology/fp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleology/fp - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

lib/debounce.d.ts

2

lib/arrays.js

@@ -8,3 +8,3 @@ "use strict";

for (const key of keys) {
if ((0, pick_1.get)(key)(src) !== obj[key]) {
if ((0, pick_1.get)(key, undefined, src) !== obj[key]) {
return false;

@@ -11,0 +11,0 @@ }

import { Equalizer, Iterable } from "./types";
export declare const filter: (arg: Equalizer) => (src: Iterable) => any[];
export declare const filter: (arg: Equalizer | Object) => (src: Iterable) => any[];

@@ -18,1 +18,2 @@ export * from './parallel';

export * from './set';
export * from './debounce';

@@ -34,1 +34,2 @@ "use strict";

__exportStar(require("./set"), exports);
__exportStar(require("./debounce"), exports);
import { Equalizer, Iterable } from "./types";
export declare const map: (arg: Equalizer) => (src: Iterable) => boolean | Object | undefined;
export declare const map: (arg: Equalizer) => (src: Iterable) => boolean | boolean[] | undefined;
import { Iterable } from './types';
export declare const get: (path: string, def?: any) => (obj: Iterable) => any;
declare type CurriedGet = Iterable | ((src: Iterable) => Iterable);
export declare const get: (path: string, def?: any, src?: Iterable | undefined) => CurriedGet;
export declare type PickOptions = {

@@ -7,1 +8,2 @@ clean: boolean;

export declare const pick: (paths: string[], options?: PickOptions | undefined) => (src: Iterable) => any;
export {};

@@ -6,5 +6,7 @@ "use strict";

const clean_1 = require("./clean");
const get = (path, def) => (obj) => {
const get = (path, def, src) => {
if (!src)
return (src) => (0, exports.get)(path, def, src);
try {
return (0, dot_1.dot)(path).reduce((a, b) => a[b], obj);
return (0, dot_1.dot)(path).reduce((a, b) => a[b], src);
}

@@ -21,3 +23,3 @@ catch (e) {

const path = (0, dot_1.dot)(originalPath);
const value = (0, exports.get)(originalPath)(src);
const value = (0, exports.get)(originalPath, undefined, src);
// don't try to find something that doesn't exist

@@ -24,0 +26,0 @@ if (!path[0].match(/\d/g) && !src.hasOwnProperty(path[0])) {

export declare type Iterable = {
[key: string | number | symbol]: any;
};
export declare type Equalizer = (v: any, i: number) => boolean | Object;
export declare type Equalizer = (v: any, i: number) => boolean;
export declare type AsyncFunction = (...any: any[]) => Promise<any>;
export declare type Chainable = AsyncFunction | Function;
{
"name": "@teleology/fp",
"version": "3.0.3",
"version": "3.0.4",
"description": "A small collection of functional programming utils",

@@ -13,3 +13,3 @@ "author": "Chris Sullivan <chrissullivan.dev@gmail.com>",

"type": "git",
"url": "https://github.com/teleology-io/teleology-fp.git"
"url": "git+https://github.com/teleology-io/teleology-fp.git"
},

@@ -16,0 +16,0 @@ "bugs": {

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