@haakco/hostingctl 1.0.350 → 1.0.352
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/main.js +21 -9
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
package/dist/main.js
CHANGED
|
@@ -10604,11 +10604,13 @@ async function applicationCache(context, action, path, rest) {
|
|
|
10604
10604
|
if (action === "cache-purge") return await written$4(confirmableWrite(context, "Clear this application's HTTP cache now.", async () => {
|
|
10605
10605
|
return (await hostingApplicationCachePurge({ path })).data;
|
|
10606
10606
|
}));
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10607
|
+
if (action === "cache-set") {
|
|
10608
|
+
const body = cacheBody(context);
|
|
10609
|
+
return await written$4(confirmableWrite(context, `Change this application's cache: ${Object.keys(body).join(", ") || "nothing named"}.`, async () => (await hostingApplicationCacheUpdate({
|
|
10610
|
+
path,
|
|
10611
|
+
body
|
|
10612
|
+
})).data));
|
|
10613
|
+
}
|
|
10612
10614
|
if (action === "canonical") {
|
|
10613
10615
|
const routeUuid = context.flags.get("--route") ?? "";
|
|
10614
10616
|
if (routeUuid === "") throw new UsageError(`canonical needs --route.\n\n${USAGE$41}`);
|
|
@@ -26081,6 +26083,8 @@ var hostingApplicationCapabilitiesDataSchema = object({
|
|
|
26081
26083
|
pause: boolean(),
|
|
26082
26084
|
backups: boolean(),
|
|
26083
26085
|
unsupported: array(string()),
|
|
26086
|
+
version: string().nullable(),
|
|
26087
|
+
upgradableVersions: array(string()),
|
|
26084
26088
|
outputs: array(hostingCuratedComponentOutputDataSchema)
|
|
26085
26089
|
});
|
|
26086
26090
|
var hostingResourceDataSchema = object({
|
|
@@ -26826,6 +26830,12 @@ var hostingConfigurationReleaseDataSchema = object({
|
|
|
26826
26830
|
env: array(hostingConfigurationEnvironmentDataSchema)
|
|
26827
26831
|
});
|
|
26828
26832
|
var hostingReverbProcessDataSchema = object({ publicPath: string() });
|
|
26833
|
+
var hostingConfigurationCacheDataSchema = object({
|
|
26834
|
+
enabled: boolean(),
|
|
26835
|
+
freshSeconds: int().nullable(),
|
|
26836
|
+
backgroundSeconds: int().nullable(),
|
|
26837
|
+
browserMaxAgeSeconds: int().nullable()
|
|
26838
|
+
});
|
|
26829
26839
|
var hostingConfigurationApplicationDataSchema = object({
|
|
26830
26840
|
key: string(),
|
|
26831
26841
|
runtime: string(),
|
|
@@ -26837,7 +26847,8 @@ var hostingConfigurationApplicationDataSchema = object({
|
|
|
26837
26847
|
workers: array(hostingConfigurationWorkerDataSchema),
|
|
26838
26848
|
cron: array(hostingConfigurationScheduleDataSchema),
|
|
26839
26849
|
release: union([hostingConfigurationReleaseDataSchema, _null()]),
|
|
26840
|
-
reverb: union([hostingReverbProcessDataSchema, _null()])
|
|
26850
|
+
reverb: union([hostingReverbProcessDataSchema, _null()]),
|
|
26851
|
+
cache: union([hostingConfigurationCacheDataSchema, _null()])
|
|
26841
26852
|
});
|
|
26842
26853
|
var hostingConfigurationApplicationPreviewDataSchema = object({
|
|
26843
26854
|
key: string(),
|
|
@@ -27812,6 +27823,7 @@ object({
|
|
|
27812
27823
|
claimNames: array(string()),
|
|
27813
27824
|
after: hostingAllocationDataSchema,
|
|
27814
27825
|
purchase: hostingBudgetDataSchema,
|
|
27826
|
+
sharedPod: union([hostingResourceDataSchema, _null()]),
|
|
27815
27827
|
fits: boolean(),
|
|
27816
27828
|
restart: string(),
|
|
27817
27829
|
blockedReason: string().nullable()
|
|
@@ -36818,7 +36830,7 @@ function writeUpdateState(state, env = process.env) {
|
|
|
36818
36830
|
}
|
|
36819
36831
|
//#endregion
|
|
36820
36832
|
//#region src/version.ts
|
|
36821
|
-
var VERSION = "1.0.
|
|
36833
|
+
var VERSION = "1.0.352";
|
|
36822
36834
|
//#endregion
|
|
36823
36835
|
//#region src/commands/update.ts
|
|
36824
36836
|
/**
|
|
@@ -36893,7 +36905,7 @@ var update = {
|
|
|
36893
36905
|
}, process.env);
|
|
36894
36906
|
return {
|
|
36895
36907
|
...known,
|
|
36896
|
-
current: after ?? "1.0.
|
|
36908
|
+
current: after ?? "1.0.352",
|
|
36897
36909
|
latest: after ?? latest,
|
|
36898
36910
|
upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
|
|
36899
36911
|
action: "run",
|
|
@@ -37168,7 +37180,7 @@ async function printUpdateNotice(options) {
|
|
|
37168
37180
|
}, env, { waitMs: NOTICE_LOCK_WAIT_MS });
|
|
37169
37181
|
} catch {}
|
|
37170
37182
|
if (latest === null) return;
|
|
37171
|
-
if (!isNewerVersion(latest, "1.0.
|
|
37183
|
+
if (!isNewerVersion(latest, "1.0.352")) return;
|
|
37172
37184
|
process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
|
|
37173
37185
|
}
|
|
37174
37186
|
/** Whether an environment variable is set to something, which is how CI and the opt-out are read. */
|