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

async-test-util

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-test-util - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

6

dist/es/is-promise.js

@@ -5,6 +5,6 @@ /**

export default function isPromise(value) {
try {
if (typeof value.then === 'function') return true;
} catch (err) {}
if (typeof value !== 'undefined' && typeof value.then === 'function') {
return true;
}
return false;
}

@@ -6,3 +6,3 @@ import wait from './wait';

var t = 1; // trick optimizers
return new Promise(function (res) {
return new Promise(function () {
var runLoop = function runLoop() {

@@ -17,4 +17,4 @@ t++;

};
runLoop();
runLoop(t);
});
}

@@ -5,6 +5,4 @@ /**

*/
export default function waitForever(fun) {
var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var interval = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 20;
return new Promise(function (res) {});
export default function waitForever() {
return new Promise(function () {});
}

@@ -11,6 +11,6 @@ "use strict";

function isPromise(value) {
try {
if (typeof value.then === 'function') return true;
} catch (err) {}
if (typeof value !== 'undefined' && typeof value.then === 'function') {
return true;
}
return false;
}

@@ -13,3 +13,3 @@ "use strict";

var t = 1; // trick optimizers
return new Promise(function (res) {
return new Promise(function () {
var runLoop = function runLoop() {

@@ -24,4 +24,4 @@ t++;

};
runLoop();
runLoop(t);
});
}

@@ -11,6 +11,4 @@ "use strict";

*/
function waitForever(fun) {
var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var interval = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 20;
return new Promise(function (res) {});
function waitForever() {
return new Promise(function () {});
}
{
"name": "async-test-util",
"version": "2.3.0",
"version": "2.4.0",
"description": "Util-functions that are be useful in async tests",

@@ -47,5 +47,4 @@ "keywords": [

"devDependencies": {
"assert": "2.1.0",
"@babel/cli": "7.23.4",
"@babel/core": "7.23.7",
"@babel/cli": "7.23.9",
"@babel/core": "7.23.9",
"@babel/plugin-external-helpers": "7.23.3",

@@ -58,3 +57,3 @@ "@babel/plugin-proposal-class-properties": "7.18.6",

"@babel/plugin-transform-property-literals": "7.23.3",
"@babel/plugin-transform-runtime": "7.23.7",
"@babel/plugin-transform-runtime": "7.23.9",
"@babel/plugin-transform-spread": "7.23.3",

@@ -64,7 +63,8 @@ "@babel/plugin-transform-template-literals": "7.23.3",

"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.23.8",
"@babel/preset-env": "7.23.9",
"@babel/preset-typescript": "7.23.3",
"@babel/types": "7.23.6",
"@babel/types": "7.23.9",
"assert": "2.1.0",
"cross-env": "7.0.3",
"eslint": "5.16.0",
"eslint": "8.56.0",
"karma": "6.4.2",

@@ -81,9 +81,10 @@ "karma-babel-preprocessor": "8.0.2",

"karma-safari-launcher": "1.0.0",
"karma-webpack": "5.0.0",
"karma-webpack": "5.0.1",
"mocha": "10.2.0",
"process": "0.11.10",
"rimraf": "5.0.5",
"webpack": "5.89.0"
"webpack": "5.90.1"
},
"dependencies": {
"@babel/runtime": "7.23.9",
"@types/clone": "2.1.4",

@@ -90,0 +91,0 @@ "clone": "2.1.2",

@@ -5,7 +5,9 @@ /**

export default function isPromise(value) {
try {
if (typeof value.then === 'function')
return true;
} catch (err) {}
if (
typeof value !== 'undefined' &&
typeof value.then === 'function'
) {
return true;
}
return false;
}

@@ -6,3 +6,3 @@ import wait from './wait';

let t = 1; // trick optimizers
return new Promise(res => {
return new Promise(() => {
const runLoop = () => {

@@ -15,4 +15,4 @@ t++;

};
runLoop();
runLoop(t);
});
}

@@ -5,4 +5,4 @@ /**

*/
export default function waitForever(fun, timeout = 0, interval = 20) {
return new Promise(res => {});
export default function waitForever() {
return new Promise(() => { });
}

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