fast-check
Advanced tools
Comparing version
@@ -37,3 +37,3 @@ import { escapeForTemplateString } from '../helpers/TextEscaper.js'; | ||
trigger = () => { | ||
const promise = Promise.resolve(thenTaskToBeAwaited ? task.then(() => thenTaskToBeAwaited()) : task); | ||
const promise = Promise.resolve(thenTaskToBeAwaited !== undefined ? task.then(() => thenTaskToBeAwaited()) : task); | ||
promise.then((data) => { | ||
@@ -136,4 +136,9 @@ this.log(schedulingType, taskId, label, metadata, 'resolved', data); | ||
awaiterScheduledTaskPromise = this.waitOne(customAct); | ||
awaiterScheduledTaskPromise.then(() => (awaiterScheduledTaskPromise = null), () => (awaiterScheduledTaskPromise = null)); | ||
return awaiterScheduledTaskPromise.then(awaiter); | ||
return awaiterScheduledTaskPromise.then(() => { | ||
awaiterScheduledTaskPromise = null; | ||
return awaiter(); | ||
}, (err) => { | ||
awaiterScheduledTaskPromise = null; | ||
throw err; | ||
}); | ||
} | ||
@@ -140,0 +145,0 @@ awaiterPromise = null; |
@@ -40,3 +40,3 @@ "use strict"; | ||
trigger = () => { | ||
const promise = Promise.resolve(thenTaskToBeAwaited ? task.then(() => thenTaskToBeAwaited()) : task); | ||
const promise = Promise.resolve(thenTaskToBeAwaited !== undefined ? task.then(() => thenTaskToBeAwaited()) : task); | ||
promise.then((data) => { | ||
@@ -139,4 +139,9 @@ this.log(schedulingType, taskId, label, metadata, 'resolved', data); | ||
awaiterScheduledTaskPromise = this.waitOne(customAct); | ||
awaiterScheduledTaskPromise.then(() => (awaiterScheduledTaskPromise = null), () => (awaiterScheduledTaskPromise = null)); | ||
return awaiterScheduledTaskPromise.then(awaiter); | ||
return awaiterScheduledTaskPromise.then(() => { | ||
awaiterScheduledTaskPromise = null; | ||
return awaiter(); | ||
}, (err) => { | ||
awaiterScheduledTaskPromise = null; | ||
throw err; | ||
}); | ||
} | ||
@@ -143,0 +148,0 @@ awaiterPromise = null; |
@@ -203,5 +203,5 @@ "use strict"; | ||
exports.__type = __type; | ||
const __version = '4.1.0'; | ||
const __version = '4.1.1'; | ||
exports.__version = __version; | ||
const __commitHash = '9375f31f81ca6a8efd2bc87a513378bf0b2680fb'; | ||
const __commitHash = '0c99b1eddbd57cdddc8dc11be12f436bf22aa803'; | ||
exports.__commitHash = __commitHash; |
@@ -157,3 +157,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 4.1.0) | ||
* Version of fast-check used by your project (eg.: 4.1.1) | ||
* @remarks Since 1.22.0 | ||
@@ -164,3 +164,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 9375f31f81ca6a8efd2bc87a513378bf0b2680fb) | ||
* Commit hash of the current code (eg.: 0c99b1eddbd57cdddc8dc11be12f436bf22aa803) | ||
* @remarks Since 2.7.0 | ||
@@ -167,0 +167,0 @@ * @public |
@@ -157,3 +157,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 4.1.0) | ||
* Version of fast-check used by your project (eg.: 4.1.1) | ||
* @remarks Since 1.22.0 | ||
@@ -164,3 +164,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 9375f31f81ca6a8efd2bc87a513378bf0b2680fb) | ||
* Commit hash of the current code (eg.: 0c99b1eddbd57cdddc8dc11be12f436bf22aa803) | ||
* @remarks Since 2.7.0 | ||
@@ -167,0 +167,0 @@ * @public |
@@ -91,4 +91,4 @@ import { pre } from './check/precondition/Pre.js'; | ||
const __type = 'module'; | ||
const __version = '4.1.0'; | ||
const __commitHash = '9375f31f81ca6a8efd2bc87a513378bf0b2680fb'; | ||
const __version = '4.1.1'; | ||
const __commitHash = '0c99b1eddbd57cdddc8dc11be12f436bf22aa803'; | ||
export { __type, __version, __commitHash, sample, statistics, check, assert, pre, PreconditionFailure, property, asyncProperty, boolean, falsy, float, double, integer, nat, maxSafeInteger, maxSafeNat, bigInt, mixedCase, string, base64String, stringMatching, limitShrink, lorem, constant, constantFrom, mapToConstant, option, oneof, clone, noBias, noShrink, shuffledSubarray, subarray, array, sparseArray, infiniteStream, uniqueArray, tuple, record, dictionary, anything, object, json, jsonValue, letrec, memo, compareBooleanFunc, compareFunc, func, context, gen, date, ipV4, ipV4Extended, ipV6, domain, webAuthority, webSegment, webFragments, webPath, webQueryParameters, webUrl, emailAddress, ulid, uuid, int8Array, uint8Array, uint8ClampedArray, int16Array, uint16Array, int32Array, uint32Array, float32Array, float64Array, bigInt64Array, bigUint64Array, asyncModelRun, modelRun, scheduledModelRun, commands, scheduler, schedulerFor, Arbitrary, Value, cloneMethod, cloneIfNeeded, hasCloneMethod, toStringMethod, hasToStringMethod, asyncToStringMethod, hasAsyncToStringMethod, getDepthContextFor, stringify, asyncStringify, defaultReportMessage, asyncDefaultReportMessage, hash, VerbosityLevel, configureGlobal, readConfigureGlobal, resetConfigureGlobal, ExecutionStatus, Random, Stream, stream, createDepthIdentifier, }; |
@@ -157,3 +157,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 4.1.0) | ||
* Version of fast-check used by your project (eg.: 4.1.1) | ||
* @remarks Since 1.22.0 | ||
@@ -164,3 +164,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 9375f31f81ca6a8efd2bc87a513378bf0b2680fb) | ||
* Commit hash of the current code (eg.: 0c99b1eddbd57cdddc8dc11be12f436bf22aa803) | ||
* @remarks Since 2.7.0 | ||
@@ -167,0 +167,0 @@ * @public |
@@ -157,3 +157,3 @@ import { pre } from './check/precondition/Pre.js'; | ||
/** | ||
* Version of fast-check used by your project (eg.: 4.1.0) | ||
* Version of fast-check used by your project (eg.: 4.1.1) | ||
* @remarks Since 1.22.0 | ||
@@ -164,3 +164,3 @@ * @public | ||
/** | ||
* Commit hash of the current code (eg.: 9375f31f81ca6a8efd2bc87a513378bf0b2680fb) | ||
* Commit hash of the current code (eg.: 0c99b1eddbd57cdddc8dc11be12f436bf22aa803) | ||
* @remarks Since 2.7.0 | ||
@@ -167,0 +167,0 @@ * @public |
{ | ||
"name": "fast-check", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Property based testing framework for JavaScript (like QuickCheck)", | ||
@@ -56,3 +56,3 @@ "type": "module", | ||
"@microsoft/api-extractor": "^7.52.3", | ||
"@types/node": "^22.13.17", | ||
"@types/node": "^22.14.0", | ||
"cross-env": "^7.0.3", | ||
@@ -63,8 +63,8 @@ "glob": "^11.0.1", | ||
"replace-in-file": "^8.3.0", | ||
"typedoc": "^0.28.1", | ||
"typescript": "~5.8.2", | ||
"typedoc": "^0.28.2", | ||
"typescript": "~5.8.3", | ||
"vitest": "^3.0.9", | ||
"@fast-check/expect-type": "0.2.1", | ||
"@fast-check/poisoning": "0.2.3", | ||
"fast-check": "4.1.0" | ||
"fast-check": "4.1.1" | ||
}, | ||
@@ -71,0 +71,0 @@ "keywords": [ |
1528444
0.01%38962
0.03%