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.3.1 to 3.3.2

28

dist/index.d.ts

@@ -53,3 +53,3 @@ /**

*/
type ArrayMinLength<TElem, TMinLenght extends number> = BuildArrayMinLength<TElem, TMinLenght, []>;
type ArrayMinLength<TElem, TMinLength extends number> = BuildArrayMinLength<TElem, TMinLength, []>;
type BuildArrayMinLength<TElem, TMinLength extends number, Current extends TElem[]> = Current["length"] extends TMinLength ? [...Current, ...TElem[]] : BuildArrayMinLength<TElem, TMinLength, [...Current, TElem]>;

@@ -90,3 +90,3 @@

* Creates a slice of `array` excluding elements dropped from the end.
* Elements are dropped until `predicate` returns falsey.
* Elements are dropped until `predicate` returns falsy.
*

@@ -111,3 +111,3 @@ * @example

* Creates a slice of `array` excluding elements dropped from the beginning.
* Elements are dropped until `predicate` returns falsey.
* Elements are dropped until `predicate` returns falsy.
*

@@ -239,3 +239,3 @@ * @example

* Creates a slice of `array` with elements taken from the end.
* Elements are taken until `predicate` returns falsey.
* Elements are taken until `predicate` returns falsy.
*

@@ -260,3 +260,3 @@ * @example

* Creates a slice of `array` with elements taken from the beginning.
* Elements are taken until `predicate` returns falsey.
* Elements are taken until `predicate` returns falsy.
*

@@ -439,3 +439,3 @@ * @example

/**
* Debouces the decorated function. Only calling it after a specified amount of time has passed without any new calls.
* Debounces the decorated function. Only calling it after a specified amount of time has passed without any new calls.
*

@@ -462,3 +462,3 @@ * Look at {@link debounce} for the non-decorator version.

*/
declare function decDebounce(wait: number): (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function decDebounce(wait: number): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -489,3 +489,3 @@ /**

*/
declare function decMaxCalls(n: number): (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function decMaxCalls(n: number): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -577,3 +577,3 @@ type GenericFunction<TFunc extends (...args: any) => any> = (...args: Parameters<TFunc>) => ReturnType<TFunc>;

*/
declare function decMemoize(options?: Parameters<typeof memoize>[1]): (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function decMemoize(options?: Parameters<typeof memoize>[1]): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -601,3 +601,3 @@ /**

*/
declare function decMinCalls(n: number): (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function decMinCalls(n: number): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -626,3 +626,3 @@ /**

*/
declare function decThrottle(wait: number): (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function decThrottle(wait: number): (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -658,3 +658,3 @@ type Tail<T extends unknown[]> = T extends [infer _Head, ...infer Tail] ? Tail : never;

*/
declare function toDecorator<TFunc extends GenericFunction<TFunc>>(func: TFunc): (...args: Tail<Parameters<TFunc>>) => (target: unknown, key: string, descriptor: PropertyDescriptor) => void;
declare function toDecorator<TFunc extends GenericFunction<TFunc>>(func: TFunc): (...args: Tail<Parameters<TFunc>>) => (_target: unknown, _key: string, descriptor: PropertyDescriptor) => void;

@@ -976,5 +976,5 @@ /**

/**
* Add aync functions or an array of async functions to the queue.
* Add async functions or an array of async functions to the queue.
*
* @param asyncFn The aync function(s) to add to the queue.
* @param asyncFn The async function(s) to add to the queue.
* @returns A promise that resolves when the added function(s) finishes.

@@ -981,0 +981,0 @@ */

@@ -266,3 +266,3 @@ // src/array/chunk.ts

return function(...args) {
return function(target, key, descriptor) {
return function(_target, _key, descriptor) {
const creatorArgs = [descriptor.value, ...args];

@@ -650,3 +650,3 @@ descriptor.value = func(...creatorArgs);

// src/string/splitWords.ts
var wordsRegex = /(\d*[a-z]+)|([A-Z][a-z]+)|(\d*[A-Z]+(?=[^a-z]|$))|(\d+)/g;
var wordsRegex = /(?:\d*[a-z]+)|(?:[A-Z][a-z]+)|(?:\d*[A-Z]+(?=[^a-z]|$))|\d+/g;
function splitWords(str) {

@@ -692,5 +692,5 @@ return str.match(wordsRegex) ?? [];

// src/string/escapeRegExp.ts
var escapleCharsRegex = /[$()*+.?[\\\]^{|}]/g;
var escapeCharsRegex = /[$()*+.?[\\\]^{|}]/g;
function escapeRegExp(str) {
return str.replace(escapleCharsRegex, "\\$&");
return str.replace(escapeCharsRegex, "\\$&");
}

@@ -697,0 +697,0 @@

{
"name": "moderndash",
"version": "3.3.1",
"version": "3.3.2",
"type": "module",

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

"scripts": {
"build:index": "ctix create --startAt src --overwrite --noBackup",
"build:index": "ctix create --startAt src --overwrite --noBackup --quote \"\"\"",
"build": "tsup",

@@ -15,0 +15,0 @@ "prepublishOnly": "npm run test && npm run build && cp '../README.md' './README.md' && cp '../LICENSE' './LICENSE'",

![ModernDash Logo](https://raw.githubusercontent.com/Maggi64/moderndash/main/website/src/assets/moderndashLogo.svg)
<p align=center>
A Typescript-First utility library inspired by Lodash.
Optimized for modern browsers & developer experience.
<b>
A Typescript-First utility library inspired by Lodash.
Optimized for modern browsers & developer experience.
</b>
</p>

@@ -7,0 +9,0 @@

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