Socket
Socket
Sign inDemoInstall

waitasecond

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waitasecond - npm Package Compare versions

Comparing version 0.1.5 to 0.2.0

0

dist/functions/forAllImagesInElement.d.ts
export declare function forAllImagesInElement(element: HTMLElement): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

2

dist/functions/forAnimationFrame.d.ts

@@ -1,1 +0,1 @@

export declare function forAnimationFrame(): Promise<void>;
export declare function forAnimationFrame(): Promise<number>;

@@ -5,4 +5,4 @@ "use strict";

return new Promise(function (resolve) {
requestAnimationFrame(function () {
resolve();
requestAnimationFrame(function (now) {
resolve(now);
});

@@ -9,0 +9,0 @@ });

export declare function forImmediate(): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

export declare function forTime(miliseconds: number): Promise<void>;

@@ -0,0 +0,0 @@ "use strict";

export declare function forValueDefined<T>(getValue: () => T | undefined, waiter?: () => Promise<void>, limit?: number): Promise<T>;

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

case 0: return [4 /*yield*/, forAnimationFrame_1.forAnimationFrame()];
case 1: return [2 /*return*/, _a.sent()];
case 1:
_a.sent();
return [2 /*return*/];
}

@@ -47,0 +49,0 @@ }); }); }; }

@@ -0,0 +0,0 @@ import { forAllImagesInElement } from './functions/forAllImagesInElement';

@@ -0,0 +0,0 @@ "use strict";

{
"name": "waitasecond",
"version": "0.1.5",
"version": "0.2.0",
"description": "Simple tool library for the waiting using Promises.",

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

@@ -0,0 +0,0 @@ # Wait a second library

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