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

@essentials/request-timeout

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@essentials/request-timeout - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

dist/cjs/index.js

@@ -54,5 +54,5 @@ 'use strict'

const loop = () => {
const current = (0, _performanceNow.default)()
const delta = current - start
delta >= delay ? fn.call() : (handle.value = (0, _raf.default)(loop))
;(0, _performanceNow.default)() - start >= delay
? fn.call()
: (handle.value = (0, _raf.default)(loop))
}

@@ -59,0 +59,0 @@

@@ -16,5 +16,3 @@ import raf, {cancel} from 'raf'

const loop = () => {
const current = now()
const delta = current - start
delta >= delay ? fn.call() : (handle.value = raf(loop))
now() - start >= delay ? fn.call() : (handle.value = raf(loop))
}

@@ -21,0 +19,0 @@

{
"name": "@essentials/request-timeout",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/cjs/index.js",

@@ -5,0 +5,0 @@ "author": "Jared Lunde <jared@BeStellar.co> (https://BeStellar.co)",

@@ -15,6 +15,3 @@ import raf, {cancel} from 'raf'

const loop = () => {
const current = now()
const delta = current - start
delta >= delay
now() - start >= delay
? fn.call()

@@ -21,0 +18,0 @@ : handle.value = raf(loop)

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