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.2.10 to 1.2.11

3

dist/debounce.js

@@ -10,3 +10,3 @@ "use strict";

*/
exports.debounce = (method, debounceMs = 250) => {
const debounce = (method, debounceMs = 250) => {
let timeout;

@@ -24,2 +24,3 @@ return ((...args) => {

};
exports.debounce = debounce;
//# sourceMappingURL=debounce.js.map

@@ -11,3 +11,3 @@ "use strict";

*/
exports.deepMerge = (target, ...sources) => {
const deepMerge = (target, ...sources) => {
if (!sources.length) {

@@ -34,2 +34,3 @@ return target;

};
exports.deepMerge = deepMerge;
//# sourceMappingURL=deep-merge.js.map

@@ -35,3 +35,3 @@ "use strict";

*/
exports.using = (resource, callback) => {
const using = (resource, callback) => {
try {

@@ -44,2 +44,3 @@ return callback(resource);

};
exports.using = using;
/**

@@ -53,3 +54,3 @@ * Method that accepts an IDisposable resource that will be disposed after the callback

*/
exports.usingAsync = async (resource, callback) => {
const usingAsync = async (resource, callback) => {
try {

@@ -65,2 +66,3 @@ return await callback(resource);

};
exports.usingAsync = usingAsync;
//# sourceMappingURL=disposable.js.map

@@ -11,3 +11,3 @@ "use strict";

*/
exports.filterAsync = async (values, callbackFn) => {
const filterAsync = async (values, callbackFn) => {
const returns = [];

@@ -20,2 +20,3 @@ for (const value of values) {

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

@@ -22,0 +23,0 @@ return exports.filterAsync(this, callbackFn);

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

*/
export declare const sleepAsync: (timeout?: number) => Promise<unknown>;
export declare const sleepAsync: (timeout?: number) => Promise<void>;
//# sourceMappingURL=sleep-async.d.ts.map

@@ -10,5 +10,6 @@ "use strict";

*/
exports.sleepAsync = (timeout = 250) => new Promise((resolve) => setTimeout(() => {
const sleepAsync = (timeout = 250) => new Promise((resolve) => setTimeout(() => {
resolve();
}, timeout));
exports.sleepAsync = sleepAsync;
//# sourceMappingURL=sleep-async.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compareBy = void 0;
exports.compareBy = (entity1, entity2, field, direction) => {
const compareBy = (entity1, entity2, field, direction) => {
const a = direction === 'asc' ? entity1 : entity2;

@@ -15,2 +15,3 @@ const b = direction === 'asc' ? entity2 : entity1;

};
exports.compareBy = compareBy;
Array.prototype.sortBy = function (key, direction = 'asc') {

@@ -17,0 +18,0 @@ return this.sort((a, b) => exports.compareBy(a, b, key, direction));

@@ -10,3 +10,4 @@ "use strict";

*/
exports.tuple = (...args) => args;
const tuple = (...args) => args;
exports.tuple = tuple;
//# sourceMappingURL=tuple.js.map
{
"name": "@furystack/utils",
"version": "1.2.10",
"version": "1.2.11",
"description": "General utilities",

@@ -37,5 +37,5 @@ "main": "dist/index.js",

"devDependencies": {
"@types/jest": "^26.0.14"
"@types/jest": "^26.0.15"
},
"gitHead": "8391c183a89bdc837aac4dcda91c693e2964fb51"
"gitHead": "9af051b8717103d81efabb95f675d116cd5421d3"
}

@@ -105,3 +105,3 @@ import { using, usingAsync, Disposable } from './disposable'

public async dispose() {
await new Promise((resolve) =>
await new Promise<void>((resolve) =>
setTimeout(() => {

@@ -108,0 +108,0 @@ this.isDisposed = true

@@ -8,3 +8,3 @@ /**

export const sleepAsync = (timeout = 250) =>
new Promise((resolve) =>
new Promise<void>((resolve) =>
setTimeout(() => {

@@ -11,0 +11,0 @@ resolve()

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

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