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

moderndash

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moderndash - npm Package Compare versions

Comparing version 3.10.0 to 3.11.0

41

dist/index.d.ts

@@ -131,2 +131,3 @@ import { Call, Tuples, Objects } from 'hotscript';

* Creates an object with grouped items in the array.
* @deprecated Use the javascript "Object.groupBy()" version instead.
*

@@ -831,15 +832,3 @@ * @example

/**
* The type of a plain object.
*
* This is a more strict type than the `object` type which also includes functions and arrays.
*
* You can validate if a value is a plain object with {@link isPlainObject}.
* @example
* let obj: PlainObject = { a: 1, b: 2 };
*
* obj = [1, 2, 3];
* // => Type 'number[]' is not assignable to type 'PlainObject'.
*/
type PlainObject = Record<PropertyKey, unknown>;
type GenericObject = Record<PropertyKey, any>;

@@ -860,5 +849,19 @@ type StringIfNever<Type> = [Type] extends [never] ? string : Type;

*/
declare function flatKeys<TObj extends PlainObject>(obj: TObj): Record<Paths$1<TObj>, unknown>;
declare function flatKeys<TObj extends GenericObject>(obj: TObj): Record<Paths$1<TObj>, unknown>;
/**
* The type of a plain object.
*
* This is a more strict type than the `object` type which also includes functions and arrays.
*
* You can validate if a value is a plain object with {@link isPlainObject}.
* @example
* let obj: PlainObject = { a: 1, b: 2 };
*
* obj = [1, 2, 3];
* // => Type 'number[]' is not assignable to type 'PlainObject'.
*/
type PlainObject = Record<PropertyKey, unknown>;
/**
* This function combines two or more objects into a single new object. Arrays and other types are overwritten.

@@ -883,3 +886,3 @@ *

*/
declare function merge<TTarget extends PlainObject, TSources extends ArrayMinLength<PlainObject, 1>>(target: TTarget, ...sources: TSources): MergeDeepObjects<[TTarget, ...TSources]>;
declare function merge<TTarget extends GenericObject, TSources extends ArrayMinLength<GenericObject, 1>>(target: TTarget, ...sources: TSources): MergeDeepObjects<[TTarget, ...TSources]>;
type OptionalPropertyNames<T> = {

@@ -912,3 +915,3 @@ [K in keyof T]-?: (PlainObject extends {

*/
declare function omit<TObj extends PlainObject, Key extends keyof TObj>(object: TObj, keysToOmit: Key[]): Omit<TObj, Key>;
declare function omit<TObj extends GenericObject, Key extends keyof TObj>(object: TObj, keysToOmit: Key[]): Omit<TObj, Key>;

@@ -928,3 +931,3 @@ /**

*/
declare function pick<TObj extends PlainObject, Key extends keyof TObj>(object: TObj, keysToPick: Key[]): Pick<TObj, Key>;
declare function pick<TObj extends GenericObject, Key extends keyof TObj>(object: TObj, keysToPick: Key[]): Pick<TObj, Key>;

@@ -961,3 +964,3 @@ type Paths<TObj> = Call<Objects.AllPaths, TObj> | string & {};

*/
declare function set<TObj extends PlainObject, TPath extends Paths<TObj>, TVal>(obj: TObj, path: TPath, value: TVal): UpdateObj<TObj, TPath, TVal>;
declare function set<TObj extends GenericObject, TPath extends Paths<TObj>, TVal>(obj: TObj, path: TPath, value: TVal): UpdateObj<TObj, TPath, TVal>;

@@ -1466,2 +1469,2 @@ /**

export { type ArrayMinLength, type GenericFunction, type Jsonifiable, type PlainObject, Queue, average, camelCase, capitalize, chunk, count, debounce, deburr, decDebounce, decMaxCalls, decMemoize, decMinCalls, decThrottle, difference, dropRightWhile, dropWhile, escapeHtml, escapeRegExp, flatKeys, group, hash, intersection, isEmpty, isEqual, isPlainObject, isUrl, kebabCase, maxCalls, median, memoize, merge, minCalls, move, omit, pascalCase, pick, races, randomElem, randomFloat, randomInt, randomString, range, replaceLast, retry, round, set, shuffle, sleep, snakeCase, sort, splitWords, sum, takeRightWhile, takeWhile, throttle, timeout, times, titleCase, toDecorator, trim, trimEnd, trimStart, truncate, tryCatch, unescapeHtml, unique };
export { type ArrayMinLength, type GenericFunction, type GenericObject, type Jsonifiable, type PlainObject, Queue, average, camelCase, capitalize, chunk, count, debounce, deburr, decDebounce, decMaxCalls, decMemoize, decMinCalls, decThrottle, difference, dropRightWhile, dropWhile, escapeHtml, escapeRegExp, flatKeys, group, hash, intersection, isEmpty, isEqual, isPlainObject, isUrl, kebabCase, maxCalls, median, memoize, merge, minCalls, move, omit, pascalCase, pick, races, randomElem, randomFloat, randomInt, randomString, range, replaceLast, retry, round, set, shuffle, sleep, snakeCase, sort, splitWords, sum, takeRightWhile, takeWhile, throttle, timeout, times, titleCase, toDecorator, trim, trimEnd, trimStart, truncate, tryCatch, unescapeHtml, unique };
{
"name": "moderndash",
"version": "3.10.0",
"version": "3.11.0",
"type": "module",

@@ -58,6 +58,6 @@ "description": "A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.",

"devDependencies": {
"tsup": "8.0.1",
"ctix": "1.8.3",
"tsup": "8.0.2",
"ctix": "2.4.0",
"cross-env": "7.0.3"
}
}

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