@pnpm/network.web-auth 1101.1.0 → 1101.1.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.
|
@@ -41,4 +41,4 @@ export interface PollForWebAuthTokenParams {
|
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link WebAuthTimeoutError} if the timeout is exceeded.
|
|
43
43
|
*/
|
|
44
|
-
export declare function pollForWebAuthToken({ context: { Date, fetch, setTimeout }, doneUrl, fetchOptions, timeoutMs }: PollForWebAuthTokenParams): Promise<string>;
|
|
44
|
+
export declare function pollForWebAuthToken({ context: { Date, fetch, setTimeout }, doneUrl, fetchOptions, timeoutMs, }: PollForWebAuthTokenParams): Promise<string>;
|
|
@@ -29,4 +29,4 @@ export interface PromptBrowserOpenParams {
|
|
|
29
29
|
* Error-tolerant: failures in the keyboard listener or browser opening are
|
|
30
30
|
* logged as warnings and do not interrupt the poll.
|
|
31
31
|
*/
|
|
32
|
-
export declare function promptBrowserOpen({ authUrl, context, pollPromise }: PromptBrowserOpenParams): Promise<string>;
|
|
32
|
+
export declare function promptBrowserOpen({ authUrl, context, pollPromise, }: PromptBrowserOpenParams): Promise<string>;
|
package/lib/withOtpHandling.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface OtpHandlingParams<T> {
|
|
|
57
57
|
*
|
|
58
58
|
* @see https://github.com/npm/cli/blob/7d900c46/lib/utils/otplease.js for npm's implementation.
|
|
59
59
|
*/
|
|
60
|
-
export declare function withOtpHandling<T>({ context, fetchOptions, operation }: OtpHandlingParams<T>): Promise<T>;
|
|
60
|
+
export declare function withOtpHandling<T>({ context, fetchOptions, operation, }: OtpHandlingParams<T>): Promise<T>;
|
|
61
61
|
/**
|
|
62
62
|
* Synthetic instance of {@link OtpError} meant to be thrown by the callbacks of {@link withOtpHandling}
|
|
63
63
|
* and caught and handled by {@link withOtpHandling}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/network.web-auth",
|
|
3
|
-
"version": "1101.1.
|
|
3
|
+
"version": "1101.1.1",
|
|
4
4
|
"description": "Web-based authentication flow with QR code display and token polling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"funding": "https://opencollective.com/pnpm",
|
|
12
|
-
"repository":
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pnpm/pnpm/tree/main/network/web-auth"
|
|
15
|
+
},
|
|
13
16
|
"homepage": "https://github.com/pnpm/pnpm/tree/main/network/web-auth#readme",
|
|
14
17
|
"bugs": {
|
|
15
18
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
@@ -25,14 +28,14 @@
|
|
|
25
28
|
"!*.map"
|
|
26
29
|
],
|
|
27
30
|
"dependencies": {
|
|
28
|
-
"open": "^
|
|
31
|
+
"open": "^11.0.0",
|
|
29
32
|
"qrcode-terminal": "^0.12.0",
|
|
30
33
|
"@pnpm/error": "1100.0.0"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"@jest/globals": "30.
|
|
36
|
+
"@jest/globals": "30.4.1",
|
|
34
37
|
"@types/qrcode-terminal": "^0.12.2",
|
|
35
|
-
"@pnpm/network.web-auth": "1101.1.
|
|
38
|
+
"@pnpm/network.web-auth": "1101.1.1"
|
|
36
39
|
},
|
|
37
40
|
"engines": {
|
|
38
41
|
"node": ">=22.13"
|