@ghostystudio/cli 0.57.0 → 0.57.1
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/README.md +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ Every command has its own help with examples: `ghosty <command> --help` or `ghos
|
|
|
109
109
|
|
|
110
110
|
Exit codes: `0` ok · `1` API error · `2` usage error · `3` not signed in.
|
|
111
111
|
|
|
112
|
-
### Changes in 0.57.0
|
|
112
|
+
### Changes in 0.57.1 (0.57.0 + the 0.56.1 factory fix)
|
|
113
113
|
|
|
114
114
|
- `sites pin <slug>` / `sites unpin <slug>` / `sites pins [--cancel|--resume]`: «Pinned sites» — $49 USD/yr or $5 USD/mo ($990 / $99 MXN), includes up to 3 sites per pack; a pinned site never pauses and has no banner. `--interval year|month`, `--currency usd|mxn`, `--add-pack`.
|
|
115
115
|
- `sites ls` shows each site's state (pinned, paused, pauses on…).
|
package/dist/index.js
CHANGED
|
@@ -8468,7 +8468,7 @@ async function postLong(path, body, timeoutMs = 9e5) {
|
|
|
8468
8468
|
const req = httpsRequest(`${base}${path}`, {
|
|
8469
8469
|
method: "POST",
|
|
8470
8470
|
timeout: timeoutMs,
|
|
8471
|
-
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.57.
|
|
8471
|
+
headers: { authorization: `Bearer ${token}`, "user-agent": `ghosty-cli/${"0.57.1"}`, "content-type": "application/json", "content-length": Buffer.byteLength(data) }
|
|
8472
8472
|
}, (res) => {
|
|
8473
8473
|
let buf = "";
|
|
8474
8474
|
res.on("data", (c) => buf += c);
|
|
@@ -8510,7 +8510,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
8510
8510
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
8511
8511
|
headers: {
|
|
8512
8512
|
authorization: `Bearer ${token}`,
|
|
8513
|
-
"user-agent": `ghosty-cli/${"0.57.
|
|
8513
|
+
"user-agent": `ghosty-cli/${"0.57.1"}`,
|
|
8514
8514
|
"accept-language": lang(),
|
|
8515
8515
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
8516
8516
|
...opts.headers
|
|
@@ -10404,7 +10404,7 @@ async function call(path, v, init = {}) {
|
|
|
10404
10404
|
"x-ghosty-ts": ts,
|
|
10405
10405
|
"x-ghosty-sig": sig,
|
|
10406
10406
|
"content-type": "application/json",
|
|
10407
|
-
"user-agent": `ghosty-cli/${"0.57.
|
|
10407
|
+
"user-agent": `ghosty-cli/${"0.57.1"}`
|
|
10408
10408
|
},
|
|
10409
10409
|
body: method === "GET" ? void 0 : raw
|
|
10410
10410
|
});
|
|
@@ -15157,7 +15157,7 @@ async function main() {
|
|
|
15157
15157
|
const tokens = splitTokens(pos, v);
|
|
15158
15158
|
globals.token = tokens.session;
|
|
15159
15159
|
globals.profile = v.profile;
|
|
15160
|
-
if (v.version) return out({ version: "0.57.
|
|
15160
|
+
if (v.version) return out({ version: "0.57.1" }, () => "0.57.1");
|
|
15161
15161
|
for (const n of normalizeArgs(pos, v)) if (!globals.json) info(dim(n));
|
|
15162
15162
|
const context = (await readConfig()).workspace;
|
|
15163
15163
|
if (!explicitToken()?.startsWith("gat_")) {
|
|
@@ -15323,7 +15323,7 @@ async function main() {
|
|
|
15323
15323
|
throw unknown(cmd, cmd, COMMANDS, "ghosty --help");
|
|
15324
15324
|
}
|
|
15325
15325
|
}
|
|
15326
|
-
var notice = updateNotice("0.57.
|
|
15326
|
+
var notice = updateNotice("0.57.1").catch(() => null);
|
|
15327
15327
|
main().then(
|
|
15328
15328
|
async () => {
|
|
15329
15329
|
const n = await notice;
|
package/package.json
CHANGED