Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dofiltra/helpers

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dofiltra/helpers - npm Package Compare versions

Comparing version 1.0.55 to 1.0.56

8

lib/index.d.ts

@@ -272,1 +272,9 @@ import type { TDodecoratorSettings, TResultError, TTrackMetadata } from '@dofiltra/types';

}
export declare class Dowaiter {
static while({ condition, ms, timeout, msg }: {
condition: () => Promise<boolean>;
ms?: number;
timeout?: number;
msg?: string;
}): Promise<void>;
}

14

lib/index.js

@@ -883,6 +883,16 @@ /* tslint:disable:max-classes-per-file */

//#endregion TIMELINE
//#region WAITER
export class Dowaiter {
static async while({ condition, ms = 1e3, timeout, msg }) {
let nowMs = 0;
while ((await condition()) && (!timeout || nowMs < timeout)) {
await sleep(ms);
nowMs += ms;
msg && console.log(msg, `${nowMs / 1e3}s`);
}
}
}
//#endregion WAITER
//#region COMMON
//#endregion COMMON
//#region COMMON
//#endregion COMMON
//#region CIPHER

@@ -889,0 +899,0 @@ // export class CipherHelper {

4

package.json
{
"name": "@dofiltra/helpers",
"version": "1.0.55",
"version": "1.0.56",
"license": "MIT",

@@ -29,3 +29,3 @@ "main": "./lib/index.js",

"devDependencies": {
"@dofiltra/types": "^1.0.219",
"@dofiltra/types": "^1.0.222",
"@types/node": "^20.8.0",

@@ -32,0 +32,0 @@ "prettier": "^3.0.3",

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