oauth4webapi 1.4.0 → 1.4.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.
- package/README.md +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ import * as oauth2 from 'oauth4webapi'
|
|
|
39
39
|
**`example`** Deno import
|
|
40
40
|
|
|
41
41
|
```js
|
|
42
|
-
import * as oauth2 from 'https://deno.land/x/oauth4webapi/
|
|
42
|
+
import * as oauth2 from 'https://deno.land/x/oauth4webapi/mod.ts'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
- Authorization Code Flow - OpenID Connect [source](examples/code.ts), or plain OAuth 2 [source](examples/oauth.ts)
|
package/build/index.d.ts
CHANGED
|
@@ -1084,7 +1084,7 @@ export declare function processJwksResponse(response: Response): Promise<JsonWeb
|
|
|
1084
1084
|
*
|
|
1085
1085
|
* @returns Validated Authorization Response parameters or Authorization Error Response.
|
|
1086
1086
|
*
|
|
1087
|
-
* @see [
|
|
1087
|
+
* @see [JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)](https://openid.net/specs/openid-financial-api-jarm.html)
|
|
1088
1088
|
*/
|
|
1089
1089
|
export declare function validateJwtAuthResponse(as: AuthorizationServer, client: Client, parameters: URLSearchParams | URL, expectedState?: string | typeof expectNoState | typeof skipStateCheck, options?: HttpRequestOptions): Promise<CallbackParameters | OAuth2Error>;
|
|
1090
1090
|
/**
|
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 = 'v1.4.
|
|
4
|
+
const VERSION = 'v1.4.1';
|
|
5
5
|
USER_AGENT = `${NAME}/${VERSION}`;
|
|
6
6
|
}
|
|
7
7
|
const encoder = new TextEncoder();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oauth4webapi",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"build/index.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"scripts": {
|
|
49
|
-
"_format": "find src test tap examples conformance -type f -name '*.ts' -o -name '*.mjs' | xargs prettier",
|
|
49
|
+
"_format": "find src test tap examples conformance -type f -name '*.ts' -o -name '*.mjs' -name '*.cjs' | xargs prettier",
|
|
50
50
|
"build": "rm -rf build && tsc && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap",
|
|
51
|
-
"conformance": "bash -c 'source .node_flags.sh && ava --config conformance/ava.config.
|
|
51
|
+
"conformance": "bash -c 'source .node_flags.sh && ava --config conformance/ava.config.ts'",
|
|
52
52
|
"docs": "patch-package && typedoc",
|
|
53
53
|
"format": "npm run _format -- --write",
|
|
54
54
|
"format-check": "npm run _format -- --check",
|
|
@@ -66,21 +66,18 @@
|
|
|
66
66
|
"@esbuild-kit/esm-loader": "^2.5.0",
|
|
67
67
|
"@types/node": "^18.11.9",
|
|
68
68
|
"@types/qunit": "^2.19.3",
|
|
69
|
-
"ava": "^5.0
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"jose": "^4.
|
|
69
|
+
"ava": "^5.1.0",
|
|
70
|
+
"edge-runtime": "^2.0.2",
|
|
71
|
+
"esbuild": "^0.15.14",
|
|
72
|
+
"jose": "^4.11.0",
|
|
73
73
|
"patch-package": "^6.5.0",
|
|
74
74
|
"prettier": "^2.7.1",
|
|
75
75
|
"prettier-plugin-jsdoc": "^0.4.2",
|
|
76
76
|
"qunit": "^2.19.3",
|
|
77
|
-
"testcafe": "^2.0.2",
|
|
78
|
-
"testcafe-browser-provider-browserstack": "^1.14.0",
|
|
79
77
|
"timekeeper": "^2.2.0",
|
|
80
78
|
"typedoc": "^0.23.20",
|
|
81
79
|
"typedoc-plugin-markdown": "^3.13.6",
|
|
82
80
|
"typescript": "^4.8.4",
|
|
83
|
-
"undici": "^5.12.0"
|
|
84
|
-
"workerd": "^1.20220926.3"
|
|
81
|
+
"undici": "^5.12.0"
|
|
85
82
|
}
|
|
86
83
|
}
|