@primitive.ai/prim 0.1.0-alpha.69 → 0.1.0-alpha.70
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/hook-runtime/index.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -39791,9 +39791,9 @@ function parseGitHubInstallIntentStatus(value, expectedExpiresAt) {
|
|
|
39791
39791
|
return value;
|
|
39792
39792
|
}
|
|
39793
39793
|
async function createGitHubInstallIntent(client, options = {}) {
|
|
39794
|
-
const { now, ...requestOptions } = options;
|
|
39794
|
+
const { now = Date.now, ...requestOptions } = options;
|
|
39795
39795
|
const raw = await client.post(START_PATH, void 0, requestOptions);
|
|
39796
|
-
const parsed = parseGitHubInstallIntentStart(raw, now
|
|
39796
|
+
const parsed = parseGitHubInstallIntentStart(raw, now());
|
|
39797
39797
|
if (!parsed) throw new Error("server returned an invalid GitHub install-intent response");
|
|
39798
39798
|
return parsed;
|
|
39799
39799
|
}
|
|
@@ -39938,7 +39938,7 @@ async function performGithubConnect(dependencies = defaultDependencies3, options
|
|
|
39938
39938
|
}
|
|
39939
39939
|
const start = await dependencies.createInstallIntent(client, {
|
|
39940
39940
|
signal: AbortSignal.timeout(START_TIMEOUT_MS),
|
|
39941
|
-
now: dependencies.now
|
|
39941
|
+
now: dependencies.now
|
|
39942
39942
|
});
|
|
39943
39943
|
const status = await completeInstallIntent(
|
|
39944
39944
|
client,
|
package/dist/index.js
CHANGED
|
@@ -16916,9 +16916,9 @@ function parseGitHubInstallIntentStatus(value, expectedExpiresAt) {
|
|
|
16916
16916
|
return value;
|
|
16917
16917
|
}
|
|
16918
16918
|
async function createGitHubInstallIntent(client, options = {}) {
|
|
16919
|
-
const { now, ...requestOptions } = options;
|
|
16919
|
+
const { now = Date.now, ...requestOptions } = options;
|
|
16920
16920
|
const raw = await client.post(START_PATH, void 0, requestOptions);
|
|
16921
|
-
const parsed = parseGitHubInstallIntentStart(raw, now
|
|
16921
|
+
const parsed = parseGitHubInstallIntentStart(raw, now());
|
|
16922
16922
|
if (!parsed) throw new Error("server returned an invalid GitHub install-intent response");
|
|
16923
16923
|
return parsed;
|
|
16924
16924
|
}
|
|
@@ -17063,7 +17063,7 @@ async function performGithubConnect(dependencies = defaultDependencies3, options
|
|
|
17063
17063
|
}
|
|
17064
17064
|
const start = await dependencies.createInstallIntent(client, {
|
|
17065
17065
|
signal: AbortSignal.timeout(START_TIMEOUT_MS),
|
|
17066
|
-
now: dependencies.now
|
|
17066
|
+
now: dependencies.now
|
|
17067
17067
|
});
|
|
17068
17068
|
const status = await completeInstallIntent(
|
|
17069
17069
|
client,
|
package/package.json
CHANGED