@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.
package/dist/index.js CHANGED
@@ -20974,12 +20974,21 @@ ${content.slice(firstUseIdx)}`;
20974
20974
  continue;
20975
20975
  manifest[toPascal(baseName)] = artifact.path;
20976
20976
  }
20977
+ const stripHash = (fileBase, hash) => {
20978
+ if (hash) {
20979
+ const tag = `.${hash}.`;
20980
+ const idx = fileBase.indexOf(tag);
20981
+ if (idx > 0)
20982
+ return fileBase.slice(0, idx);
20983
+ }
20984
+ const m = fileBase.match(/^(.+)\.[a-z0-9]{8,}\.[^.]+$/i);
20985
+ return m ? m[1] : null;
20986
+ };
20977
20987
  const cssByName = new Map;
20978
20988
  for (const artifact of cssOutputs) {
20979
20989
  if (extname8(artifact.path) !== ".css")
20980
20990
  continue;
20981
- const fileBase = basename11(artifact.path);
20982
- const [cssName] = fileBase.split(`.${artifact.hash}.`);
20991
+ const cssName = stripHash(basename11(artifact.path), artifact.hash);
20983
20992
  if (cssName)
20984
20993
  cssByName.set(cssName, artifact);
20985
20994
  }
@@ -20987,8 +20996,7 @@ ${content.slice(firstUseIdx)}`;
20987
20996
  await Promise.all(serverOutputs.map(async (artifact) => {
20988
20997
  if (extname8(artifact.path) !== ".js")
20989
20998
  return;
20990
- const fileWithHash = basename11(artifact.path);
20991
- const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
20999
+ const pascalName = stripHash(basename11(artifact.path), artifact.hash);
20992
21000
  if (!pascalName)
20993
21001
  return;
20994
21002
  const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
@@ -35737,5 +35745,5 @@ export {
35737
35745
  ANGULAR_INIT_TIMEOUT_MS
35738
35746
  };
35739
35747
 
35740
- //# debugId=0C4890D826CAFC9964756E2164756E21
35748
+ //# debugId=19D1F7803047673164756E2164756E21
35741
35749
  //# sourceMappingURL=index.js.map