@postonus/cli 0.1.66 → 0.1.68
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12900,7 +12900,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12900
12900
|
}
|
|
12901
12901
|
|
|
12902
12902
|
// src/version.ts
|
|
12903
|
-
var CLI_VERSION = "0.1.
|
|
12903
|
+
var CLI_VERSION = "0.1.68";
|
|
12904
12904
|
|
|
12905
12905
|
// src/client.ts
|
|
12906
12906
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
@@ -13247,7 +13247,7 @@ var sleep = (ms) => new Promise((resolve) => {
|
|
|
13247
13247
|
setTimeout(resolve, ms);
|
|
13248
13248
|
});
|
|
13249
13249
|
async function pollForToken(apiUrl, clientId, device) {
|
|
13250
|
-
let intervalMs =
|
|
13250
|
+
let intervalMs = device.interval * 1e3;
|
|
13251
13251
|
const deadline = Date.now() + device.expires_in * 1e3;
|
|
13252
13252
|
while (Date.now() < deadline) {
|
|
13253
13253
|
await sleep(intervalMs);
|