@qds.dev/code 0.8.5 → 0.9.7

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.
Files changed (43) hide show
  1. package/README.md +102 -0
  2. package/lib-types/src/debug.d.ts +1 -0
  3. package/lib-types/src/index.d.ts +2 -0
  4. package/lib-types/src/preview/bundler/bundled-config.d.ts +33 -0
  5. package/lib-types/src/preview/bundler/bundled.d.ts +3 -0
  6. package/lib-types/src/preview/bundler/bundled.unit.d.ts +1 -0
  7. package/lib-types/src/preview/bundler/client-events-listener.d.ts +1 -0
  8. package/lib-types/src/preview/bundler/index.d.ts +34 -0
  9. package/lib-types/src/preview/bundler/repl-bundler-worker.d.ts +30 -0
  10. package/lib-types/src/preview/bundler/repl-ssr-worker.d.ts +27 -0
  11. package/lib-types/src/preview/bundler/rollup-plugins.d.ts +5 -0
  12. package/lib-types/src/preview/bundler/rollup-plugins.unit.d.ts +1 -0
  13. package/lib-types/src/preview/constants.d.ts +5 -0
  14. package/lib-types/src/preview/index.d.ts +19 -0
  15. package/lib-types/src/preview/mocks/browser.d.ts +2 -0
  16. package/lib-types/src/preview/preview-sw.d.ts +20 -0
  17. package/lib-types/src/preview/preview-sw.unit.d.ts +1 -0
  18. package/lib-types/src/preview/register-preview-sw.d.ts +2 -0
  19. package/lib-types/src/preview/register-preview-sw.unit.d.ts +1 -0
  20. package/lib-types/src/preview/repl-editor.d.ts +1 -0
  21. package/lib-types/src/preview/repl-helpers-node.d.ts +4 -0
  22. package/lib-types/src/preview/repl-helpers.d.ts +16 -0
  23. package/lib-types/src/preview/repl-helpers.unit.d.ts +1 -0
  24. package/lib-types/src/preview/test-extend.d.ts +9 -0
  25. package/lib-types/src/preview/types.d.ts +70 -0
  26. package/lib-types/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +13 -8
  28. package/LICENSE +0 -21
  29. package/lib/node_modules/.pnpm/@emnapi_core@1.7.1/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.qwik.mjs +0 -5533
  30. package/lib/node_modules/.pnpm/@emnapi_runtime@1.8.1/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.qwik.mjs +0 -1225
  31. package/lib/node_modules/.pnpm/@emnapi_wasi-threads@1.1.0/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.qwik.mjs +0 -619
  32. package/lib/node_modules/.pnpm/@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.qwik.mjs +0 -14854
  33. package/lib/node_modules/.pnpm/@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/fs-proxy.qwik.mjs +0 -109
  34. package/lib/node_modules/.pnpm/@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/runtime.qwik.mjs +0 -4
  35. package/lib/node_modules/.pnpm/@qwik.dev_core@2.0.0-beta.15_vite@7.1.5_@types_node@24.9.0_jiti@2.6.1_lightningcss@1.30.1_ter_sl453hnfnrysgqsj6ikt4cdmnq/node_modules/@qwik.dev/core/dist/qwikloader.qwik.mjs +0 -152
  36. package/lib/node_modules/.pnpm/@rolldown_browser@1.0.0-beta.59/node_modules/@rolldown/browser/dist/index.browser.qwik.mjs +0 -13
  37. package/lib/node_modules/.pnpm/@rolldown_browser@1.0.0-beta.59/node_modules/@rolldown/browser/dist/normalize-string-or-regex-BB1FWNyl.qwik.mjs +0 -789
  38. package/lib/node_modules/.pnpm/@rolldown_browser@1.0.0-beta.59/node_modules/@rolldown/browser/dist/rolldown-binding.wasi-browser.qwik.mjs +0 -107
  39. package/lib/node_modules/.pnpm/@rolldown_browser@1.0.0-beta.59/node_modules/@rolldown/browser/dist/rolldown-build-Bfw5c2c3.qwik.mjs +0 -4157
  40. package/lib/node_modules/.pnpm/@tybys_wasm-util@0.10.1/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.qwik.mjs +0 -1968
  41. package/lib/node_modules/.pnpm/magic-regexp@0.10.0/node_modules/magic-regexp/dist/index.qwik.mjs +0 -10
  42. package/lib/node_modules/.pnpm/magic-regexp@0.10.0/node_modules/magic-regexp/dist/shared/magic-regexp.DKp_q_HX.qwik.mjs +0 -95
  43. package/lib/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.qwik.mjs +0 -34
@@ -1,107 +0,0 @@
1
- import { instantiateNapiModule } from "../../../../../@emnapi_core@1.7.1/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.qwik.mjs";
2
- import { getDefaultContext } from "../../../../../@emnapi_runtime@1.8.1/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.qwik.mjs";
3
- import { WASI } from "../../../../../@tybys_wasm-util@0.10.1/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.qwik.mjs";
4
- import { createOnMessage } from "../../../../../@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/fs-proxy.qwik.mjs";
5
- import "../../../../../@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/runtime.qwik.mjs";
6
- import { memfs } from "../../../../../@napi-rs_wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.qwik.mjs";
7
-
8
- //#region ../../node_modules/.pnpm/@rolldown+browser@1.0.0-beta.59/node_modules/@rolldown/browser/dist/rolldown-binding.wasi-browser.js
9
- const { fs: __fs, vol: __volume } = memfs();
10
- const __wasi = new WASI({
11
- version: "preview1",
12
- fs: __fs,
13
- preopens: { "/": "/" }
14
- });
15
- const __wasmUrl = new URL("./rolldown-binding.wasm32-wasi.wasm", import.meta.url).href;
16
- const __emnapiContext = getDefaultContext();
17
- const __sharedMemory = new WebAssembly.Memory({
18
- initial: 16384,
19
- maximum: 65536,
20
- shared: true
21
- });
22
- const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule } = await instantiateNapiModule(await fetch(__wasmUrl).then((res) => res.arrayBuffer()), {
23
- context: __emnapiContext,
24
- asyncWorkPoolSize: 4,
25
- wasi: __wasi,
26
- onCreateWorker() {
27
- const worker = new Worker(new URL("./wasi-worker-browser.mjs", import.meta.url), { type: "module" });
28
- worker.addEventListener("message", createOnMessage(__fs));
29
- return worker;
30
- },
31
- overwriteImports(importObject) {
32
- importObject.env = {
33
- ...importObject.env,
34
- ...importObject.napi,
35
- ...importObject.emnapi,
36
- memory: __sharedMemory
37
- };
38
- return importObject;
39
- },
40
- beforeInit({ instance }) {
41
- for (const name of Object.keys(instance.exports)) if (name.startsWith("__napi_register__")) instance.exports[name]();
42
- }
43
- });
44
- var rolldown_binding_wasi_browser_default = __napiModule.exports;
45
- const minify = __napiModule.exports.minify;
46
- const minifySync = __napiModule.exports.minifySync;
47
- const Severity = __napiModule.exports.Severity;
48
- const ParseResult = __napiModule.exports.ParseResult;
49
- const ExportExportNameKind = __napiModule.exports.ExportExportNameKind;
50
- const ExportImportNameKind = __napiModule.exports.ExportImportNameKind;
51
- const ExportLocalNameKind = __napiModule.exports.ExportLocalNameKind;
52
- const ImportNameKind = __napiModule.exports.ImportNameKind;
53
- const parse = __napiModule.exports.parse;
54
- const parseSync = __napiModule.exports.parseSync;
55
- const rawTransferSupported = __napiModule.exports.rawTransferSupported;
56
- const ResolverFactory = __napiModule.exports.ResolverFactory;
57
- const EnforceExtension = __napiModule.exports.EnforceExtension;
58
- const ModuleType = __napiModule.exports.ModuleType;
59
- const sync = __napiModule.exports.sync;
60
- const HelperMode = __napiModule.exports.HelperMode;
61
- const isolatedDeclaration = __napiModule.exports.isolatedDeclaration;
62
- const isolatedDeclarationSync = __napiModule.exports.isolatedDeclarationSync;
63
- const moduleRunnerTransform = __napiModule.exports.moduleRunnerTransform;
64
- const moduleRunnerTransformSync = __napiModule.exports.moduleRunnerTransformSync;
65
- const transform = __napiModule.exports.transform;
66
- const transformSync = __napiModule.exports.transformSync;
67
- const BindingBundleEndEventData = __napiModule.exports.BindingBundleEndEventData;
68
- const BindingBundleErrorEventData = __napiModule.exports.BindingBundleErrorEventData;
69
- const BindingBundler = __napiModule.exports.BindingBundler;
70
- const BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin;
71
- const BindingChunkingContext = __napiModule.exports.BindingChunkingContext;
72
- const BindingDevEngine = __napiModule.exports.BindingDevEngine;
73
- const BindingMagicString = __napiModule.exports.BindingMagicString;
74
- const BindingModuleInfo = __napiModule.exports.BindingModuleInfo;
75
- const BindingNormalizedOptions = __napiModule.exports.BindingNormalizedOptions;
76
- const BindingOutputAsset = __napiModule.exports.BindingOutputAsset;
77
- const BindingOutputChunk = __napiModule.exports.BindingOutputChunk;
78
- const BindingPluginContext = __napiModule.exports.BindingPluginContext;
79
- const BindingRenderedChunk = __napiModule.exports.BindingRenderedChunk;
80
- const BindingRenderedChunkMeta = __napiModule.exports.BindingRenderedChunkMeta;
81
- const BindingRenderedModule = __napiModule.exports.BindingRenderedModule;
82
- const BindingTransformPluginContext = __napiModule.exports.BindingTransformPluginContext;
83
- const BindingUrlResolver = __napiModule.exports.BindingUrlResolver;
84
- const BindingWatcher = __napiModule.exports.BindingWatcher;
85
- const BindingWatcherBundler = __napiModule.exports.BindingWatcherBundler;
86
- const BindingWatcherChangeData = __napiModule.exports.BindingWatcherChangeData;
87
- const BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent;
88
- const ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry;
89
- const ScheduledBuild = __napiModule.exports.ScheduledBuild;
90
- const TraceSubscriberGuard = __napiModule.exports.TraceSubscriberGuard;
91
- const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo;
92
- const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName;
93
- const BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy;
94
- const BindingLogLevel = __napiModule.exports.BindingLogLevel;
95
- const BindingPluginOrder = __napiModule.exports.BindingPluginOrder;
96
- const BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects;
97
- const BindingPropertyWriteSideEffects = __napiModule.exports.BindingPropertyWriteSideEffects;
98
- const BindingRebuildStrategy = __napiModule.exports.BindingRebuildStrategy;
99
- const createTokioRuntime = __napiModule.exports.createTokioRuntime;
100
- const FilterTokenKind = __napiModule.exports.FilterTokenKind;
101
- const initTraceSubscriber = __napiModule.exports.initTraceSubscriber;
102
- const registerPlugins = __napiModule.exports.registerPlugins;
103
- const shutdownAsyncRuntime = __napiModule.exports.shutdownAsyncRuntime;
104
- const startAsyncRuntime = __napiModule.exports.startAsyncRuntime;
105
-
106
- //#endregion
107
- export { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, parseSync, shutdownAsyncRuntime, startAsyncRuntime };