oauth4webapi 2.12.2 → 2.13.0
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/README.md +1 -7
- package/build/index.d.ts +2 -2
- package/build/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Support from the community to continue maintaining and improving this module is
|
|
|
33
33
|
|
|
34
34
|
## [API Reference](docs/README.md)
|
|
35
35
|
|
|
36
|
-
`oauth4webapi` is distributed via [npmjs.com](https://www.npmjs.com/package/oauth4webapi), [deno.land/x](https://deno.land/x/oauth4webapi), [cdnjs.com](https://cdnjs.com/libraries/oauth4webapi), [jsdelivr.com](https://www.jsdelivr.com/package/npm/oauth4webapi), and [github.com](https://github.com/panva/oauth4webapi).
|
|
36
|
+
`oauth4webapi` is distributed via [npmjs.com](https://www.npmjs.com/package/oauth4webapi), [jsr.io](https://jsr.io/@panva/oauth4webapi), [deno.land/x](https://deno.land/x/oauth4webapi), [cdnjs.com](https://cdnjs.com/libraries/oauth4webapi), [jsdelivr.com](https://www.jsdelivr.com/package/npm/oauth4webapi), and [github.com](https://github.com/panva/oauth4webapi).
|
|
37
37
|
|
|
38
38
|
## [Examples](examples/README.md)
|
|
39
39
|
|
|
@@ -43,12 +43,6 @@ Support from the community to continue maintaining and improving this module is
|
|
|
43
43
|
import * as oauth from 'oauth4webapi'
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
**`example`** Deno import
|
|
47
|
-
|
|
48
|
-
```js
|
|
49
|
-
import * as oauth from 'https://deno.land/x/oauth4webapi@v2.12.2/mod.ts'
|
|
50
|
-
```
|
|
51
|
-
|
|
52
46
|
- Authorization Code Flow (OAuth 2.0) - [source](examples/oauth.ts)
|
|
53
47
|
- Authorization Code Flow (OpenID Connect) - [source](examples/oidc.ts) | [diff](examples/oidc.diff)
|
|
54
48
|
- Extensions
|
package/build/index.d.ts
CHANGED
|
@@ -1791,13 +1791,13 @@ export type IntrospectionConfirmationClaims = ConfirmationClaims;
|
|
|
1791
1791
|
*
|
|
1792
1792
|
* @deprecated Use {@link validateDetachedSignatureResponse}.
|
|
1793
1793
|
*/
|
|
1794
|
-
export declare const experimental_validateDetachedSignatureResponse: (as: AuthorizationServer, client: Client, parameters: URLSearchParams | URL, expectedNonce: string, expectedState?: string | typeof expectNoState | undefined, maxAge?: number | typeof skipAuthTimeCheck | undefined, options?: ValidateDetachedSignatureResponseOptions | undefined) =>
|
|
1794
|
+
export declare const experimental_validateDetachedSignatureResponse: (as: AuthorizationServer, client: Client, parameters: URLSearchParams | URL, expectedNonce: string, expectedState?: string | typeof expectNoState | undefined, maxAge?: number | typeof skipAuthTimeCheck | undefined, options?: ValidateDetachedSignatureResponseOptions | undefined) => ReturnType<typeof validateDetachedSignatureResponse>;
|
|
1795
1795
|
/**
|
|
1796
1796
|
* @ignore
|
|
1797
1797
|
*
|
|
1798
1798
|
* @deprecated Use {@link validateJwtAccessToken}.
|
|
1799
1799
|
*/
|
|
1800
|
-
export declare const experimental_validateJwtAccessToken: (as: AuthorizationServer, request: Request, expectedAudience: string, options?: ValidateJWTAccessTokenOptions | undefined) =>
|
|
1800
|
+
export declare const experimental_validateJwtAccessToken: (as: AuthorizationServer, request: Request, expectedAudience: string, options?: ValidateJWTAccessTokenOptions | undefined) => ReturnType<typeof validateJwtAccessToken>;
|
|
1801
1801
|
/**
|
|
1802
1802
|
* @ignore
|
|
1803
1803
|
*
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let USER_AGENT;
|
|
2
2
|
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) {
|
|
3
3
|
const NAME = 'oauth4webapi';
|
|
4
|
-
const VERSION = 'v2.
|
|
4
|
+
const VERSION = 'v2.13.0';
|
|
5
5
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
6
6
|
}
|
|
7
7
|
function looseInstanceOf(input, expected) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oauth4webapi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "OAuth 2 / OpenID Connect for JavaScript Runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"access token",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
52
|
"_format": "find src test tap examples conformance -type f -name '*.ts' -o -name '*.mjs' -o -name '*.cjs' | xargs prettier",
|
|
53
|
-
"build": "rm -rf build && tsc && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap",
|
|
53
|
+
"build": "rm -rf build && tsc && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap && npx jsr publish --dry-run --allow-dirty",
|
|
54
54
|
"conformance": "bash -c 'source .node_flags.sh && ava --config conformance/ava.config.ts'",
|
|
55
55
|
"docs": "patch-package && typedoc",
|
|
56
56
|
"format": "npm run _format -- --write",
|