Socket
Socket
Sign inDemoInstall

@furystack/utils

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/utils - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

2

dist/debounce.d.ts

@@ -7,3 +7,3 @@ /**

*/
export declare const debounce: <TArgs extends any[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs?: number) => (...args: TArgs) => TReturns;
export declare const debounce: <TArgs extends unknown[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs?: number) => (...args: TArgs) => TReturns;
//# sourceMappingURL=debounce.d.ts.map

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

};
;
Array.prototype.filterAsync = function (callbackFn) {

@@ -21,0 +20,0 @@ return exports.filterAsync(this, callbackFn);

@@ -11,5 +11,3 @@ export * from './disposable';

export * from './trace';
export * from './to-number';
export * from './tuple';
export * from './async-return-value';
//# sourceMappingURL=index.d.ts.map

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

tslib_1.__exportStar(require("./trace"), exports);
tslib_1.__exportStar(require("./to-number"), exports);
tslib_1.__exportStar(require("./tuple"), exports);
tslib_1.__exportStar(require("./async-return-value"), exports);
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ import { Disposable } from './disposable';

*/
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => any, TArgs extends any[]> {
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => unknown, TArgs extends unknown[]> {
/**

@@ -9,0 +9,0 @@ * The context object. Can be an instance or a constructor for static methods

{
"name": "@furystack/utils",
"version": "1.1.10",
"version": "1.1.11",
"description": "General utilities",

@@ -39,3 +39,3 @@ "main": "dist/index.js",

},
"gitHead": "7bc33e6ebee975d23e4e782e37e398472c726b1d"
"gitHead": "da155803c6c0122eb2285825d39d621fda637b28"
}

@@ -7,4 +7,4 @@ /**

*/
export const debounce = <TArgs extends any[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs = 250) => {
let timeout: any
export const debounce = <TArgs extends unknown[], TReturns>(method: (...args: TArgs) => TReturns, debounceMs = 250) => {
let timeout: number | undefined
return ((...args: TArgs) => {

@@ -11,0 +11,0 @@ if (timeout) {

@@ -27,4 +27,4 @@ /**

}
;(Array.prototype as any).filterAsync = function(callbackFn: (entry: any) => Promise<boolean>) {
Array.prototype.filterAsync = function(callbackFn) {
return filterAsync(this, callbackFn)
}

@@ -11,4 +11,2 @@ export * from './disposable'

export * from './trace'
export * from './to-number'
export * from './tuple'
export * from './async-return-value'

@@ -40,3 +40,3 @@ import { RetrierOptions } from './retrier-options'

private async wait(ms: number) {
return new Promise<any>(resolve => {
return new Promise(resolve => {
setTimeout(resolve, ms)

@@ -43,0 +43,0 @@ })

@@ -7,3 +7,3 @@ import { Disposable } from './disposable'

*/
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => any, TArgs extends any[]> {
export interface TraceMethodOptions<T, TMethod extends (...args: TArgs) => unknown, TArgs extends unknown[]> {
/**

@@ -10,0 +10,0 @@ * The context object. Can be an instance or a constructor for static methods

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

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

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