@absolutejs/absolute 0.19.0-beta.1002 → 0.19.0-beta.1004

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-QcnKME/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-yvlu3P/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-QcnKME/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-yvlu3P/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-QcnKME/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-yvlu3P/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/build.js CHANGED
@@ -20748,21 +20748,30 @@ ${content.slice(firstUseIdx)}`;
20748
20748
  continue;
20749
20749
  manifest[toPascal(baseName)] = artifact.path;
20750
20750
  }
20751
+ const stripHash = (fileBase, hash) => {
20752
+ if (hash) {
20753
+ const tag = `.${hash}.`;
20754
+ const idx = fileBase.indexOf(tag);
20755
+ if (idx > 0)
20756
+ return fileBase.slice(0, idx);
20757
+ }
20758
+ const m = fileBase.match(/^(.+)\.[a-z0-9]{8,}\.[^.]+$/i);
20759
+ return m ? m[1] : null;
20760
+ };
20751
20761
  const cssByName = new Map;
20752
20762
  for (const artifact of cssOutputs) {
20753
20763
  if (extname8(artifact.path) !== ".css")
20754
20764
  continue;
20755
- const fileBase = basename10(artifact.path);
20756
- const [cssName] = fileBase.split(`.${artifact.hash}.`);
20765
+ const cssName = stripHash(basename10(artifact.path), artifact.hash);
20757
20766
  if (cssName)
20758
20767
  cssByName.set(cssName, artifact);
20759
20768
  }
20760
20769
  const fsPromises = await import("fs/promises");
20770
+ const siblingCssPaths = [];
20761
20771
  await Promise.all(serverOutputs.map(async (artifact) => {
20762
20772
  if (extname8(artifact.path) !== ".js")
20763
20773
  return;
20764
- const fileWithHash = basename10(artifact.path);
20765
- const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
20774
+ const pascalName = stripHash(basename10(artifact.path), artifact.hash);
20766
20775
  if (!pascalName)
20767
20776
  return;
20768
20777
  const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
@@ -20770,6 +20779,8 @@ ${content.slice(firstUseIdx)}`;
20770
20779
  return;
20771
20780
  const siblingCssPath = artifact.path.replace(/\.js$/, ".css");
20772
20781
  await fsPromises.copyFile(cssArtifact.path, siblingCssPath);
20782
+ siblingCssPaths.push(siblingCssPath);
20783
+ manifest[`${pascalName}Css`] = siblingCssPath;
20773
20784
  }));
20774
20785
  for (const serverPath of emberServerPaths) {
20775
20786
  const fileBase = basename10(serverPath, ".js");
@@ -20865,6 +20876,7 @@ ${content.slice(firstUseIdx)}`;
20865
20876
  ...nonReactClientOutputs.map((a) => a.path),
20866
20877
  ...islandClientOutputs.map((a) => a.path),
20867
20878
  ...cssOutputs.map((a) => a.path),
20879
+ ...siblingCssPaths,
20868
20880
  ...conventionOutputPaths
20869
20881
  ]));
20870
20882
  }
@@ -27079,5 +27091,5 @@ export {
27079
27091
  build
27080
27092
  };
27081
27093
 
27082
- //# debugId=174676E01B1E5D0164756E2164756E21
27094
+ //# debugId=848168031D8942E164756E2164756E21
27083
27095
  //# sourceMappingURL=build.js.map