@absolutejs/absolute 0.19.0-beta.1001 → 0.19.0-beta.1003

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-s7GXPQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7ChxsF/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-s7GXPQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7ChxsF/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-s7GXPQ/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-7ChxsF/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,12 +20748,21 @@ ${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
  }
@@ -20761,8 +20770,7 @@ ${content.slice(firstUseIdx)}`;
20761
20770
  await Promise.all(serverOutputs.map(async (artifact) => {
20762
20771
  if (extname8(artifact.path) !== ".js")
20763
20772
  return;
20764
- const fileWithHash = basename10(artifact.path);
20765
- const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
20773
+ const pascalName = stripHash(basename10(artifact.path), artifact.hash);
20766
20774
  if (!pascalName)
20767
20775
  return;
20768
20776
  const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
@@ -27079,5 +27087,5 @@ export {
27079
27087
  build
27080
27088
  };
27081
27089
 
27082
- //# debugId=174676E01B1E5D0164756E2164756E21
27090
+ //# debugId=CAA7CB30992171A964756E2164756E21
27083
27091
  //# sourceMappingURL=build.js.map