Socket
Socket
Sign inDemoInstall

prom-utils

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-utils - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

4

CHANGELOG.md

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

# 0.12.1
- Fixed type for `raceTimeout`.
# 0.12.0

@@ -2,0 +6,0 @@

2

dist/fns.d.ts

@@ -140,2 +140,2 @@ import makeError from 'make-error';

*/
export declare const raceTimeout: <A>(prom: Promise<A>, timeout: number) => Promise<unknown>;
export declare const raceTimeout: <A>(prom: Promise<A>, timeout: number) => Promise<typeof TIMEOUT | Awaited<A>>;
{
"name": "prom-utils",
"version": "0.12.0",
"version": "0.12.1",
"description": "Promise utilities: rate limiting, queueing/batching, defer, etc.",

@@ -5,0 +5,0 @@ "author": "GovSpend",

@@ -477,5 +477,5 @@ import _debug from 'debug'

export const raceTimeout = <A>(prom: Promise<A>, timeout: number) =>
Promise.race([
Promise.race<A | typeof TIMEOUT>([
prom,
new Promise((resolve) => setTimeout(() => resolve(TIMEOUT), timeout)),
])
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