@absolutejs/absolute 0.19.0-beta.946 → 0.19.0-beta.947

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-ij5VAt/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-dRgABl/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-ij5VAt/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-dRgABl/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-ij5VAt/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-dRgABl/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";
@@ -3668,7 +3668,7 @@ var traceAngularPhase = async (name, fn, metadata) => {
3668
3668
  if (fileName.startsWith(outDir))
3669
3669
  return fileName.substring(outDir.length + 1);
3670
3670
  return fileName;
3671
- }, hasJsLikeExtension = (path) => /\.(js|ts|mjs|cjs)$/.test(path), splitSpecifierAndQuery = (specifier) => {
3671
+ }, hasJsLikeExtension = (path) => /\.(js|ts|mjs|cjs|json)$/.test(path), splitSpecifierAndQuery = (specifier) => {
3672
3672
  const separator = specifier.indexOf("?");
3673
3673
  if (separator === -1) {
3674
3674
  return {
@@ -4228,11 +4228,12 @@ ${fields}
4228
4228
  });
4229
4229
  const tsconfigAliases = readTsconfigPathAliases();
4230
4230
  const resolveSourceFile2 = (candidate) => {
4231
- const candidates = candidate.match(/\.[cm]?[tj]sx?$/) ? [candidate] : [
4231
+ const candidates = candidate.match(/\.(?:[cm]?[tj]sx?|json)$/) ? [candidate] : [
4232
4232
  `${candidate}.ts`,
4233
4233
  `${candidate}.tsx`,
4234
4234
  `${candidate}.js`,
4235
4235
  `${candidate}.jsx`,
4236
+ `${candidate}.json`,
4236
4237
  join7(candidate, "index.ts"),
4237
4238
  join7(candidate, "index.tsx"),
4238
4239
  join7(candidate, "index.js"),
@@ -4310,6 +4311,16 @@ ${fields}
4310
4311
  if (visited.has(resolved))
4311
4312
  return;
4312
4313
  visited.add(resolved);
4314
+ if (resolved.endsWith(".json") && existsSync4(resolved)) {
4315
+ const inputDir2 = dirname4(resolved);
4316
+ const relativeDir2 = inputDir2.startsWith(baseDir) ? inputDir2.substring(baseDir.length + 1) : inputDir2;
4317
+ const targetDir2 = join7(outDir, relativeDir2);
4318
+ const targetPath2 = join7(targetDir2, basename3(resolved));
4319
+ await fs.mkdir(targetDir2, { recursive: true });
4320
+ await fs.copyFile(resolved, targetPath2);
4321
+ allOutputs.push(targetPath2);
4322
+ return;
4323
+ }
4313
4324
  let actualPath = resolved;
4314
4325
  if (!actualPath.endsWith(".ts"))
4315
4326
  actualPath += ".ts";
@@ -15207,5 +15218,5 @@ export {
15207
15218
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
15208
15219
  };
15209
15220
 
15210
- //# debugId=6D85501B608D604764756E2164756E21
15221
+ //# debugId=151AE35BEBD3A6CE64756E2164756E21
15211
15222
  //# sourceMappingURL=index.js.map