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

@saulx/utils

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saulx/utils - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

49

dist/queued.d.ts

@@ -1,4 +0,49 @@

export default function queued<A, B, C, D, E, F, G, H>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H) => Promise<H>, opts?: {
declare function queued<K>(promiseFn: () => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H) => Promise<H>;
}): () => Promise<K>;
declare function queued<A, K>(promiseFn: (a?: A) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A) => Promise<K>;
declare function queued<A, B, K>(promiseFn: (a?: A, b?: B) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B) => Promise<K>;
declare function queued<A, B, C, K>(promiseFn: (a?: A, b?: B, c?: C) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C) => Promise<K>;
declare function queued<A, B, C, D, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D) => Promise<K>;
declare function queued<A, B, C, D, E, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E) => Promise<K>;
declare function queued<A, B, C, D, E, F, G, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G) => Promise<K>;
declare function queued<A, B, C, D, E, F, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F) => Promise<K>;
declare function queued<A, B, C, D, E, F, G, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G) => Promise<K>;
declare function queued<A, B, C, D, E, F, G, H, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H) => Promise<K>;
declare function queued<A, B, C, D, E, F, G, H, I, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H, i?: I) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H, i?: I) => Promise<K>;
declare function queued<A, B, C, D, E, F, G, H, I, J, K>(promiseFn: (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H, i?: I, j?: J) => Promise<K>, opts?: {
concurrency?: number;
dedup?: (...args: any[]) => number | string;
}): (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H, i?: I, j?: J) => Promise<K>;
export default queued;

32

dist/queued.js

@@ -73,34 +73,4 @@ "use strict";

};
return (a, b, c, d, e, f, g, h) => {
return (...args) => {
return new Promise((resolve, reject) => {
let args;
// this beauty is there for type script so args.length will still be correct
// (typescript does not support inheriting types from args directly...)
if (h !== undefined) {
args = [a, b, c, d, e, f, g, h];
}
else if (g !== undefined) {
args = [a, b, c, d, e, f, g];
}
else if (f !== undefined) {
args = [a, b, c, d, e, f];
}
else if (e !== undefined) {
args = [a, b, c, d, e];
}
else if (d !== undefined) {
args = [a, b, c, d];
}
else if (c !== undefined) {
args = [a, b, c];
}
else if (b !== undefined) {
args = [a, b];
}
else if (a !== undefined) {
args = [a];
}
else {
args = [];
}
const id = opts.dedup(...args);

@@ -107,0 +77,0 @@ if (!listeners[id]) {

{
"name": "@saulx/utils",
"main": "./dist/index.js",
"version": "1.4.2",
"version": "1.4.3",
"scripts": {

@@ -6,0 +6,0 @@ "build": "tsc",

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