@qwik.dev/core 0.0.0 → 2.0.0-alpha.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/LICENSE +22 -0
- package/bindings/qwik.linux-x64-gnu.node +0 -0
- package/bindings/qwik.wasm.cjs +484 -0
- package/bindings/qwik.wasm.mjs +477 -0
- package/bindings/qwik_wasm_bg.wasm +0 -0
- package/build.d.ts +2 -0
- package/dist/build/index.cjs +35 -0
- package/dist/build/index.cjs.map +7 -0
- package/dist/build/index.d.ts +22 -0
- package/dist/build/index.dev.cjs +37 -0
- package/dist/build/index.dev.cjs.map +7 -0
- package/dist/build/index.dev.mjs +12 -0
- package/dist/build/index.dev.mjs.map +7 -0
- package/dist/build/index.mjs +12 -0
- package/dist/build/index.mjs.map +7 -0
- package/dist/build/index.prod.cjs +37 -0
- package/dist/build/index.prod.cjs.map +7 -0
- package/dist/build/index.prod.mjs +12 -0
- package/dist/build/index.prod.mjs.map +7 -0
- package/dist/build/package.json +8 -0
- package/dist/cli.cjs +4890 -0
- package/dist/core-internal.d.ts +3895 -0
- package/dist/core.cjs +10923 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.min.mjs +1 -0
- package/dist/core.mjs +10819 -0
- package/dist/core.mjs.map +1 -0
- package/dist/core.prod.cjs +5181 -0
- package/dist/core.prod.mjs +6025 -0
- package/dist/index.d.ts +2 -0
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.qwik.cjs +751 -0
- package/dist/insights/index.qwik.mjs +751 -0
- package/dist/insights/insights.d.ts +59 -0
- package/dist/insights/vite/index.cjs +82 -0
- package/dist/insights/vite/index.d.ts +1 -0
- package/dist/insights/vite/index.mjs +55 -0
- package/dist/insights/vite/insights-plugin.d.ts +10 -0
- package/dist/jsx-runtime/index.d.ts +2 -0
- package/dist/jsx-runtime.d.ts +2 -0
- package/dist/loader/index.cjs +4 -0
- package/dist/loader/index.d.ts +2 -0
- package/dist/loader/index.mjs +3 -0
- package/dist/loader/package.json +8 -0
- package/dist/optimizer.cjs +9145 -0
- package/dist/optimizer.d.ts +707 -0
- package/dist/optimizer.mjs +9709 -0
- package/dist/prefetch/index.cjs +4 -0
- package/dist/prefetch/index.d.ts +2 -0
- package/dist/prefetch/index.mjs +3 -0
- package/dist/prefetch/package.json +8 -0
- package/dist/qwik-prefetch.debug.js +244 -0
- package/dist/qwik-prefetch.js +1 -0
- package/dist/qwikloader.debug.js +228 -0
- package/dist/qwikloader.js +3 -0
- package/dist/server-modules.d.ts +38 -0
- package/dist/server.cjs +8942 -0
- package/dist/server.d.ts +404 -0
- package/dist/server.mjs +8877 -0
- package/dist/starters/adapters/aws-lambda/.eslintignore +2 -0
- package/dist/starters/adapters/aws-lambda/.prettierignore +2 -0
- package/dist/starters/adapters/aws-lambda/adapters/aws-lambda/vite.config.mts +21 -0
- package/dist/starters/adapters/aws-lambda/gitignore +2 -0
- package/dist/starters/adapters/aws-lambda/package.json +23 -0
- package/dist/starters/adapters/aws-lambda/serverless.yml +31 -0
- package/dist/starters/adapters/aws-lambda/src/entry_aws-lambda.tsx +32 -0
- package/dist/starters/adapters/azure-swa/README.md +13 -0
- package/dist/starters/adapters/azure-swa/adapters/azure-swa/vite.config.mts +23 -0
- package/dist/starters/adapters/azure-swa/azure-functions/host.json +20 -0
- package/dist/starters/adapters/azure-swa/gitignore +3 -0
- package/dist/starters/adapters/azure-swa/package.json +28 -0
- package/dist/starters/adapters/azure-swa/public/staticwebapp.config.json +23 -0
- package/dist/starters/adapters/azure-swa/src/entry.azure-swa.tsx +22 -0
- package/dist/starters/adapters/azure-swa/swa-cli.config.json +11 -0
- package/dist/starters/adapters/bun/README.md +9 -0
- package/dist/starters/adapters/bun/adapters/bun/vite.config.mts +28 -0
- package/dist/starters/adapters/bun/package.json +27 -0
- package/dist/starters/adapters/bun/src/entry.bun.ts +46 -0
- package/dist/starters/adapters/cloud-run/Dockerfile +24 -0
- package/dist/starters/adapters/cloud-run/README.md +7 -0
- package/dist/starters/adapters/cloud-run/adapters/cloud-run/vite.config.mts +15 -0
- package/dist/starters/adapters/cloud-run/package.json +24 -0
- package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +96 -0
- package/dist/starters/adapters/cloudflare-pages/README.md +46 -0
- package/dist/starters/adapters/cloudflare-pages/adapters/cloudflare-pages/vite.config.mts +15 -0
- package/dist/starters/adapters/cloudflare-pages/gitignore +2 -0
- package/dist/starters/adapters/cloudflare-pages/package.json +28 -0
- package/dist/starters/adapters/cloudflare-pages/public/_headers +9 -0
- package/dist/starters/adapters/cloudflare-pages/public/_redirects +1 -0
- package/dist/starters/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx +24 -0
- package/dist/starters/adapters/deno/README.md +9 -0
- package/dist/starters/adapters/deno/adapters/deno/vite.config.mts +23 -0
- package/dist/starters/adapters/deno/package.json +24 -0
- package/dist/starters/adapters/deno/src/entry.deno.ts +45 -0
- package/dist/starters/adapters/express/README.md +9 -0
- package/dist/starters/adapters/express/adapters/express/vite.config.mts +15 -0
- package/dist/starters/adapters/express/package.json +33 -0
- package/dist/starters/adapters/express/src/entry.express.tsx +70 -0
- package/dist/starters/adapters/fastify/README.md +9 -0
- package/dist/starters/adapters/fastify/adapters/fastify/vite.config.mts +15 -0
- package/dist/starters/adapters/fastify/package.json +33 -0
- package/dist/starters/adapters/fastify/src/entry.fastify.tsx +48 -0
- package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +42 -0
- package/dist/starters/adapters/firebase/.eslintignore +1 -0
- package/dist/starters/adapters/firebase/.prettierignore +1 -0
- package/dist/starters/adapters/firebase/adapters/firebase/vite.config.mts +21 -0
- package/dist/starters/adapters/firebase/firebase.json +24 -0
- package/dist/starters/adapters/firebase/functions/.gitkeep +0 -0
- package/dist/starters/adapters/firebase/functions/index.js +5 -0
- package/dist/starters/adapters/firebase/functions/package.json +25 -0
- package/dist/starters/adapters/firebase/gitignore +3 -0
- package/dist/starters/adapters/firebase/package.json +24 -0
- package/dist/starters/adapters/firebase/src/entry-firebase.tsx +22 -0
- package/dist/starters/adapters/netlify-edge/README.md +64 -0
- package/dist/starters/adapters/netlify-edge/adapters/netlify-edge/vite.config.mts +16 -0
- package/dist/starters/adapters/netlify-edge/gitignore +2 -0
- package/dist/starters/adapters/netlify-edge/netlify.toml +3 -0
- package/dist/starters/adapters/netlify-edge/package.json +29 -0
- package/dist/starters/adapters/netlify-edge/public/_headers +2 -0
- package/dist/starters/adapters/netlify-edge/src/entry.netlify-edge.tsx +22 -0
- package/dist/starters/adapters/node-server/README.md +12 -0
- package/dist/starters/adapters/node-server/adapters/node-server/vite.config.mts +15 -0
- package/dist/starters/adapters/node-server/package.json +23 -0
- package/dist/starters/adapters/node-server/src/entry.node-server.tsx +39 -0
- package/dist/starters/adapters/static/README.md +5 -0
- package/dist/starters/adapters/static/adapters/static/vite.config.mts +19 -0
- package/dist/starters/adapters/static/package.json +19 -0
- package/dist/starters/adapters/vercel-edge/README.md +43 -0
- package/dist/starters/adapters/vercel-edge/adapters/vercel-edge/vite.config.mts +16 -0
- package/dist/starters/adapters/vercel-edge/gitignore +2 -0
- package/dist/starters/adapters/vercel-edge/package.json +28 -0
- package/dist/starters/adapters/vercel-edge/src/entry.vercel-edge.tsx +22 -0
- package/dist/starters/adapters/vercel-edge/vercel.json +22 -0
- package/dist/starters/features/auth/package.json +20 -0
- package/dist/starters/features/auth/src/routes/plugin@auth.ts +8 -0
- package/dist/starters/features/bootstrap/package.json +33 -0
- package/dist/starters/features/bootstrap/src/components/bootstrap/alert.tsx +8 -0
- package/dist/starters/features/bootstrap/src/components/bootstrap/button.tsx +8 -0
- package/dist/starters/features/bootstrap/src/components/bootstrap/index.ts +4 -0
- package/dist/starters/features/bootstrap/src/components/bootstrap/navbar.tsx +44 -0
- package/dist/starters/features/bootstrap/src/components/bootstrap/spinner.tsx +13 -0
- package/dist/starters/features/bootstrap/src/constants/data.ts +10 -0
- package/dist/starters/features/bootstrap/src/models/bootstrap.ts +8 -0
- package/dist/starters/features/bootstrap/src/routes/bootstrap/alerts/index.tsx +28 -0
- package/dist/starters/features/bootstrap/src/routes/bootstrap/buttons/index.tsx +32 -0
- package/dist/starters/features/bootstrap/src/routes/bootstrap/index.tsx +32 -0
- package/dist/starters/features/bootstrap/src/routes/bootstrap/layout.tsx +36 -0
- package/dist/starters/features/bootstrap/src/routes/bootstrap/spinners/index.tsx +45 -0
- package/dist/starters/features/builder.io/README.md +15 -0
- package/dist/starters/features/builder.io/package.json +27 -0
- package/dist/starters/features/builder.io/src/components/builder-registry.ts +25 -0
- package/dist/starters/features/builder.io/src/components/counter/counter.module.css +23 -0
- package/dist/starters/features/builder.io/src/components/counter/counter.tsx +81 -0
- package/dist/starters/features/builder.io/src/components/gauge/gauge.module.css +27 -0
- package/dist/starters/features/builder.io/src/components/gauge/index.tsx +38 -0
- package/dist/starters/features/builder.io/src/routes/[...index]/index.tsx +44 -0
- package/dist/starters/features/cypress/cypress/fixtures/example.json +5 -0
- package/dist/starters/features/cypress/cypress/support/commands.ts +37 -0
- package/dist/starters/features/cypress/cypress/support/component-index.html +12 -0
- package/dist/starters/features/cypress/cypress/support/component.ts +42 -0
- package/dist/starters/features/cypress/cypress/tsconfig.cy.json +17 -0
- package/dist/starters/features/cypress/cypress.config.ts +10 -0
- package/dist/starters/features/cypress/cypress.d.ts +14 -0
- package/dist/starters/features/cypress/package.json +28 -0
- package/dist/starters/features/cypress/src/components/example/example.cy.tsx +18 -0
- package/dist/starters/features/cypress/src/components/example/example.tsx +17 -0
- package/dist/starters/features/drizzle/drizzle/db/.gitkeep +0 -0
- package/dist/starters/features/drizzle/drizzle/migrations/.gitkeep +0 -0
- package/dist/starters/features/drizzle/drizzle/schema.ts +24 -0
- package/dist/starters/features/drizzle/drizzle.config.ts +9 -0
- package/dist/starters/features/drizzle/package.json +41 -0
- package/dist/starters/features/drizzle/src/routes/create/index.tsx +42 -0
- package/dist/starters/features/drizzle/src/routes/users/[userId]/index.tsx +36 -0
- package/dist/starters/features/drizzle/src/routes/users/index.tsx +30 -0
- package/dist/starters/features/leaflet-map/package.json +30 -0
- package/dist/starters/features/leaflet-map/src/components/leaflet-map/index.tsx +60 -0
- package/dist/starters/features/leaflet-map/src/helpers/boundary-box.tsx +6 -0
- package/dist/starters/features/leaflet-map/src/models/location.ts +9 -0
- package/dist/starters/features/leaflet-map/src/models/map.ts +7 -0
- package/dist/starters/features/leaflet-map/src/routes/basic-map/index.tsx +25 -0
- package/dist/starters/features/localize/package.json +37 -0
- package/dist/starters/features/localize/src/entry.ssr.tsx +32 -0
- package/dist/starters/features/localize/src/locales/message.en.json +8 -0
- package/dist/starters/features/localize/src/locales/message.it.json +8 -0
- package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +94 -0
- package/dist/starters/features/localize/src/routes/[locale]/index.tsx +52 -0
- package/dist/starters/features/localize/src/routes/[locale]/layout.tsx +12 -0
- package/dist/starters/features/orama/package.json +23 -0
- package/dist/starters/features/orama/src/orama/index.ts +41 -0
- package/dist/starters/features/orama/src/routes/orama/index.tsx +110 -0
- package/dist/starters/features/pandacss/.eslintignore +3 -0
- package/dist/starters/features/pandacss/.prettierignore +2 -0
- package/dist/starters/features/pandacss/gitignore +2 -0
- package/dist/starters/features/pandacss/package.json +31 -0
- package/dist/starters/features/pandacss/panda.config.ts +22 -0
- package/dist/starters/features/pandacss/postcss.config.js +5 -0
- package/dist/starters/features/pandacss/src/global.css +5 -0
- package/dist/starters/features/pandacss/src/routes/pandacss/index.tsx +18 -0
- package/dist/starters/features/partytown/package.json +41 -0
- package/dist/starters/features/partytown/src/components/partytown/partytown.tsx +19 -0
- package/dist/starters/features/playwright/package.json +18 -0
- package/dist/starters/features/playwright/playwright-report/index.html +22024 -0
- package/dist/starters/features/playwright/playwright.config.ts +40 -0
- package/dist/starters/features/playwright/tests/example.spec.ts +14 -0
- package/dist/starters/features/postcss/.vscode/settings.json +3 -0
- package/dist/starters/features/postcss/package.json +17 -0
- package/dist/starters/features/postcss/postcss.config.js +11 -0
- package/dist/starters/features/prisma/package.json +35 -0
- package/dist/starters/features/prisma/prisma/schema.prisma +17 -0
- package/dist/starters/features/prisma/src/routes/create/index.tsx +42 -0
- package/dist/starters/features/prisma/src/routes/users/[userId]/index.tsx +31 -0
- package/dist/starters/features/prisma/src/routes/users/index.tsx +27 -0
- package/dist/starters/features/react/package.json +41 -0
- package/dist/starters/features/react/src/integrations/react/mui.tsx +60 -0
- package/dist/starters/features/react/src/routes/react/index.tsx +45 -0
- package/dist/starters/features/storybook/.storybook/main.ts +22 -0
- package/dist/starters/features/storybook/.storybook/preview-head.html +3 -0
- package/dist/starters/features/storybook/.storybook/preview.tsx +19 -0
- package/dist/starters/features/storybook/.storybook/tsconfig.json +24 -0
- package/dist/starters/features/storybook/package.json +25 -0
- package/dist/starters/features/storybook/src/components/button/button.stories.tsx +17 -0
- package/dist/starters/features/storybook/src/components/button/button.tsx +27 -0
- package/dist/starters/features/styled-vanilla-extract/package.json +28 -0
- package/dist/starters/features/styled-vanilla-extract/src/routes/styled-flower/flower.css.ts +83 -0
- package/dist/starters/features/styled-vanilla-extract/src/routes/styled-flower/index.tsx +75 -0
- package/dist/starters/features/tailwind/.prettierrc.js +3 -0
- package/dist/starters/features/tailwind/.vscode/settings.json +3 -0
- package/dist/starters/features/tailwind/package.json +18 -0
- package/dist/starters/features/tailwind/postcss.config.cjs +6 -0
- package/dist/starters/features/tailwind/src/global.css +7 -0
- package/dist/starters/features/tailwind/tailwind.config.js +8 -0
- package/dist/starters/features/turso/.env.local +2 -0
- package/dist/starters/features/turso/package.json +30 -0
- package/dist/starters/features/turso/src/utils/turso.ts +21 -0
- package/dist/starters/features/vitest/package.json +20 -0
- package/dist/starters/features/vitest/src/components/example/example.spec.tsx +32 -0
- package/dist/starters/features/vitest/src/components/example/example.tsx +17 -0
- package/dist/templates/barrel/component/index.tsx.template +13 -0
- package/dist/templates/barrel/markdown/index.md.template +5 -0
- package/dist/templates/barrel/mdx/index.mdx.template +5 -0
- package/dist/templates/barrel/route/index.tsx.template +9 -0
- package/dist/templates/qwik/component/[slug].tsx.template +13 -0
- package/dist/templates/qwik/markdown/index.md.template +5 -0
- package/dist/templates/qwik/mdx/index.mdx.template +5 -0
- package/dist/templates/qwik/route/index.tsx.template +9 -0
- package/dist/testing/index.cjs +32425 -0
- package/dist/testing/index.d.ts +140 -0
- package/dist/testing/index.mjs +32389 -0
- package/dist/testing/package.json +9 -0
- package/jsx-dev-runtime.d.ts +2 -0
- package/jsx-runtime.d.ts +2 -0
- package/loader.d.ts +2 -0
- package/optimizer.d.ts +2 -0
- package/package.json +20 -12
- package/public.d.ts +68 -0
- package/qwik-cli.cjs +4 -0
- package/server.d.ts +15 -0
- package/testing.d.ts +2 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
const heap = new Array(128).fill(undefined);
|
|
4
|
+
|
|
5
|
+
heap.push(undefined, null, true, false);
|
|
6
|
+
|
|
7
|
+
function getObject(idx) { return heap[idx]; }
|
|
8
|
+
|
|
9
|
+
let WASM_VECTOR_LEN = 0;
|
|
10
|
+
|
|
11
|
+
let cachedUint8Memory0 = null;
|
|
12
|
+
|
|
13
|
+
function getUint8Memory0() {
|
|
14
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
15
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
+
}
|
|
17
|
+
return cachedUint8Memory0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
21
|
+
|
|
22
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
23
|
+
? function (arg, view) {
|
|
24
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
25
|
+
}
|
|
26
|
+
: function (arg, view) {
|
|
27
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
28
|
+
view.set(buf);
|
|
29
|
+
return {
|
|
30
|
+
read: arg.length,
|
|
31
|
+
written: buf.length
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
36
|
+
|
|
37
|
+
if (realloc === undefined) {
|
|
38
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
39
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
40
|
+
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
41
|
+
WASM_VECTOR_LEN = buf.length;
|
|
42
|
+
return ptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
let len = arg.length;
|
|
46
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
47
|
+
|
|
48
|
+
const mem = getUint8Memory0();
|
|
49
|
+
|
|
50
|
+
let offset = 0;
|
|
51
|
+
|
|
52
|
+
for (; offset < len; offset++) {
|
|
53
|
+
const code = arg.charCodeAt(offset);
|
|
54
|
+
if (code > 0x7F) break;
|
|
55
|
+
mem[ptr + offset] = code;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (offset !== len) {
|
|
59
|
+
if (offset !== 0) {
|
|
60
|
+
arg = arg.slice(offset);
|
|
61
|
+
}
|
|
62
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
|
+
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
64
|
+
const ret = encodeString(arg, view);
|
|
65
|
+
|
|
66
|
+
offset += ret.written;
|
|
67
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
WASM_VECTOR_LEN = offset;
|
|
71
|
+
return ptr;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function isLikeNone(x) {
|
|
75
|
+
return x === undefined || x === null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
let cachedInt32Memory0 = null;
|
|
79
|
+
|
|
80
|
+
function getInt32Memory0() {
|
|
81
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
82
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
83
|
+
}
|
|
84
|
+
return cachedInt32Memory0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
let heap_next = heap.length;
|
|
88
|
+
|
|
89
|
+
function dropObject(idx) {
|
|
90
|
+
if (idx < 132) return;
|
|
91
|
+
heap[idx] = heap_next;
|
|
92
|
+
heap_next = idx;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function takeObject(idx) {
|
|
96
|
+
const ret = getObject(idx);
|
|
97
|
+
dropObject(idx);
|
|
98
|
+
return ret;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function addHeapObject(obj) {
|
|
102
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
103
|
+
const idx = heap_next;
|
|
104
|
+
heap_next = heap[idx];
|
|
105
|
+
|
|
106
|
+
heap[idx] = obj;
|
|
107
|
+
return idx;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
111
|
+
|
|
112
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
|
|
113
|
+
function getStringFromWasm0(ptr, len) {
|
|
114
|
+
ptr = ptr >>> 0;
|
|
115
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let cachedFloat64Memory0 = null;
|
|
119
|
+
|
|
120
|
+
function getFloat64Memory0() {
|
|
121
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
122
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
123
|
+
}
|
|
124
|
+
return cachedFloat64Memory0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function debugString(val) {
|
|
128
|
+
// primitive types
|
|
129
|
+
const type = typeof val;
|
|
130
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
131
|
+
return `${val}`;
|
|
132
|
+
}
|
|
133
|
+
if (type == 'string') {
|
|
134
|
+
return `"${val}"`;
|
|
135
|
+
}
|
|
136
|
+
if (type == 'symbol') {
|
|
137
|
+
const description = val.description;
|
|
138
|
+
if (description == null) {
|
|
139
|
+
return 'Symbol';
|
|
140
|
+
} else {
|
|
141
|
+
return `Symbol(${description})`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (type == 'function') {
|
|
145
|
+
const name = val.name;
|
|
146
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
147
|
+
return `Function(${name})`;
|
|
148
|
+
} else {
|
|
149
|
+
return 'Function';
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// objects
|
|
153
|
+
if (Array.isArray(val)) {
|
|
154
|
+
const length = val.length;
|
|
155
|
+
let debug = '[';
|
|
156
|
+
if (length > 0) {
|
|
157
|
+
debug += debugString(val[0]);
|
|
158
|
+
}
|
|
159
|
+
for(let i = 1; i < length; i++) {
|
|
160
|
+
debug += ', ' + debugString(val[i]);
|
|
161
|
+
}
|
|
162
|
+
debug += ']';
|
|
163
|
+
return debug;
|
|
164
|
+
}
|
|
165
|
+
// Test for built-in
|
|
166
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
167
|
+
let className;
|
|
168
|
+
if (builtInMatches.length > 1) {
|
|
169
|
+
className = builtInMatches[1];
|
|
170
|
+
} else {
|
|
171
|
+
// Failed to match the standard '[object ClassName]'
|
|
172
|
+
return toString.call(val);
|
|
173
|
+
}
|
|
174
|
+
if (className == 'Object') {
|
|
175
|
+
// we're a user defined class or Object
|
|
176
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
177
|
+
// easier than looping through ownProperties of `val`.
|
|
178
|
+
try {
|
|
179
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
180
|
+
} catch (_) {
|
|
181
|
+
return 'Object';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// errors
|
|
185
|
+
if (val instanceof Error) {
|
|
186
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
187
|
+
}
|
|
188
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
189
|
+
return className;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function handleError(f, args) {
|
|
193
|
+
try {
|
|
194
|
+
return f.apply(this, args);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @param {any} config_val
|
|
201
|
+
* @returns {any}
|
|
202
|
+
*/
|
|
203
|
+
function transform_modules(config_val) {
|
|
204
|
+
try {
|
|
205
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
206
|
+
wasm.transform_modules(retptr, addHeapObject(config_val));
|
|
207
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
208
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
209
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
210
|
+
if (r2) {
|
|
211
|
+
throw takeObject(r1);
|
|
212
|
+
}
|
|
213
|
+
return takeObject(r0);
|
|
214
|
+
} finally {
|
|
215
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
async function __wbg_load(module, imports) {
|
|
220
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
221
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
222
|
+
try {
|
|
223
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
224
|
+
|
|
225
|
+
} catch (e) {
|
|
226
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
227
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
228
|
+
|
|
229
|
+
} else {
|
|
230
|
+
throw e;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const bytes = await module.arrayBuffer();
|
|
236
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
237
|
+
|
|
238
|
+
} else {
|
|
239
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
240
|
+
|
|
241
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
242
|
+
return { instance, module };
|
|
243
|
+
|
|
244
|
+
} else {
|
|
245
|
+
return instance;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function __wbg_get_imports() {
|
|
251
|
+
const imports = {};
|
|
252
|
+
imports.wbg = {};
|
|
253
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
254
|
+
const ret = getObject(arg0) === undefined;
|
|
255
|
+
return ret;
|
|
256
|
+
};
|
|
257
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
258
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
259
|
+
return ret;
|
|
260
|
+
};
|
|
261
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
262
|
+
const obj = getObject(arg1);
|
|
263
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
264
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
+
var len1 = WASM_VECTOR_LEN;
|
|
266
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
267
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
268
|
+
};
|
|
269
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
270
|
+
const val = getObject(arg0);
|
|
271
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
272
|
+
return ret;
|
|
273
|
+
};
|
|
274
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
275
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
276
|
+
return ret;
|
|
277
|
+
};
|
|
278
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
279
|
+
takeObject(arg0);
|
|
280
|
+
};
|
|
281
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
282
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
283
|
+
return addHeapObject(ret);
|
|
284
|
+
};
|
|
285
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
286
|
+
const ret = getObject(arg0).length;
|
|
287
|
+
return ret;
|
|
288
|
+
};
|
|
289
|
+
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
290
|
+
const ret = getObject(arg0).next();
|
|
291
|
+
return addHeapObject(ret);
|
|
292
|
+
}, arguments) };
|
|
293
|
+
imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
|
|
294
|
+
const ret = getObject(arg0).done;
|
|
295
|
+
return ret;
|
|
296
|
+
};
|
|
297
|
+
imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
|
|
298
|
+
const ret = getObject(arg0).value;
|
|
299
|
+
return addHeapObject(ret);
|
|
300
|
+
};
|
|
301
|
+
imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
|
|
302
|
+
const ret = Symbol.iterator;
|
|
303
|
+
return addHeapObject(ret);
|
|
304
|
+
};
|
|
305
|
+
imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
|
|
306
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
307
|
+
return addHeapObject(ret);
|
|
308
|
+
}, arguments) };
|
|
309
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
310
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
311
|
+
return ret;
|
|
312
|
+
};
|
|
313
|
+
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
314
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
315
|
+
return addHeapObject(ret);
|
|
316
|
+
}, arguments) };
|
|
317
|
+
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
318
|
+
const ret = getObject(arg0).next;
|
|
319
|
+
return addHeapObject(ret);
|
|
320
|
+
};
|
|
321
|
+
imports.wbg.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) {
|
|
322
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
323
|
+
};
|
|
324
|
+
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
325
|
+
const ret = getObject(arg0).length;
|
|
326
|
+
return ret;
|
|
327
|
+
};
|
|
328
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
329
|
+
const ret = wasm.memory;
|
|
330
|
+
return addHeapObject(ret);
|
|
331
|
+
};
|
|
332
|
+
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
333
|
+
const ret = getObject(arg0).buffer;
|
|
334
|
+
return addHeapObject(ret);
|
|
335
|
+
};
|
|
336
|
+
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
337
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
338
|
+
return addHeapObject(ret);
|
|
339
|
+
};
|
|
340
|
+
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
|
|
341
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
342
|
+
};
|
|
343
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
344
|
+
const ret = arg0;
|
|
345
|
+
return addHeapObject(ret);
|
|
346
|
+
};
|
|
347
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
348
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
349
|
+
return addHeapObject(ret);
|
|
350
|
+
};
|
|
351
|
+
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
352
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
353
|
+
return addHeapObject(ret);
|
|
354
|
+
};
|
|
355
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
356
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
357
|
+
return addHeapObject(ret);
|
|
358
|
+
};
|
|
359
|
+
imports.wbg.__wbg_new_72fb9a18b5ae2624 = function() {
|
|
360
|
+
const ret = new Object();
|
|
361
|
+
return addHeapObject(ret);
|
|
362
|
+
};
|
|
363
|
+
imports.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
364
|
+
const ret = new Array();
|
|
365
|
+
return addHeapObject(ret);
|
|
366
|
+
};
|
|
367
|
+
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
368
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
369
|
+
};
|
|
370
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
371
|
+
const v = getObject(arg0);
|
|
372
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
373
|
+
return ret;
|
|
374
|
+
};
|
|
375
|
+
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
376
|
+
const ret = Array.isArray(getObject(arg0));
|
|
377
|
+
return ret;
|
|
378
|
+
};
|
|
379
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
380
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
381
|
+
return addHeapObject(ret);
|
|
382
|
+
};
|
|
383
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
384
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
385
|
+
return ret;
|
|
386
|
+
};
|
|
387
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
388
|
+
const obj = getObject(arg1);
|
|
389
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
390
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
391
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
392
|
+
};
|
|
393
|
+
imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
|
|
394
|
+
let result;
|
|
395
|
+
try {
|
|
396
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
397
|
+
} catch (_) {
|
|
398
|
+
result = false;
|
|
399
|
+
}
|
|
400
|
+
const ret = result;
|
|
401
|
+
return ret;
|
|
402
|
+
};
|
|
403
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
404
|
+
let result;
|
|
405
|
+
try {
|
|
406
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
407
|
+
} catch (_) {
|
|
408
|
+
result = false;
|
|
409
|
+
}
|
|
410
|
+
const ret = result;
|
|
411
|
+
return ret;
|
|
412
|
+
};
|
|
413
|
+
imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) {
|
|
414
|
+
const ret = Object.entries(getObject(arg0));
|
|
415
|
+
return addHeapObject(ret);
|
|
416
|
+
};
|
|
417
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
418
|
+
const ret = getObject(arg0);
|
|
419
|
+
return addHeapObject(ret);
|
|
420
|
+
};
|
|
421
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
422
|
+
const ret = debugString(getObject(arg1));
|
|
423
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
424
|
+
const len1 = WASM_VECTOR_LEN;
|
|
425
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
426
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
427
|
+
};
|
|
428
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
429
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
return imports;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
function __wbg_finalize_init(instance, module) {
|
|
436
|
+
wasm = instance.exports;
|
|
437
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
438
|
+
cachedFloat64Memory0 = null;
|
|
439
|
+
cachedInt32Memory0 = null;
|
|
440
|
+
cachedUint8Memory0 = null;
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
return wasm;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
function initSync(module) {
|
|
447
|
+
if (wasm !== undefined) return wasm;
|
|
448
|
+
|
|
449
|
+
const imports = __wbg_get_imports();
|
|
450
|
+
|
|
451
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
452
|
+
module = new WebAssembly.Module(module);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
456
|
+
|
|
457
|
+
return __wbg_finalize_init(instance, module);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
async function __wbg_init(input) {
|
|
461
|
+
if (wasm !== undefined) return wasm;
|
|
462
|
+
|
|
463
|
+
if (typeof input === 'undefined') {
|
|
464
|
+
input = new URL('qwik_wasm_bg.wasm', import.meta.url);
|
|
465
|
+
}
|
|
466
|
+
const imports = __wbg_get_imports();
|
|
467
|
+
|
|
468
|
+
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
|
469
|
+
input = fetch(input);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const { instance, module } = await __wbg_load(await input, imports);
|
|
473
|
+
|
|
474
|
+
return __wbg_finalize_init(instance, module);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export { __wbg_init as default, initSync, transform_modules };
|
|
Binary file
|
package/build.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
globalThis.qwikBuild = (function (module) {
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// packages/qwik/src/build/index.ts
|
|
22
|
+
var build_exports = {};
|
|
23
|
+
__export(build_exports, {
|
|
24
|
+
isBrowser: () => isBrowser,
|
|
25
|
+
isDev: () => isDev,
|
|
26
|
+
isServer: () => isServer
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(build_exports);
|
|
29
|
+
var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
|
|
30
|
+
var isServer = !isBrowser;
|
|
31
|
+
var isDev = /* @__PURE__ */ (() => {
|
|
32
|
+
return globalThis.qDev === true;
|
|
33
|
+
})();
|
|
34
|
+
return module.exports; })(typeof module === 'object' && module.exports ? module : { exports: {} });
|
|
35
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/build/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * True when build is made for browser, client-side execution.\n *\n * @public\n */\nexport const isBrowser: boolean = /*#__PURE__*/ (() =>\n typeof window !== 'undefined' &&\n typeof HTMLElement !== 'undefined' &&\n !!window.document &&\n String(HTMLElement).includes('[native code]'))();\n\n/**\n * True when build is made for SSR purposes.\n *\n * @public\n */\nexport const isServer: boolean = !isBrowser;\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = /*#__PURE__*/ (() => {\n return (globalThis as any).qDev === true;\n})();\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,YAAoC,uBAC/C,OAAO,WAAW,eAClB,OAAO,gBAAgB,eACvB,CAAC,CAAC,OAAO,YACT,OAAO,WAAW,EAAE,SAAS,eAAe,GAAG;AAO1C,IAAM,WAAoB,CAAC;AAO3B,IAAM,QAAgC,uBAAM;AACjD,SAAQ,WAAmB,SAAS;AACtC,GAAG;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when build is made for browser, client-side execution.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare const isBrowser: boolean;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* True when build is in dev mode.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare const isDev: boolean;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* True when build is made for SSR purposes.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare const isServer: boolean;
|
|
21
|
+
|
|
22
|
+
export { }
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
globalThis.qwikBuild = (function (module) {
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// packages/qwik/src/build/index.dev.ts
|
|
22
|
+
var index_dev_exports = {};
|
|
23
|
+
__export(index_dev_exports, {
|
|
24
|
+
isBrowser: () => isBrowser,
|
|
25
|
+
isDev: () => isDev,
|
|
26
|
+
isServer: () => isServer
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_dev_exports);
|
|
29
|
+
|
|
30
|
+
// packages/qwik/src/build/index.ts
|
|
31
|
+
var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
|
|
32
|
+
var isServer = !isBrowser;
|
|
33
|
+
|
|
34
|
+
// packages/qwik/src/build/index.dev.ts
|
|
35
|
+
var isDev = true;
|
|
36
|
+
return module.exports; })(typeof module === 'object' && module.exports ? module : { exports: {} });
|
|
37
|
+
//# sourceMappingURL=index.dev.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/build/index.dev.ts", "../../src/build/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { isBrowser, isServer } from './index';\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = true;\n", "/**\n * True when build is made for browser, client-side execution.\n *\n * @public\n */\nexport const isBrowser: boolean = /*#__PURE__*/ (() =>\n typeof window !== 'undefined' &&\n typeof HTMLElement !== 'undefined' &&\n !!window.document &&\n String(HTMLElement).includes('[native code]'))();\n\n/**\n * True when build is made for SSR purposes.\n *\n * @public\n */\nexport const isServer: boolean = !isBrowser;\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = /*#__PURE__*/ (() => {\n return (globalThis as any).qDev === true;\n})();\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,IAAM,YAAoC,uBAC/C,OAAO,WAAW,eAClB,OAAO,gBAAgB,eACvB,CAAC,CAAC,OAAO,YACT,OAAO,WAAW,EAAE,SAAS,eAAe,GAAG;AAO1C,IAAM,WAAoB,CAAC;;;ADT3B,IAAM,QAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// packages/qwik/src/build/index.ts
|
|
2
|
+
var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
|
|
3
|
+
var isServer = !isBrowser;
|
|
4
|
+
|
|
5
|
+
// packages/qwik/src/build/index.dev.ts
|
|
6
|
+
var isDev = true;
|
|
7
|
+
export {
|
|
8
|
+
isBrowser,
|
|
9
|
+
isDev,
|
|
10
|
+
isServer
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.dev.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/build/index.ts", "../../src/build/index.dev.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * True when build is made for browser, client-side execution.\n *\n * @public\n */\nexport const isBrowser: boolean = /*#__PURE__*/ (() =>\n typeof window !== 'undefined' &&\n typeof HTMLElement !== 'undefined' &&\n !!window.document &&\n String(HTMLElement).includes('[native code]'))();\n\n/**\n * True when build is made for SSR purposes.\n *\n * @public\n */\nexport const isServer: boolean = !isBrowser;\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = /*#__PURE__*/ (() => {\n return (globalThis as any).qDev === true;\n})();\n", "export { isBrowser, isServer } from './index';\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = true;\n"],
|
|
5
|
+
"mappings": ";AAKO,IAAM,YAAoC,uBAC/C,OAAO,WAAW,eAClB,OAAO,gBAAgB,eACvB,CAAC,CAAC,OAAO,YACT,OAAO,WAAW,EAAE,SAAS,eAAe,GAAG;AAO1C,IAAM,WAAoB,CAAC;;;ACT3B,IAAM,QAAiB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// packages/qwik/src/build/index.ts
|
|
2
|
+
var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
|
|
3
|
+
var isServer = !isBrowser;
|
|
4
|
+
var isDev = /* @__PURE__ */ (() => {
|
|
5
|
+
return globalThis.qDev === true;
|
|
6
|
+
})();
|
|
7
|
+
export {
|
|
8
|
+
isBrowser,
|
|
9
|
+
isDev,
|
|
10
|
+
isServer
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/build/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * True when build is made for browser, client-side execution.\n *\n * @public\n */\nexport const isBrowser: boolean = /*#__PURE__*/ (() =>\n typeof window !== 'undefined' &&\n typeof HTMLElement !== 'undefined' &&\n !!window.document &&\n String(HTMLElement).includes('[native code]'))();\n\n/**\n * True when build is made for SSR purposes.\n *\n * @public\n */\nexport const isServer: boolean = !isBrowser;\n\n/**\n * True when build is in dev mode.\n *\n * @public\n */\nexport const isDev: boolean = /*#__PURE__*/ (() => {\n return (globalThis as any).qDev === true;\n})();\n"],
|
|
5
|
+
"mappings": ";AAKO,IAAM,YAAoC,uBAC/C,OAAO,WAAW,eAClB,OAAO,gBAAgB,eACvB,CAAC,CAAC,OAAO,YACT,OAAO,WAAW,EAAE,SAAS,eAAe,GAAG;AAO1C,IAAM,WAAoB,CAAC;AAO3B,IAAM,QAAgC,uBAAM;AACjD,SAAQ,WAAmB,SAAS;AACtC,GAAG;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
globalThis.qwikBuild = (function (module) {
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// packages/qwik/src/build/index.prod.ts
|
|
22
|
+
var index_prod_exports = {};
|
|
23
|
+
__export(index_prod_exports, {
|
|
24
|
+
isBrowser: () => isBrowser,
|
|
25
|
+
isDev: () => isDev,
|
|
26
|
+
isServer: () => isServer
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_prod_exports);
|
|
29
|
+
|
|
30
|
+
// packages/qwik/src/build/index.ts
|
|
31
|
+
var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
|
|
32
|
+
var isServer = !isBrowser;
|
|
33
|
+
|
|
34
|
+
// packages/qwik/src/build/index.prod.ts
|
|
35
|
+
var isDev = false;
|
|
36
|
+
return module.exports; })(typeof module === 'object' && module.exports ? module : { exports: {} });
|
|
37
|
+
//# sourceMappingURL=index.prod.cjs.map
|