diff options
author | 2023-03-29 05:37:15 -0700 | |
---|---|---|
committer | 2023-03-29 09:37:15 -0300 | |
commit | 767fdfbb97704405cb6442fab243c0896d82819f (patch) | |
tree | 059732206fdcf41a3c57f51ead631f9742c19758 /src/api/schema.js | |
parent | f0def8c77072869f3ce6bc081651ff4d8c97f66a (diff) | |
download | bun-767fdfbb97704405cb6442fab243c0896d82819f.tar.gz bun-767fdfbb97704405cb6442fab243c0896d82819f.tar.zst bun-767fdfbb97704405cb6442fab243c0896d82819f.zip |
Fixes #2499 (#2501)
* Fixes #2499
* This needs to be quoted
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/api/schema.js')
-rw-r--r-- | src/api/schema.js | 632 |
1 files changed, 316 insertions, 316 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index fde187ce0..cc25603b3 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -1,90 +1,90 @@ const Loader = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - 9: 9, - 10: 10, - jsx: 1, - js: 2, - ts: 3, - tsx: 4, - css: 5, - file: 6, - json: 7, - toml: 8, - wasm: 9, - napi: 10, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "6": 6, + "7": 7, + "8": 8, + "9": 9, + "10": 10, + "jsx": 1, + "js": 2, + "ts": 3, + "tsx": 4, + "css": 5, + "file": 6, + "json": 7, + "toml": 8, + "wasm": 9, + "napi": 10, }; const LoaderKeys = { - 1: "jsx", - 2: "js", - 3: "ts", - 4: "tsx", - 5: "css", - 6: "file", - 7: "json", - 8: "toml", - 9: "wasm", - 10: "napi", - jsx: "jsx", - js: "js", - ts: "ts", - tsx: "tsx", - css: "css", - file: "file", - json: "json", - toml: "toml", - wasm: "wasm", - napi: "napi", + "1": "jsx", + "2": "js", + "3": "ts", + "4": "tsx", + "5": "css", + "6": "file", + "7": "json", + "8": "toml", + "9": "wasm", + "10": "napi", + "jsx": "jsx", + "js": "js", + "ts": "ts", + "tsx": "tsx", + "css": "css", + "file": "file", + "json": "json", + "toml": "toml", + "wasm": "wasm", + "napi": "napi", }; const FrameworkEntryPointType = { - 1: 1, - 2: 2, - 3: 3, - client: 1, - server: 2, - fallback: 3, + "1": 1, + "2": 2, + "3": 3, + "client": 1, + "server": 2, + "fallback": 3, }; const FrameworkEntryPointTypeKeys = { - 1: "client", - 2: "server", - 3: "fallback", - client: "client", - server: "server", - fallback: "fallback", + "1": "client", + "2": "server", + "3": "fallback", + "client": "client", + "server": "server", + "fallback": "fallback", }; const StackFrameScope = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - Eval: 1, - Module: 2, - Function: 3, - Global: 4, - Wasm: 5, - Constructor: 6, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "6": 6, + "Eval": 1, + "Module": 2, + "Function": 3, + "Global": 4, + "Wasm": 5, + "Constructor": 6, }; const StackFrameScopeKeys = { - 1: "Eval", - 2: "Module", - 3: "Function", - 4: "Global", - 5: "Wasm", - 6: "Constructor", - Eval: "Eval", - Module: "Module", - Function: "Function", - Global: "Global", - Wasm: "Wasm", - Constructor: "Constructor", + "1": "Eval", + "2": "Module", + "3": "Function", + "4": "Global", + "5": "Wasm", + "6": "Constructor", + "Eval": "Eval", + "Module": "Module", + "Function": "Function", + "Global": "Global", + "Wasm": "Wasm", + "Constructor": "Constructor", }; function decodeStackFrame(bb) { @@ -332,40 +332,40 @@ function encodeJSException(message, bb) { bb.writeByte(0); } const FallbackStep = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - ssr_disabled: 1, - create_vm: 2, - configure_router: 3, - configure_defines: 4, - resolve_entry_point: 5, - load_entry_point: 6, - eval_entry_point: 7, - fetch_event_handler: 8, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "6": 6, + "7": 7, + "8": 8, + "ssr_disabled": 1, + "create_vm": 2, + "configure_router": 3, + "configure_defines": 4, + "resolve_entry_point": 5, + "load_entry_point": 6, + "eval_entry_point": 7, + "fetch_event_handler": 8, }; const FallbackStepKeys = { - 1: "ssr_disabled", - 2: "create_vm", - 3: "configure_router", - 4: "configure_defines", - 5: "resolve_entry_point", - 6: "load_entry_point", - 7: "eval_entry_point", - 8: "fetch_event_handler", - ssr_disabled: "ssr_disabled", - create_vm: "create_vm", - configure_router: "configure_router", - configure_defines: "configure_defines", - resolve_entry_point: "resolve_entry_point", - load_entry_point: "load_entry_point", - eval_entry_point: "eval_entry_point", - fetch_event_handler: "fetch_event_handler", + "1": "ssr_disabled", + "2": "create_vm", + "3": "configure_router", + "4": "configure_defines", + "5": "resolve_entry_point", + "6": "load_entry_point", + "7": "eval_entry_point", + "8": "fetch_event_handler", + "ssr_disabled": "ssr_disabled", + "create_vm": "create_vm", + "configure_router": "configure_router", + "configure_defines": "configure_defines", + "resolve_entry_point": "resolve_entry_point", + "load_entry_point": "load_entry_point", + "eval_entry_point": "eval_entry_point", + "fetch_event_handler": "fetch_event_handler", }; function decodeProblems(bb) { @@ -517,76 +517,76 @@ function encodeFallbackMessageContainer(message, bb) { bb.writeByte(0); } const ResolveMode = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - disable: 1, - lazy: 2, - dev: 3, - bundle: 4, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "disable": 1, + "lazy": 2, + "dev": 3, + "bundle": 4, }; const ResolveModeKeys = { - 1: "disable", - 2: "lazy", - 3: "dev", - 4: "bundle", - disable: "disable", - lazy: "lazy", - dev: "dev", - bundle: "bundle", + "1": "disable", + "2": "lazy", + "3": "dev", + "4": "bundle", + "disable": "disable", + "lazy": "lazy", + "dev": "dev", + "bundle": "bundle", }; const Platform = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - browser: 1, - node: 2, - bun: 3, - bun_macro: 4, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "browser": 1, + "node": 2, + "bun": 3, + "bun_macro": 4, }; const PlatformKeys = { - 1: "browser", - 2: "node", - 3: "bun", - 4: "bun_macro", - browser: "browser", - node: "node", - bun: "bun", - bun_macro: "bun_macro", + "1": "browser", + "2": "node", + "3": "bun", + "4": "bun_macro", + "browser": "browser", + "node": "node", + "bun": "bun", + "bun_macro": "bun_macro", }; const CSSInJSBehavior = { - 1: 1, - 2: 2, - 3: 3, - facade: 1, - facade_onimportcss: 2, - auto_onimportcss: 3, + "1": 1, + "2": 2, + "3": 3, + "facade": 1, + "facade_onimportcss": 2, + "auto_onimportcss": 3, }; const CSSInJSBehaviorKeys = { - 1: "facade", - 2: "facade_onimportcss", - 3: "auto_onimportcss", - facade: "facade", - facade_onimportcss: "facade_onimportcss", - auto_onimportcss: "auto_onimportcss", + "1": "facade", + "2": "facade_onimportcss", + "3": "auto_onimportcss", + "facade": "facade", + "facade_onimportcss": "facade_onimportcss", + "auto_onimportcss": "auto_onimportcss", }; const JSXRuntime = { - 1: 1, - 2: 2, - 3: 3, - automatic: 1, - classic: 2, - solid: 3, + "1": 1, + "2": 2, + "3": 3, + "automatic": 1, + "classic": 2, + "solid": 3, }; const JSXRuntimeKeys = { - 1: "automatic", - 2: "classic", - 3: "solid", - automatic: "automatic", - classic: "classic", - solid: "solid", + "1": "automatic", + "2": "classic", + "3": "solid", + "automatic": "automatic", + "classic": "classic", + "solid": "solid", }; function decodeJSX(bb) { @@ -914,28 +914,28 @@ function encodeJavascriptBundleContainer(message, bb) { bb.writeByte(0); } const ScanDependencyMode = { - 1: 1, - 2: 2, - app: 1, - all: 2, + "1": 1, + "2": 2, + "app": 1, + "all": 2, }; const ScanDependencyModeKeys = { - 1: "app", - 2: "all", - app: "app", - all: "all", + "1": "app", + "2": "all", + "app": "app", + "all": "all", }; const ModuleImportType = { - 1: 1, - 2: 2, - import: 1, - require: 2, + "1": 1, + "2": 2, + "import": 1, + "require": 2, }; const ModuleImportTypeKeys = { - 1: "import", - 2: "require", - import: "import", - require: "require", + "1": "import", + "2": "require", + "import": "import", + "require": "require", }; function decodeModuleImportRecord(bb) { @@ -1086,20 +1086,20 @@ function encodeLoaderMap(message, bb) { } } const DotEnvBehavior = { - 1: 1, - 2: 2, - 3: 3, - disable: 1, - prefix: 2, - load_all: 3, + "1": 1, + "2": 2, + "3": 3, + "disable": 1, + "prefix": 2, + "load_all": 3, }; const DotEnvBehaviorKeys = { - 1: "disable", - 2: "prefix", - 3: "load_all", - disable: "disable", - prefix: "prefix", - load_all: "load_all", + "1": "disable", + "2": "prefix", + "3": "load_all", + "disable": "disable", + "prefix": "prefix", + "load_all": "load_all", }; function decodeEnvConfig(bb) { @@ -1905,16 +1905,16 @@ function encodeTransformOptions(message, bb) { bb.writeByte(0); } const SourceMapMode = { - 1: 1, - 2: 2, - inline_into_file: 1, - external: 2, + "1": 1, + "2": 2, + "inline_into_file": 1, + "external": 2, }; const SourceMapModeKeys = { - 1: "inline_into_file", - 2: "external", - inline_into_file: "inline_into_file", - external: "external", + "1": "inline_into_file", + "2": "external", + "inline_into_file": "inline_into_file", + "external": "external", }; function decodeFileHandle(bb) { @@ -2133,52 +2133,52 @@ function encodeScannedImport(message, bb) { } } const ImportKind = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - entry_point: 1, - stmt: 2, - require: 3, - dynamic: 4, - require_resolve: 5, - at: 6, - url: 7, - internal: 8, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "6": 6, + "7": 7, + "8": 8, + "entry_point": 1, + "stmt": 2, + "require": 3, + "dynamic": 4, + "require_resolve": 5, + "at": 6, + "url": 7, + "internal": 8, }; const ImportKindKeys = { - 1: "entry_point", - 2: "stmt", - 3: "require", - 4: "dynamic", - 5: "require_resolve", - 6: "at", - 7: "url", - 8: "internal", - entry_point: "entry_point", - stmt: "stmt", - require: "require", - dynamic: "dynamic", - require_resolve: "require_resolve", - at: "at", - url: "url", - internal: "internal", + "1": "entry_point", + "2": "stmt", + "3": "require", + "4": "dynamic", + "5": "require_resolve", + "6": "at", + "7": "url", + "8": "internal", + "entry_point": "entry_point", + "stmt": "stmt", + "require": "require", + "dynamic": "dynamic", + "require_resolve": "require_resolve", + "at": "at", + "url": "url", + "internal": "internal", }; const TransformResponseStatus = { - 1: 1, - 2: 2, - success: 1, - fail: 2, + "1": 1, + "2": 2, + "success": 1, + "fail": 2, }; const TransformResponseStatusKeys = { - 1: "success", - 2: "fail", - success: "success", - fail: "fail", + "1": "success", + "2": "fail", + "success": "success", + "fail": "fail", }; function decodeOutputFile(bb) { @@ -2256,28 +2256,28 @@ function encodeTransformResponse(message, bb) { } } const MessageLevel = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - err: 1, - warn: 2, - note: 3, - info: 4, - debug: 5, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "err": 1, + "warn": 2, + "note": 3, + "info": 4, + "debug": 5, }; const MessageLevelKeys = { - 1: "err", - 2: "warn", - 3: "note", - 4: "info", - 5: "debug", - err: "err", - warn: "warn", - note: "note", - info: "info", - debug: "debug", + "1": "err", + "2": "warn", + "3": "note", + "4": "info", + "5": "debug", + "err": "err", + "warn": "warn", + "note": "note", + "info": "info", + "debug": "debug", }; function decodeLocation(bb) { @@ -2508,72 +2508,72 @@ function encodeLog(message, bb) { } } const Reloader = { - 1: 1, - 2: 2, - 3: 3, - disable: 1, - live: 2, - fast_refresh: 3, + "1": 1, + "2": 2, + "3": 3, + "disable": 1, + "live": 2, + "fast_refresh": 3, }; const ReloaderKeys = { - 1: "disable", - 2: "live", - 3: "fast_refresh", - disable: "disable", - live: "live", - fast_refresh: "fast_refresh", + "1": "disable", + "2": "live", + "3": "fast_refresh", + "disable": "disable", + "live": "live", + "fast_refresh": "fast_refresh", }; const WebsocketMessageKind = { - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - welcome: 1, - file_change_notification: 2, - build_success: 3, - build_fail: 4, - manifest_success: 5, - manifest_fail: 6, - resolve_file: 7, - file_change_notification_with_hint: 8, + "1": 1, + "2": 2, + "3": 3, + "4": 4, + "5": 5, + "6": 6, + "7": 7, + "8": 8, + "welcome": 1, + "file_change_notification": 2, + "build_success": 3, + "build_fail": 4, + "manifest_success": 5, + "manifest_fail": 6, + "resolve_file": 7, + "file_change_notification_with_hint": 8, }; const WebsocketMessageKindKeys = { - 1: "welcome", - 2: "file_change_notification", - 3: "build_success", - 4: "build_fail", - 5: "manifest_success", - 6: "manifest_fail", - 7: "resolve_file", - 8: "file_change_notification_with_hint", - welcome: "welcome", - file_change_notification: "file_change_notification", - build_success: "build_success", - build_fail: "build_fail", - manifest_success: "manifest_success", - manifest_fail: "manifest_fail", - resolve_file: "resolve_file", - file_change_notification_with_hint: "file_change_notification_with_hint", + "1": "welcome", + "2": "file_change_notification", + "3": "build_success", + "4": "build_fail", + "5": "manifest_success", + "6": "manifest_fail", + "7": "resolve_file", + "8": "file_change_notification_with_hint", + "welcome": "welcome", + "file_change_notification": "file_change_notification", + "build_success": "build_success", + "build_fail": "build_fail", + "manifest_success": "manifest_success", + "manifest_fail": "manifest_fail", + "resolve_file": "resolve_file", + "file_change_notification_with_hint": "file_change_notification_with_hint", }; const WebsocketCommandKind = { - 1: 1, - 2: 2, - 3: 3, - build: 1, - manifest: 2, - build_with_file_path: 3, + "1": 1, + "2": 2, + "3": 3, + "build": 1, + "manifest": 2, + "build_with_file_path": 3, }; const WebsocketCommandKindKeys = { - 1: "build", - 2: "manifest", - 3: "build_with_file_path", - build: "build", - manifest: "manifest", - build_with_file_path: "build_with_file_path", + "1": "build", + "2": "manifest", + "3": "build_with_file_path", + "build": "build", + "manifest": "manifest", + "build_with_file_path": "build_with_file_path", }; function decodeWebsocketMessage(bb) { |