@fedify/fedify 1.5.0-dev.653 → 1.5.0-dev.654
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/CHANGES.md +10 -0
- package/esm/deno.js +1 -1
- package/esm/runtime/key.js +25 -1
- package/esm/vocab/vocab.js +178 -178
- package/package.json +1 -1
- package/types/runtime/key.d.ts +16 -0
- package/types/runtime/key.d.ts.map +1 -1
package/package.json
CHANGED
package/types/runtime/key.d.ts
CHANGED
@@ -15,6 +15,22 @@ export declare function importSpki(pem: string): Promise<dntShim.CryptoKey>;
|
|
15
15
|
* @since 0.5.0
|
16
16
|
*/
|
17
17
|
export declare function exportSpki(key: dntShim.CryptoKey): Promise<string>;
|
18
|
+
/**
|
19
|
+
* Imports a PEM-PKCS#1 formatted public key.
|
20
|
+
* @param pem The PEM-PKCS#1 formatted public key.
|
21
|
+
* @returns The imported public key.
|
22
|
+
* @throws {TypeError} If the key is invalid or unsupported.
|
23
|
+
* @since 1.5.0
|
24
|
+
*/
|
25
|
+
export declare function importPkcs1(pem: string): Promise<dntShim.CryptoKey>;
|
26
|
+
/**
|
27
|
+
* Imports a PEM formatted public key (SPKI or PKCS#1).
|
28
|
+
* @param pem The PEM formatted public key to import (SPKI or PKCS#1).
|
29
|
+
* @returns The imported public key.
|
30
|
+
* @throws {TypeError} If the key is invalid or unsupported.
|
31
|
+
* @since 1.5.0
|
32
|
+
*/
|
33
|
+
export declare function importPem(pem: string): Promise<dntShim.CryptoKey>;
|
18
34
|
/**
|
19
35
|
* Imports a [Multibase]-encoded public key.
|
20
36
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/runtime/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAuB5C;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,S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