@gerege-systems/eid-mongolia-sdk 0.14.2 → 0.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gerege-systems/eid-mongolia-sdk",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "description": "e-ID Mongolia Relying Party SDK — иргэнээр утсаар нь нэвтрэлт ба хууль ёсны цахим гарын үсэг (RP-API v3, Smart-ID нийцтэй).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,6 +18,11 @@
18
18
  "import": "./dist/browser.js",
19
19
  "require": "./dist/browser.cjs"
20
20
  },
21
+ "./pades": {
22
+ "types": "./dist/pades.d.ts",
23
+ "import": "./dist/pades.js",
24
+ "require": "./dist/pades.cjs"
25
+ },
21
26
  "./button": {
22
27
  "types": "./dist/button.d.ts",
23
28
  "import": "./dist/button.js",
@@ -30,13 +35,16 @@
30
35
  "LICENSE"
31
36
  ],
32
37
  "engines": {
33
- "node": ">=22"
38
+ "node": ">=18"
34
39
  },
35
40
  "scripts": {
36
- "build": "tsup src/index.ts src/browser.ts --format esm,cjs --dts --clean && tsup src/button.ts --format esm,cjs --dts --tsconfig tsconfig.button.json",
37
- "test": "npm run build && node --test --experimental-strip-types test/sdk.test.ts test/portal-gaps.test.ts test/chain.test.ts test/qr.test.ts test/login.test.ts test/button.test.ts test/sign-gaps.test.ts test/session-start.test.ts",
41
+ "build": "tsup src/index.ts src/browser.ts src/pades.ts --format esm,cjs --dts --clean && tsup src/button.ts --format esm,cjs --dts --tsconfig tsconfig.button.json",
42
+ "test": "npm run build && node --test --experimental-strip-types test/sdk.test.ts test/portal-gaps.test.ts test/chain.test.ts test/qr.test.ts test/login.test.ts test/button.test.ts test/sign-gaps.test.ts test/session-start.test.ts test/pades-session.test.ts test/pades-golden.test.ts test/pades-unit.test.ts",
38
43
  "test:contract": "npm run build && node --experimental-strip-types test/contract.test.ts",
39
- "lint": "tsc --noEmit && tsc --noEmit -p tsconfig.button.json"
44
+ "lint": "tsc --noEmit && tsc --noEmit -p tsconfig.button.json",
45
+ "golden:check": "node scripts/sync-pades-golden.mjs --check",
46
+ "size:pades": "node scripts/pades-bundle-size.mjs",
47
+ "test:compat": "node scripts/test-compat.mjs"
40
48
  },
41
49
  "keywords": [
42
50
  "eid",
@@ -47,7 +55,9 @@
47
55
  "authentication",
48
56
  "digital-signature",
49
57
  "pki",
50
- "relying-party"
58
+ "relying-party",
59
+ "pades",
60
+ "pdf-signing"
51
61
  ],
52
62
  "devDependencies": {
53
63
  "@types/jsdom": "^21.1.7",