@powerhousedao/shared 6.2.3-dev.9 → 6.2.3-staging.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/index.d.ts +4 -4
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +25 -24
- package/dist/analytics/index.js.map +1 -1
- package/dist/clis/args/{access-token-To5LaIfL.mjs → access-token-3Hqv_U8I.mjs} +2 -2
- package/dist/clis/args/{access-token-To5LaIfL.mjs.map → access-token-3Hqv_U8I.mjs.map} +1 -1
- package/dist/clis/args/access-token-C5sKsH2O.d.mts +16 -0
- package/dist/clis/args/access-token-C5sKsH2O.d.mts.map +1 -0
- package/dist/clis/args/access-token.d.mts +3 -2
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-CcYbXrBx.mjs → common-BXabdhiO.mjs} +30 -7
- package/dist/clis/args/common-BXabdhiO.mjs.map +1 -0
- package/dist/clis/args/common-Bnm859xU.d.mts +186 -0
- package/dist/clis/args/common-Bnm859xU.d.mts.map +1 -0
- package/dist/clis/args/common.d.mts +3 -2
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-BVVvCmL9.mjs → connect-BG3HkYBk.mjs} +8 -3
- package/dist/clis/args/connect-BG3HkYBk.mjs.map +1 -0
- package/dist/clis/args/connect-DjeiqXus.d.mts +450 -0
- package/dist/clis/args/connect-DjeiqXus.d.mts.map +1 -0
- package/dist/clis/args/connect.d.mts +3 -2
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-CA916Fvj.mjs → generate-BOItUNvP.mjs} +40 -2
- package/dist/clis/args/generate-BOItUNvP.mjs.map +1 -0
- package/dist/clis/args/generate-BPBBLeUD.d.mts +103 -0
- package/dist/clis/args/generate-BPBBLeUD.d.mts.map +1 -0
- package/dist/clis/args/generate.d.mts +3 -2
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-Bqbgbalu.mjs → help-DS1NlcJQ.mjs} +15 -15
- package/dist/clis/args/{help-Bqbgbalu.mjs.map → help-DS1NlcJQ.mjs.map} +1 -1
- package/dist/clis/args/help-DVPTARGn.d.mts +190 -0
- package/dist/clis/args/help-DVPTARGn.d.mts.map +1 -0
- package/dist/clis/args/help.d.mts +3 -2
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +20 -19
- package/dist/clis/args/index.mjs +18 -18
- package/dist/clis/args/init-CFeTq4Cq.d.mts +52 -0
- package/dist/clis/args/init-CFeTq4Cq.d.mts.map +1 -0
- package/dist/clis/args/{init-rz9Ei7nq.mjs → init-Dvb42Y87.mjs} +2 -2
- package/dist/clis/args/{init-rz9Ei7nq.mjs.map → init-Dvb42Y87.mjs.map} +1 -1
- package/dist/clis/args/init.d.mts +3 -2
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/inspect-BjRmtB86.d.mts +13 -0
- package/dist/clis/args/inspect-BjRmtB86.d.mts.map +1 -0
- package/dist/clis/args/{inspect-tckH8mSw.mjs → inspect-UNQgtuR0.mjs} +2 -2
- package/dist/clis/args/{inspect-tckH8mSw.mjs.map → inspect-UNQgtuR0.mjs.map} +1 -1
- package/dist/clis/args/inspect.d.mts +3 -2
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/install-B0tMyUMw.d.mts +37 -0
- package/dist/clis/args/install-B0tMyUMw.d.mts.map +1 -0
- package/dist/clis/args/{install-Sz2DlCHh.mjs → install-F-27kF6m.mjs} +2 -2
- package/dist/clis/args/{install-Sz2DlCHh.mjs.map → install-F-27kF6m.mjs.map} +1 -1
- package/dist/clis/args/install.d.mts +3 -2
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-DM2d6f1m.mjs → list-Bkfn8Yuo.mjs} +2 -2
- package/dist/clis/args/{list-DM2d6f1m.mjs.map → list-Bkfn8Yuo.mjs.map} +1 -1
- package/dist/clis/args/list-DrbxA7JJ.d.mts +10 -0
- package/dist/clis/args/list-DrbxA7JJ.d.mts.map +1 -0
- package/dist/clis/args/list.d.mts +3 -2
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-DiKT5Jfu.mjs → login-CIFkQExi.mjs} +2 -2
- package/dist/clis/args/{login-DiKT5Jfu.mjs.map → login-CIFkQExi.mjs.map} +1 -1
- package/dist/clis/args/login-CXRJXg71.d.mts +25 -0
- package/dist/clis/args/login-CXRJXg71.d.mts.map +1 -0
- package/dist/clis/args/login.d.mts +3 -2
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/{magic-string.es-h_0HDQBQ.mjs → magic-string.es-BWtG0AyA.mjs} +33 -27
- package/dist/clis/args/magic-string.es-BWtG0AyA.mjs.map +1 -0
- package/dist/clis/args/migrate-DkCQRL2D.d.mts +19 -0
- package/dist/clis/args/migrate-DkCQRL2D.d.mts.map +1 -0
- package/dist/clis/args/{migrate-CG_gWc4k.mjs → migrate-DwJGhc2d.mjs} +2 -2
- package/dist/clis/args/{migrate-CG_gWc4k.mjs.map → migrate-DwJGhc2d.mjs.map} +1 -1
- package/dist/clis/args/migrate.d.mts +3 -2
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/publish-CeW4bOrl.d.mts +16 -0
- package/dist/clis/args/publish-CeW4bOrl.d.mts.map +1 -0
- package/dist/clis/args/{publish-DDZYsUfV.mjs → publish-DHqlGWmL.mjs} +2 -2
- package/dist/clis/args/{publish-DDZYsUfV.mjs.map → publish-DHqlGWmL.mjs.map} +1 -1
- package/dist/clis/args/publish.d.mts +3 -2
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-C_OVFQmI.mjs → registry-DIwES3l2.mjs} +2 -2
- package/dist/clis/args/{registry-C_OVFQmI.mjs.map → registry-DIwES3l2.mjs.map} +1 -1
- package/dist/clis/args/registry-DNH8xuaE.d.mts +17 -0
- package/dist/clis/args/registry-DNH8xuaE.d.mts.map +1 -0
- package/dist/clis/args/registry.d.mts +3 -2
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/service-BBx5GDTc.d.mts +27 -0
- package/dist/clis/args/service-BBx5GDTc.d.mts.map +1 -0
- package/dist/clis/args/{service-CHOOr0Gg.mjs → service-Cpjlyeu5.mjs} +2 -2
- package/dist/clis/args/{service-CHOOr0Gg.mjs.map → service-Cpjlyeu5.mjs.map} +1 -1
- package/dist/clis/args/service.d.mts +3 -2
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs → switchboard-CCaAtU56.mjs} +2 -2
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs.map → switchboard-CCaAtU56.mjs.map} +1 -1
- package/dist/clis/args/switchboard-RrNb1fUH.d.mts +70 -0
- package/dist/clis/args/switchboard-RrNb1fUH.d.mts.map +1 -0
- package/dist/clis/args/switchboard.d.mts +3 -2
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs → uninstall-3U0B8g5c.mjs} +2 -2
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs.map → uninstall-3U0B8g5c.mjs.map} +1 -1
- package/dist/clis/args/uninstall-CDx7lwxn.d.mts +28 -0
- package/dist/clis/args/uninstall-CDx7lwxn.d.mts.map +1 -0
- package/dist/clis/args/uninstall.d.mts +3 -2
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/unpublish-CEDsk6uv.d.mts +22 -0
- package/dist/clis/args/unpublish-CEDsk6uv.d.mts.map +1 -0
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs → unpublish-s9zUh6Gw.mjs} +2 -2
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs.map → unpublish-s9zUh6Gw.mjs.map} +1 -1
- package/dist/clis/args/unpublish.d.mts +3 -2
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs → vetra-BUNlAAPp.mjs} +2 -2
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs.map → vetra-BUNlAAPp.mjs.map} +1 -1
- package/dist/clis/args/vetra-DkDaWFPi.d.mts +111 -0
- package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +1 -0
- package/dist/clis/args/vetra-ports.test.d.mts +2 -1
- package/dist/clis/args/vetra-ports.test.mjs +285 -180
- package/dist/clis/args/vetra-ports.test.mjs.map +1 -1
- package/dist/clis/args/vetra.d.mts +3 -2
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-config-CmdMi_wu.mjs +230 -0
- package/dist/clis/build-config-CmdMi_wu.mjs.map +1 -0
- package/dist/clis/build-config.d.mts +44 -10614
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +2 -93
- package/dist/clis/build-pieces.d.mts +100 -0
- package/dist/clis/build-pieces.d.mts.map +1 -0
- package/dist/clis/build-pieces.mjs +371 -0
- package/dist/clis/build-pieces.mjs.map +1 -0
- package/dist/clis/command-names.d.mts +2 -2
- package/dist/clis/command-names.d.mts.map +1 -1
- package/dist/clis/command-names.mjs.map +1 -1
- package/dist/clis/constants.d.mts +3 -475
- package/dist/clis/constants.mjs +17 -8
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index-6CZwrmQi.d.mts +11154 -0
- package/dist/clis/index-6CZwrmQi.d.mts.map +1 -0
- package/dist/clis/index.d.mts +1368 -1221
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +209 -65
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/project-env.d.mts +4 -4
- package/dist/clis/project-env.d.mts.map +1 -1
- package/dist/clis/project-env.mjs.map +1 -1
- package/dist/clis/project-ports.d.mts +5 -5
- package/dist/clis/project-ports.d.mts.map +1 -1
- package/dist/clis/project-ports.mjs +1 -1
- package/dist/clis/project-ports.mjs.map +1 -1
- package/dist/clis/services/telemetry.d.mts +7 -7
- package/dist/clis/services/telemetry.d.mts.map +1 -1
- package/dist/clis/services/telemetry.mjs.map +1 -1
- package/dist/clis/types-nzer4WIr.d.mts +541 -0
- package/dist/clis/types-nzer4WIr.d.mts.map +1 -0
- package/dist/clis/utils.d.mts +4 -4
- package/dist/clis/utils.d.mts.map +1 -1
- package/dist/clis/utils.mjs.map +1 -1
- package/dist/{config-loader-B845Hidf.js → config-loader-C6dZB_iX.js} +28 -8
- package/dist/config-loader-C6dZB_iX.js.map +1 -0
- package/dist/connect/config-loader.d.ts +14 -8
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/config-loader.js +2 -2
- package/dist/connect/index.d.ts +190 -56
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +303 -30
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/json-adapter.d.ts +3 -4
- package/dist/connect/json-adapter.d.ts.map +1 -1
- package/dist/connect/json-adapter.js.map +1 -1
- package/dist/{constants-BP_gjn8g.d.ts → constants-DO4IYxuR.d.ts} +2 -1
- package/dist/constants-DO4IYxuR.d.ts.map +1 -0
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js.map +1 -1
- package/dist/document-drive/index.d.ts +104 -101
- package/dist/document-drive/index.d.ts.map +1 -1
- package/dist/document-drive/index.js +39 -19
- package/dist/document-drive/index.js.map +1 -1
- package/dist/document-model/index.d.ts +5 -4
- package/dist/document-model/index.js +605 -228
- package/dist/document-model/index.js.map +1 -1
- package/dist/document-model/mock.d.ts +2 -3
- package/dist/document-model/mock.d.ts.map +1 -1
- package/dist/document-model/mock.js +2 -1
- package/dist/document-model/mock.js.map +1 -1
- package/dist/document-model/utils.d.ts +3 -2
- package/dist/document-model/utils.js +1 -1
- package/dist/index-5gwOhPG5.d.ts +36 -0
- package/dist/index-5gwOhPG5.d.ts.map +1 -0
- package/dist/{index-DP3QgHTq.d.ts → index-D6833Siv.d.ts} +131 -28
- package/dist/index-D6833Siv.d.ts.map +1 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js.map +1 -1
- package/dist/processors/index.d.ts +3 -2
- package/dist/processors/index.js +5 -1
- package/dist/processors/index.js.map +1 -1
- package/dist/registry/index.d.ts +15 -15
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +14 -5
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +4 -3
- package/dist/registry/manifest-slim.d.ts.map +1 -1
- package/dist/registry/manifest-slim.js +22 -2
- package/dist/registry/manifest-slim.js.map +1 -1
- package/dist/registry/updates.d.ts +3 -3
- package/dist/registry/updates.d.ts.map +1 -1
- package/dist/registry/updates.js.map +1 -1
- package/dist/registry/urls.d.ts +2 -2
- package/dist/registry/urls.d.ts.map +1 -1
- package/dist/registry/urls.js.map +1 -1
- package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
- package/dist/types-Bsp8VL2y.d.ts.map +1 -0
- package/dist/{types-DDpRvBK_.d.ts → types-CI3ren9F.d.ts} +23 -35
- package/dist/types-CI3ren9F.d.ts.map +1 -0
- package/dist/{types-BIoOWpOT.d.ts → types-CmeoQg_J.d.ts} +602 -437
- package/dist/types-CmeoQg_J.d.ts.map +1 -0
- package/dist/{utils-DP122OSS.d.ts → utils-BrKxCmKx.d.ts} +2 -2
- package/dist/utils-BrKxCmKx.d.ts.map +1 -0
- package/dist/{utils-aaTmfxFW.js → utils-CSF716ux.js} +10 -3
- package/dist/utils-CSF716ux.js.map +1 -0
- package/package.json +10 -5
- package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
- package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
- package/dist/clis/args/common-CcYbXrBx.mjs.map +0 -1
- package/dist/clis/args/common-Dsf1vpHV.d.mts +0 -183
- package/dist/clis/args/common-Dsf1vpHV.d.mts.map +0 -1
- package/dist/clis/args/connect-BVVvCmL9.mjs.map +0 -1
- package/dist/clis/args/connect-DetTnI8g.d.mts +0 -443
- package/dist/clis/args/connect-DetTnI8g.d.mts.map +0 -1
- package/dist/clis/args/generate-CA916Fvj.mjs.map +0 -1
- package/dist/clis/args/generate-DnV-bfXt.d.mts +0 -87
- package/dist/clis/args/generate-DnV-bfXt.d.mts.map +0 -1
- package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
- package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
- package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
- package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
- package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
- package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
- package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
- package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
- package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
- package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
- package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
- package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
- package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs.map +0 -1
- package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
- package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
- package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
- package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
- package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
- package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
- package/dist/clis/args/service-DhIkf8-O.d.mts +0 -22
- package/dist/clis/args/service-DhIkf8-O.d.mts.map +0 -1
- package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
- package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
- package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
- package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts +0 -113
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts.map +0 -1
- package/dist/clis/build-config.mjs.map +0 -1
- package/dist/clis/constants.d.mts.map +0 -1
- package/dist/config-loader-B845Hidf.js.map +0 -1
- package/dist/constants-BP_gjn8g.d.ts.map +0 -1
- package/dist/index-C_iVZe7f.d.ts +0 -7
- package/dist/index-C_iVZe7f.d.ts.map +0 -1
- package/dist/index-DP3QgHTq.d.ts.map +0 -1
- package/dist/types-BIoOWpOT.d.ts.map +0 -1
- package/dist/types-C1in4fl3.d.ts.map +0 -1
- package/dist/types-DDpRvBK_.d.ts.map +0 -1
- package/dist/utils-DP122OSS.d.ts.map +0 -1
- package/dist/utils-aaTmfxFW.js.map +0 -1
|
@@ -235,7 +235,7 @@ const plugin$5 = {
|
|
|
235
235
|
test: test$5
|
|
236
236
|
};
|
|
237
237
|
const SPACE$1 = " ";
|
|
238
|
-
const OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]);
|
|
238
|
+
const OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]);
|
|
239
239
|
const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
|
|
240
240
|
function testName(name) {
|
|
241
241
|
return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
|
|
@@ -526,7 +526,7 @@ function requireReactIs$1() {
|
|
|
526
526
|
return reactIs$1.exports;
|
|
527
527
|
}
|
|
528
528
|
var reactIsExports$1 = requireReactIs$1();
|
|
529
|
-
var ReactIs19 =
|
|
529
|
+
var ReactIs19 = /*#__PURE__*/ _mergeNamespaces({
|
|
530
530
|
__proto__: null,
|
|
531
531
|
default: /* @__PURE__ */ getDefaultExportFromCjs$2(reactIsExports$1)
|
|
532
532
|
}, [reactIsExports$1]);
|
|
@@ -638,7 +638,7 @@ function requireReactIs() {
|
|
|
638
638
|
return reactIs.exports;
|
|
639
639
|
}
|
|
640
640
|
var reactIsExports = requireReactIs();
|
|
641
|
-
var ReactIs18 =
|
|
641
|
+
var ReactIs18 = /*#__PURE__*/ _mergeNamespaces({
|
|
642
642
|
__proto__: null,
|
|
643
643
|
default: /* @__PURE__ */ getDefaultExportFromCjs$2(reactIsExports)
|
|
644
644
|
}, [reactIsExports]);
|
|
@@ -1506,14 +1506,16 @@ function objDisplay$1(obj, options = {}) {
|
|
|
1506
1506
|
if (typeof options.truncate === "undefined") options.truncate = 40;
|
|
1507
1507
|
const str = inspect$2(obj, options);
|
|
1508
1508
|
const type = Object.prototype.toString.call(obj);
|
|
1509
|
-
if (options.truncate && str.length >= options.truncate)
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1509
|
+
if (options.truncate && str.length >= options.truncate) {
|
|
1510
|
+
if (type === "[object Function]") {
|
|
1511
|
+
const fn = obj;
|
|
1512
|
+
return !fn.name ? "[Function]" : `[Function: ${fn.name}]`;
|
|
1513
|
+
} else if (type === "[object Array]") return `[ Array(${obj.length}) ]`;
|
|
1514
|
+
else if (type === "[object Object]") {
|
|
1515
|
+
const keys = Object.keys(obj);
|
|
1516
|
+
return `{ Object (${keys.length > 2 ? `${keys.splice(0, 2).join(", ")}, ...` : keys.join(", ")}) }`;
|
|
1517
|
+
} else return str;
|
|
1518
|
+
}
|
|
1517
1519
|
return str;
|
|
1518
1520
|
}
|
|
1519
1521
|
//#endregion
|
|
@@ -1551,11 +1553,13 @@ function filterOutComments(s) {
|
|
|
1551
1553
|
if (s[i] === "\n") commentState = "none";
|
|
1552
1554
|
} else if (commentState === "multiline") {
|
|
1553
1555
|
if (s[i - 1] === "*" && s[i] === "/") commentState = "none";
|
|
1554
|
-
} else if (commentState === "none")
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1556
|
+
} else if (commentState === "none") {
|
|
1557
|
+
if (s[i] === "/" && s[i + 1] === "/") commentState = "singleline";
|
|
1558
|
+
else if (s[i] === "/" && s[i + 1] === "*") {
|
|
1559
|
+
commentState = "multiline";
|
|
1560
|
+
i += 2;
|
|
1561
|
+
} else result.push(s[i]);
|
|
1562
|
+
}
|
|
1559
1563
|
return result.join("");
|
|
1560
1564
|
}
|
|
1561
1565
|
function toArray(array) {
|
|
@@ -1679,7 +1683,7 @@ function getCallLastIndex(code) {
|
|
|
1679
1683
|
}
|
|
1680
1684
|
function isNegativeNaN(val) {
|
|
1681
1685
|
if (!Number.isNaN(val)) return false;
|
|
1682
|
-
const f64 = new Float64Array(1);
|
|
1686
|
+
const f64 = /* @__PURE__ */ new Float64Array(1);
|
|
1683
1687
|
f64[0] = val;
|
|
1684
1688
|
return new Uint32Array(f64.buffer)[1] >>> 31 === 1;
|
|
1685
1689
|
}
|
|
@@ -1973,7 +1977,6 @@ function diff_cleanupMerge(diffs) {
|
|
|
1973
1977
|
count_delete = 0;
|
|
1974
1978
|
text_delete = "";
|
|
1975
1979
|
text_insert = "";
|
|
1976
|
-
break;
|
|
1977
1980
|
}
|
|
1978
1981
|
if (diffs.at(-1)?.[1] === "") diffs.pop();
|
|
1979
1982
|
let changes = false;
|
|
@@ -2333,7 +2336,7 @@ function requireBuild() {
|
|
|
2333
2336
|
}
|
|
2334
2337
|
return build;
|
|
2335
2338
|
}
|
|
2336
|
-
var diffSequences =
|
|
2339
|
+
var diffSequences = /*@__PURE__*/ getDefaultExportFromCjs$1(/* @__PURE__ */ requireBuild());
|
|
2337
2340
|
function formatTrailingSpaces(line, trailingSpaceFormatter) {
|
|
2338
2341
|
return line.replace(/\s+$/, (match) => trailingSpaceFormatter(match));
|
|
2339
2342
|
}
|
|
@@ -2363,22 +2366,24 @@ function joinAlignedDiffsNoExpand(diffs, options) {
|
|
|
2363
2366
|
while (i !== iLength) {
|
|
2364
2367
|
const iStart = i;
|
|
2365
2368
|
while (i !== iLength && diffs[i][0] === 0) i += 1;
|
|
2366
|
-
if (iStart !== i)
|
|
2367
|
-
if (
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2369
|
+
if (iStart !== i) {
|
|
2370
|
+
if (iStart === 0) {
|
|
2371
|
+
if (i > nContextLines) {
|
|
2372
|
+
jLength -= i - nContextLines;
|
|
2373
|
+
hasExcessAtStartOrEnd = true;
|
|
2374
|
+
}
|
|
2375
|
+
} else if (i === iLength) {
|
|
2376
|
+
const n = i - iStart;
|
|
2377
|
+
if (n > nContextLines) {
|
|
2378
|
+
jLength -= n - nContextLines;
|
|
2379
|
+
hasExcessAtStartOrEnd = true;
|
|
2380
|
+
}
|
|
2381
|
+
} else {
|
|
2382
|
+
const n = i - iStart;
|
|
2383
|
+
if (n > nContextLines2) {
|
|
2384
|
+
jLength -= n - nContextLines2;
|
|
2385
|
+
nExcessesBetweenChanges += 1;
|
|
2386
|
+
}
|
|
2382
2387
|
}
|
|
2383
2388
|
}
|
|
2384
2389
|
while (i !== iLength && diffs[i][0] !== 0) i += 1;
|
|
@@ -2414,33 +2419,35 @@ function joinAlignedDiffsNoExpand(diffs, options) {
|
|
|
2414
2419
|
while (i !== iLength) {
|
|
2415
2420
|
let iStart = i;
|
|
2416
2421
|
while (i !== iLength && diffs[i][0] === 0) i += 1;
|
|
2417
|
-
if (iStart !== i)
|
|
2418
|
-
if (
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
} else {
|
|
2430
|
-
const nCommon = i - iStart;
|
|
2431
|
-
if (nCommon > nContextLines2) {
|
|
2432
|
-
const iEnd = iStart + nContextLines;
|
|
2422
|
+
if (iStart !== i) {
|
|
2423
|
+
if (iStart === 0) {
|
|
2424
|
+
if (i > nContextLines) {
|
|
2425
|
+
iStart = i - nContextLines;
|
|
2426
|
+
aStart = iStart;
|
|
2427
|
+
bStart = iStart;
|
|
2428
|
+
aEnd = aStart;
|
|
2429
|
+
bEnd = bStart;
|
|
2430
|
+
}
|
|
2431
|
+
for (let iCommon = iStart; iCommon !== i; iCommon += 1) pushCommonLine(diffs[iCommon][1]);
|
|
2432
|
+
} else if (i === iLength) {
|
|
2433
|
+
const iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;
|
|
2433
2434
|
for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) pushCommonLine(diffs[iCommon][1]);
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2435
|
+
} else {
|
|
2436
|
+
const nCommon = i - iStart;
|
|
2437
|
+
if (nCommon > nContextLines2) {
|
|
2438
|
+
const iEnd = iStart + nContextLines;
|
|
2439
|
+
for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) pushCommonLine(diffs[iCommon][1]);
|
|
2440
|
+
lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options);
|
|
2441
|
+
jPatchMark = lines.length;
|
|
2442
|
+
lines.push("");
|
|
2443
|
+
const nOmit = nCommon - nContextLines2;
|
|
2444
|
+
aStart = aEnd + nOmit;
|
|
2445
|
+
bStart = bEnd + nOmit;
|
|
2446
|
+
aEnd = aStart;
|
|
2447
|
+
bEnd = bStart;
|
|
2448
|
+
for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1) pushCommonLine(diffs[iCommon][1]);
|
|
2449
|
+
} else for (let iCommon = iStart; iCommon !== i; iCommon += 1) pushCommonLine(diffs[iCommon][1]);
|
|
2450
|
+
}
|
|
2444
2451
|
}
|
|
2445
2452
|
while (i !== iLength && diffs[i][0] === -1) {
|
|
2446
2453
|
pushDeleteLine(diffs[i][1]);
|
|
@@ -2519,9 +2526,7 @@ function countChanges(diffs) {
|
|
|
2519
2526
|
case -1:
|
|
2520
2527
|
a += 1;
|
|
2521
2528
|
break;
|
|
2522
|
-
case 1:
|
|
2523
|
-
b += 1;
|
|
2524
|
-
break;
|
|
2529
|
+
case 1: b += 1;
|
|
2525
2530
|
}
|
|
2526
2531
|
});
|
|
2527
2532
|
return {
|
|
@@ -3206,8 +3211,8 @@ const isAbsolute = function(p) {
|
|
|
3206
3211
|
//#region ../../node_modules/.pnpm/@vitest+utils@4.1.1/node_modules/@vitest/utils/dist/source-map.js
|
|
3207
3212
|
var comma = ",".charCodeAt(0);
|
|
3208
3213
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3209
|
-
var intToChar = new Uint8Array(64);
|
|
3210
|
-
var charToInt = new Uint8Array(128);
|
|
3214
|
+
var intToChar = /* @__PURE__ */ new Uint8Array(64);
|
|
3215
|
+
var charToInt = /* @__PURE__ */ new Uint8Array(128);
|
|
3211
3216
|
for (let i = 0; i < chars.length; i++) {
|
|
3212
3217
|
const c = chars.charCodeAt(i);
|
|
3213
3218
|
intToChar[i] = c;
|
|
@@ -3654,7 +3659,8 @@ var TestFixtures = class TestFixtures {
|
|
|
3654
3659
|
extend(runner, userFixtures) {
|
|
3655
3660
|
const { suite } = getCurrentSuite();
|
|
3656
3661
|
const isTopLevel = !suite || suite.file === suite;
|
|
3657
|
-
|
|
3662
|
+
const registrations = this.parseUserFixtures(runner, userFixtures, isTopLevel);
|
|
3663
|
+
return new TestFixtures(registrations);
|
|
3658
3664
|
}
|
|
3659
3665
|
get(suite) {
|
|
3660
3666
|
let currentSuite = suite;
|
|
@@ -3868,8 +3874,10 @@ function resolveDeps(usedFixtures, registrations, depSet = /* @__PURE__ */ new S
|
|
|
3868
3874
|
pendingFixtures.push(fixture);
|
|
3869
3875
|
return;
|
|
3870
3876
|
}
|
|
3871
|
-
if (depSet.has(fixture))
|
|
3872
|
-
|
|
3877
|
+
if (depSet.has(fixture)) {
|
|
3878
|
+
if (fixture.parent) fixture = fixture.parent;
|
|
3879
|
+
else throw new Error(`Circular fixture dependency detected: ${fixture.name} <- ${[...depSet].reverse().map((d) => d.name).join(" <- ")}`);
|
|
3880
|
+
}
|
|
3873
3881
|
depSet.add(fixture);
|
|
3874
3882
|
resolveDeps([...fixture.deps].map((n) => n === fixture.name ? fixture.parent : registrations.get(n)).filter((n) => !!n), registrations, depSet, pendingFixtures);
|
|
3875
3883
|
pendingFixtures.push(fixture);
|
|
@@ -3943,10 +3951,6 @@ function splitByComma(s) {
|
|
|
3943
3951
|
if (lastToken) result.push(lastToken);
|
|
3944
3952
|
return result;
|
|
3945
3953
|
}
|
|
3946
|
-
let _test;
|
|
3947
|
-
function getCurrentTest() {
|
|
3948
|
-
return _test;
|
|
3949
|
-
}
|
|
3950
3954
|
const kChainableContext = Symbol("kChainableContext");
|
|
3951
3955
|
function getChainableContext(chainable) {
|
|
3952
3956
|
return chainable?.[kChainableContext];
|
|
@@ -4093,14 +4097,6 @@ function afterEach(fn, timeout) {
|
|
|
4093
4097
|
};
|
|
4094
4098
|
return getCurrentSuite().on("afterEach", withTimeout(wrapper, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
|
|
4095
4099
|
}
|
|
4096
|
-
createTestHook("onTestFailed", (test, handler, timeout) => {
|
|
4097
|
-
test.onFailed ||= [];
|
|
4098
|
-
test.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
|
|
4099
|
-
});
|
|
4100
|
-
createTestHook("onTestFinished", (test, handler, timeout) => {
|
|
4101
|
-
test.onFinished ||= [];
|
|
4102
|
-
test.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, /* @__PURE__ */ new Error("STACK_TRACE_ERROR"), abortIfTimeout));
|
|
4103
|
-
});
|
|
4104
4100
|
/**
|
|
4105
4101
|
* Registers a callback function that wraps around all tests within the current suite.
|
|
4106
4102
|
* The callback receives a `runSuite` function that must be called to run the suite's tests.
|
|
@@ -4200,14 +4196,6 @@ function withSuiteFixtures(suiteHook, fn, context, stackTraceError, contextIndex
|
|
|
4200
4196
|
})();
|
|
4201
4197
|
};
|
|
4202
4198
|
}
|
|
4203
|
-
function createTestHook(name, handler) {
|
|
4204
|
-
return (fn, timeout) => {
|
|
4205
|
-
assertTypes(fn, `"${name}" callback`, ["function"]);
|
|
4206
|
-
const current = getCurrentTest();
|
|
4207
|
-
if (!current) throw new Error(`Hook ${name}() can only be called inside a test`);
|
|
4208
|
-
return handler(current, fn, timeout);
|
|
4209
|
-
};
|
|
4210
|
-
}
|
|
4211
4199
|
function findTestFileStackTrace(testFilePath, error) {
|
|
4212
4200
|
const lines = error.split("\n").slice(1);
|
|
4213
4201
|
for (const line of lines) {
|
|
@@ -4298,7 +4286,6 @@ const suite = createSuite();
|
|
|
4298
4286
|
* ```
|
|
4299
4287
|
*/
|
|
4300
4288
|
const test$2 = createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
4301
|
-
if (getCurrentTest()) throw new Error("Calling the test function inside another test function is not allowed. Please put it inside \"describe\" or \"suite\" so it can be properly collected.");
|
|
4302
4289
|
getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
|
|
4303
4290
|
});
|
|
4304
4291
|
/**
|
|
@@ -4375,7 +4362,6 @@ function assert$3(condition, message) {
|
|
|
4375
4362
|
}
|
|
4376
4363
|
function getRunner() {
|
|
4377
4364
|
assert$3(runner, "the runner");
|
|
4378
|
-
return runner;
|
|
4379
4365
|
}
|
|
4380
4366
|
function getCurrentSuite() {
|
|
4381
4367
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
@@ -4565,7 +4551,6 @@ function withAwaitAsyncAssertions(fn, task) {
|
|
|
4565
4551
|
}
|
|
4566
4552
|
function createSuite() {
|
|
4567
4553
|
function suiteFn(name, factoryOrOptions, optionsOrFactory) {
|
|
4568
|
-
if (getCurrentTest()) throw new Error("Calling the suite function inside test function is not allowed. It can be only called at the top level or inside another suite function.");
|
|
4569
4554
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
4570
4555
|
let { options, handler: factory } = parseArguments(factoryOrOptions, optionsOrFactory);
|
|
4571
4556
|
const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;
|
|
@@ -4575,7 +4560,7 @@ function createSuite() {
|
|
|
4575
4560
|
...parentOptions,
|
|
4576
4561
|
...options
|
|
4577
4562
|
};
|
|
4578
|
-
const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ??
|
|
4563
|
+
const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ?? void 0;
|
|
4579
4564
|
if (shuffle != null) options.shuffle = shuffle;
|
|
4580
4565
|
let mode = this.only ?? options.only ? "only" : this.skip ?? options.skip ? "skip" : this.todo ?? options.todo ? "todo" : "run";
|
|
4581
4566
|
if (mode === "run" && !factory) mode = "todo";
|
|
@@ -4598,9 +4583,10 @@ function createSuite() {
|
|
|
4598
4583
|
const fnFirst = typeof optionsOrFn === "function";
|
|
4599
4584
|
cases.forEach((i, idx) => {
|
|
4600
4585
|
const items = Array.isArray(i) ? i : [i];
|
|
4601
|
-
if (fnFirst)
|
|
4602
|
-
|
|
4603
|
-
|
|
4586
|
+
if (fnFirst) {
|
|
4587
|
+
if (arrayOnlyCases) suite(formatTitle(_name, items, idx), handler ? () => handler(...items) : void 0, options.timeout);
|
|
4588
|
+
else suite(formatTitle(_name, items, idx), handler ? () => handler(i) : void 0, options.timeout);
|
|
4589
|
+
} else if (arrayOnlyCases) suite(formatTitle(_name, items, idx), options, handler ? () => handler(...items) : void 0);
|
|
4604
4590
|
else suite(formatTitle(_name, items, idx), options, handler ? () => handler(i) : void 0);
|
|
4605
4591
|
});
|
|
4606
4592
|
context.setContext("each", void 0);
|
|
@@ -4641,9 +4627,10 @@ function createTaskCollector(fn) {
|
|
|
4641
4627
|
const fnFirst = typeof optionsOrFn === "function";
|
|
4642
4628
|
cases.forEach((i, idx) => {
|
|
4643
4629
|
const items = Array.isArray(i) ? i : [i];
|
|
4644
|
-
if (fnFirst)
|
|
4645
|
-
|
|
4646
|
-
|
|
4630
|
+
if (fnFirst) {
|
|
4631
|
+
if (arrayOnlyCases) test(formatTitle(_name, items, idx), handler ? () => handler(...items) : void 0, options.timeout);
|
|
4632
|
+
else test(formatTitle(_name, items, idx), handler ? () => handler(i) : void 0, options.timeout);
|
|
4633
|
+
} else if (arrayOnlyCases) test(formatTitle(_name, items, idx), options, handler ? () => handler(...items) : void 0);
|
|
4647
4634
|
else test(formatTitle(_name, items, idx), options, handler ? () => handler(i) : void 0);
|
|
4648
4635
|
});
|
|
4649
4636
|
context.setContext("each", void 0);
|
|
@@ -4767,7 +4754,7 @@ function formatTitle(template, items, idx) {
|
|
|
4767
4754
|
const isArrayKey = /^\d+$/.test(key);
|
|
4768
4755
|
if (!isObjectItem && !isArrayKey) return `$${key}`;
|
|
4769
4756
|
const arrayElement = isArrayKey ? objectAttr(items, key) : void 0;
|
|
4770
|
-
return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate:
|
|
4757
|
+
return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate: void 0 });
|
|
4771
4758
|
});
|
|
4772
4759
|
}
|
|
4773
4760
|
let output = "";
|
|
@@ -4936,7 +4923,7 @@ function makeTimeoutError(isHook, timeout, stackTraceError) {
|
|
|
4936
4923
|
}
|
|
4937
4924
|
globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
|
|
4938
4925
|
globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
|
|
4939
|
-
|
|
4926
|
+
Date.now;
|
|
4940
4927
|
const { clearTimeout, setTimeout: setTimeout$1 } = getSafeTimers();
|
|
4941
4928
|
const packs = /* @__PURE__ */ new Map();
|
|
4942
4929
|
const eventsPacks = [];
|
|
@@ -4963,21 +4950,6 @@ async function finishSendTasksUpdate(runner) {
|
|
|
4963
4950
|
sendTasksUpdate(runner);
|
|
4964
4951
|
await Promise.all(pendingTasksUpdates);
|
|
4965
4952
|
}
|
|
4966
|
-
function throttle(fn, ms) {
|
|
4967
|
-
let last = 0;
|
|
4968
|
-
let pendingCall;
|
|
4969
|
-
return function call(...args) {
|
|
4970
|
-
const now = unixNow();
|
|
4971
|
-
if (now - last > ms) {
|
|
4972
|
-
last = now;
|
|
4973
|
-
clearTimeout(pendingCall);
|
|
4974
|
-
pendingCall = void 0;
|
|
4975
|
-
return fn.apply(this, args);
|
|
4976
|
-
}
|
|
4977
|
-
pendingCall ??= setTimeout$1(() => call.bind(this)(...args), ms);
|
|
4978
|
-
};
|
|
4979
|
-
}
|
|
4980
|
-
throttle(sendTasksUpdate, 100);
|
|
4981
4953
|
/**
|
|
4982
4954
|
* @experimental
|
|
4983
4955
|
* @advanced
|
|
@@ -5098,7 +5070,7 @@ function manageArtifactAttachment(attachment) {
|
|
|
5098
5070
|
if (attachment.body instanceof Uint8Array) attachment.body = encodeUint8Array(attachment.body);
|
|
5099
5071
|
}
|
|
5100
5072
|
//#endregion
|
|
5101
|
-
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.
|
|
5073
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.1_7a084362ecc6e7cf263aaec0df67750f/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js
|
|
5102
5074
|
const NAME_WORKER_STATE = "__vitest_worker__";
|
|
5103
5075
|
function getWorkerState() {
|
|
5104
5076
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -5462,7 +5434,7 @@ function copyOriginalStaticProperties(mock, original) {
|
|
|
5462
5434
|
Object.defineProperty(mock, key, descriptor);
|
|
5463
5435
|
}
|
|
5464
5436
|
}
|
|
5465
|
-
const ignoreProperties = new Set([
|
|
5437
|
+
const ignoreProperties = /* @__PURE__ */ new Set([
|
|
5466
5438
|
"length",
|
|
5467
5439
|
"name",
|
|
5468
5440
|
"prototype",
|
|
@@ -6136,16 +6108,115 @@ function inspect(value, opts = {}) {
|
|
|
6136
6108
|
}
|
|
6137
6109
|
__name(inspect, "inspect");
|
|
6138
6110
|
var config = {
|
|
6111
|
+
/**
|
|
6112
|
+
* ### config.includeStack
|
|
6113
|
+
*
|
|
6114
|
+
* User configurable property, influences whether stack trace
|
|
6115
|
+
* is included in Assertion error message. Default of false
|
|
6116
|
+
* suppresses stack trace in the error message.
|
|
6117
|
+
*
|
|
6118
|
+
* chai.config.includeStack = true; // enable stack on error
|
|
6119
|
+
*
|
|
6120
|
+
* @param {boolean}
|
|
6121
|
+
* @public
|
|
6122
|
+
*/
|
|
6139
6123
|
includeStack: false,
|
|
6124
|
+
/**
|
|
6125
|
+
* ### config.showDiff
|
|
6126
|
+
*
|
|
6127
|
+
* User configurable property, influences whether or not
|
|
6128
|
+
* the `showDiff` flag should be included in the thrown
|
|
6129
|
+
* AssertionErrors. `false` will always be `false`; `true`
|
|
6130
|
+
* will be true when the assertion has requested a diff
|
|
6131
|
+
* be shown.
|
|
6132
|
+
*
|
|
6133
|
+
* @param {boolean}
|
|
6134
|
+
* @public
|
|
6135
|
+
*/
|
|
6140
6136
|
showDiff: true,
|
|
6137
|
+
/**
|
|
6138
|
+
* ### config.truncateThreshold
|
|
6139
|
+
*
|
|
6140
|
+
* User configurable property, sets length threshold for actual and
|
|
6141
|
+
* expected values in assertion errors. If this threshold is exceeded, for
|
|
6142
|
+
* example for large data structures, the value is replaced with something
|
|
6143
|
+
* like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.
|
|
6144
|
+
*
|
|
6145
|
+
* Set it to zero if you want to disable truncating altogether.
|
|
6146
|
+
*
|
|
6147
|
+
* This is especially userful when doing assertions on arrays: having this
|
|
6148
|
+
* set to a reasonable large value makes the failure messages readily
|
|
6149
|
+
* inspectable.
|
|
6150
|
+
*
|
|
6151
|
+
* chai.config.truncateThreshold = 0; // disable truncating
|
|
6152
|
+
*
|
|
6153
|
+
* @param {number}
|
|
6154
|
+
* @public
|
|
6155
|
+
*/
|
|
6141
6156
|
truncateThreshold: 40,
|
|
6157
|
+
/**
|
|
6158
|
+
* ### config.useProxy
|
|
6159
|
+
*
|
|
6160
|
+
* User configurable property, defines if chai will use a Proxy to throw
|
|
6161
|
+
* an error when a non-existent property is read, which protects users
|
|
6162
|
+
* from typos when using property-based assertions.
|
|
6163
|
+
*
|
|
6164
|
+
* Set it to false if you want to disable this feature.
|
|
6165
|
+
*
|
|
6166
|
+
* chai.config.useProxy = false; // disable use of Proxy
|
|
6167
|
+
*
|
|
6168
|
+
* This feature is automatically disabled regardless of this config value
|
|
6169
|
+
* in environments that don't support proxies.
|
|
6170
|
+
*
|
|
6171
|
+
* @param {boolean}
|
|
6172
|
+
* @public
|
|
6173
|
+
*/
|
|
6142
6174
|
useProxy: true,
|
|
6175
|
+
/**
|
|
6176
|
+
* ### config.proxyExcludedKeys
|
|
6177
|
+
*
|
|
6178
|
+
* User configurable property, defines which properties should be ignored
|
|
6179
|
+
* instead of throwing an error if they do not exist on the assertion.
|
|
6180
|
+
* This is only applied if the environment Chai is running in supports proxies and
|
|
6181
|
+
* if the `useProxy` configuration setting is enabled.
|
|
6182
|
+
* By default, `then` and `inspect` will not throw an error if they do not exist on the
|
|
6183
|
+
* assertion object because the `.inspect` property is read by `util.inspect` (for example, when
|
|
6184
|
+
* using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.
|
|
6185
|
+
*
|
|
6186
|
+
* // By default these keys will not throw an error if they do not exist on the assertion object
|
|
6187
|
+
* chai.config.proxyExcludedKeys = ['then', 'inspect'];
|
|
6188
|
+
*
|
|
6189
|
+
* @param {Array}
|
|
6190
|
+
* @public
|
|
6191
|
+
*/
|
|
6143
6192
|
proxyExcludedKeys: [
|
|
6144
6193
|
"then",
|
|
6145
6194
|
"catch",
|
|
6146
6195
|
"inspect",
|
|
6147
6196
|
"toJSON"
|
|
6148
6197
|
],
|
|
6198
|
+
/**
|
|
6199
|
+
* ### config.deepEqual
|
|
6200
|
+
*
|
|
6201
|
+
* User configurable property, defines which a custom function to use for deepEqual
|
|
6202
|
+
* comparisons.
|
|
6203
|
+
* By default, the function used is the one from the `deep-eql` package without custom comparator.
|
|
6204
|
+
*
|
|
6205
|
+
* // use a custom comparator
|
|
6206
|
+
* chai.config.deepEqual = (expected, actual) => {
|
|
6207
|
+
* return chai.util.eql(expected, actual, {
|
|
6208
|
+
* comparator: (expected, actual) => {
|
|
6209
|
+
* // for non number comparison, use the default behavior
|
|
6210
|
+
* if(typeof expected !== 'number') return null;
|
|
6211
|
+
* // allow a difference of 10 between compared numbers
|
|
6212
|
+
* return typeof actual === 'number' && Math.abs(actual - expected) < 10
|
|
6213
|
+
* }
|
|
6214
|
+
* })
|
|
6215
|
+
* };
|
|
6216
|
+
*
|
|
6217
|
+
* @param {Function}
|
|
6218
|
+
* @public
|
|
6219
|
+
*/
|
|
6149
6220
|
deepEqual: null
|
|
6150
6221
|
};
|
|
6151
6222
|
function inspect2(obj, showHidden, depth, colors) {
|
|
@@ -6159,13 +6230,14 @@ function inspect2(obj, showHidden, depth, colors) {
|
|
|
6159
6230
|
__name(inspect2, "inspect");
|
|
6160
6231
|
function objDisplay(obj) {
|
|
6161
6232
|
let str = inspect2(obj), type3 = Object.prototype.toString.call(obj);
|
|
6162
|
-
if (config.truncateThreshold && str.length >= config.truncateThreshold)
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6233
|
+
if (config.truncateThreshold && str.length >= config.truncateThreshold) {
|
|
6234
|
+
if (type3 === "[object Function]") return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
|
|
6235
|
+
else if (type3 === "[object Array]") return "[ Array(" + obj.length + ") ]";
|
|
6236
|
+
else if (type3 === "[object Object]") {
|
|
6237
|
+
let keys = Object.keys(obj);
|
|
6238
|
+
return "{ Object (" + (keys.length > 2 ? keys.splice(0, 2).join(", ") + ", ..." : keys.join(", ")) + ") }";
|
|
6239
|
+
} else return str;
|
|
6167
6240
|
} else return str;
|
|
6168
|
-
else return str;
|
|
6169
6241
|
}
|
|
6170
6242
|
__name(objDisplay, "objDisplay");
|
|
6171
6243
|
function getMessage2(obj, args) {
|
|
@@ -7481,17 +7553,23 @@ function assertThrows(errorLike, errMsgMatcher, msg) {
|
|
|
7481
7553
|
}
|
|
7482
7554
|
if (errorLike && caughtErr) {
|
|
7483
7555
|
if (errorLike instanceof Error) {
|
|
7484
|
-
if (check_error_exports.compatibleInstance(caughtErr, errorLike) === negate)
|
|
7485
|
-
|
|
7556
|
+
if (check_error_exports.compatibleInstance(caughtErr, errorLike) === negate) {
|
|
7557
|
+
if (everyArgIsDefined && negate) errorLikeFail = true;
|
|
7558
|
+
else this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""), errorLike.toString(), caughtErr.toString());
|
|
7559
|
+
}
|
|
7560
|
+
}
|
|
7561
|
+
if (check_error_exports.compatibleConstructor(caughtErr, errorLike) === negate) {
|
|
7562
|
+
if (everyArgIsDefined && negate) errorLikeFail = true;
|
|
7563
|
+
else this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr));
|
|
7486
7564
|
}
|
|
7487
|
-
if (check_error_exports.compatibleConstructor(caughtErr, errorLike) === negate) if (everyArgIsDefined && negate) errorLikeFail = true;
|
|
7488
|
-
else this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr));
|
|
7489
7565
|
}
|
|
7490
7566
|
if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {
|
|
7491
7567
|
let placeholder = "including";
|
|
7492
7568
|
if (isRegExp2(errMsgMatcher)) placeholder = "matching";
|
|
7493
|
-
if (check_error_exports.compatibleMessage(caughtErr, errMsgMatcher) === negate)
|
|
7494
|
-
|
|
7569
|
+
if (check_error_exports.compatibleMessage(caughtErr, errMsgMatcher) === negate) {
|
|
7570
|
+
if (everyArgIsDefined && negate) errMsgMatcherFail = true;
|
|
7571
|
+
else this.assert(negate, "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}", "expected #{this} to throw error not " + placeholder + " #{exp}", errMsgMatcher, check_error_exports.getMessage(caughtErr));
|
|
7572
|
+
}
|
|
7495
7573
|
}
|
|
7496
7574
|
if (errorLikeFail && errMsgMatcherFail) this.assert(negate, "expected #{this} to throw #{exp} but #{act} was thrown", "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr));
|
|
7497
7575
|
flag2(this, "object", caughtErr);
|
|
@@ -7721,8 +7799,10 @@ function compareSubset(expected, actual) {
|
|
|
7721
7799
|
});
|
|
7722
7800
|
});
|
|
7723
7801
|
}
|
|
7724
|
-
if (expected instanceof Date)
|
|
7725
|
-
|
|
7802
|
+
if (expected instanceof Date) {
|
|
7803
|
+
if (actual instanceof Date) return expected.getTime() === actual.getTime();
|
|
7804
|
+
else return false;
|
|
7805
|
+
}
|
|
7726
7806
|
return Object.keys(expected).every(function(key) {
|
|
7727
7807
|
let expectedValue = expected[key];
|
|
7728
7808
|
let actualValue = actual[key];
|
|
@@ -9231,8 +9311,12 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9231
9311
|
if (promise === "rejects") utils.flag(this, "object", () => {
|
|
9232
9312
|
throw object;
|
|
9233
9313
|
});
|
|
9234
|
-
else if (promise === "resolves" && typeof object !== "function")
|
|
9235
|
-
|
|
9314
|
+
else if (promise === "resolves" && typeof object !== "function") {
|
|
9315
|
+
if (!isNot) {
|
|
9316
|
+
const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't";
|
|
9317
|
+
throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
|
|
9318
|
+
} else return;
|
|
9319
|
+
}
|
|
9236
9320
|
_super.apply(this, args);
|
|
9237
9321
|
};
|
|
9238
9322
|
});
|
|
@@ -9291,7 +9375,8 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9291
9375
|
actualSubset,
|
|
9292
9376
|
false
|
|
9293
9377
|
]);
|
|
9294
|
-
|
|
9378
|
+
const message = stripped === 0 ? msg : `${msg}\n(${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`;
|
|
9379
|
+
throw new AssertionError(message, {
|
|
9295
9380
|
showDiff: true,
|
|
9296
9381
|
expected,
|
|
9297
9382
|
actual: actualSubset
|
|
@@ -9524,9 +9609,12 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9524
9609
|
const isNot = utils.flag(this, "negate");
|
|
9525
9610
|
let thrown = null;
|
|
9526
9611
|
if (promise === "rejects") thrown = obj;
|
|
9527
|
-
else if (promise === "resolves" && typeof obj !== "function")
|
|
9528
|
-
|
|
9529
|
-
|
|
9612
|
+
else if (promise === "resolves" && typeof obj !== "function") {
|
|
9613
|
+
if (!isNot) {
|
|
9614
|
+
const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't";
|
|
9615
|
+
throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
|
|
9616
|
+
} else return;
|
|
9617
|
+
} else {
|
|
9530
9618
|
let isThrow = false;
|
|
9531
9619
|
try {
|
|
9532
9620
|
obj();
|
|
@@ -9534,7 +9622,10 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9534
9622
|
isThrow = true;
|
|
9535
9623
|
thrown = err;
|
|
9536
9624
|
}
|
|
9537
|
-
if (!isThrow && !isNot)
|
|
9625
|
+
if (!isThrow && !isNot) {
|
|
9626
|
+
const message = utils.flag(this, "message") || "expected function to throw an error, but it didn't";
|
|
9627
|
+
throw new AssertionError(message, { showDiff: false }, utils.flag(this, "ssfi"));
|
|
9628
|
+
}
|
|
9538
9629
|
}
|
|
9539
9630
|
if (typeof expected === "function") {
|
|
9540
9631
|
const name = expected.name || expected.prototype.constructor.name;
|
|
@@ -9604,7 +9695,8 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9604
9695
|
`expected "${spyName}" to not ${action} with: #{exp}`,
|
|
9605
9696
|
value
|
|
9606
9697
|
]);
|
|
9607
|
-
|
|
9698
|
+
const results = action === "return" ? spy.mock.results : spy.mock.settledResults;
|
|
9699
|
+
throw new AssertionError(formatReturns(spy, results, msg, value));
|
|
9608
9700
|
}
|
|
9609
9701
|
});
|
|
9610
9702
|
});
|
|
@@ -9670,7 +9762,7 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9670
9762
|
if (typeof result !== "function") return result instanceof chai.Assertion ? proxy : result;
|
|
9671
9763
|
return (...args) => {
|
|
9672
9764
|
utils.flag(this, "_name", key);
|
|
9673
|
-
|
|
9765
|
+
const promise = Promise.resolve(obj).then((value) => {
|
|
9674
9766
|
utils.flag(this, "object", value);
|
|
9675
9767
|
return result.call(this, ...args);
|
|
9676
9768
|
}, (err) => {
|
|
@@ -9680,7 +9772,8 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9680
9772
|
}).catch((err) => {
|
|
9681
9773
|
if (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);
|
|
9682
9774
|
throw err;
|
|
9683
|
-
})
|
|
9775
|
+
});
|
|
9776
|
+
return recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
|
|
9684
9777
|
};
|
|
9685
9778
|
} });
|
|
9686
9779
|
return proxy;
|
|
@@ -9699,7 +9792,7 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9699
9792
|
if (typeof result !== "function") return result instanceof chai.Assertion ? proxy : result;
|
|
9700
9793
|
return (...args) => {
|
|
9701
9794
|
utils.flag(this, "_name", key);
|
|
9702
|
-
|
|
9795
|
+
const promise = Promise.resolve(wrapper).then((value) => {
|
|
9703
9796
|
throw new AssertionError(`promise resolved "${utils.inspect(value)}" instead of rejecting`, {
|
|
9704
9797
|
showDiff: true,
|
|
9705
9798
|
expected: /* @__PURE__ */ new Error("rejected promise"),
|
|
@@ -9711,7 +9804,8 @@ const JestChaiExpect = (chai, utils) => {
|
|
|
9711
9804
|
}).catch((err) => {
|
|
9712
9805
|
if (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);
|
|
9713
9806
|
throw err;
|
|
9714
|
-
})
|
|
9807
|
+
});
|
|
9808
|
+
return recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, "soft"));
|
|
9715
9809
|
};
|
|
9716
9810
|
} });
|
|
9717
9811
|
return proxy;
|
|
@@ -9867,7 +9961,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
9867
9961
|
//#endregion
|
|
9868
9962
|
//#region ../../node_modules/.pnpm/@vitest+snapshot@4.1.1/node_modules/@vitest/snapshot/dist/index.js
|
|
9869
9963
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
9870
|
-
const MagicString = (await import("./magic-string.es-
|
|
9964
|
+
const MagicString = (await import("./magic-string.es-BWtG0AyA.mjs")).default;
|
|
9871
9965
|
const files = new Set(snapshots.map((i) => i.file));
|
|
9872
9966
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
9873
9967
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -10016,7 +10110,7 @@ function requireNaturalCompare() {
|
|
|
10016
10110
|
}
|
|
10017
10111
|
return naturalCompare$1.exports;
|
|
10018
10112
|
}
|
|
10019
|
-
var naturalCompare =
|
|
10113
|
+
var naturalCompare = /*@__PURE__*/ getDefaultExportFromCjs(requireNaturalCompare());
|
|
10020
10114
|
const serialize$1 = (val, config, indentation, depth, refs, printer) => {
|
|
10021
10115
|
const name = val.getMockName();
|
|
10022
10116
|
const nameString = name === "vi.fn()" ? "" : ` ${name}`;
|
|
@@ -10129,9 +10223,10 @@ function deepMergeSnapshot(target, source) {
|
|
|
10129
10223
|
if (isObject(target) && isObject(source)) {
|
|
10130
10224
|
const mergedOutput = { ...target };
|
|
10131
10225
|
Object.keys(source).forEach((key) => {
|
|
10132
|
-
if (isObject(source[key]) && !source[key].$$typeof)
|
|
10133
|
-
|
|
10134
|
-
|
|
10226
|
+
if (isObject(source[key]) && !source[key].$$typeof) {
|
|
10227
|
+
if (!(key in target)) Object.assign(mergedOutput, { [key]: source[key] });
|
|
10228
|
+
else mergedOutput[key] = deepMergeSnapshot(target[key], source[key]);
|
|
10229
|
+
} else if (Array.isArray(source[key])) mergedOutput[key] = deepMergeArray(target[key], source[key]);
|
|
10135
10230
|
else Object.assign(mergedOutput, { [key]: source[key] });
|
|
10136
10231
|
});
|
|
10137
10232
|
return mergedOutput;
|
|
@@ -10236,7 +10331,8 @@ var SnapshotState = class SnapshotState {
|
|
|
10236
10331
|
}
|
|
10237
10332
|
static async create(testFilePath, options) {
|
|
10238
10333
|
const snapshotPath = await options.snapshotEnvironment.resolvePath(testFilePath);
|
|
10239
|
-
|
|
10334
|
+
const content = await options.snapshotEnvironment.readSnapshotFile(snapshotPath);
|
|
10335
|
+
return new SnapshotState(testFilePath, snapshotPath, content, options);
|
|
10240
10336
|
}
|
|
10241
10337
|
get environment() {
|
|
10242
10338
|
return this._environment;
|
|
@@ -10365,16 +10461,17 @@ var SnapshotState = class SnapshotState {
|
|
|
10365
10461
|
});
|
|
10366
10462
|
}
|
|
10367
10463
|
if (hasSnapshot && this._updateSnapshot === "all" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === "new" || this._updateSnapshot === "all")) {
|
|
10368
|
-
if (this._updateSnapshot === "all")
|
|
10369
|
-
if (
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10464
|
+
if (this._updateSnapshot === "all") {
|
|
10465
|
+
if (!pass) {
|
|
10466
|
+
if (hasSnapshot) this.updated.increment(testId);
|
|
10467
|
+
else this.added.increment(testId);
|
|
10468
|
+
this._addSnapshot(key, receivedSerialized, {
|
|
10469
|
+
stack,
|
|
10470
|
+
testId,
|
|
10471
|
+
rawSnapshot
|
|
10472
|
+
});
|
|
10473
|
+
} else this.matched.increment(testId);
|
|
10474
|
+
} else {
|
|
10378
10475
|
this._addSnapshot(key, receivedSerialized, {
|
|
10379
10476
|
stack,
|
|
10380
10477
|
testId,
|
|
@@ -10520,10 +10617,10 @@ var SnapshotClient = class {
|
|
|
10520
10617
|
}
|
|
10521
10618
|
};
|
|
10522
10619
|
//#endregion
|
|
10523
|
-
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.
|
|
10620
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.1_7a084362ecc6e7cf263aaec0df67750f/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js
|
|
10524
10621
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
10525
10622
|
//#endregion
|
|
10526
|
-
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.
|
|
10623
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.1_7a084362ecc6e7cf263aaec0df67750f/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js
|
|
10527
10624
|
const RealDate = Date;
|
|
10528
10625
|
let now = null;
|
|
10529
10626
|
var MockDate = class MockDate extends RealDate {
|
|
@@ -10545,7 +10642,6 @@ var MockDate = class MockDate extends RealDate {
|
|
|
10545
10642
|
s = s || 0;
|
|
10546
10643
|
ms = ms || 0;
|
|
10547
10644
|
date = new RealDate(y, m, d, h, M, s, ms);
|
|
10548
|
-
break;
|
|
10549
10645
|
}
|
|
10550
10646
|
Object.setPrototypeOf(date, MockDate.prototype);
|
|
10551
10647
|
return date;
|
|
@@ -10572,7 +10668,7 @@ function resetDate() {
|
|
|
10572
10668
|
}
|
|
10573
10669
|
const { get } = Reflect;
|
|
10574
10670
|
//#endregion
|
|
10575
|
-
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.
|
|
10671
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.1_@opentelemetry+api@1.9.1_@types+node@25.2.3_@vitest+browser-playwright@4.1_7a084362ecc6e7cf263aaec0df67750f/node_modules/vitest/dist/chunks/test.CBQUpOM3.js
|
|
10576
10672
|
const unsupported = [
|
|
10577
10673
|
"matchSnapshot",
|
|
10578
10674
|
"toMatchSnapshot",
|
|
@@ -10820,7 +10916,7 @@ function createExpect(test) {
|
|
|
10820
10916
|
const { assertionCalls } = getState(expect$1);
|
|
10821
10917
|
setState({ assertionCalls: assertionCalls + 1 }, expect$1);
|
|
10822
10918
|
const assert = expect(value, message);
|
|
10823
|
-
const _test = test ||
|
|
10919
|
+
const _test = test || void 0;
|
|
10824
10920
|
if (_test) return assert.withTest(_test);
|
|
10825
10921
|
else return assert;
|
|
10826
10922
|
});
|
|
@@ -12395,7 +12491,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12395
12491
|
clock.next();
|
|
12396
12492
|
checkIsNearInfiniteLimit(clock, i);
|
|
12397
12493
|
}
|
|
12398
|
-
|
|
12494
|
+
const excessJob = firstTimer(clock);
|
|
12495
|
+
throw getInfiniteLoopError(clock, excessJob);
|
|
12399
12496
|
};
|
|
12400
12497
|
clock.runToFrame = function runToFrame() {
|
|
12401
12498
|
return clock.tick(getTimeToNextFrame());
|
|
@@ -12429,7 +12526,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12429
12526
|
checkIsNearInfiniteLimit(clock, i);
|
|
12430
12527
|
return;
|
|
12431
12528
|
}
|
|
12432
|
-
|
|
12529
|
+
const excessJob = firstTimer(clock);
|
|
12530
|
+
reject(getInfiniteLoopError(clock, excessJob));
|
|
12433
12531
|
} catch (e) {
|
|
12434
12532
|
reject(e);
|
|
12435
12533
|
}
|
|
@@ -12500,7 +12598,8 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12500
12598
|
return clock;
|
|
12501
12599
|
}
|
|
12502
12600
|
function createIntervalTick(clock, delta) {
|
|
12503
|
-
|
|
12601
|
+
const intervalTick = doIntervalTick.bind(null, clock, delta);
|
|
12602
|
+
clock.attachedInterval = originalSetInterval(intervalTick, delta);
|
|
12504
12603
|
}
|
|
12505
12604
|
/**
|
|
12506
12605
|
* @param {Config=} [config] Optional config
|
|
@@ -12590,10 +12689,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12590
12689
|
}
|
|
12591
12690
|
resolve(value);
|
|
12592
12691
|
}, delay);
|
|
12593
|
-
if (options.signal)
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12692
|
+
if (options.signal) {
|
|
12693
|
+
if (options.signal.aborted) abort();
|
|
12694
|
+
else {
|
|
12695
|
+
options.signal.addEventListener("abort", abort);
|
|
12696
|
+
clock.abortListenerMap.set(abort, options.signal);
|
|
12697
|
+
}
|
|
12597
12698
|
}
|
|
12598
12699
|
});
|
|
12599
12700
|
} else if (nameOfMethodToReplace === "setImmediate") {
|
|
@@ -12615,10 +12716,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12615
12716
|
}
|
|
12616
12717
|
resolve(value);
|
|
12617
12718
|
});
|
|
12618
|
-
if (options.signal)
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12719
|
+
if (options.signal) {
|
|
12720
|
+
if (options.signal.aborted) abort();
|
|
12721
|
+
else {
|
|
12722
|
+
options.signal.addEventListener("abort", abort);
|
|
12723
|
+
clock.abortListenerMap.set(abort, options.signal);
|
|
12724
|
+
}
|
|
12622
12725
|
}
|
|
12623
12726
|
});
|
|
12624
12727
|
} else if (nameOfMethodToReplace === "setInterval") {
|
|
@@ -12653,10 +12756,12 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
|
|
|
12653
12756
|
done = true;
|
|
12654
12757
|
for (const resolvable of nextQueue) resolvable.resolve();
|
|
12655
12758
|
};
|
|
12656
|
-
if (options.signal)
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12759
|
+
if (options.signal) {
|
|
12760
|
+
if (options.signal.aborted) done = true;
|
|
12761
|
+
else {
|
|
12762
|
+
options.signal.addEventListener("abort", abort);
|
|
12763
|
+
clock.abortListenerMap.set(abort, options.signal);
|
|
12764
|
+
}
|
|
12660
12765
|
}
|
|
12661
12766
|
return {
|
|
12662
12767
|
next: async () => {
|