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

foreach-prop

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foreach-prop - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

types/call-it-back.d.ts

0

dist/each-prop.cjs.js

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

@@ -0,0 +0,0 @@ import toArray from 'args-to-arr';

@@ -0,0 +0,0 @@ (function (global, factory) {

6

package.json
{
"name": "foreach-prop",
"version": "1.1.1",
"version": "1.1.2",
"description": "Array-like methods for objects",

@@ -27,3 +27,3 @@ "main": "dist/each-prop.cjs.js",

"scripts": {
"lint": "tslint src/**",
"lint": "tslint src/**/*.ts",
"clean": "rm -rf dist types coverage",

@@ -45,4 +45,4 @@ "dev": "rollup -cw",

"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-dts": "^0.15.1",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-typescript2": "^0.21.0",
"tslint": "^5.16.0",

@@ -49,0 +49,0 @@ "typescript": "^3.4.5"

@@ -12,2 +12,2 @@ export { default as forEach } from "./for-each";

export { default as every } from "./every";
export * from "./types";
export { FilterCallback, ForEachCallback, MapCallback, ReduceCallback } from "./types";

@@ -1,18 +0,12 @@

declare type Key = keyof any;
declare type Extra = any[];
declare type MapCallback<K extends Key, V, E extends Extra, TH = any, R = any> = (this: TH, value: V, key: K, ...extra: E) => R;
declare type ReduceCallback<K extends Key, V, E extends Extra, R = any, TH = any> = (this: TH, prev: R, value: V, key: K, ...extra: E) => R;
declare type ForEachCallback<K extends Key, V, E extends Extra, TH = any> = MapCallback<K, V, E, TH, void>;
declare type FilterCallback<K extends Key, V, E extends Extra, TH = any> = MapCallback<K, V, E, TH, any>;
declare function forEach<K extends Key, V, E extends Extra, TH = any>(this: TH, object: Record<K, V>, callback: ForEachCallback<K, V, E, TH>, ...extra: E): void;
declare function map<K extends keyof any, V, E extends any[], RV = any, TH = any>(this: TH, object: Record<K, V>, callback: MapCallback<K, V, E, TH, RV>, ...extra: E): Record<K, RV>;
declare function keyOf<K extends keyof any, V>(object: Record<K, V>, value: V): K | null;
declare function lastKeyOf<K extends keyof any, V>(object: Record<K, V>, value: V): K | null;
declare function includes<K extends keyof any, V>(object: Record<K, V>, value: V): boolean;
declare function findKey<K extends keyof any, V, E extends any[], TH = any>(this: TH, object: Record<K, V>, callback: FilterCallback<K, V, E, TH>, ...extra: E): K | null;
declare function find<K extends keyof any, V, E extends any[], TH = any>(this: TH, object: Record<K, V>, callback: FilterCallback<K, V, E, TH>, ...extra: E): V | void;
declare function filter<K extends keyof any, V, E extends any[], TH = any>(this: TH, object: Record<K, V>, callback: FilterCallback<K, V, E, TH>, ...extra: E): Record<K, V>;
declare function reduce<K extends keyof any, V, E extends any[], R = any, TH = any>(this: TH, object: Record<K, V>, callback: ReduceCallback<K, V, E, R, TH>, initial?: R, ...extra: E): R | undefined;
declare function some<K extends keyof any, V, E extends any[], TH = any>(this: TH, object: Record<K, V>, callback: FilterCallback<K, V, E, TH>, ...extra: E): boolean;
declare function every<K extends Key, V, E extends Extra, TH = any>(this: TH, object: Record<K, V>, callback: FilterCallback<K, V, E, TH>, ...extra: E): boolean;
export { FilterCallback, ForEachCallback, MapCallback, ReduceCallback, every, filter, find, findKey, forEach, includes, keyOf, lastKeyOf, map, reduce, some };
export { default as forEach } from "./for-each";
export { default as map } from "./map";
export { default as keyOf } from "./key-of";
export { default as lastKeyOf } from "./last-key-of";
export { default as includes } from "./includes";
export { default as findKey } from "./find-key";
export { default as find } from "./find";
export { default as filter } from "./filter";
export { default as reduce } from "./reduce";
export { default as some } from "./some";
export { default as every } from "./every";
export { FilterCallback, ForEachCallback, MapCallback, ReduceCallback } from "./types";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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