edockit 0.1.2 → 0.2.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/CHANGELOG.md +43 -0
- package/README.md +84 -11
- package/dist/core/parser/types.d.ts +3 -0
- package/dist/core/revocation/check.d.ts +22 -0
- package/dist/core/revocation/crl.d.ts +34 -0
- package/dist/core/revocation/fetch.d.ts +51 -0
- package/dist/core/revocation/index.d.ts +4 -0
- package/dist/core/revocation/ocsp.d.ts +52 -0
- package/dist/core/revocation/types.d.ts +49 -0
- package/dist/core/timestamp/index.d.ts +2 -0
- package/dist/core/timestamp/types.d.ts +48 -0
- package/dist/core/timestamp/verify.d.ts +32 -0
- package/dist/core/verification.d.ts +12 -0
- package/dist/index.cjs.js +8821 -245
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +8819 -247
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +76 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/encoding.d.ts +28 -0
- package/package.json +5 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform encoding utilities for ArrayBuffer/Base64/Hex conversions
|
|
3
|
+
* Works in both browser and Node.js environments
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Convert ArrayBuffer to base64 string
|
|
7
|
+
*/
|
|
8
|
+
export declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
|
|
9
|
+
/**
|
|
10
|
+
* Convert base64 string to ArrayBuffer
|
|
11
|
+
*/
|
|
12
|
+
export declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
13
|
+
/**
|
|
14
|
+
* Convert base64 string to Uint8Array
|
|
15
|
+
*/
|
|
16
|
+
export declare function base64ToUint8Array(base64: string): Uint8Array;
|
|
17
|
+
/**
|
|
18
|
+
* Convert ArrayBuffer to hex string
|
|
19
|
+
*/
|
|
20
|
+
export declare function arrayBufferToHex(buffer: ArrayBuffer): string;
|
|
21
|
+
/**
|
|
22
|
+
* Convert hex string to ArrayBuffer
|
|
23
|
+
*/
|
|
24
|
+
export declare function hexToArrayBuffer(hex: string): ArrayBuffer;
|
|
25
|
+
/**
|
|
26
|
+
* Format DER bytes as PEM certificate
|
|
27
|
+
*/
|
|
28
|
+
export declare function arrayBufferToPEM(buffer: ArrayBuffer, type?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edockit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --silent",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"description": "A JavaScript library for listing, parsing, and verifying the contents and signatures of electronic documents (eDoc) and Associated Signature Containers (ASiC-E), supporting EU eIDAS standards for digital signatures and electronic seals.",
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@peculiar/asn1-ocsp": "^2.6.0",
|
|
41
|
+
"@peculiar/asn1-tsp": "^2.6.0",
|
|
40
42
|
"@peculiar/x509": "^1.12.3",
|
|
41
43
|
"@xmldom/xmldom": "^0.9.8",
|
|
42
44
|
"fflate": "^0.8.2",
|
|
@@ -68,7 +70,8 @@
|
|
|
68
70
|
"files": [
|
|
69
71
|
"dist",
|
|
70
72
|
"LICENSE",
|
|
71
|
-
"README.md"
|
|
73
|
+
"README.md",
|
|
74
|
+
"CHANGELOG.md"
|
|
72
75
|
],
|
|
73
76
|
"repository": {
|
|
74
77
|
"type": "git",
|