@noma.to/qwik-mock 0.0.0-semantically-released → 1.0.2
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/LICENSE +21 -0
- package/lib/{index.qwik.cjs → index.cjs} +1 -1
- package/lib/index.mjs +6 -0
- package/lib/lib/qwik-mock.cjs +14 -0
- package/lib/lib/qwik-mock.mjs +14 -0
- package/lib/node_modules/.pnpm/{@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.cjs → @jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs} +15 -21
- package/lib/node_modules/.pnpm/{@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.mjs → @jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs} +15 -21
- package/lib/node_modules/.pnpm/{@vitest_expect@3.0.9/node_modules/@vitest/expect/dist/index.qwik.cjs → @vitest_expect@4.0.18/node_modules/@vitest/expect/dist/index.cjs} +557 -962
- package/lib/node_modules/.pnpm/{@vitest_expect@3.0.9/node_modules/@vitest/expect/dist/index.qwik.mjs → @vitest_expect@4.0.18/node_modules/@vitest/expect/dist/index.mjs} +537 -942
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.qwik.cjs → @vitest_pretty-format@4.0.18/node_modules/@vitest/pretty-format/dist/index.cjs} +127 -662
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@3.0.9/node_modules/@vitest/pretty-format/dist/index.qwik.mjs → @vitest_pretty-format@4.0.18/node_modules/@vitest/pretty-format/dist/index.mjs} +130 -665
- package/lib/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/chunk-tasks.cjs +60 -0
- package/lib/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/chunk-tasks.mjs +60 -0
- package/lib/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/index.cjs +1102 -0
- package/lib/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/index.mjs +1102 -0
- package/lib/node_modules/.pnpm/@vitest_snapshot@4.0.18/node_modules/@vitest/snapshot/dist/index.cjs +1289 -0
- package/lib/node_modules/.pnpm/@vitest_snapshot@4.0.18/node_modules/@vitest/snapshot/dist/index.mjs +1289 -0
- package/lib/node_modules/.pnpm/@vitest_spy@4.0.18/node_modules/@vitest/spy/dist/index.cjs +422 -0
- package/lib/node_modules/.pnpm/@vitest_spy@4.0.18/node_modules/@vitest/spy/dist/index.mjs +422 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.cjs +6 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs +6 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +98 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +98 -0
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/diff.qwik.cjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.cjs} +90 -219
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/diff.qwik.mjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.mjs} +91 -220
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.cjs +690 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.mjs +690 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/error.cjs +39 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/error.mjs +39 -0
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.qwik.cjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/helpers.cjs} +4 -3
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/helpers.qwik.mjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/helpers.mjs} +4 -3
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/error.qwik.cjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/serialize.cjs} +32 -55
- package/lib/node_modules/.pnpm/{@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/error.qwik.mjs → @vitest_utils@4.0.18/node_modules/@vitest/utils/dist/serialize.mjs} +32 -55
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/source-map.cjs +125 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/source-map.mjs +125 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/timers.cjs +22 -0
- package/lib/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/timers.mjs +22 -0
- package/lib/node_modules/.pnpm/{chai@5.2.0/node_modules/chai/chai.qwik.cjs → chai@6.2.2/node_modules/chai/index.cjs} +461 -642
- package/lib/node_modules/.pnpm/{chai@5.2.0/node_modules/chai/chai.qwik.mjs → chai@6.2.2/node_modules/chai/index.mjs} +460 -641
- package/lib/node_modules/.pnpm/{magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.qwik.cjs → magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs} +18 -3
- package/lib/node_modules/.pnpm/{magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.qwik.mjs → magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs} +18 -3
- package/lib/node_modules/.pnpm/{tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.cjs → tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.cjs} +29 -25
- package/lib/node_modules/.pnpm/{tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.qwik.mjs → tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.mjs} +28 -24
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.cjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs} +0 -4
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.mjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs} +1 -5
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.cjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.cjs} +3 -8
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.mjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.mjs} +3 -8
- package/lib/node_modules/.pnpm/vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/utils.DvEY5TfP.cjs +45 -0
- package/lib/node_modules/.pnpm/vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/utils.DvEY5TfP.mjs +45 -0
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.nSCvwQ7l.qwik.cjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/vi.2VT5v0um.cjs} +407 -781
- package/lib/node_modules/.pnpm/{vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.nSCvwQ7l.qwik.mjs → vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/vi.2VT5v0um.mjs} +338 -712
- package/lib-types/lib/qwik-mock.d.ts +6 -5
- package/package.json +13 -14
- package/lib/index.qwik.mjs +0 -6
- package/lib/lib/qwik-mock.qwik.cjs +0 -14
- package/lib/lib/qwik-mock.qwik.mjs +0 -14
- package/lib/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.qwik.cjs +0 -44
- package/lib/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/chunk-tasks.qwik.mjs +0 -44
- package/lib/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.qwik.cjs +0 -767
- package/lib/node_modules/.pnpm/@vitest_runner@3.0.9/node_modules/@vitest/runner/dist/index.qwik.mjs +0 -767
- package/lib/node_modules/.pnpm/@vitest_snapshot@3.0.9/node_modules/@vitest/snapshot/dist/index.qwik.cjs +0 -2149
- package/lib/node_modules/.pnpm/@vitest_snapshot@3.0.9/node_modules/@vitest/snapshot/dist/index.qwik.mjs +0 -2149
- package/lib/node_modules/.pnpm/@vitest_spy@3.0.9/node_modules/@vitest/spy/dist/index.qwik.cjs +0 -147
- package/lib/node_modules/.pnpm/@vitest_spy@3.0.9/node_modules/@vitest/spy/dist/index.qwik.mjs +0 -147
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.cjs +0 -165
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.mjs +0 -165
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.qwik.cjs +0 -474
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/index.qwik.mjs +0 -474
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.qwik.cjs +0 -218
- package/lib/node_modules/.pnpm/@vitest_utils@3.0.9/node_modules/@vitest/utils/dist/source-map.qwik.mjs +0 -218
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/arguments.qwik.cjs +0 -9
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/arguments.qwik.mjs +0 -10
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/array.qwik.cjs +0 -16
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/array.qwik.mjs +0 -17
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/bigint.qwik.cjs +0 -9
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/bigint.qwik.mjs +0 -10
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/class.qwik.cjs +0 -16
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/class.qwik.mjs +0 -17
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/date.qwik.cjs +0 -12
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/date.qwik.mjs +0 -13
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/error.qwik.cjs +0 -36
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/error.qwik.mjs +0 -37
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/function.qwik.cjs +0 -11
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/function.qwik.mjs +0 -12
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/helpers.qwik.cjs +0 -160
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/helpers.qwik.mjs +0 -160
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.qwik.cjs +0 -36
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.qwik.mjs +0 -36
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.qwik.cjs +0 -130
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.qwik.mjs +0 -130
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/map.qwik.cjs +0 -23
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/map.qwik.mjs +0 -24
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/number.qwik.cjs +0 -19
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/number.qwik.mjs +0 -20
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/object.qwik.cjs +0 -24
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/object.qwik.mjs +0 -25
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/promise.qwik.cjs +0 -17
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/promise.qwik.mjs +0 -18
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/regexp.qwik.cjs +0 -9
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/regexp.qwik.mjs +0 -10
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/set.qwik.cjs +0 -16
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/set.qwik.mjs +0 -17
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/string.qwik.cjs +0 -23
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/string.qwik.mjs +0 -24
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/symbol.qwik.cjs +0 -8
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/symbol.qwik.mjs +0 -9
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/typedarray.qwik.cjs +0 -34
- package/lib/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/typedarray.qwik.mjs +0 -35
- package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.cjs +0 -4
- package/lib/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.qwik.mjs +0 -5
- package/lib/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.qwik.cjs +0 -104
- package/lib/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.qwik.mjs +0 -104
- package/lib/node_modules/.pnpm/vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.cjs +0 -66
- package/lib/node_modules/.pnpm/vitest@3.0.9_@types_node@22.13.8_@vitest_ui@3.0.9_jiti@2.4.2_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.mjs +0 -66
- /package/lib/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/{pathe.M-eThtNZ.qwik.cjs → pathe.M-eThtNZ.cjs} +0 -0
- /package/lib/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/{pathe.M-eThtNZ.qwik.mjs → pathe.M-eThtNZ.mjs} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Ian Letourneau <letourneau.ian@gmail.com> (https://github.com/ianlet)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const qwikMock = require("./lib/qwik-mock.
|
|
3
|
+
const qwikMock = require("./lib/qwik-mock.cjs");
|
|
4
4
|
exports.clearAllMocks = qwikMock.clearAllMocks;
|
|
5
5
|
exports.mock$ = qwikMock.mock$;
|
|
6
6
|
exports.mockQrl = qwikMock.mockQrl;
|
package/lib/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const qwik = require("@builder.io/qwik");
|
|
4
|
+
const vi_2VT5v0um = require("../node_modules/.pnpm/vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/vi.2VT5v0um.cjs");
|
|
5
|
+
const mockQrl = (_callbackQrl) => {
|
|
6
|
+
return qwik.$(vi_2VT5v0um.v.fn());
|
|
7
|
+
};
|
|
8
|
+
const mock$ = qwik.implicit$FirstArg(mockQrl);
|
|
9
|
+
function clearAllMocks() {
|
|
10
|
+
vi_2VT5v0um.v.clearAllMocks();
|
|
11
|
+
}
|
|
12
|
+
exports.clearAllMocks = clearAllMocks;
|
|
13
|
+
exports.mock$ = mock$;
|
|
14
|
+
exports.mockQrl = mockQrl;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { implicit$FirstArg, $ } from "@builder.io/qwik";
|
|
2
|
+
import { v as vi } from "../node_modules/.pnpm/vitest@4.0.18_@types_node@25.1.0_@vitest_ui@4.0.18_happy-dom@20.0.11_jiti@2.4.2_jsdom@26.1.0__pd2l5poczrcnqygjcqiguyknnm/node_modules/vitest/dist/chunks/vi.2VT5v0um.mjs";
|
|
3
|
+
const mockQrl = (_callbackQrl) => {
|
|
4
|
+
return $(vi.fn());
|
|
5
|
+
};
|
|
6
|
+
const mock$ = implicit$FirstArg(mockQrl);
|
|
7
|
+
function clearAllMocks() {
|
|
8
|
+
vi.clearAllMocks();
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
clearAllMocks,
|
|
12
|
+
mock$,
|
|
13
|
+
mockQrl
|
|
14
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var comma = ",".charCodeAt(0);
|
|
4
|
+
var semicolon = ";".charCodeAt(0);
|
|
5
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
+
var intToChar = new Uint8Array(64);
|
|
7
|
+
var charToInt = new Uint8Array(128);
|
|
8
8
|
for (let i = 0; i < chars.length; i++) {
|
|
9
9
|
const c = chars.charCodeAt(i);
|
|
10
10
|
intToChar[i] = c;
|
|
@@ -16,14 +16,13 @@ function encodeInteger(builder, num, relative) {
|
|
|
16
16
|
do {
|
|
17
17
|
let clamped = delta & 31;
|
|
18
18
|
delta >>>= 5;
|
|
19
|
-
if (delta > 0)
|
|
20
|
-
clamped |= 32;
|
|
19
|
+
if (delta > 0) clamped |= 32;
|
|
21
20
|
builder.write(intToChar[clamped]);
|
|
22
21
|
} while (delta > 0);
|
|
23
22
|
return num;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
var bufLength = 1024 * 16;
|
|
25
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
27
26
|
decode(buf) {
|
|
28
27
|
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
29
28
|
return out.toString();
|
|
@@ -37,7 +36,7 @@ const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder(
|
|
|
37
36
|
return out;
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
|
-
|
|
39
|
+
var StringWriter = class {
|
|
41
40
|
constructor() {
|
|
42
41
|
this.pos = 0;
|
|
43
42
|
this.out = "";
|
|
@@ -55,7 +54,7 @@ class StringWriter {
|
|
|
55
54
|
const { buffer, out, pos } = this;
|
|
56
55
|
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
57
56
|
}
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
function encode(decoded) {
|
|
60
59
|
const writer = new StringWriter();
|
|
61
60
|
let sourcesIndex = 0;
|
|
@@ -64,23 +63,18 @@ function encode(decoded) {
|
|
|
64
63
|
let namesIndex = 0;
|
|
65
64
|
for (let i = 0; i < decoded.length; i++) {
|
|
66
65
|
const line = decoded[i];
|
|
67
|
-
if (i > 0)
|
|
68
|
-
|
|
69
|
-
if (line.length === 0)
|
|
70
|
-
continue;
|
|
66
|
+
if (i > 0) writer.write(semicolon);
|
|
67
|
+
if (line.length === 0) continue;
|
|
71
68
|
let genColumn = 0;
|
|
72
69
|
for (let j = 0; j < line.length; j++) {
|
|
73
70
|
const segment = line[j];
|
|
74
|
-
if (j > 0)
|
|
75
|
-
writer.write(comma);
|
|
71
|
+
if (j > 0) writer.write(comma);
|
|
76
72
|
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
77
|
-
if (segment.length === 1)
|
|
78
|
-
continue;
|
|
73
|
+
if (segment.length === 1) continue;
|
|
79
74
|
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
80
75
|
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
81
76
|
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
82
|
-
if (segment.length === 4)
|
|
83
|
-
continue;
|
|
77
|
+
if (segment.length === 4) continue;
|
|
84
78
|
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
85
79
|
}
|
|
86
80
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var comma = ",".charCodeAt(0);
|
|
2
|
+
var semicolon = ";".charCodeAt(0);
|
|
3
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4
|
+
var intToChar = new Uint8Array(64);
|
|
5
|
+
var charToInt = new Uint8Array(128);
|
|
6
6
|
for (let i = 0; i < chars.length; i++) {
|
|
7
7
|
const c = chars.charCodeAt(i);
|
|
8
8
|
intToChar[i] = c;
|
|
@@ -14,14 +14,13 @@ function encodeInteger(builder, num, relative) {
|
|
|
14
14
|
do {
|
|
15
15
|
let clamped = delta & 31;
|
|
16
16
|
delta >>>= 5;
|
|
17
|
-
if (delta > 0)
|
|
18
|
-
clamped |= 32;
|
|
17
|
+
if (delta > 0) clamped |= 32;
|
|
19
18
|
builder.write(intToChar[clamped]);
|
|
20
19
|
} while (delta > 0);
|
|
21
20
|
return num;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
var bufLength = 1024 * 16;
|
|
23
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
25
24
|
decode(buf) {
|
|
26
25
|
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
27
26
|
return out.toString();
|
|
@@ -35,7 +34,7 @@ const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder(
|
|
|
35
34
|
return out;
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
|
-
|
|
37
|
+
var StringWriter = class {
|
|
39
38
|
constructor() {
|
|
40
39
|
this.pos = 0;
|
|
41
40
|
this.out = "";
|
|
@@ -53,7 +52,7 @@ class StringWriter {
|
|
|
53
52
|
const { buffer, out, pos } = this;
|
|
54
53
|
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
55
54
|
}
|
|
56
|
-
}
|
|
55
|
+
};
|
|
57
56
|
function encode(decoded) {
|
|
58
57
|
const writer = new StringWriter();
|
|
59
58
|
let sourcesIndex = 0;
|
|
@@ -62,23 +61,18 @@ function encode(decoded) {
|
|
|
62
61
|
let namesIndex = 0;
|
|
63
62
|
for (let i = 0; i < decoded.length; i++) {
|
|
64
63
|
const line = decoded[i];
|
|
65
|
-
if (i > 0)
|
|
66
|
-
|
|
67
|
-
if (line.length === 0)
|
|
68
|
-
continue;
|
|
64
|
+
if (i > 0) writer.write(semicolon);
|
|
65
|
+
if (line.length === 0) continue;
|
|
69
66
|
let genColumn = 0;
|
|
70
67
|
for (let j = 0; j < line.length; j++) {
|
|
71
68
|
const segment = line[j];
|
|
72
|
-
if (j > 0)
|
|
73
|
-
writer.write(comma);
|
|
69
|
+
if (j > 0) writer.write(comma);
|
|
74
70
|
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
75
|
-
if (segment.length === 1)
|
|
76
|
-
continue;
|
|
71
|
+
if (segment.length === 1) continue;
|
|
77
72
|
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
78
73
|
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
79
74
|
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
80
|
-
if (segment.length === 4)
|
|
81
|
-
continue;
|
|
75
|
+
if (segment.length === 4) continue;
|
|
82
76
|
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
83
77
|
}
|
|
84
78
|
}
|