@postonus/cli 0.1.45 → 0.1.47
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/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8176,6 +8176,7 @@ var LibraryMediaSchema = object({
|
|
|
8176
8176
|
width: number2().int().nullable(),
|
|
8177
8177
|
height: number2().int().nullable(),
|
|
8178
8178
|
durationMs: number2().int().nullable(),
|
|
8179
|
+
posterUrl: string2().nullable(),
|
|
8179
8180
|
variants: MediaVariantsSchema,
|
|
8180
8181
|
variantsStatus: MediaVariantsStatusSchema,
|
|
8181
8182
|
usedInPostsCount: number2().int(),
|
|
@@ -12873,7 +12874,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12873
12874
|
}
|
|
12874
12875
|
|
|
12875
12876
|
// src/version.ts
|
|
12876
|
-
var CLI_VERSION = "0.1.
|
|
12877
|
+
var CLI_VERSION = "0.1.47";
|
|
12877
12878
|
|
|
12878
12879
|
// src/client.ts
|
|
12879
12880
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
@@ -13239,10 +13240,12 @@ async function pollForToken(apiUrl, clientId, device) {
|
|
|
13239
13240
|
}
|
|
13240
13241
|
function LoginPrompt({ device, run }) {
|
|
13241
13242
|
const exit = useExit();
|
|
13243
|
+
const runRef = React2.useRef(run);
|
|
13244
|
+
const exitRef = React2.useRef(exit);
|
|
13242
13245
|
React2.useEffect(() => {
|
|
13243
|
-
|
|
13244
|
-
() =>
|
|
13245
|
-
(cause) =>
|
|
13246
|
+
runRef.current().then(
|
|
13247
|
+
() => exitRef.current(),
|
|
13248
|
+
(cause) => exitRef.current(cause instanceof Error ? cause : new Error(String(cause)))
|
|
13246
13249
|
);
|
|
13247
13250
|
}, []);
|
|
13248
13251
|
return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", gap: 1, paddingY: 1, children: [
|