@gerege-systems/eid-mongolia-sdk 0.20.0 → 0.20.1

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
@@ -759,10 +759,15 @@ try {
759
759
  s.signer_name; s.signing_time; s.signature_level; s.certificate_level; s.problems; s.visible; s.key_medium;
760
760
  }
761
761
  } catch (e) {
762
- if (e instanceof ValidatePdfError) e.code; // PDF_NO_SIGNATURE | PDF_INVALID | PDF_TOO_LARGE | PDF_TOO_MANY_SIGNATURES
762
+ if (e instanceof ValidatePdfError) e.code; // PDF_NO_SIGNATURE | PDF_INVALID | PDF_ENCRYPTED | PDF_TOO_LARGE | PDF_TOO_MANY_SIGNATURES | UNSUPPORTED_ENVIRONMENT
763
763
  }
764
764
  ```
765
765
 
766
+ - Алдааны кодууд (0.20.1): `PDF_ENCRYPTED` — `/Encrypt`-тэй баримт (RC4, AES-128, AES-256; хоосон хэрэглэгчийн нууц үгтэй
767
+ ч) шалгагдахгүй: «Шифрлэгдсэн PDF-ийг шалгах боломжгүй — нууцлалыг арилгаад дахин оролдоно уу» (Go `pades.ValidatePDF`,
768
+ CA ижил). `UNSUPPORTED_ENVIRONMENT` — `crypto.subtle` алга (http хуудас — secure context биш, эсвэл хуучин хөтөч):
769
+ https хуудас эсвэл шинэ хөтөч шаардлагатай (өмнө нь `PDF_INVALID`).
770
+
766
771
  - Шалгалт: ByteRange (завсар нь яг `/Contents`) ба messageDigest, CMS гарын үсэг (WebCrypto), signingCertificateV2,
767
772
  гинж (үндэсний 01 → 02/03 → 04/05), KU/EKU, хугацаа (цагийн тэмдгийн цагт), RFC 3161 токен, гарын үсгийн ДАРААХ revision
768
773
  (eID-ийн гарын үсэг/LTV-ээс өөр бүх өөрчлөлт → `modified_after_signing`), харагдах гарын үсэг (APPEARANCE_SPEC §5), `ltv`,
@@ -5,7 +5,7 @@ import {
5
5
  fromLatin1,
6
6
  latin1,
7
7
  toHex
8
- } from "./chunk-HLSFSIWP.js";
8
+ } from "./chunk-JV4NR4LG.js";
9
9
 
10
10
  // src/pades/fetch.ts
11
11
  var DEFAULT_TSA_URL = "https://tsa.timeserver.mn/";
@@ -1085,6 +1085,7 @@ export {
1085
1085
  oidString,
1086
1086
  intValue,
1087
1087
  parsePreciseTime,
1088
+ subtle,
1088
1089
  randomBytes,
1089
1090
  sha256,
1090
1091
  sha1,
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  parseCertificate,
11
11
  parseOCSPFrom,
12
12
  sameCertKey
13
- } from "./chunk-HLSFSIWP.js";
13
+ } from "./chunk-JV4NR4LG.js";
14
14
  import {
15
15
  ApiError,
16
16
  AuthenticationError,
package/dist/pades.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  serialize,
19
19
  visibleRect,
20
20
  visibleWidget
21
- } from "./chunk-ARITEQLS.js";
21
+ } from "./chunk-J7EG3VNQ.js";
22
22
  import {
23
23
  CLAIMED_ROLE_MAX_RUNES,
24
24
  EID_ISSUERS,
@@ -50,7 +50,7 @@ import {
50
50
  toHex,
51
51
  verifyCitizen,
52
52
  verifySignedData
53
- } from "./chunk-HLSFSIWP.js";
53
+ } from "./chunk-JV4NR4LG.js";
54
54
  import {
55
55
  EidError
56
56
  } from "./chunk-D5NPS7ET.js";
package/dist/validate.cjs CHANGED
@@ -93,6 +93,34 @@ function fromB64(s) {
93
93
  return latin1(atob(s));
94
94
  }
95
95
 
96
+ // src/pades/crypto.ts
97
+ var subtlePromise;
98
+ var nodeImport = (m) => import(
99
+ /* @vite-ignore */
100
+ /* webpackIgnore: true */
101
+ m
102
+ );
103
+ async function webcrypto() {
104
+ const g = globalThis.crypto;
105
+ if (g?.subtle) return g;
106
+ const m = await nodeImport("node:crypto");
107
+ if (!m.webcrypto) throw new Error("Web Crypto \u0430\u043B\u0433\u0430");
108
+ return m.webcrypto;
109
+ }
110
+ function subtle() {
111
+ subtlePromise ??= webcrypto().then((c) => c.subtle);
112
+ return subtlePromise;
113
+ }
114
+ async function sha256(b) {
115
+ return new Uint8Array(await (await subtle()).digest("SHA-256", b));
116
+ }
117
+ async function sha1(b) {
118
+ return new Uint8Array(await (await subtle()).digest("SHA-1", b));
119
+ }
120
+ async function digest(alg, b) {
121
+ return new Uint8Array(await (await subtle()).digest(alg, b));
122
+ }
123
+
96
124
  // src/pades/fetch.ts
97
125
  var HTTP_TIMEOUT_MS = 1e4;
98
126
  var MAX_HTTP_RESPONSE = 4 << 20;
@@ -299,34 +327,6 @@ function mkDate(y, mo, d, h, mi, s, frac, z) {
299
327
  return new Date(t);
300
328
  }
301
329
 
302
- // src/pades/crypto.ts
303
- var subtlePromise;
304
- var nodeImport = (m) => import(
305
- /* @vite-ignore */
306
- /* webpackIgnore: true */
307
- m
308
- );
309
- async function webcrypto() {
310
- const g = globalThis.crypto;
311
- if (g?.subtle) return g;
312
- const m = await nodeImport("node:crypto");
313
- if (!m.webcrypto) throw new Error("Web Crypto \u0430\u043B\u0433\u0430");
314
- return m.webcrypto;
315
- }
316
- function subtle() {
317
- subtlePromise ??= webcrypto().then((c) => c.subtle);
318
- return subtlePromise;
319
- }
320
- async function sha256(b) {
321
- return new Uint8Array(await (await subtle()).digest("SHA-256", b));
322
- }
323
- async function sha1(b) {
324
- return new Uint8Array(await (await subtle()).digest("SHA-1", b));
325
- }
326
- async function digest(alg, b) {
327
- return new Uint8Array(await (await subtle()).digest(alg, b));
328
- }
329
-
330
330
  // src/pades/x509.ts
331
331
  var OID = {
332
332
  rsaEncryption: "1.2.840.113549.1.1.1",
@@ -4918,23 +4918,30 @@ var Classifier = class {
4918
4918
  // src/pades/validate/extract.ts
4919
4919
  var MAX_PDF_BYTES = 10 << 20;
4920
4920
  var MAX_SIGNATURES = 16;
4921
+ var MESSAGES = {
4922
+ not_pdf: "PDF \u0444\u0430\u0439\u043B \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439",
4923
+ encrypted: "\u0448\u0438\u0444\u0440\u043B\u044D\u0433\u0434\u0441\u044D\u043D PDF-\u0438\u0439\u0433 \u0448\u0430\u043B\u0433\u0430\u0445 \u0431\u043E\u043B\u043E\u043C\u0436\u0433\u04AF\u0439 \u2014 \u043D\u0443\u0443\u0446\u043B\u0430\u043B\u044B\u0433 \u0430\u0440\u0438\u043B\u0433\u0430\u0430\u0434 \u0434\u0430\u0445\u0438\u043D \u043E\u0440\u043E\u043B\u0434\u043E\u043D\u043E \u0443\u0443",
4924
+ no_signature: "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0446\u0430\u0445\u0438\u043C \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0430\u043B\u0433\u0430",
4925
+ too_many: "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0445\u044D\u0442 \u043E\u043B\u043E\u043D \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0431\u0430\u0439\u043D\u0430"
4926
+ };
4921
4927
  var ExtractError = class extends Error {
4922
4928
  constructor(code) {
4923
- super(code === "not_pdf" ? "PDF \u0444\u0430\u0439\u043B \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439" : code === "no_signature" ? "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0446\u0430\u0445\u0438\u043C \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0430\u043B\u0433\u0430" : "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0445\u044D\u0442 \u043E\u043B\u043E\u043D \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0431\u0430\u0439\u043D\u0430");
4929
+ super(MESSAGES[code]);
4924
4930
  this.code = code;
4925
4931
  }
4926
4932
  code;
4927
4933
  };
4934
+ var ENCRYPT_REF = /\/Encrypt\s+\d+\s+\d+\s+R/;
4928
4935
  var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
4929
4936
  var AP_VERIFY_PREFIX2 = "https://ca.eidmongolia.mn/verify/";
4930
4937
  async function extract(doc, profile = "own") {
4931
4938
  let rdr;
4932
4939
  try {
4933
4940
  rdr = new Reader(doc);
4934
- if (!rdr.trailerValue().key("Encrypt").isNull()) throw new Error("encrypted");
4935
4941
  } catch {
4936
- throw new ExtractError("not_pdf");
4942
+ throw new ExtractError(ENCRYPT_REF.test(fromLatin1(doc)) ? "encrypted" : "not_pdf");
4937
4943
  }
4944
+ if (rdr.trailerValue().keys().includes("Encrypt")) throw new ExtractError("encrypted");
4938
4945
  const sigs = [];
4939
4946
  const visible = /* @__PURE__ */ new Map();
4940
4947
  let docID = "";
@@ -5488,6 +5495,11 @@ var embedded = (b64) => b64.map((x) => parseCertificate(fromB64(x)));
5488
5495
  async function validatePdf(pdf, opts = {}) {
5489
5496
  const doc = pdf instanceof Uint8Array ? pdf : new Uint8Array(pdf);
5490
5497
  if (doc.length > MAX_PDF_BYTES) throw new ValidatePdfError("PDF_TOO_LARGE", "PDF 10 MiB-\u0430\u0430\u0441 \u0438\u0445");
5498
+ try {
5499
+ await subtle();
5500
+ } catch {
5501
+ throw new ValidatePdfError("UNSUPPORTED_ENVIRONMENT", "Web Crypto (crypto.subtle) \u0430\u043B\u0433\u0430 \u2014 https \u0445\u0443\u0443\u0434\u0430\u0441 \u044D\u0441\u0432\u044D\u043B \u0448\u0438\u043D\u044D \u0445\u04E9\u0442\u04E9\u0447 \u0448\u0430\u0430\u0440\u0434\u043B\u0430\u0433\u0430\u0442\u0430\u0439");
5502
+ }
5491
5503
  const roots = opts.roots && opts.roots.length > 0 ? ders(opts.roots, "roots") : embedded(NATIONAL_ROOT);
5492
5504
  const extraInter = ders(opts.intermediates, "intermediates");
5493
5505
  const issuers = [...embedded(EID_ISSUERS), ...ders(opts.issuers, "issuers")];
@@ -5498,6 +5510,7 @@ async function validatePdf(pdf, opts = {}) {
5498
5510
  if (e instanceof ExtractError) {
5499
5511
  if (e.code === "no_signature") throw new ValidatePdfError("PDF_NO_SIGNATURE", e.message);
5500
5512
  if (e.code === "too_many") throw new ValidatePdfError("PDF_TOO_MANY_SIGNATURES", e.message);
5513
+ if (e.code === "encrypted") throw new ValidatePdfError("PDF_ENCRYPTED", e.message);
5501
5514
  }
5502
5515
  throw new ValidatePdfError("PDF_INVALID", "PDF \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439");
5503
5516
  }
@@ -60,8 +60,12 @@ interface PdfReport {
60
60
  signatures: SignatureReport[];
61
61
  }
62
62
 
63
- /** validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / no_signature / too_many_signatures). */
64
- type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID";
63
+ /**
64
+ * validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / encrypted / no_signature / too_many_signatures).
65
+ * - `PDF_ENCRYPTED` (0.20.1) — `/Encrypt`-тэй баримт (RC4 / AES, хоосон нууц үгтэй ч): шалгахгүй.
66
+ * - `UNSUPPORTED_ENVIRONMENT` (0.20.1) — Web Crypto (`crypto.subtle`) алга: http (secure биш) хуудас эсвэл хуучин хөтөч.
67
+ */
68
+ type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_ENCRYPTED" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID" | "UNSUPPORTED_ENVIRONMENT";
65
69
  declare class ValidatePdfError extends EidError {
66
70
  readonly code: ValidatePdfErrorCode;
67
71
  constructor(code: ValidatePdfErrorCode, message: string);
@@ -60,8 +60,12 @@ interface PdfReport {
60
60
  signatures: SignatureReport[];
61
61
  }
62
62
 
63
- /** validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / no_signature / too_many_signatures). */
64
- type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID";
63
+ /**
64
+ * validatePdf-ийн алдааны кодууд (CA: too_large / not_pdf / encrypted / no_signature / too_many_signatures).
65
+ * - `PDF_ENCRYPTED` (0.20.1) — `/Encrypt`-тэй баримт (RC4 / AES, хоосон нууц үгтэй ч): шалгахгүй.
66
+ * - `UNSUPPORTED_ENVIRONMENT` (0.20.1) — Web Crypto (`crypto.subtle`) алга: http (secure биш) хуудас эсвэл хуучин хөтөч.
67
+ */
68
+ type ValidatePdfErrorCode = "PDF_TOO_LARGE" | "PDF_INVALID" | "PDF_ENCRYPTED" | "PDF_NO_SIGNATURE" | "PDF_TOO_MANY_SIGNATURES" | "REQUEST_INVALID" | "UNSUPPORTED_ENVIRONMENT";
65
69
  declare class ValidatePdfError extends EidError {
66
70
  readonly code: ValidatePdfErrorCode;
67
71
  constructor(code: ValidatePdfErrorCode, message: string);
package/dist/validate.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  isBrowser,
9
9
  round100,
10
10
  visibleWidget
11
- } from "./chunk-ARITEQLS.js";
11
+ } from "./chunk-J7EG3VNQ.js";
12
12
  import {
13
13
  EID_ISSUERS,
14
14
  INTERMEDIATES,
@@ -35,9 +35,10 @@ import {
35
35
  readNode,
36
36
  sameCertKey,
37
37
  sha256,
38
+ subtle,
38
39
  toHex,
39
40
  verifySignature
40
- } from "./chunk-HLSFSIWP.js";
41
+ } from "./chunk-JV4NR4LG.js";
41
42
  import {
42
43
  EidError
43
44
  } from "./chunk-D5NPS7ET.js";
@@ -2841,23 +2842,30 @@ var Classifier = class {
2841
2842
  // src/pades/validate/extract.ts
2842
2843
  var MAX_PDF_BYTES = 10 << 20;
2843
2844
  var MAX_SIGNATURES = 16;
2845
+ var MESSAGES = {
2846
+ not_pdf: "PDF \u0444\u0430\u0439\u043B \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439",
2847
+ encrypted: "\u0448\u0438\u0444\u0440\u043B\u044D\u0433\u0434\u0441\u044D\u043D PDF-\u0438\u0439\u0433 \u0448\u0430\u043B\u0433\u0430\u0445 \u0431\u043E\u043B\u043E\u043C\u0436\u0433\u04AF\u0439 \u2014 \u043D\u0443\u0443\u0446\u043B\u0430\u043B\u044B\u0433 \u0430\u0440\u0438\u043B\u0433\u0430\u0430\u0434 \u0434\u0430\u0445\u0438\u043D \u043E\u0440\u043E\u043B\u0434\u043E\u043D\u043E \u0443\u0443",
2848
+ no_signature: "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0446\u0430\u0445\u0438\u043C \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0430\u043B\u0433\u0430",
2849
+ too_many: "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0445\u044D\u0442 \u043E\u043B\u043E\u043D \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0431\u0430\u0439\u043D\u0430"
2850
+ };
2844
2851
  var ExtractError = class extends Error {
2845
2852
  constructor(code) {
2846
- super(code === "not_pdf" ? "PDF \u0444\u0430\u0439\u043B \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439" : code === "no_signature" ? "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0446\u0430\u0445\u0438\u043C \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0430\u043B\u0433\u0430" : "\u0431\u0430\u0440\u0438\u043C\u0442\u0430\u0434 \u0445\u044D\u0442 \u043E\u043B\u043E\u043D \u0433\u0430\u0440\u044B\u043D \u04AF\u0441\u044D\u0433 \u0431\u0430\u0439\u043D\u0430");
2853
+ super(MESSAGES[code]);
2847
2854
  this.code = code;
2848
2855
  }
2849
2856
  code;
2850
2857
  };
2858
+ var ENCRYPT_REF = /\/Encrypt\s+\d+\s+\d+\s+R/;
2851
2859
  var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
2852
2860
  var AP_VERIFY_PREFIX2 = "https://ca.eidmongolia.mn/verify/";
2853
2861
  async function extract(doc, profile = "own") {
2854
2862
  let rdr;
2855
2863
  try {
2856
2864
  rdr = new Reader(doc);
2857
- if (!rdr.trailerValue().key("Encrypt").isNull()) throw new Error("encrypted");
2858
2865
  } catch {
2859
- throw new ExtractError("not_pdf");
2866
+ throw new ExtractError(ENCRYPT_REF.test(fromLatin1(doc)) ? "encrypted" : "not_pdf");
2860
2867
  }
2868
+ if (rdr.trailerValue().keys().includes("Encrypt")) throw new ExtractError("encrypted");
2861
2869
  const sigs = [];
2862
2870
  const visible = /* @__PURE__ */ new Map();
2863
2871
  let docID = "";
@@ -3411,6 +3419,11 @@ var embedded = (b64) => b64.map((x) => parseCertificate(fromB64(x)));
3411
3419
  async function validatePdf(pdf, opts = {}) {
3412
3420
  const doc = pdf instanceof Uint8Array ? pdf : new Uint8Array(pdf);
3413
3421
  if (doc.length > MAX_PDF_BYTES) throw new ValidatePdfError("PDF_TOO_LARGE", "PDF 10 MiB-\u0430\u0430\u0441 \u0438\u0445");
3422
+ try {
3423
+ await subtle();
3424
+ } catch {
3425
+ throw new ValidatePdfError("UNSUPPORTED_ENVIRONMENT", "Web Crypto (crypto.subtle) \u0430\u043B\u0433\u0430 \u2014 https \u0445\u0443\u0443\u0434\u0430\u0441 \u044D\u0441\u0432\u044D\u043B \u0448\u0438\u043D\u044D \u0445\u04E9\u0442\u04E9\u0447 \u0448\u0430\u0430\u0440\u0434\u043B\u0430\u0433\u0430\u0442\u0430\u0439");
3426
+ }
3414
3427
  const roots = opts.roots && opts.roots.length > 0 ? ders(opts.roots, "roots") : embedded(NATIONAL_ROOT);
3415
3428
  const extraInter = ders(opts.intermediates, "intermediates");
3416
3429
  const issuers = [...embedded(EID_ISSUERS), ...ders(opts.issuers, "issuers")];
@@ -3421,6 +3434,7 @@ async function validatePdf(pdf, opts = {}) {
3421
3434
  if (e instanceof ExtractError) {
3422
3435
  if (e.code === "no_signature") throw new ValidatePdfError("PDF_NO_SIGNATURE", e.message);
3423
3436
  if (e.code === "too_many") throw new ValidatePdfError("PDF_TOO_MANY_SIGNATURES", e.message);
3437
+ if (e.code === "encrypted") throw new ValidatePdfError("PDF_ENCRYPTED", e.message);
3424
3438
  }
3425
3439
  throw new ValidatePdfError("PDF_INVALID", "PDF \u0437\u0430\u0434\u0430\u0440\u0441\u0430\u043D\u0433\u04AF\u0439");
3426
3440
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gerege-systems/eid-mongolia-sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "e-ID Mongolia Relying Party SDK — иргэнээр утсаар нь нэвтрэлт ба хууль ёсны цахим гарын үсэг (RP-API v3, Smart-ID нийцтэй).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup src/index.ts src/browser.ts src/pades.ts src/validate.ts --format esm,cjs --dts --clean && tsup src/button.ts --format esm,cjs --dts --tsconfig tsconfig.button.json && tsup src/convert.ts --format esm --dts --tsconfig tsconfig.button.json",
52
- "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 test/convert.test.ts test/share.test.ts test/validate-golden.test.ts test/validate-revisions.test.ts",
52
+ "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 test/convert.test.ts test/share.test.ts test/validate-golden.test.ts test/validate-revisions.test.ts test/validate-env.test.ts",
53
53
  "test:contract": "npm run build && node --experimental-strip-types test/contract.test.ts",
54
54
  "lint": "tsc --noEmit && tsc --noEmit -p tsconfig.button.json",
55
55
  "golden:check": "node scripts/sync-pades-golden.mjs --check",