@absolutejs/absolute 0.20.0-beta.42 → 0.20.0-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular/browser.js +378 -361
- package/dist/angular/browser.js.map +2 -2
- package/dist/angular/components/core/streamingSlotRegistrar.js +7 -7
- package/dist/angular/components/core/streamingSlotRegistry.js +4 -4
- package/dist/angular/index.js +300 -294
- package/dist/angular/index.js.map +2 -2
- package/dist/angular/server.js +54 -50
- package/dist/angular/server.js.map +2 -2
- package/dist/build.js +199 -203
- package/dist/build.js.map +2 -2
- package/dist/cli/config/client.js +12 -12
- package/dist/cli/config/server.js +1096 -1090
- package/dist/cli/index.js +595 -256
- package/dist/client/index.js +29 -25
- package/dist/client/index.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +15 -13
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +11 -9
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/image-client/imageClient.js +7 -7
- package/dist/index.js +782 -732
- package/dist/index.js.map +6 -5
- package/dist/islands/browser.js +11 -9
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +39 -35
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +23 -22
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +724 -488
- package/dist/mobile/index.js.map +12 -12
- package/dist/mobile/remoteMacAgentEntry.js +413 -14
- package/dist/mobile/shellBootstrap.js +0 -1
- package/dist/mobile/shellExpoAuth.js +184 -0
- package/dist/mobile/shellExpoDevices.js +4 -5
- package/dist/mobile/shellSync.js +4 -4
- package/dist/react/browser.js +17 -15
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/browser/index.js +107 -107
- package/dist/react/components/index.js +118 -116
- package/dist/react/components/index.js.map +2 -2
- package/dist/react/hooks/index.js +11 -9
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +53 -49
- package/dist/react/index.js.map +2 -2
- package/dist/react/jsxDevRuntimeCompat.js +11 -9
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +11 -9
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +9 -7
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +9 -7
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +12 -10
- package/dist/react/server.js.map +2 -2
- package/dist/src/mobile/devDeviceAdapter.d.ts +1 -1
- package/dist/src/mobile/expoBridge.d.ts +12 -12
- package/dist/src/mobile/expoDevController.d.ts +8 -4
- package/dist/src/mobile/nativeAuth.d.ts +3 -0
- package/dist/src/mobile/remoteMacProtocol.d.ts +27 -0
- package/dist/src/mobile/remoteMacWire.d.ts +1 -1
- package/dist/src/mobile/shellExpoAuth.d.ts +12 -0
- package/dist/svelte/browser.js +12 -10
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +47 -43
- package/dist/svelte/index.js.map +2 -2
- package/dist/svelte/server.js +29 -27
- package/dist/svelte/server.js.map +2 -2
- package/dist/vue/browser.js +14 -12
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +9 -7
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +11 -9
- package/dist/vue/components/index.js.map +2 -2
- package/dist/vue/index.js +52 -48
- package/dist/vue/index.js.map +2 -2
- package/dist/vue/server.js +14 -12
- package/dist/vue/server.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
21
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
28
30
|
if (canCache)
|
|
29
31
|
cache.set(mod, to);
|
|
30
32
|
return to;
|
|
@@ -126,22 +128,22 @@ var isValidHMRClientMessage = (data) => {
|
|
|
126
128
|
// src/build/stylePreprocessor.ts
|
|
127
129
|
var exports_stylePreprocessor = {};
|
|
128
130
|
__export(exports_stylePreprocessor, {
|
|
129
|
-
|
|
130
|
-
recordStyleOutput: () => recordStyleOutput,
|
|
131
|
-
isStylePath: () => isStylePath,
|
|
132
|
-
isStyleModulePath: () => isStyleModulePath,
|
|
133
|
-
isPreprocessableStylePath: () => isPreprocessableStylePath,
|
|
134
|
-
getStyleBaseName: () => getStyleBaseName,
|
|
135
|
-
getCssOutputExtension: () => getCssOutputExtension,
|
|
136
|
-
forgetStyleEntry: () => forgetStyleEntry,
|
|
137
|
-
findStyleEntriesImporting: () => findStyleEntriesImporting,
|
|
138
|
-
createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
|
|
139
|
-
createStyleTransformConfig: () => createStyleTransformConfig,
|
|
140
|
-
createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
|
|
141
|
-
compileStyleSource: () => compileStyleSource,
|
|
142
|
-
compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
|
|
131
|
+
addStyleImporter: () => addStyleImporter,
|
|
143
132
|
compileStyleFileIfNeeded: () => compileStyleFileIfNeeded,
|
|
144
|
-
|
|
133
|
+
compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
|
|
134
|
+
compileStyleSource: () => compileStyleSource,
|
|
135
|
+
createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
|
|
136
|
+
createStyleTransformConfig: () => createStyleTransformConfig,
|
|
137
|
+
createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
|
|
138
|
+
findStyleEntriesImporting: () => findStyleEntriesImporting,
|
|
139
|
+
forgetStyleEntry: () => forgetStyleEntry,
|
|
140
|
+
getCssOutputExtension: () => getCssOutputExtension,
|
|
141
|
+
getStyleBaseName: () => getStyleBaseName,
|
|
142
|
+
isPreprocessableStylePath: () => isPreprocessableStylePath,
|
|
143
|
+
isStyleModulePath: () => isStyleModulePath,
|
|
144
|
+
isStylePath: () => isStylePath,
|
|
145
|
+
recordStyleOutput: () => recordStyleOutput,
|
|
146
|
+
stylePreprocessorPlugin: () => stylePreprocessorPlugin
|
|
145
147
|
});
|
|
146
148
|
import { createHash } from "crypto";
|
|
147
149
|
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
@@ -5596,12 +5598,12 @@ var init_chunk_U7LQKMN6 = __esm(() => {
|
|
|
5596
5598
|
// node_modules/tailwindcss/dist/lib.mjs
|
|
5597
5599
|
var exports_lib = {};
|
|
5598
5600
|
__export(exports_lib, {
|
|
5599
|
-
|
|
5600
|
-
compileAst: () => pn,
|
|
5601
|
-
compile: () => xa,
|
|
5602
|
-
__unstable__loadDesignSystem: () => Aa,
|
|
5601
|
+
Features: () => Pe,
|
|
5603
5602
|
Polyfills: () => pt,
|
|
5604
|
-
|
|
5603
|
+
__unstable__loadDesignSystem: () => Aa,
|
|
5604
|
+
compile: () => xa,
|
|
5605
|
+
compileAst: () => pn,
|
|
5606
|
+
default: () => mn
|
|
5605
5607
|
});
|
|
5606
5608
|
var init_lib = __esm(() => {
|
|
5607
5609
|
init_chunk_U7LQKMN6();
|
|
@@ -5612,9 +5614,9 @@ var init_lib = __esm(() => {
|
|
|
5612
5614
|
// src/build/tailwindCompiler.ts
|
|
5613
5615
|
var exports_tailwindCompiler = {};
|
|
5614
5616
|
__export(exports_tailwindCompiler, {
|
|
5615
|
-
|
|
5617
|
+
disposeTailwindCompiler: () => disposeTailwindCompiler,
|
|
5616
5618
|
incrementalTailwindBuild: () => incrementalTailwindBuild,
|
|
5617
|
-
|
|
5619
|
+
warmTailwindCompiler: () => warmTailwindCompiler
|
|
5618
5620
|
});
|
|
5619
5621
|
import { createHash as createHash2 } from "crypto";
|
|
5620
5622
|
import { existsSync as existsSync4, readFileSync as readFileSync4 } from "fs";
|
|
@@ -5811,10 +5813,10 @@ var init_tailwindCompiler = __esm(() => {
|
|
|
5811
5813
|
// src/build/compileTailwind.ts
|
|
5812
5814
|
var exports_compileTailwind = {};
|
|
5813
5815
|
__export(exports_compileTailwind, {
|
|
5814
|
-
|
|
5815
|
-
computeFrameworkTailwindSources: () => computeFrameworkTailwindSources,
|
|
5816
|
+
compileTailwind: () => compileTailwind,
|
|
5816
5817
|
compileTailwindConfig: () => compileTailwindConfig,
|
|
5817
|
-
|
|
5818
|
+
computeFrameworkTailwindSources: () => computeFrameworkTailwindSources,
|
|
5819
|
+
isTailwindCandidate: () => isTailwindCandidate
|
|
5818
5820
|
});
|
|
5819
5821
|
import { mkdir } from "fs/promises";
|
|
5820
5822
|
import { dirname as dirname4, join as join4, resolve as resolve4 } from "path";
|
|
@@ -6975,10 +6977,10 @@ var init_ssrRender = __esm(() => {
|
|
|
6975
6977
|
// src/angular/islands.ts
|
|
6976
6978
|
var exports_islands = {};
|
|
6977
6979
|
__export(exports_islands, {
|
|
6978
|
-
|
|
6979
|
-
mountAngularIsland: () => mountAngularIsland,
|
|
6980
|
+
getAngularIslandSelector: () => getAngularIslandSelector,
|
|
6980
6981
|
isAngularComponent: () => isAngularComponent,
|
|
6981
|
-
|
|
6982
|
+
mountAngularIsland: () => mountAngularIsland,
|
|
6983
|
+
renderAngularIslandToHtml: () => renderAngularIslandToHtml
|
|
6982
6984
|
});
|
|
6983
6985
|
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
|
|
6984
6986
|
const firstChild = rootElement.firstElementChild;
|
|
@@ -7040,8 +7042,10 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
7040
7042
|
const propsToken = new InjectionToken(`${wrapperKey}:props`);
|
|
7041
7043
|
|
|
7042
7044
|
class AngularIslandWrapperComponent {
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
+
constructor() {
|
|
7046
|
+
this.component = component;
|
|
7047
|
+
this.props = inject(propsToken);
|
|
7048
|
+
}
|
|
7045
7049
|
}
|
|
7046
7050
|
return {
|
|
7047
7051
|
deps,
|
|
@@ -7490,13 +7494,13 @@ var init_nativeRewrite = __esm(() => {
|
|
|
7490
7494
|
// src/build/rewriteImportsPlugin.ts
|
|
7491
7495
|
var exports_rewriteImportsPlugin = {};
|
|
7492
7496
|
__export(exports_rewriteImportsPlugin, {
|
|
7493
|
-
|
|
7494
|
-
rewriteImportsInContent: () => rewriteImportsInContent,
|
|
7495
|
-
rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
|
|
7496
|
-
rewriteBuildOutputs: () => rewriteBuildOutputs,
|
|
7497
|
-
jsRewriteImports: () => jsRewriteImports,
|
|
7497
|
+
buildWithImportRewrite: () => buildWithImportRewrite,
|
|
7498
7498
|
fixMissingReExportNamespacesInContent: () => fixMissingReExportNamespacesInContent,
|
|
7499
|
-
|
|
7499
|
+
jsRewriteImports: () => jsRewriteImports,
|
|
7500
|
+
rewriteBuildOutputs: () => rewriteBuildOutputs,
|
|
7501
|
+
rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
|
|
7502
|
+
rewriteImportsInContent: () => rewriteImportsInContent,
|
|
7503
|
+
rewriteVendorDirectories: () => rewriteVendorDirectories
|
|
7500
7504
|
});
|
|
7501
7505
|
import { readdir } from "fs/promises";
|
|
7502
7506
|
import { join as join5 } from "path";
|
|
@@ -8922,10 +8926,10 @@ var init_pageResponseCache = () => {};
|
|
|
8922
8926
|
// src/utils/loadConfig.ts
|
|
8923
8927
|
var exports_loadConfig = {};
|
|
8924
8928
|
__export(exports_loadConfig, {
|
|
8925
|
-
|
|
8926
|
-
loadConfig: () => loadConfig,
|
|
8929
|
+
getWorkspaceServices: () => getWorkspaceServices,
|
|
8927
8930
|
isWorkspaceConfig: () => isWorkspaceConfig,
|
|
8928
|
-
|
|
8931
|
+
loadConfig: () => loadConfig,
|
|
8932
|
+
loadRawConfig: () => loadRawConfig
|
|
8929
8933
|
});
|
|
8930
8934
|
import { resolve as resolve10 } from "path";
|
|
8931
8935
|
var RESERVED_TOP_LEVEL_KEYS, isObject = (value) => typeof value === "object" && value !== null, isCommandService = (service) => service.kind === "command" || Array.isArray(service.command), isServiceCandidate = (value) => isObject(value) && (typeof value.entry === "string" || Array.isArray(value.command)), isWorkspaceConfig = (config) => {
|
|
@@ -9028,6 +9032,137 @@ var init_loadConfig = __esm(() => {
|
|
|
9028
9032
|
]);
|
|
9029
9033
|
});
|
|
9030
9034
|
|
|
9035
|
+
// src/mobile/config.ts
|
|
9036
|
+
import { resolve as resolve11 } from "path";
|
|
9037
|
+
var APP_ID_PATTERN, SCHEME_PATTERN, APPLE_APP_ID_PREFIX_PATTERN, CERTIFICATE_FINGERPRINT_PATTERN, HOSTNAME_PATTERN, resolveProjectPath = (projectRoot, value, field) => {
|
|
9038
|
+
const root = resolve11(projectRoot);
|
|
9039
|
+
const path = resolve11(root, value);
|
|
9040
|
+
if (path !== root && !path.startsWith(`${root}/`)) {
|
|
9041
|
+
throw new TypeError(`${field} must remain inside the project root.`);
|
|
9042
|
+
}
|
|
9043
|
+
return path;
|
|
9044
|
+
}, requireText = (value, field) => {
|
|
9045
|
+
const normalized = value.trim();
|
|
9046
|
+
if (!normalized)
|
|
9047
|
+
throw new TypeError(`${field} must not be empty.`);
|
|
9048
|
+
return normalized;
|
|
9049
|
+
}, normalizeEntry = (entry) => {
|
|
9050
|
+
const normalized = requireText(entry ?? "/", "mobile.entry");
|
|
9051
|
+
if (!normalized.startsWith("/") || normalized.startsWith("//")) {
|
|
9052
|
+
throw new TypeError("mobile.entry must be an absolute application path.");
|
|
9053
|
+
}
|
|
9054
|
+
return normalized;
|
|
9055
|
+
}, normalizeProductionOrigin = (value) => {
|
|
9056
|
+
const parsed = new URL(requireText(value, "mobile.server.productionOrigin"));
|
|
9057
|
+
const isLoopbackHttp = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1" || parsed.hostname === "[::1]");
|
|
9058
|
+
if (parsed.protocol !== "https:" && !isLoopbackHttp) {
|
|
9059
|
+
throw new TypeError("mobile.server.productionOrigin must use HTTPS, except for a loopback development origin.");
|
|
9060
|
+
}
|
|
9061
|
+
if (parsed.username || parsed.password || parsed.pathname !== "/" || parsed.search || parsed.hash) {
|
|
9062
|
+
throw new TypeError("mobile.server.productionOrigin must be an origin without credentials, path, query, or hash.");
|
|
9063
|
+
}
|
|
9064
|
+
return parsed.origin;
|
|
9065
|
+
}, normalizePlatforms = (platforms) => {
|
|
9066
|
+
const normalized = [
|
|
9067
|
+
...new Set(platforms ?? ["ios", "android"])
|
|
9068
|
+
];
|
|
9069
|
+
if (normalized.length === 0) {
|
|
9070
|
+
throw new TypeError("mobile.platforms must contain at least one platform.");
|
|
9071
|
+
}
|
|
9072
|
+
return normalized;
|
|
9073
|
+
}, normalizeHosts = (hosts, productionOrigin) => {
|
|
9074
|
+
const normalizeHostname = (host) => {
|
|
9075
|
+
const value = requireText(host, "mobile.deepLinks.hosts").toLowerCase();
|
|
9076
|
+
if (!HOSTNAME_PATTERN.test(value)) {
|
|
9077
|
+
throw new TypeError("mobile.deepLinks.hosts entries must be valid hostnames without ports, wildcards, or paths.");
|
|
9078
|
+
}
|
|
9079
|
+
return value;
|
|
9080
|
+
};
|
|
9081
|
+
const productionHostname = new URL(productionOrigin).hostname;
|
|
9082
|
+
const normalized = new Set(productionHostname === "[::1]" ? [] : [normalizeHostname(productionHostname)]);
|
|
9083
|
+
for (const host of hosts ?? []) {
|
|
9084
|
+
normalized.add(normalizeHostname(host));
|
|
9085
|
+
}
|
|
9086
|
+
return [...normalized].sort();
|
|
9087
|
+
}, normalizeAppleAppIdPrefix = (value) => {
|
|
9088
|
+
if (value === undefined)
|
|
9089
|
+
return;
|
|
9090
|
+
const normalized = requireText(value, "mobile.deepLinks.apple.appIdPrefix").toUpperCase();
|
|
9091
|
+
if (!APPLE_APP_ID_PREFIX_PATTERN.test(normalized)) {
|
|
9092
|
+
throw new TypeError("mobile.deepLinks.apple.appIdPrefix must contain ten letters or digits.");
|
|
9093
|
+
}
|
|
9094
|
+
return normalized;
|
|
9095
|
+
}, normalizeIosVersion = (value) => {
|
|
9096
|
+
if (value === undefined)
|
|
9097
|
+
return;
|
|
9098
|
+
const normalized = requireText(value, "mobile.ios.version");
|
|
9099
|
+
if (!/^\d+(?:\.\d+){0,2}$/u.test(normalized)) {
|
|
9100
|
+
throw new TypeError("mobile.ios.version must contain one to three dot-separated integer components, for example 1.4.0.");
|
|
9101
|
+
}
|
|
9102
|
+
return normalized;
|
|
9103
|
+
}, normalizeCertificateFingerprints = (values) => [
|
|
9104
|
+
...new Set((values ?? []).map((value) => requireText(value, "mobile.deepLinks.android.sha256CertificateFingerprints").replaceAll(":", "").toUpperCase()).map((value) => {
|
|
9105
|
+
if (!CERTIFICATE_FINGERPRINT_PATTERN.test(value)) {
|
|
9106
|
+
throw new TypeError("mobile.deepLinks.android.sha256CertificateFingerprints entries must be SHA-256 certificate fingerprints.");
|
|
9107
|
+
}
|
|
9108
|
+
return value.match(/.{2}/g)?.join(":") ?? value;
|
|
9109
|
+
}))
|
|
9110
|
+
].sort(), normalizeExpoNativeRoutes = (config, projectRoot) => {
|
|
9111
|
+
if (config.engine !== "expo")
|
|
9112
|
+
return {};
|
|
9113
|
+
const routes = config.routes?.native ?? {};
|
|
9114
|
+
const normalized = {};
|
|
9115
|
+
for (const [route, module] of Object.entries(routes)) {
|
|
9116
|
+
const path = normalizeEntry(route);
|
|
9117
|
+
if (path.includes("?") || path.includes("#") || path !== "/" && path.endsWith("/")) {
|
|
9118
|
+
throw new TypeError(`mobile.routes.native route ${path} must be a canonical path without a query, fragment, or trailing slash.`);
|
|
9119
|
+
}
|
|
9120
|
+
if (path === "/__absolute/native") {
|
|
9121
|
+
throw new TypeError("mobile.routes.native reserves /__absolute/native for the Expo diagnostic screen.");
|
|
9122
|
+
}
|
|
9123
|
+
if (path.includes("*") || path.includes(":")) {
|
|
9124
|
+
throw new TypeError(`mobile.routes.native route ${path} must be static during the Expo experiment; parameters and wildcards are not supported yet.`);
|
|
9125
|
+
}
|
|
9126
|
+
normalized[path] = resolveProjectPath(projectRoot, requireText(module, `mobile.routes.native[${path}]`), `mobile.routes.native[${path}]`);
|
|
9127
|
+
}
|
|
9128
|
+
return Object.fromEntries(Object.entries(normalized).sort(([left], [right]) => left.localeCompare(right)));
|
|
9129
|
+
}, normalizeAbsoluteMobileConfig = (config, projectRoot) => {
|
|
9130
|
+
const appId = requireText(config.appId, "mobile.appId");
|
|
9131
|
+
if (!APP_ID_PATTERN.test(appId)) {
|
|
9132
|
+
throw new TypeError("mobile.appId must use reverse-domain notation, for example com.example.app.");
|
|
9133
|
+
}
|
|
9134
|
+
const productionOrigin = normalizeProductionOrigin(config.server.productionOrigin);
|
|
9135
|
+
const deepLinkScheme = (config.deepLinks?.scheme ?? appId).trim().toLowerCase();
|
|
9136
|
+
if (deepLinkScheme && !SCHEME_PATTERN.test(deepLinkScheme)) {
|
|
9137
|
+
throw new TypeError("mobile.deepLinks.scheme is not a valid URL scheme.");
|
|
9138
|
+
}
|
|
9139
|
+
return {
|
|
9140
|
+
androidCertificateFingerprints: normalizeCertificateFingerprints(config.deepLinks?.android?.sha256CertificateFingerprints),
|
|
9141
|
+
appId,
|
|
9142
|
+
appleAppIdPrefix: normalizeAppleAppIdPrefix(config.deepLinks?.apple?.appIdPrefix),
|
|
9143
|
+
appName: requireText(config.appName, "mobile.appName"),
|
|
9144
|
+
bundleDirectory: resolveProjectPath(projectRoot, config.bundleDirectory ?? ".absolutejs/mobile/web", "mobile.bundleDirectory"),
|
|
9145
|
+
deepLinkHosts: normalizeHosts(config.deepLinks?.hosts, productionOrigin),
|
|
9146
|
+
deepLinkScheme,
|
|
9147
|
+
engine: config.engine ?? "capacitor",
|
|
9148
|
+
entry: normalizeEntry(config.entry),
|
|
9149
|
+
expoNativeRoutes: normalizeExpoNativeRoutes(config, projectRoot),
|
|
9150
|
+
...config.engine === "expo" ? { expoSdkVersion: config.expo?.sdkVersion ?? 57 } : {},
|
|
9151
|
+
iosVersion: normalizeIosVersion(config.ios?.version),
|
|
9152
|
+
nativeProjectDirectory: resolveProjectPath(projectRoot, config.nativeProject?.directory ?? (config.engine === "expo" ? ".absolutejs/mobile/expo" : "mobile"), "mobile.nativeProject.directory"),
|
|
9153
|
+
platforms: normalizePlatforms(config.platforms),
|
|
9154
|
+
productionOrigin,
|
|
9155
|
+
pushAndroidGoogleServicesFile: resolveProjectPath(projectRoot, config.pushNotifications?.android?.googleServicesFile ?? "google-services.json", "mobile.pushNotifications.android.googleServicesFile")
|
|
9156
|
+
};
|
|
9157
|
+
};
|
|
9158
|
+
var init_config = __esm(() => {
|
|
9159
|
+
APP_ID_PATTERN = /^[A-Za-z][\w]*(?:\.[A-Za-z][\w]*)+$/;
|
|
9160
|
+
SCHEME_PATTERN = /^[a-z][a-z0-9+.-]*$/;
|
|
9161
|
+
APPLE_APP_ID_PREFIX_PATTERN = /^[A-Z0-9]{10}$/;
|
|
9162
|
+
CERTIFICATE_FINGERPRINT_PATTERN = /^[0-9A-F]{64}$/;
|
|
9163
|
+
HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/;
|
|
9164
|
+
});
|
|
9165
|
+
|
|
9031
9166
|
// src/cli/scripts/telemetry.ts
|
|
9032
9167
|
import { existsSync as existsSync9, mkdirSync as mkdirSync2, readFileSync as readFileSync10, writeFileSync as writeFileSync4 } from "fs";
|
|
9033
9168
|
import { homedir } from "os";
|
|
@@ -9807,10 +9942,10 @@ var init_logger = __esm(() => {
|
|
|
9807
9942
|
// src/core/devRouteRegistrationCallsite.ts
|
|
9808
9943
|
var exports_devRouteRegistrationCallsite = {};
|
|
9809
9944
|
__export(exports_devRouteRegistrationCallsite, {
|
|
9810
|
-
|
|
9811
|
-
isPageHandler: () => isPageHandler,
|
|
9945
|
+
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite,
|
|
9812
9946
|
getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
|
|
9813
|
-
|
|
9947
|
+
isPageHandler: () => isPageHandler,
|
|
9948
|
+
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites
|
|
9814
9949
|
});
|
|
9815
9950
|
import { AsyncLocalStorage as AsyncLocalStorage3 } from "async_hooks";
|
|
9816
9951
|
import { Elysia as Elysia5 } from "elysia";
|
|
@@ -12284,18 +12419,18 @@ var init_rewriteReactImports = __esm(() => {
|
|
|
12284
12419
|
// src/core/devVendorPaths.ts
|
|
12285
12420
|
var exports_devVendorPaths = {};
|
|
12286
12421
|
__export(exports_devVendorPaths, {
|
|
12287
|
-
|
|
12288
|
-
setSvelteVendorPaths: () => setSvelteVendorPaths,
|
|
12289
|
-
setEmberVendorPaths: () => setEmberVendorPaths,
|
|
12290
|
-
setDevVendorPaths: () => setDevVendorPaths,
|
|
12291
|
-
setAngularVendorPaths: () => setAngularVendorPaths,
|
|
12292
|
-
setAngularServerVendorPaths: () => setAngularServerVendorPaths,
|
|
12293
|
-
getVueVendorPaths: () => getVueVendorPaths,
|
|
12294
|
-
getSvelteVendorPaths: () => getSvelteVendorPaths,
|
|
12295
|
-
getEmberVendorPaths: () => getEmberVendorPaths,
|
|
12296
|
-
getDevVendorPaths: () => getDevVendorPaths,
|
|
12422
|
+
getAngularServerVendorPaths: () => getAngularServerVendorPaths,
|
|
12297
12423
|
getAngularVendorPaths: () => getAngularVendorPaths,
|
|
12298
|
-
|
|
12424
|
+
getDevVendorPaths: () => getDevVendorPaths,
|
|
12425
|
+
getEmberVendorPaths: () => getEmberVendorPaths,
|
|
12426
|
+
getSvelteVendorPaths: () => getSvelteVendorPaths,
|
|
12427
|
+
getVueVendorPaths: () => getVueVendorPaths,
|
|
12428
|
+
setAngularServerVendorPaths: () => setAngularServerVendorPaths,
|
|
12429
|
+
setAngularVendorPaths: () => setAngularVendorPaths,
|
|
12430
|
+
setDevVendorPaths: () => setDevVendorPaths,
|
|
12431
|
+
setEmberVendorPaths: () => setEmberVendorPaths,
|
|
12432
|
+
setSvelteVendorPaths: () => setSvelteVendorPaths,
|
|
12433
|
+
setVueVendorPaths: () => setVueVendorPaths
|
|
12299
12434
|
});
|
|
12300
12435
|
var devVendorPaths = null, getDevVendorPaths = () => devVendorPaths, setDevVendorPaths = (paths) => {
|
|
12301
12436
|
devVendorPaths = paths;
|
|
@@ -12700,8 +12835,8 @@ var init_islandRegistryTransform = __esm(() => {
|
|
|
12700
12835
|
// src/dev/angular/hmrInjectionPlugin.ts
|
|
12701
12836
|
var exports_hmrInjectionPlugin = {};
|
|
12702
12837
|
__export(exports_hmrInjectionPlugin, {
|
|
12703
|
-
|
|
12704
|
-
|
|
12838
|
+
applyAngularHmrInjection: () => applyAngularHmrInjection,
|
|
12839
|
+
createAngularHmrInjectionPlugin: () => createAngularHmrInjectionPlugin
|
|
12705
12840
|
});
|
|
12706
12841
|
import { readFile as readFile8 } from "fs/promises";
|
|
12707
12842
|
import { relative as relative9, resolve as resolve22 } from "path";
|
|
@@ -12959,8 +13094,8 @@ var init_cleanStaleOutputs = __esm(() => {
|
|
|
12959
13094
|
// src/utils/generatedDir.ts
|
|
12960
13095
|
var exports_generatedDir = {};
|
|
12961
13096
|
__export(exports_generatedDir, {
|
|
12962
|
-
|
|
12963
|
-
|
|
13097
|
+
getFrameworkGeneratedDir: () => getFrameworkGeneratedDir,
|
|
13098
|
+
getGeneratedRoot: () => getGeneratedRoot
|
|
12964
13099
|
});
|
|
12965
13100
|
import { join as join26 } from "path";
|
|
12966
13101
|
var GENERATED_DIR_NAME = "generated", ABSOLUTE_CACHE_DIR_NAME = ".absolutejs", getFrameworkGeneratedDir = (framework, projectRoot = process.cwd()) => join26(getGeneratedRoot(projectRoot), framework), getGeneratedRoot = (projectRoot = process.cwd()) => join26(projectRoot, ABSOLUTE_CACHE_DIR_NAME, GENERATED_DIR_NAME);
|
|
@@ -14585,8 +14720,8 @@ var init_parseAngularConfigImports = () => {};
|
|
|
14585
14720
|
// src/svelte/renderToReadableStream.ts
|
|
14586
14721
|
var exports_renderToReadableStream = {};
|
|
14587
14722
|
__export(exports_renderToReadableStream, {
|
|
14588
|
-
|
|
14589
|
-
|
|
14723
|
+
SVELTE_PAGE_ROOT_ID: () => SVELTE_PAGE_ROOT_ID,
|
|
14724
|
+
renderToReadableStream: () => renderToReadableStream
|
|
14590
14725
|
});
|
|
14591
14726
|
var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = async (component2, props, {
|
|
14592
14727
|
bootstrapScriptContent,
|
|
@@ -14641,8 +14776,8 @@ var init_renderToReadableStream = __esm(() => {
|
|
|
14641
14776
|
// src/build/compileSvelte.ts
|
|
14642
14777
|
var exports_compileSvelte = {};
|
|
14643
14778
|
__export(exports_compileSvelte, {
|
|
14644
|
-
|
|
14645
|
-
|
|
14779
|
+
clearSvelteCompilerCache: () => clearSvelteCompilerCache,
|
|
14780
|
+
compileSvelte: () => compileSvelte
|
|
14646
14781
|
});
|
|
14647
14782
|
import { existsSync as existsSync24 } from "fs";
|
|
14648
14783
|
import { mkdir as mkdir9, stat as stat2 } from "fs/promises";
|
|
@@ -15072,12 +15207,12 @@ var init_parseVueSpaRoutes = () => {};
|
|
|
15072
15207
|
// src/build/chainInlineSourcemaps.ts
|
|
15073
15208
|
var exports_chainInlineSourcemaps = {};
|
|
15074
15209
|
__export(exports_chainInlineSourcemaps, {
|
|
15075
|
-
|
|
15076
|
-
inlineLineMapComment: () => inlineLineMapComment,
|
|
15077
|
-
chainSourcemap: () => chainSourcemap,
|
|
15078
|
-
chainExternalSourcemap: () => chainExternalSourcemap,
|
|
15210
|
+
buildLineRemap: () => buildLineRemap,
|
|
15079
15211
|
chainBundleInlineSourcemap: () => chainBundleInlineSourcemap,
|
|
15080
|
-
|
|
15212
|
+
chainExternalSourcemap: () => chainExternalSourcemap,
|
|
15213
|
+
chainSourcemap: () => chainSourcemap,
|
|
15214
|
+
inlineLineMapComment: () => inlineLineMapComment,
|
|
15215
|
+
remapGeneratedLines: () => remapGeneratedLines
|
|
15081
15216
|
});
|
|
15082
15217
|
import { readFileSync as readFileSync23, writeFileSync as writeFileSync8 } from "fs";
|
|
15083
15218
|
var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", BASE64_TO_INT, decodeVlq = (str, startPos) => {
|
|
@@ -15483,11 +15618,11 @@ var init_vueAutoRouterTransform = __esm(() => {
|
|
|
15483
15618
|
// src/build/compileVue.ts
|
|
15484
15619
|
var exports_compileVue = {};
|
|
15485
15620
|
__export(exports_compileVue, {
|
|
15486
|
-
|
|
15487
|
-
generateVueHmrId: () => generateVueHmrId,
|
|
15488
|
-
detectVueChangeType: () => detectVueChangeType,
|
|
15621
|
+
clearVueHmrCaches: () => clearVueHmrCaches,
|
|
15489
15622
|
compileVue: () => compileVue,
|
|
15490
|
-
|
|
15623
|
+
detectVueChangeType: () => detectVueChangeType,
|
|
15624
|
+
generateVueHmrId: () => generateVueHmrId,
|
|
15625
|
+
vueHmrMetadata: () => vueHmrMetadata
|
|
15491
15626
|
});
|
|
15492
15627
|
import { existsSync as existsSync25, readFileSync as readFileSync24, realpathSync as realpathSync2 } from "fs";
|
|
15493
15628
|
import { mkdir as mkdir10 } from "fs/promises";
|
|
@@ -16582,11 +16717,11 @@ var init_lowerDeferSyntax = __esm(() => {
|
|
|
16582
16717
|
// src/build/compileAngular.ts
|
|
16583
16718
|
var exports_compileAngular = {};
|
|
16584
16719
|
__export(exports_compileAngular, {
|
|
16585
|
-
|
|
16586
|
-
compileAngularFiles: () => compileAngularFiles,
|
|
16587
|
-
compileAngularFileJIT: () => compileAngularFileJIT,
|
|
16720
|
+
compileAngular: () => compileAngular,
|
|
16588
16721
|
compileAngularFile: () => compileAngularFile,
|
|
16589
|
-
|
|
16722
|
+
compileAngularFileJIT: () => compileAngularFileJIT,
|
|
16723
|
+
compileAngularFiles: () => compileAngularFiles,
|
|
16724
|
+
invalidateAngularJitCache: () => invalidateAngularJitCache
|
|
16590
16725
|
});
|
|
16591
16726
|
import { existsSync as existsSync26, readFileSync as readFileSync25, promises as fs5 } from "fs";
|
|
16592
16727
|
import { join as join38, basename as basename12, sep as sep3, dirname as dirname21, resolve as resolve29, relative as relative14 } from "path";
|
|
@@ -17959,7 +18094,6 @@ var init_hmrImportGenerator = () => {};
|
|
|
17959
18094
|
|
|
17960
18095
|
// src/dev/angular/vendor/translator/context.ts
|
|
17961
18096
|
class Context {
|
|
17962
|
-
isStatement;
|
|
17963
18097
|
constructor(isStatement) {
|
|
17964
18098
|
this.isStatement = isStatement;
|
|
17965
18099
|
}
|
|
@@ -17973,12 +18107,6 @@ class Context {
|
|
|
17973
18107
|
|
|
17974
18108
|
// src/dev/angular/vendor/translator/translator.ts
|
|
17975
18109
|
class ExpressionTranslatorVisitor {
|
|
17976
|
-
factory;
|
|
17977
|
-
imports;
|
|
17978
|
-
contextFile;
|
|
17979
|
-
downlevelTaggedTemplates;
|
|
17980
|
-
downlevelVariableDeclarations;
|
|
17981
|
-
recordWrappedNode;
|
|
17982
18110
|
constructor(factory, imports, contextFile, options) {
|
|
17983
18111
|
this.factory = factory;
|
|
17984
18112
|
this.imports = imports;
|
|
@@ -18347,56 +18475,64 @@ var init_ts_util = __esm(() => {
|
|
|
18347
18475
|
import ts17 from "typescript";
|
|
18348
18476
|
|
|
18349
18477
|
class TypeScriptAstFactory {
|
|
18350
|
-
annotateForClosureCompiler;
|
|
18351
|
-
externalSourceFiles = new Map;
|
|
18352
|
-
UNARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
18353
|
-
"+": ts17.SyntaxKind.PlusToken,
|
|
18354
|
-
"-": ts17.SyntaxKind.MinusToken,
|
|
18355
|
-
"!": ts17.SyntaxKind.ExclamationToken
|
|
18356
|
-
}))();
|
|
18357
|
-
BINARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
18358
|
-
"&&": ts17.SyntaxKind.AmpersandAmpersandToken,
|
|
18359
|
-
">": ts17.SyntaxKind.GreaterThanToken,
|
|
18360
|
-
">=": ts17.SyntaxKind.GreaterThanEqualsToken,
|
|
18361
|
-
"&": ts17.SyntaxKind.AmpersandToken,
|
|
18362
|
-
"|": ts17.SyntaxKind.BarToken,
|
|
18363
|
-
"/": ts17.SyntaxKind.SlashToken,
|
|
18364
|
-
"==": ts17.SyntaxKind.EqualsEqualsToken,
|
|
18365
|
-
"===": ts17.SyntaxKind.EqualsEqualsEqualsToken,
|
|
18366
|
-
"<": ts17.SyntaxKind.LessThanToken,
|
|
18367
|
-
"<=": ts17.SyntaxKind.LessThanEqualsToken,
|
|
18368
|
-
"-": ts17.SyntaxKind.MinusToken,
|
|
18369
|
-
"%": ts17.SyntaxKind.PercentToken,
|
|
18370
|
-
"*": ts17.SyntaxKind.AsteriskToken,
|
|
18371
|
-
"**": ts17.SyntaxKind.AsteriskAsteriskToken,
|
|
18372
|
-
"!=": ts17.SyntaxKind.ExclamationEqualsToken,
|
|
18373
|
-
"!==": ts17.SyntaxKind.ExclamationEqualsEqualsToken,
|
|
18374
|
-
"||": ts17.SyntaxKind.BarBarToken,
|
|
18375
|
-
"+": ts17.SyntaxKind.PlusToken,
|
|
18376
|
-
"??": ts17.SyntaxKind.QuestionQuestionToken,
|
|
18377
|
-
"=": ts17.SyntaxKind.EqualsToken,
|
|
18378
|
-
"+=": ts17.SyntaxKind.PlusEqualsToken,
|
|
18379
|
-
"-=": ts17.SyntaxKind.MinusEqualsToken,
|
|
18380
|
-
"*=": ts17.SyntaxKind.AsteriskEqualsToken,
|
|
18381
|
-
"/=": ts17.SyntaxKind.SlashEqualsToken,
|
|
18382
|
-
"%=": ts17.SyntaxKind.PercentEqualsToken,
|
|
18383
|
-
"**=": ts17.SyntaxKind.AsteriskAsteriskEqualsToken,
|
|
18384
|
-
"&&=": ts17.SyntaxKind.AmpersandAmpersandEqualsToken,
|
|
18385
|
-
"||=": ts17.SyntaxKind.BarBarEqualsToken,
|
|
18386
|
-
"??=": ts17.SyntaxKind.QuestionQuestionEqualsToken,
|
|
18387
|
-
in: ts17.SyntaxKind.InKeyword,
|
|
18388
|
-
instanceof: ts17.SyntaxKind.InstanceOfKeyword
|
|
18389
|
-
}))();
|
|
18390
|
-
VAR_TYPES = /* @__PURE__ */ (() => ({
|
|
18391
|
-
const: ts17.NodeFlags.Const,
|
|
18392
|
-
let: ts17.NodeFlags.Let,
|
|
18393
|
-
var: ts17.NodeFlags.None
|
|
18394
|
-
}))();
|
|
18395
18478
|
constructor(annotateForClosureCompiler) {
|
|
18396
18479
|
this.annotateForClosureCompiler = annotateForClosureCompiler;
|
|
18480
|
+
this.externalSourceFiles = new Map;
|
|
18481
|
+
this.UNARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
18482
|
+
"+": ts17.SyntaxKind.PlusToken,
|
|
18483
|
+
"-": ts17.SyntaxKind.MinusToken,
|
|
18484
|
+
"!": ts17.SyntaxKind.ExclamationToken
|
|
18485
|
+
}))();
|
|
18486
|
+
this.BINARY_OPERATORS = /* @__PURE__ */ (() => ({
|
|
18487
|
+
"&&": ts17.SyntaxKind.AmpersandAmpersandToken,
|
|
18488
|
+
">": ts17.SyntaxKind.GreaterThanToken,
|
|
18489
|
+
">=": ts17.SyntaxKind.GreaterThanEqualsToken,
|
|
18490
|
+
"&": ts17.SyntaxKind.AmpersandToken,
|
|
18491
|
+
"|": ts17.SyntaxKind.BarToken,
|
|
18492
|
+
"/": ts17.SyntaxKind.SlashToken,
|
|
18493
|
+
"==": ts17.SyntaxKind.EqualsEqualsToken,
|
|
18494
|
+
"===": ts17.SyntaxKind.EqualsEqualsEqualsToken,
|
|
18495
|
+
"<": ts17.SyntaxKind.LessThanToken,
|
|
18496
|
+
"<=": ts17.SyntaxKind.LessThanEqualsToken,
|
|
18497
|
+
"-": ts17.SyntaxKind.MinusToken,
|
|
18498
|
+
"%": ts17.SyntaxKind.PercentToken,
|
|
18499
|
+
"*": ts17.SyntaxKind.AsteriskToken,
|
|
18500
|
+
"**": ts17.SyntaxKind.AsteriskAsteriskToken,
|
|
18501
|
+
"!=": ts17.SyntaxKind.ExclamationEqualsToken,
|
|
18502
|
+
"!==": ts17.SyntaxKind.ExclamationEqualsEqualsToken,
|
|
18503
|
+
"||": ts17.SyntaxKind.BarBarToken,
|
|
18504
|
+
"+": ts17.SyntaxKind.PlusToken,
|
|
18505
|
+
"??": ts17.SyntaxKind.QuestionQuestionToken,
|
|
18506
|
+
"=": ts17.SyntaxKind.EqualsToken,
|
|
18507
|
+
"+=": ts17.SyntaxKind.PlusEqualsToken,
|
|
18508
|
+
"-=": ts17.SyntaxKind.MinusEqualsToken,
|
|
18509
|
+
"*=": ts17.SyntaxKind.AsteriskEqualsToken,
|
|
18510
|
+
"/=": ts17.SyntaxKind.SlashEqualsToken,
|
|
18511
|
+
"%=": ts17.SyntaxKind.PercentEqualsToken,
|
|
18512
|
+
"**=": ts17.SyntaxKind.AsteriskAsteriskEqualsToken,
|
|
18513
|
+
"&&=": ts17.SyntaxKind.AmpersandAmpersandEqualsToken,
|
|
18514
|
+
"||=": ts17.SyntaxKind.BarBarEqualsToken,
|
|
18515
|
+
"??=": ts17.SyntaxKind.QuestionQuestionEqualsToken,
|
|
18516
|
+
in: ts17.SyntaxKind.InKeyword,
|
|
18517
|
+
instanceof: ts17.SyntaxKind.InstanceOfKeyword
|
|
18518
|
+
}))();
|
|
18519
|
+
this.VAR_TYPES = /* @__PURE__ */ (() => ({
|
|
18520
|
+
const: ts17.NodeFlags.Const,
|
|
18521
|
+
let: ts17.NodeFlags.Let,
|
|
18522
|
+
var: ts17.NodeFlags.None
|
|
18523
|
+
}))();
|
|
18524
|
+
this.attachComments = attachComments;
|
|
18525
|
+
this.createArrayLiteral = ts17.factory.createArrayLiteralExpression;
|
|
18526
|
+
this.createElementAccess = ts17.factory.createElementAccessExpression;
|
|
18527
|
+
this.createExpressionStatement = ts17.factory.createExpressionStatement;
|
|
18528
|
+
this.createIdentifier = ts17.factory.createIdentifier;
|
|
18529
|
+
this.createParenthesizedExpression = ts17.factory.createParenthesizedExpression;
|
|
18530
|
+
this.createPropertyAccess = ts17.factory.createPropertyAccessExpression;
|
|
18531
|
+
this.createSpreadElement = ts17.factory.createSpreadElement;
|
|
18532
|
+
this.createThrowStatement = ts17.factory.createThrowStatement;
|
|
18533
|
+
this.createTypeOfExpression = ts17.factory.createTypeOfExpression;
|
|
18534
|
+
this.createVoidExpression = ts17.factory.createVoidExpression;
|
|
18397
18535
|
}
|
|
18398
|
-
attachComments = attachComments;
|
|
18399
|
-
createArrayLiteral = ts17.factory.createArrayLiteralExpression;
|
|
18400
18536
|
createAssignment(target, operator, value) {
|
|
18401
18537
|
return ts17.factory.createBinaryExpression(target, this.BINARY_OPERATORS[operator], value);
|
|
18402
18538
|
}
|
|
@@ -18416,8 +18552,6 @@ class TypeScriptAstFactory {
|
|
|
18416
18552
|
createConditional(condition, whenTrue, whenFalse) {
|
|
18417
18553
|
return ts17.factory.createConditionalExpression(condition, undefined, whenTrue, undefined, whenFalse);
|
|
18418
18554
|
}
|
|
18419
|
-
createElementAccess = ts17.factory.createElementAccessExpression;
|
|
18420
|
-
createExpressionStatement = ts17.factory.createExpressionStatement;
|
|
18421
18555
|
createDynamicImport(url) {
|
|
18422
18556
|
return ts17.factory.createCallExpression(ts17.factory.createToken(ts17.SyntaxKind.ImportKeyword), undefined, [
|
|
18423
18557
|
typeof url === "string" ? ts17.factory.createStringLiteral(url) : url
|
|
@@ -18444,7 +18578,6 @@ class TypeScriptAstFactory {
|
|
|
18444
18578
|
createParameter(param) {
|
|
18445
18579
|
return ts17.factory.createParameterDeclaration(undefined, undefined, param.name, undefined, param.type ?? undefined);
|
|
18446
18580
|
}
|
|
18447
|
-
createIdentifier = ts17.factory.createIdentifier;
|
|
18448
18581
|
createIfStatement(condition, thenStatement, elseStatement) {
|
|
18449
18582
|
return ts17.factory.createIfStatement(condition, thenStatement, elseStatement ?? undefined);
|
|
18450
18583
|
}
|
|
@@ -18472,9 +18605,6 @@ class TypeScriptAstFactory {
|
|
|
18472
18605
|
return ts17.factory.createPropertyAssignment(prop.quoted ? ts17.factory.createStringLiteral(prop.propertyName) : ts17.factory.createIdentifier(prop.propertyName), prop.value);
|
|
18473
18606
|
}));
|
|
18474
18607
|
}
|
|
18475
|
-
createParenthesizedExpression = ts17.factory.createParenthesizedExpression;
|
|
18476
|
-
createPropertyAccess = ts17.factory.createPropertyAccessExpression;
|
|
18477
|
-
createSpreadElement = ts17.factory.createSpreadElement;
|
|
18478
18608
|
createReturnStatement(expression) {
|
|
18479
18609
|
return ts17.factory.createReturnStatement(expression ?? undefined);
|
|
18480
18610
|
}
|
|
@@ -18522,9 +18652,6 @@ class TypeScriptAstFactory {
|
|
|
18522
18652
|
}
|
|
18523
18653
|
return templateLiteral;
|
|
18524
18654
|
}
|
|
18525
|
-
createThrowStatement = ts17.factory.createThrowStatement;
|
|
18526
|
-
createTypeOfExpression = ts17.factory.createTypeOfExpression;
|
|
18527
|
-
createVoidExpression = ts17.factory.createVoidExpression;
|
|
18528
18655
|
createUnaryExpression(operator, operand) {
|
|
18529
18656
|
return ts17.factory.createPrefixUnaryExpression(this.UNARY_OPERATORS[operator], operand);
|
|
18530
18657
|
}
|
|
@@ -18652,11 +18779,11 @@ var init_typescript_translator = __esm(() => {
|
|
|
18652
18779
|
// src/dev/angular/fastHmrCompiler.ts
|
|
18653
18780
|
var exports_fastHmrCompiler = {};
|
|
18654
18781
|
__export(exports_fastHmrCompiler, {
|
|
18655
|
-
|
|
18656
|
-
takePendingModule: () => takePendingModule,
|
|
18657
|
-
recordFingerprint: () => recordFingerprint,
|
|
18782
|
+
invalidateFingerprintCache: () => invalidateFingerprintCache,
|
|
18658
18783
|
primeComponentFingerprint: () => primeComponentFingerprint,
|
|
18659
|
-
|
|
18784
|
+
recordFingerprint: () => recordFingerprint,
|
|
18785
|
+
takePendingModule: () => takePendingModule,
|
|
18786
|
+
tryFastHmr: () => tryFastHmr
|
|
18660
18787
|
});
|
|
18661
18788
|
import { existsSync as existsSync27, readFileSync as readFileSync26, statSync as statSync2 } from "fs";
|
|
18662
18789
|
import { dirname as dirname22, extname as extname9, relative as relative15, resolve as resolve30 } from "path";
|
|
@@ -20724,7 +20851,7 @@ var init_fastHmrCompiler = __esm(() => {
|
|
|
20724
20851
|
});
|
|
20725
20852
|
|
|
20726
20853
|
// node_modules/content-tag/pkg/node/content_tag.cjs
|
|
20727
|
-
var require_content_tag = __commonJS((exports, module)
|
|
20854
|
+
var require_content_tag = __commonJS(function(exports, module) {
|
|
20728
20855
|
var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/content-tag/pkg/node";
|
|
20729
20856
|
var imports = {};
|
|
20730
20857
|
imports["__wbindgen_placeholder__"] = exports;
|
|
@@ -21152,7 +21279,7 @@ ${val.stack}`;
|
|
|
21152
21279
|
});
|
|
21153
21280
|
|
|
21154
21281
|
// node_modules/content-tag/pkg/node.cjs
|
|
21155
|
-
var require_node = __commonJS((exports, module)
|
|
21282
|
+
var require_node = __commonJS(function(exports, module) {
|
|
21156
21283
|
var { Preprocessor } = require_content_tag();
|
|
21157
21284
|
exports.Preprocessor = Preprocessor;
|
|
21158
21285
|
});
|
|
@@ -21160,15 +21287,15 @@ var require_node = __commonJS((exports, module) => {
|
|
|
21160
21287
|
// src/build/compileEmber.ts
|
|
21161
21288
|
var exports_compileEmber = {};
|
|
21162
21289
|
__export(exports_compileEmber, {
|
|
21163
|
-
|
|
21164
|
-
getEmberCompiledRoot: () => getEmberCompiledRoot,
|
|
21165
|
-
getEmberClientCompiledDir: () => getEmberClientCompiledDir,
|
|
21166
|
-
dirname: () => dirname23,
|
|
21167
|
-
compileEmberFileSource: () => compileEmberFileSource,
|
|
21168
|
-
compileEmberFile: () => compileEmberFile,
|
|
21169
|
-
compileEmber: () => compileEmber,
|
|
21290
|
+
basename: () => basename13,
|
|
21170
21291
|
clearEmberCompilerCache: () => clearEmberCompilerCache,
|
|
21171
|
-
|
|
21292
|
+
compileEmber: () => compileEmber,
|
|
21293
|
+
compileEmberFile: () => compileEmberFile,
|
|
21294
|
+
compileEmberFileSource: () => compileEmberFileSource,
|
|
21295
|
+
dirname: () => dirname23,
|
|
21296
|
+
getEmberClientCompiledDir: () => getEmberClientCompiledDir,
|
|
21297
|
+
getEmberCompiledRoot: () => getEmberCompiledRoot,
|
|
21298
|
+
getEmberServerCompiledDir: () => getEmberServerCompiledDir
|
|
21172
21299
|
});
|
|
21173
21300
|
import { existsSync as existsSync28 } from "fs";
|
|
21174
21301
|
import { mkdir as mkdir11, rm as rm8 } from "fs/promises";
|
|
@@ -21419,8 +21546,8 @@ var init_compileEmber = __esm(() => {
|
|
|
21419
21546
|
// src/build/buildReactVendor.ts
|
|
21420
21547
|
var exports_buildReactVendor = {};
|
|
21421
21548
|
__export(exports_buildReactVendor, {
|
|
21422
|
-
|
|
21423
|
-
|
|
21549
|
+
buildReactVendor: () => buildReactVendor,
|
|
21550
|
+
computeVendorPaths: () => computeVendorPaths
|
|
21424
21551
|
});
|
|
21425
21552
|
import { existsSync as existsSync29, mkdirSync as mkdirSync8 } from "fs";
|
|
21426
21553
|
import { join as join40, resolve as resolve32 } from "path";
|
|
@@ -21540,12 +21667,12 @@ var init_vendorEntrySource = __esm(() => {
|
|
|
21540
21667
|
// src/build/buildAngularVendor.ts
|
|
21541
21668
|
var exports_buildAngularVendor = {};
|
|
21542
21669
|
__export(exports_buildAngularVendor, {
|
|
21543
|
-
|
|
21544
|
-
computeAngularVendorPaths: () => computeAngularVendorPaths,
|
|
21545
|
-
computeAngularServerVendorPathsAsync: () => computeAngularServerVendorPathsAsync,
|
|
21546
|
-
computeAngularServerVendorPaths: () => computeAngularServerVendorPaths,
|
|
21670
|
+
buildAngularServerVendor: () => buildAngularServerVendor,
|
|
21547
21671
|
buildAngularVendor: () => buildAngularVendor,
|
|
21548
|
-
|
|
21672
|
+
computeAngularServerVendorPaths: () => computeAngularServerVendorPaths,
|
|
21673
|
+
computeAngularServerVendorPathsAsync: () => computeAngularServerVendorPathsAsync,
|
|
21674
|
+
computeAngularVendorPaths: () => computeAngularVendorPaths,
|
|
21675
|
+
computeAngularVendorPathsAsync: () => computeAngularVendorPathsAsync
|
|
21549
21676
|
});
|
|
21550
21677
|
import { mkdirSync as mkdirSync9 } from "fs";
|
|
21551
21678
|
import { join as join41 } from "path";
|
|
@@ -21772,8 +21899,8 @@ var init_buildAngularVendor = __esm(() => {
|
|
|
21772
21899
|
// src/build/buildVueVendor.ts
|
|
21773
21900
|
var exports_buildVueVendor = {};
|
|
21774
21901
|
__export(exports_buildVueVendor, {
|
|
21775
|
-
|
|
21776
|
-
|
|
21902
|
+
buildVueVendor: () => buildVueVendor,
|
|
21903
|
+
computeVueVendorPaths: () => computeVueVendorPaths
|
|
21777
21904
|
});
|
|
21778
21905
|
import { mkdirSync as mkdirSync10 } from "fs";
|
|
21779
21906
|
import { join as join42 } from "path";
|
|
@@ -21837,8 +21964,8 @@ var init_buildVueVendor = __esm(() => {
|
|
|
21837
21964
|
// src/build/buildSvelteVendor.ts
|
|
21838
21965
|
var exports_buildSvelteVendor = {};
|
|
21839
21966
|
__export(exports_buildSvelteVendor, {
|
|
21840
|
-
|
|
21841
|
-
|
|
21967
|
+
buildSvelteVendor: () => buildSvelteVendor,
|
|
21968
|
+
computeSvelteVendorPaths: () => computeSvelteVendorPaths
|
|
21842
21969
|
});
|
|
21843
21970
|
import { mkdirSync as mkdirSync11 } from "fs";
|
|
21844
21971
|
import { join as join43 } from "path";
|
|
@@ -24086,12 +24213,12 @@ var stripStringsAndComments = (source) => {
|
|
|
24086
24213
|
// src/dev/dependencyGraph.ts
|
|
24087
24214
|
var exports_dependencyGraph = {};
|
|
24088
24215
|
__export(exports_dependencyGraph, {
|
|
24089
|
-
|
|
24090
|
-
getAffectedFiles: () => getAffectedFiles,
|
|
24091
|
-
extractDependencies: () => extractDependencies,
|
|
24092
|
-
emptyDependencyGraph: () => emptyDependencyGraph,
|
|
24216
|
+
addFileToGraph: () => addFileToGraph,
|
|
24093
24217
|
buildInitialDependencyGraph: () => buildInitialDependencyGraph,
|
|
24094
|
-
|
|
24218
|
+
emptyDependencyGraph: () => emptyDependencyGraph,
|
|
24219
|
+
extractDependencies: () => extractDependencies,
|
|
24220
|
+
getAffectedFiles: () => getAffectedFiles,
|
|
24221
|
+
removeFileFromGraph: () => removeFileFromGraph
|
|
24095
24222
|
});
|
|
24096
24223
|
import { existsSync as existsSync32, readFileSync as readFileSync28 } from "fs";
|
|
24097
24224
|
var {Glob: Glob9 } = globalThis.Bun;
|
|
@@ -24941,12 +25068,12 @@ var init_fileHashTracker = __esm(() => {
|
|
|
24941
25068
|
// src/dev/transformCache.ts
|
|
24942
25069
|
var exports_transformCache = {};
|
|
24943
25070
|
__export(exports_transformCache, {
|
|
24944
|
-
|
|
24945
|
-
invalidateAll: () => invalidateAll,
|
|
24946
|
-
invalidate: () => invalidate,
|
|
24947
|
-
getTransformed: () => getTransformed,
|
|
25071
|
+
findNearestComponent: () => findNearestComponent,
|
|
24948
25072
|
getInvalidationVersion: () => getInvalidationVersion,
|
|
24949
|
-
|
|
25073
|
+
getTransformed: () => getTransformed,
|
|
25074
|
+
invalidate: () => invalidate,
|
|
25075
|
+
invalidateAll: () => invalidateAll,
|
|
25076
|
+
setTransformed: () => setTransformed
|
|
24950
25077
|
});
|
|
24951
25078
|
var cache, importers, getTransformed = (filePath) => cache.get(filePath)?.content, setTransformed = (filePath, content, mtime, imports) => {
|
|
24952
25079
|
const resolvedImports = imports ?? [];
|
|
@@ -25247,9 +25374,9 @@ var init_inlinePageCss = __esm(() => {
|
|
|
25247
25374
|
// src/dev/angular/resolveOwningComponents.ts
|
|
25248
25375
|
var exports_resolveOwningComponents = {};
|
|
25249
25376
|
__export(exports_resolveOwningComponents, {
|
|
25250
|
-
|
|
25377
|
+
invalidateResourceIndex: () => invalidateResourceIndex,
|
|
25251
25378
|
resolveDescendantsOfParent: () => resolveDescendantsOfParent,
|
|
25252
|
-
|
|
25379
|
+
resolveOwningComponents: () => resolveOwningComponents
|
|
25253
25380
|
});
|
|
25254
25381
|
import { readdirSync as readdirSync8, readFileSync as readFileSync31, statSync as statSync5 } from "fs";
|
|
25255
25382
|
import { dirname as dirname28, extname as extname12, join as join47, resolve as resolve42 } from "path";
|
|
@@ -25523,10 +25650,10 @@ var init_resolveOwningComponents = __esm(() => {
|
|
|
25523
25650
|
// src/dev/webSocket.ts
|
|
25524
25651
|
var exports_webSocket = {};
|
|
25525
25652
|
__export(exports_webSocket, {
|
|
25526
|
-
|
|
25527
|
-
handleClientDisconnect: () => handleClientDisconnect,
|
|
25653
|
+
broadcastToClients: () => broadcastToClients,
|
|
25528
25654
|
handleClientConnect: () => handleClientConnect,
|
|
25529
|
-
|
|
25655
|
+
handleClientDisconnect: () => handleClientDisconnect,
|
|
25656
|
+
handleHMRMessage: () => handleHMRMessage
|
|
25530
25657
|
});
|
|
25531
25658
|
var MAX_RETAINED_HMR_UPDATES = 100, normalizedHmrTarget = (value) => {
|
|
25532
25659
|
if (value === "capacitor-android")
|
|
@@ -25711,14 +25838,14 @@ var init_webSocket = __esm(() => {
|
|
|
25711
25838
|
// src/dev/moduleServer.ts
|
|
25712
25839
|
var exports_moduleServer = {};
|
|
25713
25840
|
__export(exports_moduleServer, {
|
|
25714
|
-
|
|
25715
|
-
warmCompilers: () => warmCompilers,
|
|
25716
|
-
warmCache: () => warmCache,
|
|
25717
|
-
setGlobalModuleServer: () => setGlobalModuleServer,
|
|
25718
|
-
isReactFastRefreshSupported: () => isReactFastRefreshSupported,
|
|
25719
|
-
invalidateModule: () => invalidateModule,
|
|
25841
|
+
SRC_URL_PREFIX: () => SRC_URL_PREFIX,
|
|
25720
25842
|
createModuleServer: () => createModuleServer,
|
|
25721
|
-
|
|
25843
|
+
invalidateModule: () => invalidateModule,
|
|
25844
|
+
isReactFastRefreshSupported: () => isReactFastRefreshSupported,
|
|
25845
|
+
setGlobalModuleServer: () => setGlobalModuleServer,
|
|
25846
|
+
warmCache: () => warmCache,
|
|
25847
|
+
warmCompilers: () => warmCompilers,
|
|
25848
|
+
warnIfReactFastRefreshUnsupported: () => warnIfReactFastRefreshUnsupported
|
|
25722
25849
|
});
|
|
25723
25850
|
import { existsSync as existsSync35, readFileSync as readFileSync32, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
|
|
25724
25851
|
import { basename as basename16, dirname as dirname29, extname as extname13, join as join48, resolve as resolve43, relative as relative17 } from "path";
|
|
@@ -26627,8 +26754,8 @@ export function __legacyDecorateParamTS(paramIndex, decorator) {
|
|
|
26627
26754
|
// src/build/rewriteImports.ts
|
|
26628
26755
|
var exports_rewriteImports = {};
|
|
26629
26756
|
__export(exports_rewriteImports, {
|
|
26630
|
-
|
|
26631
|
-
|
|
26757
|
+
rewriteImports: () => rewriteImports2,
|
|
26758
|
+
rewriteVendorDirectories: () => rewriteVendorDirectories2
|
|
26632
26759
|
});
|
|
26633
26760
|
var rewriteImports2 = async (outputPaths, vendorPaths) => {
|
|
26634
26761
|
const jsFiles = outputPaths.filter((path) => path.endsWith(".js"));
|
|
@@ -26667,8 +26794,8 @@ var init_rewriteImports = __esm(() => {
|
|
|
26667
26794
|
// src/dev/angular/hmrCompiler.ts
|
|
26668
26795
|
var exports_hmrCompiler = {};
|
|
26669
26796
|
__export(exports_hmrCompiler, {
|
|
26670
|
-
|
|
26671
|
-
|
|
26797
|
+
encodeHmrComponentId: () => encodeHmrComponentId,
|
|
26798
|
+
getApplyMetadataModule: () => getApplyMetadataModule
|
|
26672
26799
|
});
|
|
26673
26800
|
import { dirname as dirname30, relative as relative18, resolve as resolve44 } from "path";
|
|
26674
26801
|
import { performance as performance2 } from "perf_hooks";
|
|
@@ -26839,8 +26966,8 @@ var init_pageHandler = __esm(() => {
|
|
|
26839
26966
|
// src/ember/index.ts
|
|
26840
26967
|
var exports_ember = {};
|
|
26841
26968
|
__export(exports_ember, {
|
|
26842
|
-
|
|
26843
|
-
|
|
26969
|
+
handleEmberPageRequest: () => handleEmberPageRequest,
|
|
26970
|
+
invalidateEmberSsrCache: () => invalidateEmberSsrCache
|
|
26844
26971
|
});
|
|
26845
26972
|
var init_ember = __esm(() => {
|
|
26846
26973
|
init_pageHandler();
|
|
@@ -29597,8 +29724,8 @@ var init_rebuildTrigger = __esm(() => {
|
|
|
29597
29724
|
// src/build/buildDepVendor.ts
|
|
29598
29725
|
var exports_buildDepVendor = {};
|
|
29599
29726
|
__export(exports_buildDepVendor, {
|
|
29600
|
-
|
|
29601
|
-
|
|
29727
|
+
buildDepVendor: () => buildDepVendor,
|
|
29728
|
+
computeDepVendorPaths: () => computeDepVendorPaths
|
|
29602
29729
|
});
|
|
29603
29730
|
import { mkdirSync as mkdirSync14 } from "fs";
|
|
29604
29731
|
import { isBuiltin } from "module";
|
|
@@ -29922,9 +30049,9 @@ var init_buildDepVendor = __esm(() => {
|
|
|
29922
30049
|
// src/core/devBuild.ts
|
|
29923
30050
|
var exports_devBuild = {};
|
|
29924
30051
|
__export(exports_devBuild, {
|
|
29925
|
-
|
|
30052
|
+
applyConfigChanges: () => applyConfigChanges,
|
|
29926
30053
|
collectDepVendorSourceDirs: () => collectDepVendorSourceDirs,
|
|
29927
|
-
|
|
30054
|
+
devBuild: () => devBuild
|
|
29928
30055
|
});
|
|
29929
30056
|
import { readdir as readdir6 } from "fs/promises";
|
|
29930
30057
|
import { statSync as statSync7 } from "fs";
|
|
@@ -30594,9 +30721,9 @@ var init_hmr = __esm(() => {
|
|
|
30594
30721
|
// src/plugins/devtoolsJson.ts
|
|
30595
30722
|
var exports_devtoolsJson = {};
|
|
30596
30723
|
__export(exports_devtoolsJson, {
|
|
30597
|
-
|
|
30724
|
+
devtoolsJson: () => devtoolsJson,
|
|
30598
30725
|
normalizeDevtoolsWorkspaceRoot: () => normalizeDevtoolsWorkspaceRoot,
|
|
30599
|
-
|
|
30726
|
+
resolveDevtoolsUuidCachePath: () => resolveDevtoolsUuidCachePath
|
|
30600
30727
|
});
|
|
30601
30728
|
import { existsSync as existsSync37, mkdirSync as mkdirSync15, readFileSync as readFileSync33, writeFileSync as writeFileSync10 } from "fs";
|
|
30602
30729
|
import { dirname as dirname32, join as join51, resolve as resolve48 } from "path";
|
|
@@ -30940,19 +31067,66 @@ var init_requestInspector = __esm(() => {
|
|
|
30940
31067
|
}).as("global");
|
|
30941
31068
|
});
|
|
30942
31069
|
|
|
31070
|
+
// src/mobile/nativeAuth.ts
|
|
31071
|
+
import { readFileSync as readFileSync34 } from "fs";
|
|
31072
|
+
import { join as join52 } from "path";
|
|
31073
|
+
var ABSOLUTE_AUTH_PACKAGE = "@absolutejs/auth", ABSOLUTE_EXPO_AUTH_CORE_VERSION = "0.75.6", ABSOLUTE_EXPO_AUTH_PACKAGE = "@absolutejs/auth-expo", ABSOLUTE_EXPO_AUTH_VERSION = "0.0.2", ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV = "ABSOLUTE_AUTH_NATIVE_CLIENTS", ABSOLUTE_NATIVE_AUTH_SCOPES, ABSOLUTE_SYNC_PACKAGE = "@absolutejs/sync", readPackageManifest = (projectRoot) => {
|
|
31074
|
+
try {
|
|
31075
|
+
return JSON.parse(readFileSync34(join52(projectRoot, "package.json"), "utf8"));
|
|
31076
|
+
} catch {
|
|
31077
|
+
return;
|
|
31078
|
+
}
|
|
31079
|
+
}, packageManifestHas = (manifest, packageName) => {
|
|
31080
|
+
if (typeof manifest !== "object" || manifest === null)
|
|
31081
|
+
return false;
|
|
31082
|
+
return [
|
|
31083
|
+
Reflect.get(manifest, "dependencies"),
|
|
31084
|
+
Reflect.get(manifest, "devDependencies"),
|
|
31085
|
+
Reflect.get(manifest, "optionalDependencies"),
|
|
31086
|
+
Reflect.get(manifest, "peerDependencies")
|
|
31087
|
+
].some((dependencies) => typeof dependencies === "object" && dependencies !== null && Object.hasOwn(dependencies, packageName));
|
|
31088
|
+
}, createAbsoluteMobileAuthManifest = (config) => {
|
|
31089
|
+
const scheme = config.deepLinkScheme ?? config.appId.toLowerCase();
|
|
31090
|
+
return {
|
|
31091
|
+
clientId: `absolutejs-native:${config.appId}`,
|
|
31092
|
+
issuer: config.productionOrigin,
|
|
31093
|
+
redirectUri: `${scheme}://auth/callback`,
|
|
31094
|
+
scopes: [...ABSOLUTE_NATIVE_AUTH_SCOPES]
|
|
31095
|
+
};
|
|
31096
|
+
}, installAbsoluteMobileAuthEnvironment = (projectRoot, config) => {
|
|
31097
|
+
const auth = resolveAbsoluteMobileAuthManifest(projectRoot, config);
|
|
31098
|
+
const serialized = serializeAbsoluteMobileAuthEnvironment(config, auth);
|
|
31099
|
+
if (serialized === undefined)
|
|
31100
|
+
delete process.env[ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV];
|
|
31101
|
+
else
|
|
31102
|
+
process.env[ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV] = serialized;
|
|
31103
|
+
return auth;
|
|
31104
|
+
}, projectUsesAbsoluteAuth = (projectRoot) => packageManifestHas(readPackageManifest(projectRoot), ABSOLUTE_AUTH_PACKAGE), projectUsesAbsoluteSync = (projectRoot) => packageManifestHas(readPackageManifest(projectRoot), ABSOLUTE_SYNC_PACKAGE), resolveAbsoluteMobileAuthManifest = (projectRoot, config) => projectUsesAbsoluteAuth(projectRoot) ? createAbsoluteMobileAuthManifest(config) : undefined, serializeAbsoluteMobileAuthEnvironment = (config, auth) => auth === undefined ? undefined : JSON.stringify([
|
|
31105
|
+
{
|
|
31106
|
+
...auth,
|
|
31107
|
+
name: `${config.appName} native app`
|
|
31108
|
+
}
|
|
31109
|
+
]);
|
|
31110
|
+
var init_nativeAuth = __esm(() => {
|
|
31111
|
+
ABSOLUTE_NATIVE_AUTH_SCOPES = ["openid", "profile"];
|
|
31112
|
+
});
|
|
31113
|
+
|
|
30943
31114
|
// src/mobile/devDeviceAdapter.ts
|
|
30944
31115
|
var exports_devDeviceAdapter = {};
|
|
30945
31116
|
__export(exports_devDeviceAdapter, {
|
|
30946
|
-
|
|
30947
|
-
|
|
31117
|
+
absoluteNativeDevAdapterSource: () => absoluteNativeDevAdapterSource,
|
|
31118
|
+
buildAbsoluteNativeDevAdapter: () => buildAbsoluteNativeDevAdapter
|
|
30948
31119
|
});
|
|
30949
31120
|
import { access as access3, mkdtemp as mkdtemp3, rm as rm15, writeFile as writeFile9 } from "fs/promises";
|
|
30950
|
-
import { join as
|
|
31121
|
+
import { join as join53 } from "path";
|
|
30951
31122
|
import { tmpdir } from "os";
|
|
30952
|
-
var absoluteNativeDevAdapterSource = (projectRoot, mobile, resolveModule = (specifier) => specifier, expoAdapterModule = "@absolutejs/absolute/mobile/expo-devices") => {
|
|
31123
|
+
var absoluteNativeDevAdapterSource = (projectRoot, mobile, resolveModule = (specifier) => specifier, expoAdapterModule = "@absolutejs/absolute/mobile/expo-devices", expoAuthModule = "@absolutejs/absolute/mobile/expo-auth") => {
|
|
30953
31124
|
if ((mobile.engine ?? "capacitor") === "expo") {
|
|
31125
|
+
const auth = projectUsesAbsoluteAuth(projectRoot) ? resolveAbsoluteMobileAuthManifest(projectRoot, normalizeAbsoluteMobileConfig(mobile, projectRoot)) : undefined;
|
|
30954
31126
|
return `import { installAbsoluteExpoWebDeviceAdapter } from ${JSON.stringify(expoAdapterModule)};
|
|
30955
|
-
|
|
31127
|
+
${auth ? `import { createAbsoluteExpoShellAuth } from ${JSON.stringify(expoAuthModule)};` : ""}
|
|
31128
|
+
installAbsoluteExpoWebDeviceAdapter();
|
|
31129
|
+
${auth ? `void createAbsoluteExpoShellAuth(${JSON.stringify(auth)}).catch(error => console.error('[Absolute Mobile] Expo Auth initialization failed:', error));` : ""}`;
|
|
30956
31130
|
}
|
|
30957
31131
|
const plan = resolveAbsoluteDeviceCapabilityPlan(projectRoot);
|
|
30958
31132
|
const imports = plan.capabilities.map((name, index) => {
|
|
@@ -30970,7 +31144,7 @@ installAbsoluteExpoWebDeviceAdapter();`;
|
|
|
30970
31144
|
`);
|
|
30971
31145
|
}, expoAdapterPath = async () => {
|
|
30972
31146
|
const candidates = await Promise.all(["ts", "js"].map(async (extension) => {
|
|
30973
|
-
const path2 =
|
|
31147
|
+
const path2 = join53(import.meta.dir, `shellExpoDevices.${extension}`);
|
|
30974
31148
|
try {
|
|
30975
31149
|
await access3(path2);
|
|
30976
31150
|
return path2;
|
|
@@ -30982,11 +31156,25 @@ installAbsoluteExpoWebDeviceAdapter();`;
|
|
|
30982
31156
|
if (path)
|
|
30983
31157
|
return path;
|
|
30984
31158
|
throw new TypeError("The AbsoluteJS Expo development adapter is missing.");
|
|
31159
|
+
}, expoAuthPath = async () => {
|
|
31160
|
+
const candidates = await Promise.all(["ts", "js"].map(async (extension) => {
|
|
31161
|
+
const path2 = join53(import.meta.dir, `shellExpoAuth.${extension}`);
|
|
31162
|
+
try {
|
|
31163
|
+
await access3(path2);
|
|
31164
|
+
return path2;
|
|
31165
|
+
} catch {
|
|
31166
|
+
return;
|
|
31167
|
+
}
|
|
31168
|
+
}));
|
|
31169
|
+
const path = candidates.find((candidate) => candidate !== undefined);
|
|
31170
|
+
if (path)
|
|
31171
|
+
return path;
|
|
31172
|
+
throw new TypeError("The AbsoluteJS Expo Auth development adapter is missing.");
|
|
30985
31173
|
}, buildAbsoluteNativeDevAdapter = async (projectRoot, mobile) => {
|
|
30986
|
-
const temporaryDirectory = await mkdtemp3(
|
|
30987
|
-
const entry =
|
|
31174
|
+
const temporaryDirectory = await mkdtemp3(join53(tmpdir(), "absolutejs-native-dev-adapter-"));
|
|
31175
|
+
const entry = join53(temporaryDirectory, "entry.ts");
|
|
30988
31176
|
try {
|
|
30989
|
-
await writeFile9(entry, absoluteNativeDevAdapterSource(projectRoot, mobile, (specifier) => Bun.resolveSync(specifier, projectRoot), await expoAdapterPath()));
|
|
31177
|
+
await writeFile9(entry, absoluteNativeDevAdapterSource(projectRoot, mobile, (specifier) => Bun.resolveSync(specifier, projectRoot), await expoAdapterPath(), await expoAuthPath()));
|
|
30990
31178
|
const result = await Bun.build({
|
|
30991
31179
|
entrypoints: [entry],
|
|
30992
31180
|
format: "esm",
|
|
@@ -31002,28 +31190,30 @@ installAbsoluteExpoWebDeviceAdapter();`;
|
|
|
31002
31190
|
}
|
|
31003
31191
|
};
|
|
31004
31192
|
var init_devDeviceAdapter = __esm(() => {
|
|
31193
|
+
init_config();
|
|
31005
31194
|
init_deviceCapabilities();
|
|
31195
|
+
init_nativeAuth();
|
|
31006
31196
|
});
|
|
31007
31197
|
|
|
31008
31198
|
// src/core/prerender.ts
|
|
31009
31199
|
var exports_prerender = {};
|
|
31010
31200
|
__export(exports_prerender, {
|
|
31011
|
-
|
|
31012
|
-
rerenderRoute: () => rerenderRoute,
|
|
31013
|
-
readTimestamp: () => readTimestamp,
|
|
31014
|
-
prerenderWithServer: () => prerenderWithServer,
|
|
31201
|
+
PRERENDER_BYPASS_HEADER: () => PRERENDER_BYPASS_HEADER,
|
|
31015
31202
|
prerender: () => prerender,
|
|
31016
|
-
|
|
31203
|
+
prerenderWithServer: () => prerenderWithServer,
|
|
31204
|
+
readTimestamp: () => readTimestamp,
|
|
31205
|
+
rerenderRoute: () => rerenderRoute,
|
|
31206
|
+
routeToFilename: () => routeToFilename
|
|
31017
31207
|
});
|
|
31018
|
-
import { mkdirSync as mkdirSync16, readFileSync as
|
|
31019
|
-
import { join as
|
|
31208
|
+
import { mkdirSync as mkdirSync16, readFileSync as readFileSync35 } from "fs";
|
|
31209
|
+
import { join as join54 } from "path";
|
|
31020
31210
|
var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_TIMEOUT_MS = 30000, DEFAULT_FETCH_TIMEOUT_MS = 1e4, PRERENDER_BYPASS_HEADER = "X-Absolute-Prerender-Bypass", routeToFilename = (route) => route === "/" ? "index.html" : `${route.slice(1).replace(/\//g, "-")}.html`, writeTimestamp = async (htmlPath) => {
|
|
31021
31211
|
const metaPath = htmlPath.replace(/\.html$/, ".meta");
|
|
31022
31212
|
await Bun.write(metaPath, String(Date.now()));
|
|
31023
31213
|
}, readTimestamp = (htmlPath) => {
|
|
31024
31214
|
const metaPath = htmlPath.replace(/\.html$/, ".meta");
|
|
31025
31215
|
try {
|
|
31026
|
-
const content =
|
|
31216
|
+
const content = readFileSync35(metaPath, "utf-8");
|
|
31027
31217
|
return Number(content) || 0;
|
|
31028
31218
|
} catch {
|
|
31029
31219
|
return 0;
|
|
@@ -31086,7 +31276,7 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
|
|
|
31086
31276
|
if (!isCompleteHtml(html))
|
|
31087
31277
|
return false;
|
|
31088
31278
|
const fileName = routeToFilename(route);
|
|
31089
|
-
const filePath =
|
|
31279
|
+
const filePath = join54(prerenderDir, fileName);
|
|
31090
31280
|
await Bun.write(filePath, html);
|
|
31091
31281
|
await writeTimestamp(filePath);
|
|
31092
31282
|
return true;
|
|
@@ -31116,13 +31306,13 @@ var SERVER_OUTPUT_LIMIT = 4000, STARTUP_POLL_INTERVAL_MS = 100, DEFAULT_STARTUP_
|
|
|
31116
31306
|
return;
|
|
31117
31307
|
}
|
|
31118
31308
|
const fileName = routeToFilename(route);
|
|
31119
|
-
const filePath =
|
|
31309
|
+
const filePath = join54(prerenderDir, fileName);
|
|
31120
31310
|
await Bun.write(filePath, html);
|
|
31121
31311
|
await writeTimestamp(filePath);
|
|
31122
31312
|
result.routes.set(route, filePath);
|
|
31123
31313
|
log2?.(` Pre-rendered ${route} \u2192 ${fileName} (${html.length} bytes)`);
|
|
31124
31314
|
}, prerender = async (port, outDir, staticConfig, log2) => {
|
|
31125
|
-
const prerenderDir =
|
|
31315
|
+
const prerenderDir = join54(outDir, "_prerendered");
|
|
31126
31316
|
mkdirSync16(prerenderDir, { recursive: true });
|
|
31127
31317
|
const baseUrl = `http://localhost:${port}`;
|
|
31128
31318
|
let routes;
|
|
@@ -31235,23 +31425,23 @@ var init_prerender = () => {};
|
|
|
31235
31425
|
// src/dev/serverEntryWatcher.ts
|
|
31236
31426
|
var exports_serverEntryWatcher = {};
|
|
31237
31427
|
__export(exports_serverEntryWatcher, {
|
|
31238
|
-
|
|
31428
|
+
isAtomicWriteTemp: () => isAtomicWriteTemp,
|
|
31239
31429
|
startFilePollingFallback: () => startFilePollingFallback,
|
|
31240
|
-
|
|
31430
|
+
startServerEntryWatcher: () => startServerEntryWatcher
|
|
31241
31431
|
});
|
|
31242
31432
|
import {
|
|
31243
31433
|
copyFileSync as copyFileSync4,
|
|
31244
31434
|
existsSync as existsSync41,
|
|
31245
31435
|
readdirSync as readdirSync12,
|
|
31246
|
-
readFileSync as
|
|
31436
|
+
readFileSync as readFileSync39,
|
|
31247
31437
|
statSync as statSync8,
|
|
31248
31438
|
watch as watch2
|
|
31249
31439
|
} from "fs";
|
|
31250
31440
|
import { createHash as createHash9 } from "crypto";
|
|
31251
|
-
import { dirname as dirname33, join as
|
|
31441
|
+
import { dirname as dirname33, join as join58, resolve as resolve50 } from "path";
|
|
31252
31442
|
var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETRY_DELAY_MS = 250, MAX_ENTRY_IMPORT_ATTEMPTS = 3, WATCH_FALLBACK_INTERVAL_MS = 250, ATOMIC_WRITE_TEMP_PATTERNS2, isAtomicWriteTemp = (filename) => filename.endsWith(".tmp") || filename.includes(".tmp.") || filename.endsWith("~") || filename.startsWith(".#") || filename.startsWith(".absolutejs-hmr-") || ATOMIC_WRITE_TEMP_PATTERNS2.some((pattern) => pattern.test(filename)), fileHash = (path) => {
|
|
31253
31443
|
try {
|
|
31254
|
-
return createHash9("sha256").update(
|
|
31444
|
+
return createHash9("sha256").update(readFileSync39(path)).digest("hex");
|
|
31255
31445
|
} catch {
|
|
31256
31446
|
return null;
|
|
31257
31447
|
}
|
|
@@ -31290,7 +31480,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
|
|
|
31290
31480
|
let pendingEntryCause = null;
|
|
31291
31481
|
let siblingSequence = 0;
|
|
31292
31482
|
const importFreshEntry = async (attempt = 1) => {
|
|
31293
|
-
const siblingPath =
|
|
31483
|
+
const siblingPath = join58(entryDir, `.absolutejs-hmr-${process.pid}-${siblingSequence++}.ts`);
|
|
31294
31484
|
let failure;
|
|
31295
31485
|
try {
|
|
31296
31486
|
copyFileSync4(entryPath, siblingPath);
|
|
@@ -31403,7 +31593,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ENTRY_IMPORT_RETR
|
|
|
31403
31593
|
continue;
|
|
31404
31594
|
let st2;
|
|
31405
31595
|
try {
|
|
31406
|
-
st2 = statSync8(
|
|
31596
|
+
st2 = statSync8(join58(dir, entry.name));
|
|
31407
31597
|
} catch {
|
|
31408
31598
|
continue;
|
|
31409
31599
|
}
|
|
@@ -32271,8 +32461,8 @@ var handleHTMXPageRequest = async (pagePath, options = {}) => {
|
|
|
32271
32461
|
};
|
|
32272
32462
|
// src/core/prepare.ts
|
|
32273
32463
|
import { createHash as createHash8 } from "crypto";
|
|
32274
|
-
import { existsSync as existsSync39, readdirSync as readdirSync10, readFileSync as
|
|
32275
|
-
import { basename as basename18, join as
|
|
32464
|
+
import { existsSync as existsSync39, readdirSync as readdirSync10, readFileSync as readFileSync36 } from "fs";
|
|
32465
|
+
import { basename as basename18, join as join55, relative as relative20, resolve as resolvePath4 } from "path";
|
|
32276
32466
|
import { Elysia as Elysia10, NotFound } from "elysia";
|
|
32277
32467
|
|
|
32278
32468
|
// src/plugins/openApiPlugin.ts
|
|
@@ -32802,6 +32992,7 @@ var createAbsoluteMobileCompatibilityDispatcher = (options) => {
|
|
|
32802
32992
|
};
|
|
32803
32993
|
|
|
32804
32994
|
// src/mobile/associationFiles.ts
|
|
32995
|
+
init_config();
|
|
32805
32996
|
import {
|
|
32806
32997
|
access,
|
|
32807
32998
|
mkdir as mkdir5,
|
|
@@ -32812,147 +33003,6 @@ import {
|
|
|
32812
33003
|
} from "fs/promises";
|
|
32813
33004
|
import { resolve as resolve12 } from "path";
|
|
32814
33005
|
import { Elysia as Elysia3 } from "elysia";
|
|
32815
|
-
|
|
32816
|
-
// src/mobile/config.ts
|
|
32817
|
-
import { resolve as resolve11 } from "path";
|
|
32818
|
-
var APP_ID_PATTERN = /^[A-Za-z][\w]*(?:\.[A-Za-z][\w]*)+$/;
|
|
32819
|
-
var SCHEME_PATTERN = /^[a-z][a-z0-9+.-]*$/;
|
|
32820
|
-
var APPLE_APP_ID_PREFIX_PATTERN = /^[A-Z0-9]{10}$/;
|
|
32821
|
-
var CERTIFICATE_FINGERPRINT_PATTERN = /^[0-9A-F]{64}$/;
|
|
32822
|
-
var HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/;
|
|
32823
|
-
var resolveProjectPath = (projectRoot, value, field) => {
|
|
32824
|
-
const root = resolve11(projectRoot);
|
|
32825
|
-
const path = resolve11(root, value);
|
|
32826
|
-
if (path !== root && !path.startsWith(`${root}/`)) {
|
|
32827
|
-
throw new TypeError(`${field} must remain inside the project root.`);
|
|
32828
|
-
}
|
|
32829
|
-
return path;
|
|
32830
|
-
};
|
|
32831
|
-
var requireText = (value, field) => {
|
|
32832
|
-
const normalized = value.trim();
|
|
32833
|
-
if (!normalized)
|
|
32834
|
-
throw new TypeError(`${field} must not be empty.`);
|
|
32835
|
-
return normalized;
|
|
32836
|
-
};
|
|
32837
|
-
var normalizeEntry = (entry) => {
|
|
32838
|
-
const normalized = requireText(entry ?? "/", "mobile.entry");
|
|
32839
|
-
if (!normalized.startsWith("/") || normalized.startsWith("//")) {
|
|
32840
|
-
throw new TypeError("mobile.entry must be an absolute application path.");
|
|
32841
|
-
}
|
|
32842
|
-
return normalized;
|
|
32843
|
-
};
|
|
32844
|
-
var normalizeProductionOrigin = (value) => {
|
|
32845
|
-
const parsed = new URL(requireText(value, "mobile.server.productionOrigin"));
|
|
32846
|
-
const isLoopbackHttp = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1" || parsed.hostname === "[::1]");
|
|
32847
|
-
if (parsed.protocol !== "https:" && !isLoopbackHttp) {
|
|
32848
|
-
throw new TypeError("mobile.server.productionOrigin must use HTTPS, except for a loopback development origin.");
|
|
32849
|
-
}
|
|
32850
|
-
if (parsed.username || parsed.password || parsed.pathname !== "/" || parsed.search || parsed.hash) {
|
|
32851
|
-
throw new TypeError("mobile.server.productionOrigin must be an origin without credentials, path, query, or hash.");
|
|
32852
|
-
}
|
|
32853
|
-
return parsed.origin;
|
|
32854
|
-
};
|
|
32855
|
-
var normalizePlatforms = (platforms) => {
|
|
32856
|
-
const normalized = [
|
|
32857
|
-
...new Set(platforms ?? ["ios", "android"])
|
|
32858
|
-
];
|
|
32859
|
-
if (normalized.length === 0) {
|
|
32860
|
-
throw new TypeError("mobile.platforms must contain at least one platform.");
|
|
32861
|
-
}
|
|
32862
|
-
return normalized;
|
|
32863
|
-
};
|
|
32864
|
-
var normalizeHosts = (hosts, productionOrigin) => {
|
|
32865
|
-
const normalizeHostname = (host) => {
|
|
32866
|
-
const value = requireText(host, "mobile.deepLinks.hosts").toLowerCase();
|
|
32867
|
-
if (!HOSTNAME_PATTERN.test(value)) {
|
|
32868
|
-
throw new TypeError("mobile.deepLinks.hosts entries must be valid hostnames without ports, wildcards, or paths.");
|
|
32869
|
-
}
|
|
32870
|
-
return value;
|
|
32871
|
-
};
|
|
32872
|
-
const productionHostname = new URL(productionOrigin).hostname;
|
|
32873
|
-
const normalized = new Set(productionHostname === "[::1]" ? [] : [normalizeHostname(productionHostname)]);
|
|
32874
|
-
for (const host of hosts ?? []) {
|
|
32875
|
-
normalized.add(normalizeHostname(host));
|
|
32876
|
-
}
|
|
32877
|
-
return [...normalized].sort();
|
|
32878
|
-
};
|
|
32879
|
-
var normalizeAppleAppIdPrefix = (value) => {
|
|
32880
|
-
if (value === undefined)
|
|
32881
|
-
return;
|
|
32882
|
-
const normalized = requireText(value, "mobile.deepLinks.apple.appIdPrefix").toUpperCase();
|
|
32883
|
-
if (!APPLE_APP_ID_PREFIX_PATTERN.test(normalized)) {
|
|
32884
|
-
throw new TypeError("mobile.deepLinks.apple.appIdPrefix must contain ten letters or digits.");
|
|
32885
|
-
}
|
|
32886
|
-
return normalized;
|
|
32887
|
-
};
|
|
32888
|
-
var normalizeIosVersion = (value) => {
|
|
32889
|
-
if (value === undefined)
|
|
32890
|
-
return;
|
|
32891
|
-
const normalized = requireText(value, "mobile.ios.version");
|
|
32892
|
-
if (!/^\d+(?:\.\d+){0,2}$/u.test(normalized)) {
|
|
32893
|
-
throw new TypeError("mobile.ios.version must contain one to three dot-separated integer components, for example 1.4.0.");
|
|
32894
|
-
}
|
|
32895
|
-
return normalized;
|
|
32896
|
-
};
|
|
32897
|
-
var normalizeCertificateFingerprints = (values) => [
|
|
32898
|
-
...new Set((values ?? []).map((value) => requireText(value, "mobile.deepLinks.android.sha256CertificateFingerprints").replaceAll(":", "").toUpperCase()).map((value) => {
|
|
32899
|
-
if (!CERTIFICATE_FINGERPRINT_PATTERN.test(value)) {
|
|
32900
|
-
throw new TypeError("mobile.deepLinks.android.sha256CertificateFingerprints entries must be SHA-256 certificate fingerprints.");
|
|
32901
|
-
}
|
|
32902
|
-
return value.match(/.{2}/g)?.join(":") ?? value;
|
|
32903
|
-
}))
|
|
32904
|
-
].sort();
|
|
32905
|
-
var normalizeExpoNativeRoutes = (config, projectRoot) => {
|
|
32906
|
-
if (config.engine !== "expo")
|
|
32907
|
-
return {};
|
|
32908
|
-
const routes = config.routes?.native ?? {};
|
|
32909
|
-
const normalized = {};
|
|
32910
|
-
for (const [route, module] of Object.entries(routes)) {
|
|
32911
|
-
const path = normalizeEntry(route);
|
|
32912
|
-
if (path.includes("?") || path.includes("#") || path !== "/" && path.endsWith("/")) {
|
|
32913
|
-
throw new TypeError(`mobile.routes.native route ${path} must be a canonical path without a query, fragment, or trailing slash.`);
|
|
32914
|
-
}
|
|
32915
|
-
if (path === "/__absolute/native") {
|
|
32916
|
-
throw new TypeError("mobile.routes.native reserves /__absolute/native for the Expo diagnostic screen.");
|
|
32917
|
-
}
|
|
32918
|
-
if (path.includes("*") || path.includes(":")) {
|
|
32919
|
-
throw new TypeError(`mobile.routes.native route ${path} must be static during the Expo experiment; parameters and wildcards are not supported yet.`);
|
|
32920
|
-
}
|
|
32921
|
-
normalized[path] = resolveProjectPath(projectRoot, requireText(module, `mobile.routes.native[${path}]`), `mobile.routes.native[${path}]`);
|
|
32922
|
-
}
|
|
32923
|
-
return Object.fromEntries(Object.entries(normalized).sort(([left], [right]) => left.localeCompare(right)));
|
|
32924
|
-
};
|
|
32925
|
-
var normalizeAbsoluteMobileConfig = (config, projectRoot) => {
|
|
32926
|
-
const appId = requireText(config.appId, "mobile.appId");
|
|
32927
|
-
if (!APP_ID_PATTERN.test(appId)) {
|
|
32928
|
-
throw new TypeError("mobile.appId must use reverse-domain notation, for example com.example.app.");
|
|
32929
|
-
}
|
|
32930
|
-
const productionOrigin = normalizeProductionOrigin(config.server.productionOrigin);
|
|
32931
|
-
const deepLinkScheme = (config.deepLinks?.scheme ?? appId).trim().toLowerCase();
|
|
32932
|
-
if (deepLinkScheme && !SCHEME_PATTERN.test(deepLinkScheme)) {
|
|
32933
|
-
throw new TypeError("mobile.deepLinks.scheme is not a valid URL scheme.");
|
|
32934
|
-
}
|
|
32935
|
-
return {
|
|
32936
|
-
androidCertificateFingerprints: normalizeCertificateFingerprints(config.deepLinks?.android?.sha256CertificateFingerprints),
|
|
32937
|
-
appId,
|
|
32938
|
-
appleAppIdPrefix: normalizeAppleAppIdPrefix(config.deepLinks?.apple?.appIdPrefix),
|
|
32939
|
-
appName: requireText(config.appName, "mobile.appName"),
|
|
32940
|
-
bundleDirectory: resolveProjectPath(projectRoot, config.bundleDirectory ?? ".absolutejs/mobile/web", "mobile.bundleDirectory"),
|
|
32941
|
-
deepLinkHosts: normalizeHosts(config.deepLinks?.hosts, productionOrigin),
|
|
32942
|
-
deepLinkScheme,
|
|
32943
|
-
engine: config.engine ?? "capacitor",
|
|
32944
|
-
entry: normalizeEntry(config.entry),
|
|
32945
|
-
expoNativeRoutes: normalizeExpoNativeRoutes(config, projectRoot),
|
|
32946
|
-
...config.engine === "expo" ? { expoSdkVersion: config.expo?.sdkVersion ?? 57 } : {},
|
|
32947
|
-
iosVersion: normalizeIosVersion(config.ios?.version),
|
|
32948
|
-
nativeProjectDirectory: resolveProjectPath(projectRoot, config.nativeProject?.directory ?? (config.engine === "expo" ? ".absolutejs/mobile/expo" : "mobile"), "mobile.nativeProject.directory"),
|
|
32949
|
-
platforms: normalizePlatforms(config.platforms),
|
|
32950
|
-
productionOrigin,
|
|
32951
|
-
pushAndroidGoogleServicesFile: resolveProjectPath(projectRoot, config.pushNotifications?.android?.googleServicesFile ?? "google-services.json", "mobile.pushNotifications.android.googleServicesFile")
|
|
32952
|
-
};
|
|
32953
|
-
};
|
|
32954
|
-
|
|
32955
|
-
// src/mobile/associationFiles.ts
|
|
32956
33006
|
var JSON_HEADERS = {
|
|
32957
33007
|
"cache-control": "public, max-age=300, must-revalidate",
|
|
32958
33008
|
"content-type": "application/json; charset=utf-8"
|
|
@@ -33773,10 +33823,10 @@ var registerIconVersioning = (buildDir) => {
|
|
|
33773
33823
|
if (cached !== undefined)
|
|
33774
33824
|
return cached;
|
|
33775
33825
|
const path = href.split("?")[0] ?? href;
|
|
33776
|
-
const filePath =
|
|
33826
|
+
const filePath = join55(buildDir, path);
|
|
33777
33827
|
let versioned = href;
|
|
33778
33828
|
if (existsSync39(filePath)) {
|
|
33779
|
-
const hash = createHash8("sha256").update(
|
|
33829
|
+
const hash = createHash8("sha256").update(readFileSync36(filePath)).digest("hex").slice(0, ICON_HASH_LENGTH);
|
|
33780
33830
|
versioned = href.includes("?") ? `${href}&v=${hash}` : `${href}?v=${hash}`;
|
|
33781
33831
|
}
|
|
33782
33832
|
cache2.set(href, versioned);
|
|
@@ -33912,13 +33962,13 @@ var loadPrerenderMap = (prerenderDir) => {
|
|
|
33912
33962
|
continue;
|
|
33913
33963
|
const name = basename18(entry, ".html");
|
|
33914
33964
|
const route = name === "index" ? "/" : `/${name}`;
|
|
33915
|
-
map.set(route,
|
|
33965
|
+
map.set(route, join55(prerenderDir, entry));
|
|
33916
33966
|
}
|
|
33917
33967
|
return map;
|
|
33918
33968
|
};
|
|
33919
33969
|
var loadMobileCompatibilityPlugin = async (buildDir) => {
|
|
33920
|
-
const root =
|
|
33921
|
-
if (!existsSync39(
|
|
33970
|
+
const root = join55(buildDir, ".absolutejs", "mobile-compatibility");
|
|
33971
|
+
if (!existsSync39(join55(root, "current.json"))) {
|
|
33922
33972
|
return new Elysia10({ name: "absolutejs-mobile-compatibility-empty" });
|
|
33923
33973
|
}
|
|
33924
33974
|
const options = await loadAbsoluteMobileMaterializedBundle(root);
|
|
@@ -33971,7 +34021,7 @@ var prepare = async (configOrPath) => {
|
|
|
33971
34021
|
return result;
|
|
33972
34022
|
}
|
|
33973
34023
|
stepStartedAt = performance.now();
|
|
33974
|
-
const manifest = JSON.parse(
|
|
34024
|
+
const manifest = JSON.parse(readFileSync36(`${buildDir}/manifest.json`, "utf-8"));
|
|
33975
34025
|
setCurrentIslandManifest(manifest);
|
|
33976
34026
|
if (config.islands?.registry) {
|
|
33977
34027
|
setCurrentIslandRegistry(await loadIslandRegistry(config.islands.registry));
|
|
@@ -33979,14 +34029,14 @@ var prepare = async (configOrPath) => {
|
|
|
33979
34029
|
setCurrentPageIslandMetadata(await loadPageIslandMetadata(config));
|
|
33980
34030
|
recordStep("load production manifest and island metadata", stepStartedAt);
|
|
33981
34031
|
stepStartedAt = performance.now();
|
|
33982
|
-
const conventionsPath =
|
|
34032
|
+
const conventionsPath = join55(buildDir, "conventions.json");
|
|
33983
34033
|
if (existsSync39(conventionsPath)) {
|
|
33984
|
-
const conventions2 = JSON.parse(
|
|
34034
|
+
const conventions2 = JSON.parse(readFileSync36(conventionsPath, "utf-8"));
|
|
33985
34035
|
setConventions(conventions2);
|
|
33986
34036
|
}
|
|
33987
|
-
const spaRoutesPath =
|
|
34037
|
+
const spaRoutesPath = join55(buildDir, "spa-routes.json");
|
|
33988
34038
|
if (existsSync39(spaRoutesPath)) {
|
|
33989
|
-
setSpaRouteManifest(JSON.parse(
|
|
34039
|
+
setSpaRouteManifest(JSON.parse(readFileSync36(spaRoutesPath, "utf-8")));
|
|
33990
34040
|
}
|
|
33991
34041
|
recordStep("load production conventions", stepStartedAt);
|
|
33992
34042
|
stepStartedAt = performance.now();
|
|
@@ -33997,7 +34047,7 @@ var prepare = async (configOrPath) => {
|
|
|
33997
34047
|
prefix: "",
|
|
33998
34048
|
staticLimit: MAX_STATIC_ROUTE_COUNT
|
|
33999
34049
|
});
|
|
34000
|
-
const generatedAssetsRoot =
|
|
34050
|
+
const generatedAssetsRoot = join55(buildDir, ".absolutejs");
|
|
34001
34051
|
const generatedAssetsPlugin = new Elysia10({
|
|
34002
34052
|
name: "absolutejs-generated-assets"
|
|
34003
34053
|
}).get("/.absolutejs/*", async ({ params, set }) => {
|
|
@@ -34035,7 +34085,7 @@ var prepare = async (configOrPath) => {
|
|
|
34035
34085
|
responseValue.headers.set("cache-control", isFingerprintedAsset(pathname) ? "public, max-age=31536000, immutable" : "public, max-age=0, must-revalidate");
|
|
34036
34086
|
});
|
|
34037
34087
|
stepStartedAt = performance.now();
|
|
34038
|
-
const prerenderDir =
|
|
34088
|
+
const prerenderDir = join55(buildDir, "_prerendered");
|
|
34039
34089
|
const prerenderMap = loadPrerenderMap(prerenderDir);
|
|
34040
34090
|
const mobileCompatibilityPlugin = await loadMobileCompatibilityPlugin(buildDir);
|
|
34041
34091
|
const mobileAssociationPlugin = createAbsoluteMobileAssociationPlugin(config.mobile, process.cwd(), { requireAll: true });
|
|
@@ -34105,15 +34155,15 @@ import {
|
|
|
34105
34155
|
copyFileSync as copyFileSync3,
|
|
34106
34156
|
existsSync as existsSync40,
|
|
34107
34157
|
mkdirSync as mkdirSync17,
|
|
34108
|
-
readFileSync as
|
|
34158
|
+
readFileSync as readFileSync37,
|
|
34109
34159
|
rmSync as rmSync4
|
|
34110
34160
|
} from "fs";
|
|
34111
34161
|
import { X509Certificate } from "crypto";
|
|
34112
34162
|
import { isIP } from "net";
|
|
34113
|
-
import { join as
|
|
34114
|
-
var CERT_DIR =
|
|
34115
|
-
var CERT_PATH =
|
|
34116
|
-
var KEY_PATH =
|
|
34163
|
+
import { join as join56 } from "path";
|
|
34164
|
+
var CERT_DIR = join56(process.cwd(), ".absolutejs");
|
|
34165
|
+
var CERT_PATH = join56(CERT_DIR, "cert.pem");
|
|
34166
|
+
var KEY_PATH = join56(CERT_DIR, "key.pem");
|
|
34117
34167
|
var CERT_VALIDITY_DAYS = 365;
|
|
34118
34168
|
var DEFAULT_CERTIFICATE_HOSTS = ["localhost", "127.0.0.1", "::1"];
|
|
34119
34169
|
var CERTIFICATE_HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?))*$/u;
|
|
@@ -34135,7 +34185,7 @@ var normalizeDevCertificateHosts = (hosts = []) => {
|
|
|
34135
34185
|
};
|
|
34136
34186
|
var certificateIsUsable = (hosts) => {
|
|
34137
34187
|
try {
|
|
34138
|
-
const certPem =
|
|
34188
|
+
const certPem = readFileSync37(CERT_PATH, "utf-8");
|
|
34139
34189
|
const certificate = new X509Certificate(certPem);
|
|
34140
34190
|
if (new Date(certificate.validTo).getTime() <= Date.now())
|
|
34141
34191
|
return false;
|
|
@@ -34227,8 +34277,8 @@ var loadDevCert = (hosts = []) => {
|
|
|
34227
34277
|
return null;
|
|
34228
34278
|
try {
|
|
34229
34279
|
return {
|
|
34230
|
-
cert:
|
|
34231
|
-
key:
|
|
34280
|
+
cert: readFileSync37(paths.cert, "utf-8"),
|
|
34281
|
+
key: readFileSync37(paths.key, "utf-8")
|
|
34232
34282
|
};
|
|
34233
34283
|
} catch {
|
|
34234
34284
|
return null;
|
|
@@ -34238,18 +34288,18 @@ var loadDevCert = (hosts = []) => {
|
|
|
34238
34288
|
// src/utils/instanceRegistry.ts
|
|
34239
34289
|
import {
|
|
34240
34290
|
mkdirSync as mkdirSync18,
|
|
34241
|
-
readFileSync as
|
|
34291
|
+
readFileSync as readFileSync38,
|
|
34242
34292
|
readdirSync as readdirSync11,
|
|
34243
34293
|
unlinkSync as unlinkSync2,
|
|
34244
34294
|
writeFileSync as writeFileSync11
|
|
34245
34295
|
} from "fs";
|
|
34246
34296
|
import { homedir as homedir2 } from "os";
|
|
34247
|
-
import { basename as basename19, join as
|
|
34297
|
+
import { basename as basename19, join as join57 } from "path";
|
|
34248
34298
|
var registeredPids = new Set;
|
|
34249
34299
|
var exitHandlerRegistered = false;
|
|
34250
|
-
var instanceFilePath = (pid) =>
|
|
34251
|
-
var instanceLogPath = (pid) =>
|
|
34252
|
-
var instanceRegistryDir = () =>
|
|
34300
|
+
var instanceFilePath = (pid) => join57(instanceRegistryDir(), `${pid}.json`);
|
|
34301
|
+
var instanceLogPath = (pid) => join57(instanceRegistryDir(), `${pid}.log`);
|
|
34302
|
+
var instanceRegistryDir = () => join57(homedir2(), ".absolutejs", "instances");
|
|
34253
34303
|
var removeInstanceFilesSync = (pid) => {
|
|
34254
34304
|
try {
|
|
34255
34305
|
unlinkSync2(instanceFilePath(pid));
|
|
@@ -34271,7 +34321,7 @@ var registerExitHandlerOnce = () => {
|
|
|
34271
34321
|
};
|
|
34272
34322
|
var readJsonFile = (path) => {
|
|
34273
34323
|
try {
|
|
34274
|
-
return JSON.parse(
|
|
34324
|
+
return JSON.parse(readFileSync38(path, "utf-8"));
|
|
34275
34325
|
} catch {
|
|
34276
34326
|
return null;
|
|
34277
34327
|
}
|
|
@@ -34284,7 +34334,7 @@ var registerInstance = (record) => {
|
|
|
34284
34334
|
return record;
|
|
34285
34335
|
};
|
|
34286
34336
|
var resolveProjectName = (cwd2) => {
|
|
34287
|
-
const parsed = readJsonFile(
|
|
34337
|
+
const parsed = readJsonFile(join57(cwd2, "package.json"));
|
|
34288
34338
|
if (parsed !== null && typeof parsed === "object" && typeof parsed.name === "string" && parsed.name.trim().length > 0) {
|
|
34289
34339
|
return parsed.name;
|
|
34290
34340
|
}
|
|
@@ -34596,28 +34646,28 @@ var generateHeadElement = ({
|
|
|
34596
34646
|
};
|
|
34597
34647
|
// src/utils/defineEnv.ts
|
|
34598
34648
|
var {env: bunEnv } = globalThis.Bun;
|
|
34599
|
-
import { existsSync as existsSync42, readFileSync as
|
|
34649
|
+
import { existsSync as existsSync42, readFileSync as readFileSync40 } from "fs";
|
|
34600
34650
|
import { resolve as resolve51 } from "path";
|
|
34601
34651
|
|
|
34602
34652
|
// node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
34603
34653
|
var exports_value = {};
|
|
34604
34654
|
__export(exports_value, {
|
|
34605
|
-
|
|
34606
|
-
IsUint8Array: () => IsUint8Array,
|
|
34607
|
-
IsSymbol: () => IsSymbol,
|
|
34608
|
-
IsString: () => IsString,
|
|
34609
|
-
IsRegExp: () => IsRegExp,
|
|
34610
|
-
IsObject: () => IsObject,
|
|
34611
|
-
IsNumber: () => IsNumber,
|
|
34612
|
-
IsNull: () => IsNull,
|
|
34613
|
-
IsIterator: () => IsIterator,
|
|
34614
|
-
IsFunction: () => IsFunction,
|
|
34615
|
-
IsDate: () => IsDate,
|
|
34616
|
-
IsBoolean: () => IsBoolean,
|
|
34617
|
-
IsBigInt: () => IsBigInt,
|
|
34618
|
-
IsAsyncIterator: () => IsAsyncIterator,
|
|
34655
|
+
HasPropertyKey: () => HasPropertyKey,
|
|
34619
34656
|
IsArray: () => IsArray,
|
|
34620
|
-
|
|
34657
|
+
IsAsyncIterator: () => IsAsyncIterator,
|
|
34658
|
+
IsBigInt: () => IsBigInt,
|
|
34659
|
+
IsBoolean: () => IsBoolean,
|
|
34660
|
+
IsDate: () => IsDate,
|
|
34661
|
+
IsFunction: () => IsFunction,
|
|
34662
|
+
IsIterator: () => IsIterator,
|
|
34663
|
+
IsNull: () => IsNull,
|
|
34664
|
+
IsNumber: () => IsNumber,
|
|
34665
|
+
IsObject: () => IsObject,
|
|
34666
|
+
IsRegExp: () => IsRegExp,
|
|
34667
|
+
IsString: () => IsString,
|
|
34668
|
+
IsSymbol: () => IsSymbol,
|
|
34669
|
+
IsUint8Array: () => IsUint8Array,
|
|
34670
|
+
IsUndefined: () => IsUndefined
|
|
34621
34671
|
});
|
|
34622
34672
|
function HasPropertyKey(value, key) {
|
|
34623
34673
|
return key in value;
|
|
@@ -34990,57 +35040,57 @@ function IsSchema(value) {
|
|
|
34990
35040
|
// node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
|
|
34991
35041
|
var exports_type = {};
|
|
34992
35042
|
__export(exports_type, {
|
|
34993
|
-
|
|
34994
|
-
IsVoid: () => IsVoid2,
|
|
34995
|
-
IsUnsafe: () => IsUnsafe2,
|
|
34996
|
-
IsUnknown: () => IsUnknown2,
|
|
34997
|
-
IsUnionLiteral: () => IsUnionLiteral,
|
|
34998
|
-
IsUnion: () => IsUnion2,
|
|
34999
|
-
IsUndefined: () => IsUndefined4,
|
|
35000
|
-
IsUint8Array: () => IsUint8Array4,
|
|
35001
|
-
IsTuple: () => IsTuple2,
|
|
35002
|
-
IsTransform: () => IsTransform2,
|
|
35003
|
-
IsThis: () => IsThis2,
|
|
35004
|
-
IsTemplateLiteral: () => IsTemplateLiteral2,
|
|
35005
|
-
IsSymbol: () => IsSymbol4,
|
|
35006
|
-
IsString: () => IsString4,
|
|
35007
|
-
IsSchema: () => IsSchema2,
|
|
35008
|
-
IsRegExp: () => IsRegExp3,
|
|
35009
|
-
IsRef: () => IsRef2,
|
|
35010
|
-
IsRecursive: () => IsRecursive,
|
|
35011
|
-
IsRecord: () => IsRecord2,
|
|
35012
|
-
IsReadonly: () => IsReadonly2,
|
|
35013
|
-
IsProperties: () => IsProperties,
|
|
35014
|
-
IsPromise: () => IsPromise3,
|
|
35015
|
-
IsOptional: () => IsOptional2,
|
|
35016
|
-
IsObject: () => IsObject4,
|
|
35017
|
-
IsNumber: () => IsNumber4,
|
|
35018
|
-
IsNull: () => IsNull4,
|
|
35019
|
-
IsNot: () => IsNot2,
|
|
35020
|
-
IsNever: () => IsNever2,
|
|
35021
|
-
IsMappedResult: () => IsMappedResult2,
|
|
35022
|
-
IsMappedKey: () => IsMappedKey2,
|
|
35023
|
-
IsLiteralValue: () => IsLiteralValue2,
|
|
35024
|
-
IsLiteralString: () => IsLiteralString,
|
|
35025
|
-
IsLiteralNumber: () => IsLiteralNumber,
|
|
35026
|
-
IsLiteralBoolean: () => IsLiteralBoolean,
|
|
35027
|
-
IsLiteral: () => IsLiteral2,
|
|
35028
|
-
IsKindOf: () => IsKindOf2,
|
|
35029
|
-
IsKind: () => IsKind2,
|
|
35030
|
-
IsIterator: () => IsIterator4,
|
|
35031
|
-
IsIntersect: () => IsIntersect2,
|
|
35032
|
-
IsInteger: () => IsInteger3,
|
|
35033
|
-
IsImport: () => IsImport,
|
|
35034
|
-
IsFunction: () => IsFunction4,
|
|
35035
|
-
IsDate: () => IsDate4,
|
|
35036
|
-
IsConstructor: () => IsConstructor2,
|
|
35037
|
-
IsComputed: () => IsComputed2,
|
|
35038
|
-
IsBoolean: () => IsBoolean4,
|
|
35039
|
-
IsBigInt: () => IsBigInt4,
|
|
35040
|
-
IsAsyncIterator: () => IsAsyncIterator4,
|
|
35041
|
-
IsArray: () => IsArray4,
|
|
35043
|
+
IsAny: () => IsAny2,
|
|
35042
35044
|
IsArgument: () => IsArgument2,
|
|
35043
|
-
|
|
35045
|
+
IsArray: () => IsArray4,
|
|
35046
|
+
IsAsyncIterator: () => IsAsyncIterator4,
|
|
35047
|
+
IsBigInt: () => IsBigInt4,
|
|
35048
|
+
IsBoolean: () => IsBoolean4,
|
|
35049
|
+
IsComputed: () => IsComputed2,
|
|
35050
|
+
IsConstructor: () => IsConstructor2,
|
|
35051
|
+
IsDate: () => IsDate4,
|
|
35052
|
+
IsFunction: () => IsFunction4,
|
|
35053
|
+
IsImport: () => IsImport,
|
|
35054
|
+
IsInteger: () => IsInteger3,
|
|
35055
|
+
IsIntersect: () => IsIntersect2,
|
|
35056
|
+
IsIterator: () => IsIterator4,
|
|
35057
|
+
IsKind: () => IsKind2,
|
|
35058
|
+
IsKindOf: () => IsKindOf2,
|
|
35059
|
+
IsLiteral: () => IsLiteral2,
|
|
35060
|
+
IsLiteralBoolean: () => IsLiteralBoolean,
|
|
35061
|
+
IsLiteralNumber: () => IsLiteralNumber,
|
|
35062
|
+
IsLiteralString: () => IsLiteralString,
|
|
35063
|
+
IsLiteralValue: () => IsLiteralValue2,
|
|
35064
|
+
IsMappedKey: () => IsMappedKey2,
|
|
35065
|
+
IsMappedResult: () => IsMappedResult2,
|
|
35066
|
+
IsNever: () => IsNever2,
|
|
35067
|
+
IsNot: () => IsNot2,
|
|
35068
|
+
IsNull: () => IsNull4,
|
|
35069
|
+
IsNumber: () => IsNumber4,
|
|
35070
|
+
IsObject: () => IsObject4,
|
|
35071
|
+
IsOptional: () => IsOptional2,
|
|
35072
|
+
IsPromise: () => IsPromise3,
|
|
35073
|
+
IsProperties: () => IsProperties,
|
|
35074
|
+
IsReadonly: () => IsReadonly2,
|
|
35075
|
+
IsRecord: () => IsRecord2,
|
|
35076
|
+
IsRecursive: () => IsRecursive,
|
|
35077
|
+
IsRef: () => IsRef2,
|
|
35078
|
+
IsRegExp: () => IsRegExp3,
|
|
35079
|
+
IsSchema: () => IsSchema2,
|
|
35080
|
+
IsString: () => IsString4,
|
|
35081
|
+
IsSymbol: () => IsSymbol4,
|
|
35082
|
+
IsTemplateLiteral: () => IsTemplateLiteral2,
|
|
35083
|
+
IsThis: () => IsThis2,
|
|
35084
|
+
IsTransform: () => IsTransform2,
|
|
35085
|
+
IsTuple: () => IsTuple2,
|
|
35086
|
+
IsUint8Array: () => IsUint8Array4,
|
|
35087
|
+
IsUndefined: () => IsUndefined4,
|
|
35088
|
+
IsUnion: () => IsUnion2,
|
|
35089
|
+
IsUnionLiteral: () => IsUnionLiteral,
|
|
35090
|
+
IsUnknown: () => IsUnknown2,
|
|
35091
|
+
IsUnsafe: () => IsUnsafe2,
|
|
35092
|
+
IsVoid: () => IsVoid2,
|
|
35093
|
+
TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError
|
|
35044
35094
|
});
|
|
35045
35095
|
class TypeGuardUnknownTypeError extends TypeBoxError {
|
|
35046
35096
|
}
|
|
@@ -35290,12 +35340,12 @@ var PatternNeverExact = `^${PatternNever}$`;
|
|
|
35290
35340
|
// node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs
|
|
35291
35341
|
var exports_format = {};
|
|
35292
35342
|
__export(exports_format, {
|
|
35293
|
-
|
|
35294
|
-
Has: () => Has,
|
|
35295
|
-
Get: () => Get,
|
|
35296
|
-
Entries: () => Entries,
|
|
35343
|
+
Clear: () => Clear,
|
|
35297
35344
|
Delete: () => Delete,
|
|
35298
|
-
|
|
35345
|
+
Entries: () => Entries,
|
|
35346
|
+
Get: () => Get,
|
|
35347
|
+
Has: () => Has,
|
|
35348
|
+
Set: () => Set2
|
|
35299
35349
|
});
|
|
35300
35350
|
var map = new Map;
|
|
35301
35351
|
function Entries() {
|
|
@@ -35319,12 +35369,12 @@ function Get(format) {
|
|
|
35319
35369
|
// node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs
|
|
35320
35370
|
var exports_type2 = {};
|
|
35321
35371
|
__export(exports_type2, {
|
|
35322
|
-
|
|
35323
|
-
Has: () => Has2,
|
|
35324
|
-
Get: () => Get2,
|
|
35325
|
-
Entries: () => Entries2,
|
|
35372
|
+
Clear: () => Clear2,
|
|
35326
35373
|
Delete: () => Delete2,
|
|
35327
|
-
|
|
35374
|
+
Entries: () => Entries2,
|
|
35375
|
+
Get: () => Get2,
|
|
35376
|
+
Has: () => Has2,
|
|
35377
|
+
Set: () => Set3
|
|
35328
35378
|
});
|
|
35329
35379
|
var map2 = new Map;
|
|
35330
35380
|
function Entries2() {
|
|
@@ -37223,68 +37273,68 @@ function Void(options) {
|
|
|
37223
37273
|
// node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
|
|
37224
37274
|
var exports_type3 = {};
|
|
37225
37275
|
__export(exports_type3, {
|
|
37226
|
-
|
|
37227
|
-
Uppercase: () => Uppercase,
|
|
37228
|
-
Unsafe: () => Unsafe,
|
|
37229
|
-
Unknown: () => Unknown,
|
|
37230
|
-
Union: () => Union,
|
|
37231
|
-
Undefined: () => Undefined,
|
|
37232
|
-
Uncapitalize: () => Uncapitalize,
|
|
37233
|
-
Uint8Array: () => Uint8Array2,
|
|
37234
|
-
Tuple: () => Tuple,
|
|
37235
|
-
Transform: () => Transform,
|
|
37236
|
-
TemplateLiteral: () => TemplateLiteral,
|
|
37237
|
-
Symbol: () => Symbol2,
|
|
37238
|
-
String: () => String2,
|
|
37239
|
-
ReturnType: () => ReturnType,
|
|
37240
|
-
Rest: () => Rest,
|
|
37241
|
-
Required: () => Required,
|
|
37242
|
-
RegExp: () => RegExp2,
|
|
37243
|
-
Ref: () => Ref,
|
|
37244
|
-
Recursive: () => Recursive,
|
|
37245
|
-
Record: () => Record,
|
|
37246
|
-
ReadonlyOptional: () => ReadonlyOptional,
|
|
37247
|
-
Readonly: () => Readonly,
|
|
37248
|
-
Promise: () => Promise2,
|
|
37249
|
-
Pick: () => Pick,
|
|
37250
|
-
Partial: () => Partial,
|
|
37251
|
-
Parameters: () => Parameters,
|
|
37252
|
-
Optional: () => Optional,
|
|
37253
|
-
Omit: () => Omit,
|
|
37254
|
-
Object: () => Object2,
|
|
37255
|
-
Number: () => Number2,
|
|
37256
|
-
Null: () => Null,
|
|
37257
|
-
Not: () => Not2,
|
|
37258
|
-
Never: () => Never,
|
|
37259
|
-
Module: () => Module,
|
|
37260
|
-
Mapped: () => Mapped,
|
|
37261
|
-
Lowercase: () => Lowercase,
|
|
37262
|
-
Literal: () => Literal,
|
|
37263
|
-
KeyOf: () => KeyOf,
|
|
37264
|
-
Iterator: () => Iterator,
|
|
37265
|
-
Intersect: () => Intersect,
|
|
37266
|
-
Integer: () => Integer,
|
|
37267
|
-
Instantiate: () => Instantiate,
|
|
37268
|
-
InstanceType: () => InstanceType,
|
|
37269
|
-
Index: () => Index,
|
|
37270
|
-
Function: () => Function2,
|
|
37271
|
-
Extract: () => Extract,
|
|
37272
|
-
Extends: () => Extends,
|
|
37273
|
-
Exclude: () => Exclude,
|
|
37274
|
-
Enum: () => Enum,
|
|
37275
|
-
Date: () => Date2,
|
|
37276
|
-
ConstructorParameters: () => ConstructorParameters,
|
|
37277
|
-
Constructor: () => Constructor,
|
|
37278
|
-
Const: () => Const,
|
|
37279
|
-
Composite: () => Composite,
|
|
37280
|
-
Capitalize: () => Capitalize,
|
|
37281
|
-
Boolean: () => Boolean2,
|
|
37282
|
-
BigInt: () => BigInt2,
|
|
37283
|
-
Awaited: () => Awaited,
|
|
37284
|
-
AsyncIterator: () => AsyncIterator,
|
|
37285
|
-
Array: () => Array2,
|
|
37276
|
+
Any: () => Any,
|
|
37286
37277
|
Argument: () => Argument,
|
|
37287
|
-
|
|
37278
|
+
Array: () => Array2,
|
|
37279
|
+
AsyncIterator: () => AsyncIterator,
|
|
37280
|
+
Awaited: () => Awaited,
|
|
37281
|
+
BigInt: () => BigInt2,
|
|
37282
|
+
Boolean: () => Boolean2,
|
|
37283
|
+
Capitalize: () => Capitalize,
|
|
37284
|
+
Composite: () => Composite,
|
|
37285
|
+
Const: () => Const,
|
|
37286
|
+
Constructor: () => Constructor,
|
|
37287
|
+
ConstructorParameters: () => ConstructorParameters,
|
|
37288
|
+
Date: () => Date2,
|
|
37289
|
+
Enum: () => Enum,
|
|
37290
|
+
Exclude: () => Exclude,
|
|
37291
|
+
Extends: () => Extends,
|
|
37292
|
+
Extract: () => Extract,
|
|
37293
|
+
Function: () => Function2,
|
|
37294
|
+
Index: () => Index,
|
|
37295
|
+
InstanceType: () => InstanceType,
|
|
37296
|
+
Instantiate: () => Instantiate,
|
|
37297
|
+
Integer: () => Integer,
|
|
37298
|
+
Intersect: () => Intersect,
|
|
37299
|
+
Iterator: () => Iterator,
|
|
37300
|
+
KeyOf: () => KeyOf,
|
|
37301
|
+
Literal: () => Literal,
|
|
37302
|
+
Lowercase: () => Lowercase,
|
|
37303
|
+
Mapped: () => Mapped,
|
|
37304
|
+
Module: () => Module,
|
|
37305
|
+
Never: () => Never,
|
|
37306
|
+
Not: () => Not2,
|
|
37307
|
+
Null: () => Null,
|
|
37308
|
+
Number: () => Number2,
|
|
37309
|
+
Object: () => Object2,
|
|
37310
|
+
Omit: () => Omit,
|
|
37311
|
+
Optional: () => Optional,
|
|
37312
|
+
Parameters: () => Parameters,
|
|
37313
|
+
Partial: () => Partial,
|
|
37314
|
+
Pick: () => Pick,
|
|
37315
|
+
Promise: () => Promise2,
|
|
37316
|
+
Readonly: () => Readonly,
|
|
37317
|
+
ReadonlyOptional: () => ReadonlyOptional,
|
|
37318
|
+
Record: () => Record,
|
|
37319
|
+
Recursive: () => Recursive,
|
|
37320
|
+
Ref: () => Ref,
|
|
37321
|
+
RegExp: () => RegExp2,
|
|
37322
|
+
Required: () => Required,
|
|
37323
|
+
Rest: () => Rest,
|
|
37324
|
+
ReturnType: () => ReturnType,
|
|
37325
|
+
String: () => String2,
|
|
37326
|
+
Symbol: () => Symbol2,
|
|
37327
|
+
TemplateLiteral: () => TemplateLiteral,
|
|
37328
|
+
Transform: () => Transform,
|
|
37329
|
+
Tuple: () => Tuple,
|
|
37330
|
+
Uint8Array: () => Uint8Array2,
|
|
37331
|
+
Uncapitalize: () => Uncapitalize,
|
|
37332
|
+
Undefined: () => Undefined,
|
|
37333
|
+
Union: () => Union,
|
|
37334
|
+
Unknown: () => Unknown,
|
|
37335
|
+
Unsafe: () => Unsafe,
|
|
37336
|
+
Uppercase: () => Uppercase,
|
|
37337
|
+
Void: () => Void
|
|
37288
37338
|
});
|
|
37289
37339
|
|
|
37290
37340
|
// node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
|
|
@@ -40161,13 +40211,13 @@ function Default5(...args2) {
|
|
|
40161
40211
|
// node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs
|
|
40162
40212
|
var exports_pointer = {};
|
|
40163
40213
|
__export(exports_pointer, {
|
|
40164
|
-
|
|
40165
|
-
ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
|
|
40166
|
-
Set: () => Set4,
|
|
40167
|
-
Has: () => Has3,
|
|
40168
|
-
Get: () => Get3,
|
|
40214
|
+
Delete: () => Delete3,
|
|
40169
40215
|
Format: () => Format,
|
|
40170
|
-
|
|
40216
|
+
Get: () => Get3,
|
|
40217
|
+
Has: () => Has3,
|
|
40218
|
+
Set: () => Set4,
|
|
40219
|
+
ValuePointerRootDeleteError: () => ValuePointerRootDeleteError,
|
|
40220
|
+
ValuePointerRootSetError: () => ValuePointerRootSetError
|
|
40171
40221
|
});
|
|
40172
40222
|
class ValuePointerRootSetError extends TypeBoxError {
|
|
40173
40223
|
constructor(value, path, update) {
|
|
@@ -40584,25 +40634,25 @@ function Parse(...args2) {
|
|
|
40584
40634
|
// node_modules/@sinclair/typebox/build/esm/value/value/value.mjs
|
|
40585
40635
|
var exports_value2 = {};
|
|
40586
40636
|
__export(exports_value2, {
|
|
40587
|
-
|
|
40588
|
-
Patch: () => Patch,
|
|
40589
|
-
Parse: () => Parse,
|
|
40590
|
-
Mutate: () => Mutate,
|
|
40591
|
-
Hash: () => Hash,
|
|
40592
|
-
Errors: () => Errors,
|
|
40593
|
-
Equal: () => Equal,
|
|
40594
|
-
Encode: () => Encode,
|
|
40595
|
-
Edit: () => Edit,
|
|
40596
|
-
Diff: () => Diff,
|
|
40597
|
-
Default: () => Default5,
|
|
40598
|
-
Decode: () => Decode,
|
|
40599
|
-
Create: () => Create2,
|
|
40600
|
-
Convert: () => Convert,
|
|
40601
|
-
Clone: () => Clone2,
|
|
40602
|
-
Clean: () => Clean,
|
|
40603
|
-
Check: () => Check,
|
|
40637
|
+
Assert: () => Assert,
|
|
40604
40638
|
Cast: () => Cast,
|
|
40605
|
-
|
|
40639
|
+
Check: () => Check,
|
|
40640
|
+
Clean: () => Clean,
|
|
40641
|
+
Clone: () => Clone2,
|
|
40642
|
+
Convert: () => Convert,
|
|
40643
|
+
Create: () => Create2,
|
|
40644
|
+
Decode: () => Decode,
|
|
40645
|
+
Default: () => Default5,
|
|
40646
|
+
Diff: () => Diff,
|
|
40647
|
+
Edit: () => Edit,
|
|
40648
|
+
Encode: () => Encode,
|
|
40649
|
+
Equal: () => Equal,
|
|
40650
|
+
Errors: () => Errors,
|
|
40651
|
+
Hash: () => Hash,
|
|
40652
|
+
Mutate: () => Mutate,
|
|
40653
|
+
Parse: () => Parse,
|
|
40654
|
+
Patch: () => Patch,
|
|
40655
|
+
ValueErrorIterator: () => ValueErrorIterator
|
|
40606
40656
|
});
|
|
40607
40657
|
// src/utils/defineEnv.ts
|
|
40608
40658
|
var SENSITIVE_PATTERN = /SECRET|KEY|TOKEN|PASSWORD/i;
|
|
@@ -40638,13 +40688,13 @@ var checkEnvFileSecurity = (properties) => {
|
|
|
40638
40688
|
const sensitiveKeys = Object.keys(properties).filter(isSensitive);
|
|
40639
40689
|
if (sensitiveKeys.length === 0)
|
|
40640
40690
|
return;
|
|
40641
|
-
const envContent =
|
|
40691
|
+
const envContent = readFileSync40(envPath, "utf-8");
|
|
40642
40692
|
const presentKeys = sensitiveKeys.filter((key) => envContent.includes(`${key}=`));
|
|
40643
40693
|
if (presentKeys.length === 0)
|
|
40644
40694
|
return;
|
|
40645
40695
|
const gitignorePath = resolve51(cwd2, ".gitignore");
|
|
40646
40696
|
if (existsSync42(gitignorePath)) {
|
|
40647
|
-
const gitignore =
|
|
40697
|
+
const gitignore = readFileSync40(gitignorePath, "utf-8");
|
|
40648
40698
|
if (gitignore.split(`
|
|
40649
40699
|
`).some((line) => line.trim() === ".env"))
|
|
40650
40700
|
return;
|
|
@@ -40772,177 +40822,177 @@ var createStreamingSlotMetricSink = ({
|
|
|
40772
40822
|
// src/utils/index.ts
|
|
40773
40823
|
init_streamingSlots();
|
|
40774
40824
|
export {
|
|
40775
|
-
|
|
40776
|
-
withStreamingSlots,
|
|
40777
|
-
withStreamingSlotPolicy,
|
|
40778
|
-
withRegisteredStreamingSlots,
|
|
40779
|
-
warmTailwindCompiler,
|
|
40780
|
-
streamOutOfOrderSlots,
|
|
40781
|
-
setStreamingSlotPolicy,
|
|
40782
|
-
setSsrContextGetter,
|
|
40783
|
-
setIconVersionResolver,
|
|
40784
|
-
serializeJsonLd,
|
|
40785
|
-
serializeIslandProps,
|
|
40786
|
-
runWithAbsoluteRequest,
|
|
40787
|
-
resolveDevtoolsUuidCachePath,
|
|
40788
|
-
renderStreamingSlotsRuntimeTag,
|
|
40789
|
-
renderStreamingSlotPlaceholder,
|
|
40790
|
-
renderStreamingSlotPatchTag,
|
|
40791
|
-
renderIslandResult,
|
|
40792
|
-
renderIslandMarkup,
|
|
40793
|
-
registerClientScript,
|
|
40794
|
-
projectRoot,
|
|
40795
|
-
prepare,
|
|
40796
|
-
parseIslandProps,
|
|
40797
|
-
pageRouterPlugin,
|
|
40798
|
-
normalizeDevtoolsWorkspaceRoot,
|
|
40799
|
-
networking,
|
|
40800
|
-
jsonLd2 as jsonLd,
|
|
40801
|
-
isValidHMRClientMessage,
|
|
40802
|
-
isTailwindCandidate,
|
|
40803
|
-
isIslandComponentDefinition,
|
|
40804
|
-
injectStreamingRuntimeIntoStream,
|
|
40805
|
-
injectHtmlIntoHead,
|
|
40806
|
-
injectHtmlIntoBody,
|
|
40807
|
-
incrementalTailwindBuild,
|
|
40808
|
-
iconMimeType,
|
|
40809
|
-
hmrState,
|
|
40810
|
-
handleHTMXPageRequest,
|
|
40811
|
-
handleHTMLPageRequest,
|
|
40812
|
-
getStreamingSlotsRuntimeScript,
|
|
40813
|
-
getStreamingSlotPolicy,
|
|
40814
|
-
getSsrContextId,
|
|
40815
|
-
getLocalIPAddress,
|
|
40816
|
-
getIslandManifestKey,
|
|
40817
|
-
getIslandManifestEntries,
|
|
40818
|
-
getIslandComponent,
|
|
40819
|
-
getIslandBuildReference,
|
|
40820
|
-
getEnv,
|
|
40821
|
-
getCurrentAbsoluteRequest,
|
|
40822
|
-
getAndClearClientScripts,
|
|
40823
|
-
getAllNetworkIPs,
|
|
40824
|
-
generateHeadElement,
|
|
40825
|
-
generateClientScriptCode,
|
|
40826
|
-
enhanceHtmlResponseWithStreamingSlots,
|
|
40827
|
-
disposeTailwindCompiler,
|
|
40828
|
-
devtoolsJson,
|
|
40829
|
-
defineRenderNotFoundPage,
|
|
40830
|
-
defineRenderErrorPage,
|
|
40831
|
-
defineIslandRegistry,
|
|
40832
|
-
defineIslandComponent,
|
|
40833
|
-
defineEnv,
|
|
40834
|
-
defineConfig,
|
|
40835
|
-
createStreamingSlotMetricSink,
|
|
40836
|
-
createStreamingSlotId,
|
|
40837
|
-
compileTailwindConfig,
|
|
40838
|
-
compileTailwind,
|
|
40839
|
-
clearAllClientScripts,
|
|
40840
|
-
asset,
|
|
40841
|
-
applyIconVersion,
|
|
40842
|
-
appendStreamingSlotPatchesToStream,
|
|
40843
|
-
absoluteRequestContext,
|
|
40844
|
-
WS_READY_STATE_OPEN,
|
|
40845
|
-
WORKSPACE_TUI_VISIBILITY_WIDTH,
|
|
40846
|
-
WORKSPACE_TUI_TARGET_PADDING_WIDTH,
|
|
40847
|
-
WORKSPACE_TUI_STATUS_WIDTH,
|
|
40848
|
-
WORKSPACE_TUI_RENDER_DEBOUNCE_MS,
|
|
40849
|
-
WORKSPACE_TUI_RECENT_LOG_LIMIT,
|
|
40850
|
-
WORKSPACE_TUI_PROMPT_CURSOR_OFFSET,
|
|
40851
|
-
WORKSPACE_TUI_MIN_WRAP_WIDTH,
|
|
40852
|
-
WORKSPACE_TUI_MIN_TARGET_WIDTH,
|
|
40853
|
-
WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH,
|
|
40854
|
-
WORKSPACE_TUI_MIN_LOG_HEIGHT,
|
|
40855
|
-
WORKSPACE_TUI_FOOTER_LINE_COUNT,
|
|
40856
|
-
WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
|
|
40857
|
-
WORKSPACE_TUI_DEFAULT_WIDTH,
|
|
40858
|
-
WORKSPACE_TUI_DEFAULT_HEIGHT,
|
|
40859
|
-
WORKSPACE_SHUTDOWN_TIMEOUT_MS,
|
|
40860
|
-
WORKSPACE_READY_TIMEOUT_MS,
|
|
40861
|
-
WORKSPACE_READY_PROBE_INTERVAL_MS,
|
|
40862
|
-
WORKSPACE_READY_ATTEMPT_TIMEOUT_MS,
|
|
40863
|
-
WORKSPACE_FAILURE_RECENT_LOG_LIMIT,
|
|
40864
|
-
WORKSPACE_FAILURE_LOG_PRINT_LIMIT,
|
|
40865
|
-
WORKSPACE_COMMAND_ARGS_OFFSET,
|
|
40866
|
-
WEBSOCKET_NORMAL_CLOSURE,
|
|
40867
|
-
UNFOUND_INDEX,
|
|
40868
|
-
TWO_THIRDS,
|
|
40869
|
-
TIME_PRECISION,
|
|
40870
|
-
TAILWIND_BUN_CSS_WARNING_PATTERN,
|
|
40871
|
-
SVELTE_CSS_LOAD_TIMEOUT_MS,
|
|
40872
|
-
SIGTERM_EXIT_CODE,
|
|
40873
|
-
SIGINT_EXIT_CODE,
|
|
40874
|
-
SECONDS_IN_A_MINUTE,
|
|
40875
|
-
RECONNECT_POLL_INTERVAL_MS,
|
|
40876
|
-
RECONNECT_INITIAL_DELAY_MS,
|
|
40877
|
-
REBUILD_RELOAD_DELAY_MS,
|
|
40878
|
-
REBUILD_BATCH_DELAY_MS,
|
|
40879
|
-
REACT_STREAM_SLOT_SLOW_DELAY_MS,
|
|
40880
|
-
REACT_STREAM_SLOT_FAST_DELAY_MS,
|
|
40881
|
-
RANDOM_ID_END_INDEX,
|
|
40882
|
-
RAF_BATCH_COUNT,
|
|
40883
|
-
PING_INTERVAL_MS,
|
|
40884
|
-
OVERLAY_FADE_DURATION_MS,
|
|
40885
|
-
MINUTES_IN_AN_HOUR,
|
|
40886
|
-
MILLISECONDS_IN_A_SECOND,
|
|
40887
|
-
MILLISECONDS_IN_A_MINUTE,
|
|
40888
|
-
MILLISECONDS_IN_A_DAY,
|
|
40889
|
-
MAX_RECONNECT_ATTEMPTS,
|
|
40890
|
-
MAX_HTTP_IDLE_TIMEOUT_SECONDS,
|
|
40891
|
-
MAX_ERROR_LENGTH,
|
|
40892
|
-
LIST_WATCH_REFRESH_MS,
|
|
40893
|
-
LIST_TUI_STATUS_MESSAGE_TIMEOUT_MS,
|
|
40894
|
-
LIST_TUI_RENDER_DEBOUNCE_MS,
|
|
40895
|
-
LIST_TUI_MIN_URL_WIDTH,
|
|
40896
|
-
LIST_TUI_MIN_LOG_HEIGHT,
|
|
40897
|
-
LIST_TUI_MARKER_WIDTH,
|
|
40898
|
-
LIST_TUI_FOOTER_LINE_COUNT,
|
|
40899
|
-
LIST_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
|
|
40900
|
-
LIST_TUI_DEFAULT_WIDTH,
|
|
40901
|
-
LIST_TUI_DEFAULT_HEIGHT,
|
|
40902
|
-
LIST_TUI_COLUMN_GAP,
|
|
40903
|
-
LIST_LOG_TAIL_MAX_BYTES,
|
|
40904
|
-
INSTANCE_PROBE_TIMEOUT_MS,
|
|
40905
|
-
IMAGE_GLOB_SUFFIX_LENGTH,
|
|
40906
|
-
IMAGE_DEFAULT_QUALITY,
|
|
40907
|
-
IMAGE_DEFAULT_IMAGE_SIZES,
|
|
40908
|
-
IMAGE_DEFAULT_DEVICE_SIZES,
|
|
40909
|
-
HTTP_STATUS_OK,
|
|
40910
|
-
HTTP_STATUS_NOT_FOUND,
|
|
40911
|
-
HTTP_STATUS_BAD_REQUEST,
|
|
40912
|
-
HOURS_IN_HALF_DAY,
|
|
40913
|
-
HOURS_IN_DAY,
|
|
40914
|
-
HOOK_SIGNATURE_LENGTH,
|
|
40915
|
-
HMR_UPDATE_TIMEOUT_MS,
|
|
40916
|
-
FOCUS_NAME_PREFIX_LENGTH,
|
|
40917
|
-
FOCUS_ID_PREFIX_LENGTH,
|
|
40918
|
-
FOCUS_IDX_PREFIX_LENGTH,
|
|
40919
|
-
FILE_PROTOCOL_PREFIX_LENGTH,
|
|
40920
|
-
EXCLUDE_LAST_OFFSET,
|
|
40921
|
-
ESLINT_STUDIO_DEFAULT_PORT,
|
|
40922
|
-
ESLINT_STUDIO_DEFAULT_HOST,
|
|
40923
|
-
DOM_UPDATE_DELAY_MS,
|
|
40924
|
-
DEV_SERVER_RESTART_DEBOUNCE_MS,
|
|
40925
|
-
DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
|
|
40926
|
-
DEFAULT_PORT,
|
|
40927
|
-
DEFAULT_HTTP_IDLE_TIMEOUT_SECONDS,
|
|
40928
|
-
DEFAULT_DEBOUNCE_MS,
|
|
40929
|
-
DEFAULT_CHUNK_SIZE,
|
|
40930
|
-
CSS_SHEET_READY_TIMEOUT_MS,
|
|
40931
|
-
CSS_MAX_PARSE_TIMEOUT_MS,
|
|
40932
|
-
CSS_MAX_CHECK_ATTEMPTS,
|
|
40933
|
-
CSS_ERROR_RESOLVE_DELAY_MS,
|
|
40934
|
-
CONFIG_DEFAULT_PORT,
|
|
40935
|
-
CONFIG_DEFAULT_HOST,
|
|
40936
|
-
CLI_ARGS_OFFSET,
|
|
40937
|
-
BYTES_PER_KILOBYTE,
|
|
40938
|
-
BUN_BUILD_WARNING_SUPPRESSION,
|
|
40939
|
-
BODY_SLICE_LENGTH,
|
|
40940
|
-
BASE_36_RADIX,
|
|
40941
|
-
ASCII_SPACE,
|
|
40942
|
-
ANSI_ESCAPE_LENGTH,
|
|
40825
|
+
ANGULAR_INIT_TIMEOUT_MS,
|
|
40943
40826
|
ANSI_ESCAPE_CODE,
|
|
40944
|
-
|
|
40827
|
+
ANSI_ESCAPE_LENGTH,
|
|
40828
|
+
ASCII_SPACE,
|
|
40829
|
+
BASE_36_RADIX,
|
|
40830
|
+
BODY_SLICE_LENGTH,
|
|
40831
|
+
BUN_BUILD_WARNING_SUPPRESSION,
|
|
40832
|
+
BYTES_PER_KILOBYTE,
|
|
40833
|
+
CLI_ARGS_OFFSET,
|
|
40834
|
+
CONFIG_DEFAULT_HOST,
|
|
40835
|
+
CONFIG_DEFAULT_PORT,
|
|
40836
|
+
CSS_ERROR_RESOLVE_DELAY_MS,
|
|
40837
|
+
CSS_MAX_CHECK_ATTEMPTS,
|
|
40838
|
+
CSS_MAX_PARSE_TIMEOUT_MS,
|
|
40839
|
+
CSS_SHEET_READY_TIMEOUT_MS,
|
|
40840
|
+
DEFAULT_CHUNK_SIZE,
|
|
40841
|
+
DEFAULT_DEBOUNCE_MS,
|
|
40842
|
+
DEFAULT_HTTP_IDLE_TIMEOUT_SECONDS,
|
|
40843
|
+
DEFAULT_PORT,
|
|
40844
|
+
DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
|
|
40845
|
+
DEV_SERVER_RESTART_DEBOUNCE_MS,
|
|
40846
|
+
DOM_UPDATE_DELAY_MS,
|
|
40847
|
+
ESLINT_STUDIO_DEFAULT_HOST,
|
|
40848
|
+
ESLINT_STUDIO_DEFAULT_PORT,
|
|
40849
|
+
EXCLUDE_LAST_OFFSET,
|
|
40850
|
+
FILE_PROTOCOL_PREFIX_LENGTH,
|
|
40851
|
+
FOCUS_IDX_PREFIX_LENGTH,
|
|
40852
|
+
FOCUS_ID_PREFIX_LENGTH,
|
|
40853
|
+
FOCUS_NAME_PREFIX_LENGTH,
|
|
40854
|
+
HMR_UPDATE_TIMEOUT_MS,
|
|
40855
|
+
HOOK_SIGNATURE_LENGTH,
|
|
40856
|
+
HOURS_IN_DAY,
|
|
40857
|
+
HOURS_IN_HALF_DAY,
|
|
40858
|
+
HTTP_STATUS_BAD_REQUEST,
|
|
40859
|
+
HTTP_STATUS_NOT_FOUND,
|
|
40860
|
+
HTTP_STATUS_OK,
|
|
40861
|
+
IMAGE_DEFAULT_DEVICE_SIZES,
|
|
40862
|
+
IMAGE_DEFAULT_IMAGE_SIZES,
|
|
40863
|
+
IMAGE_DEFAULT_QUALITY,
|
|
40864
|
+
IMAGE_GLOB_SUFFIX_LENGTH,
|
|
40865
|
+
INSTANCE_PROBE_TIMEOUT_MS,
|
|
40866
|
+
LIST_LOG_TAIL_MAX_BYTES,
|
|
40867
|
+
LIST_TUI_COLUMN_GAP,
|
|
40868
|
+
LIST_TUI_DEFAULT_HEIGHT,
|
|
40869
|
+
LIST_TUI_DEFAULT_WIDTH,
|
|
40870
|
+
LIST_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
|
|
40871
|
+
LIST_TUI_FOOTER_LINE_COUNT,
|
|
40872
|
+
LIST_TUI_MARKER_WIDTH,
|
|
40873
|
+
LIST_TUI_MIN_LOG_HEIGHT,
|
|
40874
|
+
LIST_TUI_MIN_URL_WIDTH,
|
|
40875
|
+
LIST_TUI_RENDER_DEBOUNCE_MS,
|
|
40876
|
+
LIST_TUI_STATUS_MESSAGE_TIMEOUT_MS,
|
|
40877
|
+
LIST_WATCH_REFRESH_MS,
|
|
40878
|
+
MAX_ERROR_LENGTH,
|
|
40879
|
+
MAX_HTTP_IDLE_TIMEOUT_SECONDS,
|
|
40880
|
+
MAX_RECONNECT_ATTEMPTS,
|
|
40881
|
+
MILLISECONDS_IN_A_DAY,
|
|
40882
|
+
MILLISECONDS_IN_A_MINUTE,
|
|
40883
|
+
MILLISECONDS_IN_A_SECOND,
|
|
40884
|
+
MINUTES_IN_AN_HOUR,
|
|
40885
|
+
OVERLAY_FADE_DURATION_MS,
|
|
40886
|
+
PING_INTERVAL_MS,
|
|
40887
|
+
RAF_BATCH_COUNT,
|
|
40888
|
+
RANDOM_ID_END_INDEX,
|
|
40889
|
+
REACT_STREAM_SLOT_FAST_DELAY_MS,
|
|
40890
|
+
REACT_STREAM_SLOT_SLOW_DELAY_MS,
|
|
40891
|
+
REBUILD_BATCH_DELAY_MS,
|
|
40892
|
+
REBUILD_RELOAD_DELAY_MS,
|
|
40893
|
+
RECONNECT_INITIAL_DELAY_MS,
|
|
40894
|
+
RECONNECT_POLL_INTERVAL_MS,
|
|
40895
|
+
SECONDS_IN_A_MINUTE,
|
|
40896
|
+
SIGINT_EXIT_CODE,
|
|
40897
|
+
SIGTERM_EXIT_CODE,
|
|
40898
|
+
SVELTE_CSS_LOAD_TIMEOUT_MS,
|
|
40899
|
+
TAILWIND_BUN_CSS_WARNING_PATTERN,
|
|
40900
|
+
TIME_PRECISION,
|
|
40901
|
+
TWO_THIRDS,
|
|
40902
|
+
UNFOUND_INDEX,
|
|
40903
|
+
WEBSOCKET_NORMAL_CLOSURE,
|
|
40904
|
+
WORKSPACE_COMMAND_ARGS_OFFSET,
|
|
40905
|
+
WORKSPACE_FAILURE_LOG_PRINT_LIMIT,
|
|
40906
|
+
WORKSPACE_FAILURE_RECENT_LOG_LIMIT,
|
|
40907
|
+
WORKSPACE_READY_ATTEMPT_TIMEOUT_MS,
|
|
40908
|
+
WORKSPACE_READY_PROBE_INTERVAL_MS,
|
|
40909
|
+
WORKSPACE_READY_TIMEOUT_MS,
|
|
40910
|
+
WORKSPACE_SHUTDOWN_TIMEOUT_MS,
|
|
40911
|
+
WORKSPACE_TUI_DEFAULT_HEIGHT,
|
|
40912
|
+
WORKSPACE_TUI_DEFAULT_WIDTH,
|
|
40913
|
+
WORKSPACE_TUI_ESCAPE_SEQUENCE_TIMEOUT_MS,
|
|
40914
|
+
WORKSPACE_TUI_FOOTER_LINE_COUNT,
|
|
40915
|
+
WORKSPACE_TUI_MIN_LOG_HEIGHT,
|
|
40916
|
+
WORKSPACE_TUI_MIN_SERVICE_NAME_WIDTH,
|
|
40917
|
+
WORKSPACE_TUI_MIN_TARGET_WIDTH,
|
|
40918
|
+
WORKSPACE_TUI_MIN_WRAP_WIDTH,
|
|
40919
|
+
WORKSPACE_TUI_PROMPT_CURSOR_OFFSET,
|
|
40920
|
+
WORKSPACE_TUI_RECENT_LOG_LIMIT,
|
|
40921
|
+
WORKSPACE_TUI_RENDER_DEBOUNCE_MS,
|
|
40922
|
+
WORKSPACE_TUI_STATUS_WIDTH,
|
|
40923
|
+
WORKSPACE_TUI_TARGET_PADDING_WIDTH,
|
|
40924
|
+
WORKSPACE_TUI_VISIBILITY_WIDTH,
|
|
40925
|
+
WS_READY_STATE_OPEN,
|
|
40926
|
+
absoluteRequestContext,
|
|
40927
|
+
appendStreamingSlotPatchesToStream,
|
|
40928
|
+
applyIconVersion,
|
|
40929
|
+
asset,
|
|
40930
|
+
clearAllClientScripts,
|
|
40931
|
+
compileTailwind,
|
|
40932
|
+
compileTailwindConfig,
|
|
40933
|
+
createStreamingSlotId,
|
|
40934
|
+
createStreamingSlotMetricSink,
|
|
40935
|
+
defineConfig,
|
|
40936
|
+
defineEnv,
|
|
40937
|
+
defineIslandComponent,
|
|
40938
|
+
defineIslandRegistry,
|
|
40939
|
+
defineRenderErrorPage,
|
|
40940
|
+
defineRenderNotFoundPage,
|
|
40941
|
+
devtoolsJson,
|
|
40942
|
+
disposeTailwindCompiler,
|
|
40943
|
+
enhanceHtmlResponseWithStreamingSlots,
|
|
40944
|
+
generateClientScriptCode,
|
|
40945
|
+
generateHeadElement,
|
|
40946
|
+
getAllNetworkIPs,
|
|
40947
|
+
getAndClearClientScripts,
|
|
40948
|
+
getCurrentAbsoluteRequest,
|
|
40949
|
+
getEnv,
|
|
40950
|
+
getIslandBuildReference,
|
|
40951
|
+
getIslandComponent,
|
|
40952
|
+
getIslandManifestEntries,
|
|
40953
|
+
getIslandManifestKey,
|
|
40954
|
+
getLocalIPAddress,
|
|
40955
|
+
getSsrContextId,
|
|
40956
|
+
getStreamingSlotPolicy,
|
|
40957
|
+
getStreamingSlotsRuntimeScript,
|
|
40958
|
+
handleHTMLPageRequest,
|
|
40959
|
+
handleHTMXPageRequest,
|
|
40960
|
+
hmrState,
|
|
40961
|
+
iconMimeType,
|
|
40962
|
+
incrementalTailwindBuild,
|
|
40963
|
+
injectHtmlIntoBody,
|
|
40964
|
+
injectHtmlIntoHead,
|
|
40965
|
+
injectStreamingRuntimeIntoStream,
|
|
40966
|
+
isIslandComponentDefinition,
|
|
40967
|
+
isTailwindCandidate,
|
|
40968
|
+
isValidHMRClientMessage,
|
|
40969
|
+
jsonLd2 as jsonLd,
|
|
40970
|
+
networking,
|
|
40971
|
+
normalizeDevtoolsWorkspaceRoot,
|
|
40972
|
+
pageRouterPlugin,
|
|
40973
|
+
parseIslandProps,
|
|
40974
|
+
prepare,
|
|
40975
|
+
projectRoot,
|
|
40976
|
+
registerClientScript,
|
|
40977
|
+
renderIslandMarkup,
|
|
40978
|
+
renderIslandResult,
|
|
40979
|
+
renderStreamingSlotPatchTag,
|
|
40980
|
+
renderStreamingSlotPlaceholder,
|
|
40981
|
+
renderStreamingSlotsRuntimeTag,
|
|
40982
|
+
resolveDevtoolsUuidCachePath,
|
|
40983
|
+
runWithAbsoluteRequest,
|
|
40984
|
+
serializeIslandProps,
|
|
40985
|
+
serializeJsonLd,
|
|
40986
|
+
setIconVersionResolver,
|
|
40987
|
+
setSsrContextGetter,
|
|
40988
|
+
setStreamingSlotPolicy,
|
|
40989
|
+
streamOutOfOrderSlots,
|
|
40990
|
+
warmTailwindCompiler,
|
|
40991
|
+
withRegisteredStreamingSlots,
|
|
40992
|
+
withStreamingSlotPolicy,
|
|
40993
|
+
withStreamingSlots,
|
|
40994
|
+
wrapPageHandlerWithStreamingSlots
|
|
40945
40995
|
};
|
|
40946
40996
|
|
|
40947
|
-
//# debugId=
|
|
40997
|
+
//# debugId=9F0F483ABB21912064756E2164756E21
|
|
40948
40998
|
//# sourceMappingURL=index.js.map
|