@absolutejs/absolute 0.19.0-beta.874 → 0.19.0-beta.876

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-qVyOHQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-194B10/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-qVyOHQ/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-194B10/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-qVyOHQ/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-194B10/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
@@ -9561,12 +9561,12 @@ __export(exports_hmrInjectionPlugin, {
9561
9561
  });
9562
9562
  import { readFile as readFile5 } from "fs/promises";
9563
9563
  import { relative as relative6, resolve as resolve12 } from "path";
9564
- var ENTITY_DECORATOR_RE, IMPORT_RE, extractImportedLocalNames = (jsSource) => {
9564
+ var ENTITY_DECORATOR_RE, IMPORT_RE, TOP_LEVEL_DECL_RE, extractAllTopLevelNames = (jsSource) => {
9565
9565
  const names = new Set;
9566
9566
  IMPORT_RE.lastIndex = 0;
9567
- let match;
9568
- while ((match = IMPORT_RE.exec(jsSource)) !== null) {
9569
- const [, , nsName, defaultName, namedAfterDefault, named] = match;
9567
+ let importMatch;
9568
+ while ((importMatch = IMPORT_RE.exec(jsSource)) !== null) {
9569
+ const [, , nsName, defaultName, namedAfterDefault, named] = importMatch;
9570
9570
  if (nsName)
9571
9571
  names.add(nsName);
9572
9572
  if (defaultName)
@@ -9584,6 +9584,13 @@ var ENTITY_DECORATOR_RE, IMPORT_RE, extractImportedLocalNames = (jsSource) => {
9584
9584
  }
9585
9585
  }
9586
9586
  }
9587
+ TOP_LEVEL_DECL_RE.lastIndex = 0;
9588
+ let declMatch;
9589
+ while ((declMatch = TOP_LEVEL_DECL_RE.exec(jsSource)) !== null) {
9590
+ const name = declMatch[1];
9591
+ if (name)
9592
+ names.add(name);
9593
+ }
9587
9594
  return [...names];
9588
9595
  }, buildHmrTail = (className, encodedIdLiteral) => `
9589
9596
 
@@ -9706,8 +9713,8 @@ var ENTITY_DECORATOR_RE, IMPORT_RE, extractImportedLocalNames = (jsSource) => {
9706
9713
  const id = `${projectRel}@${className}`;
9707
9714
  return buildHmrTail(className, JSON.stringify(id));
9708
9715
  }).join("");
9709
- const importedLocalNames = extractImportedLocalNames(text);
9710
- const depsKeys = importedLocalNames.filter((n) => !classNames.includes(n)).join(", ");
9716
+ const topLevelNames = extractAllTopLevelNames(text);
9717
+ const depsKeys = topLevelNames.filter((n) => !classNames.includes(n)).join(", ");
9711
9718
  const depsBlock = classNames.length > 0 && depsKeys ? `
9712
9719
 
9713
9720
  // absolutejs HMR \u2014 Tier 1a class-deps registry
@@ -9722,6 +9729,7 @@ var ENTITY_DECORATOR_RE, IMPORT_RE, extractImportedLocalNames = (jsSource) => {
9722
9729
  var init_hmrInjectionPlugin = __esm(() => {
9723
9730
  ENTITY_DECORATOR_RE = /([A-Z][A-Za-z0-9_$]*)\s*=\s*__legacyDecorateClassTS[A-Za-z0-9_$]*\s*\(\s*\[[\s\S]*?\b(?:Component|Directive|Pipe|Injectable)[A-Za-z0-9_$]*\s*\(/g;
9724
9731
  IMPORT_RE = /^\s*import\s+(?:(?:(\*)\s+as\s+([A-Za-z_$][\w$]*)\s+from)|(?:([A-Za-z_$][\w$]*)(?:\s*,\s*\{([^}]*)\})?\s+from)|(?:\{([^}]*)\}\s+from))\s*['"][^'"]+['"]/gm;
9732
+ TOP_LEVEL_DECL_RE = /^(?:export\s+)?(?:const|let|var|function|class)\s+([A-Za-z_$][\w$]*)/gm;
9725
9733
  });
9726
9734
 
9727
9735
  // src/utils/cleanStaleOutputs.ts
@@ -19111,16 +19119,20 @@ ${block}
19111
19119
  if (methodsBlock) {
19112
19120
  const tail = `
19113
19121
  if (typeof _Fresh !== 'undefined') {
19122
+ var __abs_liveFac = ${className}.\u0275fac;
19123
+ var __abs_freshFac = typeof __abs_liveFac === 'function'
19124
+ ? function(t) { return __abs_liveFac(t || _Fresh); }
19125
+ : function() { return new _Fresh(); };
19114
19126
  _Fresh.\u0275cmp = Object.assign(
19115
19127
  Object.create(Object.getPrototypeOf(${className}.\u0275cmp)),
19116
19128
  ${className}.\u0275cmp,
19117
19129
  {
19118
19130
  type: _Fresh,
19119
- factory: function() { return new _Fresh(); },
19131
+ factory: __abs_freshFac,
19120
19132
  tView: null
19121
19133
  }
19122
19134
  );
19123
- _Fresh.\u0275fac = function() { return new _Fresh(); };
19135
+ _Fresh.\u0275fac = __abs_freshFac;
19124
19136
  return _Fresh;
19125
19137
  }
19126
19138
  `;
@@ -21785,5 +21797,5 @@ export {
21785
21797
  build
21786
21798
  };
21787
21799
 
21788
- //# debugId=DF749971C65FD03864756E2164756E21
21800
+ //# debugId=41B1A6E07AC97C0564756E2164756E21
21789
21801
  //# sourceMappingURL=build.js.map