diff --git a/common/config/rush/npm-shrinkwrap.json b/common/config/rush/npm-shrinkwrap.json index c201fae..c41318a 100644 --- a/common/config/rush/npm-shrinkwrap.json +++ b/common/config/rush/npm-shrinkwrap.json @@ -10,6 +10,7 @@ "dependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.2", "@microsoft/api-extractor": "^7.48.1", + "@nevware21/tripwire": ">= 0.1.5 < 2.x", "@nevware21/ts-preproc": "^0.1.3", "@nevware21/ts-utils": ">= 0.12.6 < 2.x", "@rollup/plugin-commonjs": "^29.0.0", @@ -18,10 +19,8 @@ "@rollup/plugin-strip": "^3.0.2", "@rollup/plugin-typescript": "^12.1.1", "@rush-temp/ts-async": "file:./projects/ts-async.tgz", - "@types/chai": "^4.3.1", "@types/mocha": "^10.0.1", "@types/sinon": "^21.0.0", - "chai": "4.3.10", "chromium": "^3.0.3", "copyfiles": "^2.4.1", "cross-env": "^10.1.0", @@ -332,9 +331,9 @@ } }, "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz", + "integrity": "sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==", "dependencies": { "@isaacs/balanced-match": "^4.0.1" }, @@ -529,6 +528,40 @@ "resolve": "~1.22.2" } }, + "node_modules/@nevware21/chromacon": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@nevware21/chromacon/-/chromacon-0.1.4.tgz", + "integrity": "sha512-PGz0LSs/pKs2ntZ5VYef+ARcARatPeADm44OIkuPNMODhFc4cikPCjeLgFa18mpe3JmSfz/Ff9JrgY+z7On4Pw==", + "dependencies": { + "@nevware21/ts-utils": ">= 0.12.6 < 2.x" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nevware21" + } + }, + "node_modules/@nevware21/tripwire": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@nevware21/tripwire/-/tripwire-0.1.5.tgz", + "integrity": "sha512-9uQRoTDPGuUvuVA7W7y7YZJ5BrVQV4g2IRN5arHJakzlY0+jc4cU+7zsX+RoKB3mohHVPxi4Sf5HaWg1LsIECQ==", + "dependencies": { + "@nevware21/chromacon": ">= 0.1.3 < 2.x", + "@nevware21/ts-async": ">= 0.5.4 < 2.x", + "@nevware21/ts-utils": ">= 0.12.3 < 2.x", + "tslib": "^2.3.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/@nevware21/ts-async": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@nevware21/ts-async/-/ts-async-0.5.5.tgz", + "integrity": "sha512-vwqaL05iJPjLeh5igPi8MeeAu10i+Aq7xko1fbo9F5Si6MnVN5505qaV7AhSdk5MCBJVT/UYMk3kgInNjDb4Ig==", + "dependencies": { + "@nevware21/ts-utils": ">= 0.12.2 < 2.x" + } + }, "node_modules/@nevware21/ts-preproc": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@nevware21/ts-preproc/-/ts-preproc-0.1.4.tgz", @@ -1107,10 +1140,11 @@ "node_modules/@rush-temp/ts-async": { "version": "0.0.0", "resolved": "file:projects/ts-async.tgz", - "integrity": "sha512-OywQnJkHk1ZCZ8UfKayg2Obr0pT9RxiJeM9bUXBUgjE9dns2UcUxDQAZpHiXFaImP/7YqDvA41bmCICbgaTuFA==", + "integrity": "sha512-S+8Ol5pOYj7vr+wRguC/a4oeKAUg0yspzS+Sep719M5gwDgnb1plcyRHmX8PYEZyt/5EJNRENZdXT1ANkBHkrg==", "dependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.2", "@microsoft/api-extractor": "^7.48.1", + "@nevware21/tripwire": ">= 0.1.5 < 2.x", "@nevware21/ts-preproc": "^0.1.3", "@nevware21/ts-utils": ">= 0.12.6 < 2.x", "@rollup/plugin-commonjs": "^29.0.0", @@ -1118,10 +1152,8 @@ "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-strip": "^3.0.2", "@rollup/plugin-typescript": "^12.1.1", - "@types/chai": "^4.3.1", "@types/mocha": "^10.0.1", "@types/sinon": "^21.0.0", - "chai": "4.3.10", "chromium": "^3.0.3", "copyfiles": "^2.4.1", "cross-env": "^10.1.0", @@ -1299,14 +1331,6 @@ "type-detect": "4.0.8" } }, - "node_modules/@sinonjs/commons/node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, "node_modules/@sinonjs/fake-timers": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz", @@ -1323,14 +1347,6 @@ "type-detect": "4.0.8" } }, - "node_modules/@sinonjs/fake-timers/node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, "node_modules/@sinonjs/samsam": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-7.0.1.tgz", @@ -1407,11 +1423,6 @@ "@types/responselike": "^1.0.0" } }, - "node_modules/@types/chai": { - "version": "4.3.20", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz", - "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==" - }, "node_modules/@types/cors": { "version": "2.8.19", "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", @@ -1728,14 +1739,6 @@ "util": "^0.12.5" } }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "engines": { - "node": "*" - } - }, "node_modules/ast-types": { "version": "0.13.4", "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", @@ -2332,23 +2335,6 @@ } ] }, - "node_modules/chai": { - "version": "4.3.10", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz", - "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -2375,17 +2361,6 @@ "node": ">=8" } }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -2908,17 +2883,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", @@ -3834,14 +3798,6 @@ "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "engines": { - "node": "*" - } - }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -3924,7 +3880,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -4172,7 +4128,7 @@ "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5644,14 +5600,6 @@ "node": ">=8.0" } }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dependencies": { - "get-func-name": "^2.0.1" - } - }, "node_modules/lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", @@ -5965,7 +5913,7 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -6068,14 +6016,6 @@ "@sinonjs/commons": "^3.0.1" } }, - "node_modules/nise/node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, "node_modules/node-preload": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", @@ -6762,14 +6702,6 @@ "node": ">=8" } }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "engines": { - "node": "*" - } - }, "node_modules/pbkdf2": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.5.tgz", @@ -8423,9 +8355,9 @@ } }, "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "engines": { "node": ">=4" } diff --git a/lib/package.json b/lib/package.json index d561725..d898c54 100644 --- a/lib/package.json +++ b/lib/package.json @@ -36,7 +36,7 @@ "esnext:main": "dist/es6/main/ts-async.js", "module": "dist/es5/mod/ts-async.js", "esnext": "dist/es6/mod/ts-async.js", - "types": "dist/types/ts-async.d.ts", + "types": "dist/types/ts-async.d.ts", "repository": { "type": "git", "url": "https://github.com/nevware21/ts-async.git" @@ -72,50 +72,48 @@ "dtsgen": "api-extractor run --local --verbose", "preproc": "ts-preproc -C ../preproc.json -R .." }, - "dependencies": { "@nevware21/ts-utils": ">= 0.12.6 < 2.x" }, "devDependencies": { - "@nevware21/ts-preproc": "^0.1.3", - "@microsoft/api-extractor": "^7.48.1", "@istanbuljs/nyc-config-typescript": "^1.0.2", + "@microsoft/api-extractor": "^7.48.1", + "@nevware21/tripwire": ">= 0.1.5 < 2.x", + "@nevware21/ts-preproc": "^0.1.3", "@rollup/plugin-commonjs": "^29.0.0", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-strip": "^3.0.2", "@rollup/plugin-typescript": "^12.1.1", - "@types/chai": "^4.3.1", "@types/mocha": "^10.0.1", "@types/sinon": "^21.0.0", - "chai": "4.3.10", "chromium": "^3.0.3", + "copyfiles": "^2.4.1", "cross-env": "^10.1.0", "grunt": "^1.5.3", "grunt-cli": "^1.4.3", "karma": "^6.3.20", "karma-chrome-launcher": "^3.1.1", + "karma-coverage": "^2.2.0", "karma-coverage-istanbul-reporter": "^3.0.3", "karma-mocha": "^2.0.1", "karma-mocha-webworker": "^1.3.0", "karma-rollup-preprocessor": "^7.0.8", "karma-spec-reporter": "^0.0.36", "karma-typescript": "^5.5.3", - "karma-coverage": "^2.2.0", "mocha": "^10.0.0", "nyc": "^17.1.0", "puppeteer": "^24.0.0", "rollup": "^4.26.0", - "rollup-plugin-minify-es": "^1.1.1", - "rollup-plugin-istanbul": "^5.0.0", "rollup-plugin-cleanup": "^3.2.1", + "rollup-plugin-istanbul": "^5.0.0", + "rollup-plugin-minify-es": "^1.1.1", "rollup-plugin-sourcemaps": "^0.6.3", "sinon": "^14.0.0", "ts-mocha": "^11.1.0", "typedoc": "^0.28.2", "typedoc-github-theme": "^0.3.0", "typescript": "~5.2.2", - "uglify-js": "^3.15.5", - "copyfiles": "^2.4.1" + "uglify-js": "^3.15.5" } } diff --git a/lib/test/src/helpers/arrForEachAsync.test.ts b/lib/test/src/helpers/arrForEachAsync.test.ts index e1e21f1..15e0094 100644 --- a/lib/test/src/helpers/arrForEachAsync.test.ts +++ b/lib/test/src/helpers/arrForEachAsync.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { arrForEachAsync } from "../../../src/helpers/arrForEachAsync"; import { arrSlice } from "@nevware21/ts-utils"; import { isPromiseLike } from "@nevware21/ts-utils"; diff --git a/lib/test/src/helpers/doWhileAsync.test.ts b/lib/test/src/helpers/doWhileAsync.test.ts index f1252f3..900feb2 100644 --- a/lib/test/src/helpers/doWhileAsync.test.ts +++ b/lib/test/src/helpers/doWhileAsync.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { doWhileAsync } from "../../../src/helpers/doWhileAsync"; import { isPromiseLike } from "@nevware21/ts-utils"; import { createResolvedPromise } from "../../../src/promise/promise"; diff --git a/lib/test/src/helpers/iterForOfAsync.test.ts b/lib/test/src/helpers/iterForOfAsync.test.ts index a506290..cb4bdca 100644 --- a/lib/test/src/helpers/iterForOfAsync.test.ts +++ b/lib/test/src/helpers/iterForOfAsync.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { iterForOfAsync } from "../../../src/helpers/iterForOfAsync"; import { CreateIteratorContext, arrSlice, createArrayIterator, createIterator, createRangeIterator, isPromiseLike, objKeys } from "@nevware21/ts-utils"; import { createTimeoutPromise } from "../../../src/promise/timeoutPromise"; diff --git a/lib/test/src/promise/async.promise.test.ts b/lib/test/src/promise/async.promise.test.ts index 500debb..8fe2c04 100644 --- a/lib/test/src/promise/async.promise.test.ts +++ b/lib/test/src/promise/async.promise.test.ts @@ -7,7 +7,7 @@ */ import * as sinon from "sinon"; -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { arrForEach, dumpObj, getGlobal, isNode, isWebWorker, objHasOwn, scheduleTimeout, setBypassLazyCache } from "@nevware21/ts-utils"; import { createAsyncAllPromise, createAsyncPromise, createAsyncRejectedPromise, createAsyncResolvedPromise } from "../../../src/promise/asyncPromise"; import { IPromise } from "../../../src/interfaces/IPromise"; diff --git a/lib/test/src/promise/await.test.ts b/lib/test/src/promise/await.test.ts index 3d58055..9f279e2 100644 --- a/lib/test/src/promise/await.test.ts +++ b/lib/test/src/promise/await.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert, expect } from "chai"; +import { assert, expect } from "@nevware21/tripwire"; import { doAwait, doAwaitResponse, doFinally } from "../../../src/promise/await"; import { arrForEach } from "@nevware21/ts-utils"; import { isPromiseLike } from "@nevware21/ts-utils"; @@ -333,7 +333,7 @@ describe("Validate doAwaitResponse", () => { value: "resolved", rejected: false }); - expect(result).to.equal("callback return value"); + expect(result).to.be.equal("callback return value"); }); it ("should handle callbacks that return promises", async () => { @@ -348,7 +348,7 @@ describe("Validate doAwaitResponse", () => { value: "resolved", rejected: false }); - expect(result).to.equal("callback return value"); + expect(result).to.be.equal("callback return value"); }); it("should handle callbacks that throw errors", async () => { diff --git a/lib/test/src/promise/event.test.ts b/lib/test/src/promise/event.test.ts index b79f723..34ccde7 100644 --- a/lib/test/src/promise/event.test.ts +++ b/lib/test/src/promise/event.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { emitEvent } from "../../../src/promise/event"; describe("emitEvent", () => { diff --git a/lib/test/src/promise/idle.promise.test.ts b/lib/test/src/promise/idle.promise.test.ts index b917b6d..f2c9fe5 100644 --- a/lib/test/src/promise/idle.promise.test.ts +++ b/lib/test/src/promise/idle.promise.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { createIdlePromise, setDefaultIdlePromiseTimeout } from "../../../src/promise/idlePromise"; import { getGlobal, setBypassLazyCache } from "@nevware21/ts-utils"; import { setPromiseDebugState } from "../../../src/promise/debug"; diff --git a/lib/test/src/promise/sync.promise.test.ts b/lib/test/src/promise/sync.promise.test.ts index bdaeeee..9f46855 100644 --- a/lib/test/src/promise/sync.promise.test.ts +++ b/lib/test/src/promise/sync.promise.test.ts @@ -7,7 +7,7 @@ */ import * as sinon from "sinon"; -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { arrForEach, dumpObj, getGlobal, isNode, isWebWorker, objHasOwn, scheduleTimeout, setBypassLazyCache } from "@nevware21/ts-utils"; import { IPromise } from "../../../src/interfaces/IPromise"; import { createSyncAllPromise, createSyncPromise, createSyncRejectedPromise, createSyncResolvedPromise } from "../../../src/promise/syncPromise"; diff --git a/lib/test/src/promise/timeoutPromise.test.ts b/lib/test/src/promise/timeoutPromise.test.ts index 848902b..3e3be40 100644 --- a/lib/test/src/promise/timeoutPromise.test.ts +++ b/lib/test/src/promise/timeoutPromise.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { createTimeoutPromise } from "../../../src/promise/timeoutPromise"; diff --git a/lib/test/src/promise/unhandledRejectionEvent.test.ts b/lib/test/src/promise/unhandledRejectionEvent.test.ts index 025c3ba..47b20d2 100644 --- a/lib/test/src/promise/unhandledRejectionEvent.test.ts +++ b/lib/test/src/promise/unhandledRejectionEvent.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { arrForEach, asString, dumpObj, getGlobal, isNode, isWebWorker, objHasOwn, scheduleTimeout, setBypassLazyCache } from "@nevware21/ts-utils"; import { createAsyncPromise, createAsyncRejectedPromise } from "../../../src/promise/asyncPromise"; import { IPromise } from "../../../src/interfaces/IPromise"; diff --git a/lib/test/src/promise/use.await.test.ts b/lib/test/src/promise/use.await.test.ts index 9ef8e47..1fa6023 100644 --- a/lib/test/src/promise/use.await.test.ts +++ b/lib/test/src/promise/use.await.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { getGlobal, objHasOwn, isWebWorker, isNode, scheduleTimeout, dumpObj, arrForEach, objForEachKey, setBypassLazyCache, CreateIteratorContext, isPromiseLike, setDefaultIdleTimeout } from "@nevware21/ts-utils"; import { PolyPromise } from "../../../src/polyfills/promise"; import { createAsyncAllPromise, createAsyncAllSettledPromise, createAsyncAnyPromise, createAsyncPromise, createAsyncRacePromise, createAsyncRejectedPromise, createAsyncResolvedPromise } from "../../../src/promise/asyncPromise"; diff --git a/lib/test/src/promise/use.doAwait.test.ts b/lib/test/src/promise/use.doAwait.test.ts index d76d4ed..fe3f968 100644 --- a/lib/test/src/promise/use.doAwait.test.ts +++ b/lib/test/src/promise/use.doAwait.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { CreateIteratorContext, arrForEach, createIterable, dumpObj, getGlobal, isNode, isPlainObject, isWebWorker, objForEachKey, objHasOwn, scheduleTimeout, setBypassLazyCache, setDefaultIdleTimeout } from "@nevware21/ts-utils"; import { createAsyncAllPromise, createAsyncAllSettledPromise, createAsyncPromise, createAsyncRacePromise, createAsyncRejectedPromise, createAsyncResolvedPromise } from "../../../src/promise/asyncPromise"; import { doAwait, doAwaitResponse } from "../../../src/promise/await"; diff --git a/lib/test/src/scheduler/scheduler.test.ts b/lib/test/src/scheduler/scheduler.test.ts index 86a71e7..eccf128 100644 --- a/lib/test/src/scheduler/scheduler.test.ts +++ b/lib/test/src/scheduler/scheduler.test.ts @@ -6,7 +6,7 @@ * Licensed under the MIT license. */ -import { assert } from "chai"; +import { assert } from "@nevware21/tripwire"; import { arrForEach, asString, dumpObj, getGlobal, getLength, isNode, isPromiseLike, isString, isWebWorker, objForEachKey, objHasOwn, scheduleTimeout, setBypassLazyCache } from "@nevware21/ts-utils"; import { PromiseExecutor } from "../../../src/interfaces/types"; import { IPromise } from "../../../src/interfaces/IPromise"; diff --git a/package.json b/package.json index e1b742e..3de92a3 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,6 @@ "@size-limit/esbuild-why": "^12.0.0", "@size-limit/preset-small-lib": "^12.0.0", "@size-limit/time": "^12.0.0", - "@types/chai": "^5.0.0", "@types/eslint": "^8.56.10", "@types/estree": "^1.0.0", "@types/jquery": "^3.5.14",