@absolutejs/absolute 0.19.0-beta.1109 → 0.19.0-beta.1110

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-Ndl7R9/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7PKrAu/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-Ndl7R9/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7PKrAu/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-Ndl7R9/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-7PKrAu/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/cli/index.js CHANGED
@@ -177179,7 +177179,14 @@ import {
177179
177179
  writeFileSync as writeFileSync20
177180
177180
  } from "fs";
177181
177181
  import { createRequire as createRequire3 } from "module";
177182
- import { basename as basename7, dirname as dirname16, join as join32, relative as relative11, resolve as resolve22 } from "path";
177182
+ import {
177183
+ basename as basename7,
177184
+ dirname as dirname16,
177185
+ isAbsolute as isAbsolute2,
177186
+ join as join32,
177187
+ relative as relative11,
177188
+ resolve as resolve22
177189
+ } from "path";
177183
177190
  var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[cli]\x1B[0m ${color}${message}\x1B[0m`, compileBanner = (version2) => {
177184
177191
  const resolvedVersion = version2 || "unknown";
177185
177192
  console.log("");
@@ -177199,6 +177206,30 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
177199
177206
  result.push(fullPath);
177200
177207
  }
177201
177208
  return result;
177209
+ }, INLINE_SOURCE_MAP_RE, rebaseInlineSourceMap = (filePath) => {
177210
+ const source = readFileSync34(filePath, "utf-8");
177211
+ const match = source.match(INLINE_SOURCE_MAP_RE);
177212
+ const encoded = match?.[1];
177213
+ if (!encoded)
177214
+ return;
177215
+ const map = JSON.parse(Buffer.from(encoded, "base64").toString("utf-8"));
177216
+ if (!Array.isArray(map.sources))
177217
+ return;
177218
+ const sourceRoot = map.sourceRoot ?? "";
177219
+ const bundleDirectory = dirname16(filePath);
177220
+ map.sources = map.sources.map((entry) => {
177221
+ if (/^[A-Za-z][A-Za-z0-9+.-]*:/.test(entry))
177222
+ return entry;
177223
+ if (isAbsolute2(entry))
177224
+ return entry;
177225
+ if (/^[A-Za-z][A-Za-z0-9+.-]*:/.test(sourceRoot)) {
177226
+ return new URL(entry, sourceRoot).href;
177227
+ }
177228
+ return resolve22(bundleDirectory, sourceRoot, entry);
177229
+ });
177230
+ delete map.sourceRoot;
177231
+ const rebased = Buffer.from(JSON.stringify(map)).toString("base64");
177232
+ writeFileSync20(filePath, source.replace(encoded, rebased));
177202
177233
  }, SERVER_RUNTIME_ASSET_RE, SERVER_RUNTIME_IMPORT_META_DIR_JOIN_RE, SERVER_RUNTIME_STRING_ARG_RE, SERVER_RUNTIME_SOURCE_EXTENSIONS, SERVER_RUNTIME_SCAN_SKIP_DIRS, hasSourceExtension = (filePath) => SERVER_RUNTIME_SOURCE_EXTENSIONS.has(filePath.slice(filePath.lastIndexOf("."))), normalizeServerRuntimeAssetPath = (parts) => {
177203
177234
  if (parts.length === 0)
177204
177235
  return null;
@@ -178113,6 +178144,7 @@ console.log(\`
178113
178144
  entrypoints: [resolve22(serverEntry)],
178114
178145
  external: resolveServerBundleExternals(buildConfig),
178115
178146
  outdir: resolvedOutdir,
178147
+ sourcemap: "inline",
178116
178148
  plugins: [
178117
178149
  ...islandRegistryPlugin ? [islandRegistryPlugin] : [],
178118
178150
  createStubPlugin({
@@ -178176,6 +178208,7 @@ console.log(\`
178176
178208
  console.log(` \x1B[2m(${prerenderMap.size} pages, ${getDurationString(performance.now() - prerenderStart)})\x1B[0m`);
178177
178209
  copyFrameworkRuntimePackages(buildConfig, resolvedOutdir);
178178
178210
  rewriteRuntimeModuleSpecifiers(resolvedOutdir);
178211
+ rebaseInlineSourceMap(outputPath);
178179
178212
  const compileStart = performance.now();
178180
178213
  process.stdout.write(cliTag4("\x1B[36m", "Compiling standalone executable"));
178181
178214
  const entrypointCode = generateEntrypoint(resolvedOutdir, serverEntry, prerenderMap, absoluteVersion, buildConfig);
@@ -178229,6 +178262,7 @@ var init_compile = __esm(() => {
178229
178262
  init_startupBanner();
178230
178263
  init_telemetryEvent();
178231
178264
  init_utils();
178265
+ INLINE_SOURCE_MAP_RE = /sourceMappingURL=data:application\/json(?:;[^,]+)?;base64,([A-Za-z0-9+/=]+)\s*$/;
178232
178266
  SERVER_RUNTIME_ASSET_RE = /new\s+URL\(\s*["'](\.\/[^"']+)["']\s*,\s*import\.meta\.url\s*\)/g;
178233
178267
  SERVER_RUNTIME_IMPORT_META_DIR_JOIN_RE = /(?:join|resolve)\(\s*import\.meta\.dir\s*,\s*((?:(?:"[^"]+"|'[^']+')\s*,?\s*)+)\)/g;
178234
178268
  SERVER_RUNTIME_STRING_ARG_RE = /["']([^"']+)["']/g;
package/package.json CHANGED
@@ -45,7 +45,7 @@
45
45
  "elysia-scoped-state": "0.1.1",
46
46
  "ember-source": "^6.12.0",
47
47
  "eslint": "10.0.3",
48
- "eslint-plugin-absolute": "0.11.14",
48
+ "eslint-plugin-absolute": "0.11.16",
49
49
  "eslint-plugin-promise": "7.2.1",
50
50
  "eslint-plugin-security": "4.0.0",
51
51
  "globals": "^17.4.0",
@@ -427,7 +427,7 @@
427
427
  ]
428
428
  }
429
429
  },
430
- "version": "0.19.0-beta.1109",
430
+ "version": "0.19.0-beta.1110",
431
431
  "workspaces": [
432
432
  "tests/fixtures/*",
433
433
  "tests/fixtures/_packages/*"