@absolutejs/absolute 0.19.0-beta.1106 → 0.19.0-beta.1107
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-
|
|
4
|
+
// .angular-partial-tmp-1tyy8v/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-
|
|
4
|
+
// .angular-partial-tmp-1tyy8v/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-
|
|
51
|
+
// .angular-partial-tmp-1tyy8v/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/cli/index.js
CHANGED
|
@@ -180314,6 +180314,27 @@ var saveCache = async (tool, data) => {
|
|
|
180314
180314
|
};
|
|
180315
180315
|
|
|
180316
180316
|
// src/cli/scripts/prettier.ts
|
|
180317
|
+
var FLAG_VALUE_FLAGS2 = new Set([
|
|
180318
|
+
"--cache-location",
|
|
180319
|
+
"--config",
|
|
180320
|
+
"--config-precedence",
|
|
180321
|
+
"--cursor-offset",
|
|
180322
|
+
"--embedded-language-formatting",
|
|
180323
|
+
"--end-of-line",
|
|
180324
|
+
"--ignore-path",
|
|
180325
|
+
"--insert-pragma",
|
|
180326
|
+
"--log-level",
|
|
180327
|
+
"--parser",
|
|
180328
|
+
"--plugin",
|
|
180329
|
+
"--print-width",
|
|
180330
|
+
"--prose-wrap",
|
|
180331
|
+
"--quote-props",
|
|
180332
|
+
"--range-end",
|
|
180333
|
+
"--range-start",
|
|
180334
|
+
"--tab-width",
|
|
180335
|
+
"--trailing-comma",
|
|
180336
|
+
"--use-tabs"
|
|
180337
|
+
]);
|
|
180317
180338
|
var prettierAdapter = {
|
|
180318
180339
|
configFiles: [".prettierrc.json"],
|
|
180319
180340
|
fileGlobs: [
|
|
@@ -180339,7 +180360,35 @@ var prettierAdapter = {
|
|
|
180339
180360
|
name: "prettier",
|
|
180340
180361
|
buildCommand: (files, args) => ["bun", "prettier", ...args, ...files]
|
|
180341
180362
|
};
|
|
180363
|
+
var buildTargetedPrettierCommand = (args) => [
|
|
180364
|
+
"bun",
|
|
180365
|
+
"prettier",
|
|
180366
|
+
...args
|
|
180367
|
+
];
|
|
180368
|
+
var hasPrettierTarget = (args) => {
|
|
180369
|
+
for (let index = 0;index < args.length; index++) {
|
|
180370
|
+
const argument = args[index];
|
|
180371
|
+
if (argument === undefined)
|
|
180372
|
+
continue;
|
|
180373
|
+
if (argument === "--")
|
|
180374
|
+
return index + 1 < args.length;
|
|
180375
|
+
if (!argument.startsWith("-"))
|
|
180376
|
+
return true;
|
|
180377
|
+
if (!argument.includes("=") && FLAG_VALUE_FLAGS2.has(argument))
|
|
180378
|
+
index++;
|
|
180379
|
+
}
|
|
180380
|
+
return false;
|
|
180381
|
+
};
|
|
180342
180382
|
var prettier = async (args) => {
|
|
180383
|
+
if (hasPrettierTarget(args)) {
|
|
180384
|
+
const child = Bun.spawn(buildTargetedPrettierCommand(args), {
|
|
180385
|
+
stderr: "inherit",
|
|
180386
|
+
stdout: "inherit"
|
|
180387
|
+
});
|
|
180388
|
+
if (await child.exited !== 0)
|
|
180389
|
+
process.exitCode = 1;
|
|
180390
|
+
return;
|
|
180391
|
+
}
|
|
180343
180392
|
await runTool(prettierAdapter, args);
|
|
180344
180393
|
};
|
|
180345
180394
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { ToolAdapter } from '../../../types/tool';
|
|
2
2
|
export declare const prettierAdapter: ToolAdapter;
|
|
3
|
+
export declare const buildTargetedPrettierCommand: (args: string[]) => string[];
|
|
4
|
+
export declare const hasPrettierTarget: (args: string[]) => boolean;
|
|
3
5
|
export declare const prettier: (args: string[]) => Promise<void>;
|