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

@applitools/functional-commons

Package Overview
Dependencies
Maintainers
14
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/functional-commons - npm Package Compare versions

Comparing version 1.0.37 to 1.0.39

6

package.json
{
"name": "@applitools/functional-commons",
"version": "1.0.37",
"version": "1.0.39",
"description": "",

@@ -37,3 +37,3 @@ "main": "src/functional-commons.js",

"chai": "^4.2.0",
"eslint": "^5.12.1",
"eslint": "^5.13.0",
"eslint-plugin-mocha-no-only": "^1.1.0",

@@ -43,4 +43,4 @@ "eslint-plugin-node": "^8.0.1",

"mocha": "^5.2.0",
"prettier": "^1.16.1"
"prettier": "^1.16.4"
}
}

@@ -237,9 +237,18 @@ 'use strict'

let cancel
const v = await Promise.race([
promise.then(
v => ((promiseResolved = true), v),
err => ((promiseResolved = true), Promise.reject(err)),
v => ((promiseResolved = true), cancel && clearTimeout(cancel), v),
err => ((promiseResolved = true), cancel && clearTimeout(cancel), Promise.reject(err)),
),
p(setTimeout)(timeout).then(() =>
promiseResolved ? undefined : ((promiseResolved = true), func()),
new Promise(
res =>
(cancel = setTimeout(() => {
if (promiseResolved) res(undefined)
else {
cancel = undefined
promiseResolved = true
res(func())
}
}, timeout)),
),

@@ -246,0 +255,0 @@ ])

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