@stripe/link-cli 0.2.2 → 0.2.3
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/cli.js +13 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -11525,6 +11525,7 @@ function createAuthCli(authResource, updateInfo) {
|
|
|
11525
11525
|
const maxAttempts = opts.maxAttempts;
|
|
11526
11526
|
const deadline = Date.now() + opts.timeout * 1e3;
|
|
11527
11527
|
let attempts = 0;
|
|
11528
|
+
let previousAttemptData;
|
|
11528
11529
|
while (true) {
|
|
11529
11530
|
const pending = storage.getPendingDeviceAuth();
|
|
11530
11531
|
if (pending && !storage.isAuthenticated()) {
|
|
@@ -11567,7 +11568,11 @@ function createAuthCli(authResource, updateInfo) {
|
|
|
11567
11568
|
yield status;
|
|
11568
11569
|
return;
|
|
11569
11570
|
}
|
|
11570
|
-
|
|
11571
|
+
const snapshot = JSON.stringify(status);
|
|
11572
|
+
if (snapshot !== previousAttemptData) {
|
|
11573
|
+
previousAttemptData = snapshot;
|
|
11574
|
+
yield status;
|
|
11575
|
+
}
|
|
11571
11576
|
await new Promise((resolve) => setTimeout(resolve, interval * 1e3));
|
|
11572
11577
|
}
|
|
11573
11578
|
}
|
|
@@ -13267,6 +13272,7 @@ function createSpendRequestCli(repository) {
|
|
|
13267
13272
|
]);
|
|
13268
13273
|
const deadline = Date.now() + timeout * 1e3;
|
|
13269
13274
|
let attempts = 0;
|
|
13275
|
+
let previousAttemptData;
|
|
13270
13276
|
while (true) {
|
|
13271
13277
|
const request = await repository.getSpendRequest(id, { include });
|
|
13272
13278
|
if (!request) {
|
|
@@ -13285,7 +13291,11 @@ function createSpendRequestCli(repository) {
|
|
|
13285
13291
|
yield request;
|
|
13286
13292
|
return;
|
|
13287
13293
|
}
|
|
13288
|
-
|
|
13294
|
+
const snapshot = JSON.stringify(request);
|
|
13295
|
+
if (snapshot !== previousAttemptData) {
|
|
13296
|
+
previousAttemptData = snapshot;
|
|
13297
|
+
yield request;
|
|
13298
|
+
}
|
|
13289
13299
|
await new Promise((resolve) => setTimeout(resolve, interval * 1e3));
|
|
13290
13300
|
}
|
|
13291
13301
|
}
|
|
@@ -13593,7 +13603,7 @@ var ResourceFactory = class {
|
|
|
13593
13603
|
};
|
|
13594
13604
|
|
|
13595
13605
|
// src/cli.tsx
|
|
13596
|
-
var cliVersion = "0.2.
|
|
13606
|
+
var cliVersion = "0.2.3";
|
|
13597
13607
|
var buildNumber = "1";
|
|
13598
13608
|
var cliName = "@stripe/link-cli";
|
|
13599
13609
|
var defaultHeaders = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/link-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"link-cli": "./dist/cli.js"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"tsx": "^4.21.0",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
41
|
"vitest": "^4.1.2",
|
|
42
|
-
"@stripe/link-
|
|
43
|
-
"@stripe/link-
|
|
42
|
+
"@stripe/link-sdk": "1.0.0",
|
|
43
|
+
"@stripe/link-typescript-config": "0.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup",
|