Socket
Socket
Sign inDemoInstall

ts-lodash

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-lodash - npm Package Compare versions

Comparing version 4.0.8 to 4.0.9

17

lib/lodash.d.ts

@@ -5,5 +5,12 @@ /// <reference types="lodash" />

readonly ary: (func: (...args: any[]) => any, n?: number | undefined) => (...args: any[]) => any;
readonly throttle: <T extends (...args: any[]) => any>(func: T, wait?: number | undefined, options?: lodash.ThrottleSettings | undefined) => T & lodash.Cancelable;
readonly compact: <T>(array: ArrayLike<false | "" | 0 | T | null | undefined> | null | undefined) => T[];
readonly flatMap: (func: (...args: any[]) => any, n?: number | undefined) => (...args: any[]) => any;
readonly flatMap: {
<T>(collection: ArrayLike<lodash.Many<T>> | lodash.Dictionary<lodash.Many<T>> | lodash.NumericDictionary<lodash.Many<T>> | null | undefined): T[];
(collection: object | null | undefined): any[];
<T, TResult>(collection: ArrayLike<T> | null | undefined, iteratee: lodash.ListIterator<T, lodash.Many<TResult>>): TResult[];
<T, TResult>(collection: lodash.NumericDictionary<T> | null | undefined, iteratee: lodash.NumericDictionaryIterator<T, lodash.Many<TResult>>): TResult[];
<T extends object, TResult>(collection: T | null | undefined, iteratee: lodash.ObjectIterator<T, lodash.Many<TResult>>): TResult[];
(collection: object | null | undefined, iteratee: string): any[];
(collection: object | null | undefined, iteratee: object): boolean[];
};
readonly get: {

@@ -49,2 +56,7 @@ <TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];

readonly result: <TResult>(object: any, path: lodash.Many<PropertyKey>, defaultValue?: TResult | ((...args: any[]) => TResult) | undefined) => TResult;
readonly sample: {
<T>(collection: ArrayLike<T> | lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): T | undefined;
<T extends object>(collection: T): T[keyof T];
<T extends object>(collection: T | null | undefined): T[keyof T] | undefined;
};
readonly set: {

@@ -62,2 +74,3 @@ <T extends object>(object: T, path: lodash.Many<PropertyKey>, value: any): T;

};
readonly throttle: <T extends (...args: any[]) => any>(func: T, wait?: number | undefined, options?: lodash.ThrottleSettings | undefined) => T & lodash.Cancelable;
readonly uniq: <T>(array: ArrayLike<T> | null | undefined) => T[];

@@ -64,0 +77,0 @@ readonly uniqBy: {

3

lib/lodash.js

@@ -5,3 +5,2 @@ "use strict";

get ary() { return fetch('lodash/ary'); },
get throttle() { return fetch('lodash/throttle'); },
get compact() { return fetch('lodash/compact'); },

@@ -20,5 +19,7 @@ get flatMap() { return fetch('lodash/flatMap'); },

get result() { return fetch('lodash/result'); },
get sample() { return fetch('lodash/sample'); },
get set() { return fetch('lodash/set'); },
get sortBy() { return fetch('lodash/sortBy'); },
get sortedUniqBy() { return fetch('lodash/sortedUniqBy'); },
get throttle() { return fetch('lodash/throttle'); },
get uniq() { return fetch('lodash/uniq'); },

@@ -25,0 +26,0 @@ get uniqBy() { return fetch('lodash/uniqBy'); },

{
"name": "ts-lodash",
"description": "lazy-loading lodash for typescript",
"version": "4.0.8",
"version": "4.0.9",
"author": "Jeff Dickey",

@@ -10,5 +10,5 @@ "dependencies": {

"devDependencies": {
"@cli-engine/util": "^1.0.12",
"@types/lodash": "^4.14.91",
"@types/node": "^8.5.1",
"del-cli": "^1.1.0",
"@types/node": "^8.5.2",
"typescript": "^2.6.2"

@@ -26,5 +26,5 @@ },

"scripts": {
"prepare": "del lib && tsc"
"prepare": "cli-engine-util"
},
"types": "./lib/lodash.d.ts"
}
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