jose 4.10.2 → 4.10.4
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
CHANGED
|
@@ -78,14 +78,18 @@ import * as jose from 'https://deno.land/x/jose/index.ts'
|
|
|
78
78
|
- [Unsecured JWT](docs/classes/jwt_unsecured.UnsecuredJWT.md#readme)
|
|
79
79
|
- [JOSE Errors](docs/modules/util_errors.md#readme)
|
|
80
80
|
|
|
81
|
-
## Supported Runtimes
|
|
81
|
+
## Supported Runtimes
|
|
82
82
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
- [
|
|
87
|
-
- [
|
|
88
|
-
- [
|
|
83
|
+
The supported JavaScript runtimes include ones that support the utilized Web API globals and standard built-in objects or are Node.js
|
|
84
|
+
|
|
85
|
+
These are _(this is not an exhaustive list)_:
|
|
86
|
+
- [Browsers](https://github.com/panva/jose/issues/263)
|
|
87
|
+
- [Cloudflare Workers](https://github.com/panva/jose/issues/265)
|
|
88
|
+
- [Deno](https://github.com/panva/jose/issues/266)
|
|
89
|
+
- [Electron](https://github.com/panva/jose/issues/264)
|
|
90
|
+
- [Netlify Edge](https://github.com/panva/jose/issues/266)
|
|
91
|
+
- [Node.js](https://github.com/panva/jose/issues/262)
|
|
92
|
+
- [Vercel's Edge Runtime](https://github.com/panva/jose/issues/301)
|
|
89
93
|
|
|
90
94
|
## FAQ
|
|
91
95
|
|
|
@@ -109,8 +113,6 @@ multiple times so that it can remain truly without dependencies and be universal
|
|
|
109
113
|
Nevertheless, since each module can be required independently and is fully tree-shakeable, the
|
|
110
114
|
install size should not be a cause for concern.
|
|
111
115
|
|
|
112
|
-
[documentation]: /docs/README.md
|
|
113
|
-
[node-jose]: https://github.com/cisco/node-jose
|
|
114
116
|
[spec-b64]: https://www.rfc-editor.org/rfc/rfc7797
|
|
115
117
|
[spec-cookbook]: https://www.rfc-editor.org/rfc/rfc7520
|
|
116
118
|
[spec-jwa]: https://www.rfc-editor.org/rfc/rfc7518
|
|
@@ -122,15 +124,3 @@ install size should not be a cause for concern.
|
|
|
122
124
|
[spec-secp256k1]: https://www.rfc-editor.org/rfc/rfc8812
|
|
123
125
|
[spec-thumbprint]: https://www.rfc-editor.org/rfc/rfc7638
|
|
124
126
|
[spec-thumbprint-uri]: https://www.rfc-editor.org/rfc/rfc9278
|
|
125
|
-
[support-sponsor]: https://github.com/sponsors/panva
|
|
126
|
-
[conditional-exports]: https://nodejs.org/api/packages.html#packages_conditional_exports
|
|
127
|
-
[webcrypto]: https://www.w3.org/TR/WebCryptoAPI/
|
|
128
|
-
[nodewebcrypto]: https://nodejs.org/docs/latest-v15.x/api/webcrypto.html
|
|
129
|
-
[deno.land/x/jose]: https://deno.land/x/jose
|
|
130
|
-
|
|
131
|
-
[Browser Support]: https://github.com/panva/jose/issues/263
|
|
132
|
-
[Cloudflare Workers Support]: https://github.com/panva/jose/issues/265
|
|
133
|
-
[Deno Support]: https://github.com/panva/jose/issues/266
|
|
134
|
-
[Electron Support]: https://github.com/panva/jose/issues/264
|
|
135
|
-
[Next.js Middleware / Vercel Edge Functions Support]: https://github.com/panva/jose/issues/301
|
|
136
|
-
[Node.js Support]: https://github.com/panva/jose/issues/262
|
|
@@ -94,7 +94,7 @@ export async function importX509(x509, alg, options) {
|
|
|
94
94
|
}
|
|
95
95
|
export async function importPKCS8(pkcs8, alg, options) {
|
|
96
96
|
if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {
|
|
97
|
-
throw new TypeError('"pkcs8" must be
|
|
97
|
+
throw new TypeError('"pkcs8" must be PKCS8 formatted string');
|
|
98
98
|
}
|
|
99
99
|
return importPrivate(pkcs8, alg, options);
|
|
100
100
|
}
|
|
@@ -99,7 +99,7 @@ async function importX509(x509, alg, options) {
|
|
|
99
99
|
exports.importX509 = importX509;
|
|
100
100
|
async function importPKCS8(pkcs8, alg, options) {
|
|
101
101
|
if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {
|
|
102
|
-
throw new TypeError('"pkcs8" must be
|
|
102
|
+
throw new TypeError('"pkcs8" must be PKCS8 formatted string');
|
|
103
103
|
}
|
|
104
104
|
return (0, asn1_js_2.fromPKCS8)(pkcs8, alg, options);
|
|
105
105
|
}
|
|
@@ -94,7 +94,7 @@ export async function importX509(x509, alg, options) {
|
|
|
94
94
|
}
|
|
95
95
|
export async function importPKCS8(pkcs8, alg, options) {
|
|
96
96
|
if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {
|
|
97
|
-
throw new TypeError('"pkcs8" must be
|
|
97
|
+
throw new TypeError('"pkcs8" must be PKCS8 formatted string');
|
|
98
98
|
}
|
|
99
99
|
return importPrivate(pkcs8, alg, options);
|
|
100
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jose",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4",
|
|
4
4
|
"description": "'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, and other Web-interoperable runtimes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"ec",
|
|
14
14
|
"ecdsa",
|
|
15
15
|
"eddsa",
|
|
16
|
+
"edge",
|
|
16
17
|
"electron",
|
|
17
18
|
"embedded",
|
|
18
19
|
"encrypt",
|
|
@@ -28,6 +29,9 @@
|
|
|
28
29
|
"jwks",
|
|
29
30
|
"jws",
|
|
30
31
|
"jwt",
|
|
32
|
+
"netlify",
|
|
33
|
+
"next",
|
|
34
|
+
"nextjs",
|
|
31
35
|
"oct",
|
|
32
36
|
"okp",
|
|
33
37
|
"payload",
|
|
@@ -40,6 +44,7 @@
|
|
|
40
44
|
"spki",
|
|
41
45
|
"universal",
|
|
42
46
|
"validate",
|
|
47
|
+
"vercel",
|
|
43
48
|
"verify",
|
|
44
49
|
"webcrypto",
|
|
45
50
|
"workers",
|