oauth4webapi
Advanced tools
Comparing version 1.3.0 to 1.4.0
let USER_AGENT; | ||
if (typeof navigator === 'undefined' || !navigator.userAgent?.startsWith?.('Mozilla/5.0 ')) { | ||
const NAME = 'oauth4webapi'; | ||
const VERSION = 'v1.3.0'; | ||
const VERSION = 'v1.4.0'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -774,2 +774,3 @@ } | ||
await clientAuthentication(as, client, body, headers, options?.clientPrivateKey); | ||
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); | ||
return fetch(url.href, { | ||
@@ -776,0 +777,0 @@ body, |
{ | ||
"name": "oauth4webapi", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes", | ||
@@ -11,2 +11,3 @@ "keywords": [ | ||
"browser", | ||
"bun", | ||
"certified", | ||
@@ -51,3 +52,3 @@ "client", | ||
"build": "rm -rf build && tsc && tsc --declaration true --emitDeclarationOnly true --removeComments false && tsc -p test && tsc -p examples && tsc -p conformance && tsc -p tap", | ||
"conformance": "bash -c 'patch-package && source .node_flags.sh && ava --config conformance/ava.config.ts'", | ||
"conformance": "bash -c 'source .node_flags.sh && ava --config conformance/ava.config.mjs'", | ||
"docs": "patch-package && typedoc", | ||
@@ -57,7 +58,9 @@ "format": "npm run _format -- --write", | ||
"prepack": "npm run format && npm run docs && ./examples/.update-diffs.sh && git diff --quiet && npm run test && npm run build", | ||
"tap:browsers": "./tap/.browsers.sh", | ||
"tap:bun": "./tap/.bun.sh", | ||
"tap:deno": "./tap/.deno.sh", | ||
"tap:edge-runtime": "./tap/.edge-runtime.sh", | ||
"tap:electron": "./tap/.electron.sh", | ||
"tap:node": "bash -c './tap/.node.sh'", | ||
"tap:workers": "./tap/.workers.sh", | ||
"tap:browsers": "./tap/.browsers.sh", | ||
"test": "bash -c 'source .node_flags.sh && ava'" | ||
@@ -67,6 +70,7 @@ }, | ||
"@esbuild-kit/esm-loader": "^2.5.0", | ||
"@types/node": "^18.11.7", | ||
"@types/node": "^18.11.9", | ||
"@types/qunit": "^2.19.3", | ||
"ava": "^5.0.1", | ||
"edge-runtime": "^2.0.0", | ||
"bowser": "^2.11.0", | ||
"edge-runtime": "^2.0.1", | ||
"jose": "^4.10.4", | ||
@@ -77,6 +81,6 @@ "patch-package": "^6.5.0", | ||
"qunit": "^2.19.3", | ||
"testcafe": "^2.0.1", | ||
"testcafe": "^2.0.2", | ||
"testcafe-browser-provider-browserstack": "^1.14.0", | ||
"timekeeper": "^2.2.0", | ||
"typedoc": "^0.23.19", | ||
"typedoc": "^0.23.20", | ||
"typedoc-plugin-markdown": "^3.13.6", | ||
@@ -83,0 +87,0 @@ "typescript": "^4.8.4", |
@@ -61,6 +61,6 @@ # OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes | ||
- Browsers | ||
- Bun | ||
- Cloudflare Workers | ||
- Deno | ||
- Electron | ||
- Netlify Edge | ||
- Node.js ([runtime flags may be needed](https://github.com/panva/oauth4webapi/issues/8)) | ||
@@ -67,0 +67,0 @@ - Vercel's Edge Runtime |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124554
2767
19