@cryptpays/sdk 0.0.0-stage → 0.1.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/LICENSE +21 -0
  3. package/README.md +194 -2
  4. package/SECURITY.md +42 -0
  5. package/dist/cjs/callback.js +160 -0
  6. package/dist/cjs/callback.js.map +1 -0
  7. package/dist/cjs/client.js +92 -0
  8. package/dist/cjs/client.js.map +1 -0
  9. package/dist/cjs/config.js +95 -0
  10. package/dist/cjs/config.js.map +1 -0
  11. package/dist/cjs/errors.js +60 -0
  12. package/dist/cjs/errors.js.map +1 -0
  13. package/dist/cjs/index.js +27 -0
  14. package/dist/cjs/index.js.map +1 -0
  15. package/dist/cjs/package.json +1 -0
  16. package/dist/cjs/parsers.js +540 -0
  17. package/dist/cjs/parsers.js.map +1 -0
  18. package/dist/cjs/transport.js +178 -0
  19. package/dist/cjs/transport.js.map +1 -0
  20. package/dist/cjs/types.js +18 -0
  21. package/dist/cjs/types.js.map +1 -0
  22. package/dist/cjs/validation.js +139 -0
  23. package/dist/cjs/validation.js.map +1 -0
  24. package/dist/esm/callback.d.ts +43 -0
  25. package/dist/esm/callback.d.ts.map +1 -0
  26. package/dist/esm/callback.js +155 -0
  27. package/dist/esm/callback.js.map +1 -0
  28. package/dist/esm/client.d.ts +16 -0
  29. package/dist/esm/client.d.ts.map +1 -0
  30. package/dist/esm/client.js +88 -0
  31. package/dist/esm/client.js.map +1 -0
  32. package/dist/esm/config.d.ts +35 -0
  33. package/dist/esm/config.d.ts.map +1 -0
  34. package/dist/esm/config.js +90 -0
  35. package/dist/esm/config.js.map +1 -0
  36. package/dist/esm/errors.d.ts +32 -0
  37. package/dist/esm/errors.d.ts.map +1 -0
  38. package/dist/esm/errors.js +46 -0
  39. package/dist/esm/errors.js.map +1 -0
  40. package/dist/esm/index.d.ts +9 -0
  41. package/dist/esm/index.d.ts.map +1 -0
  42. package/dist/esm/index.js +6 -0
  43. package/dist/esm/index.js.map +1 -0
  44. package/dist/esm/parsers.d.ts +21 -0
  45. package/dist/esm/parsers.d.ts.map +1 -0
  46. package/dist/esm/parsers.js +529 -0
  47. package/dist/esm/parsers.js.map +1 -0
  48. package/dist/esm/transport.d.ts +14 -0
  49. package/dist/esm/transport.d.ts.map +1 -0
  50. package/dist/esm/transport.js +174 -0
  51. package/dist/esm/transport.js.map +1 -0
  52. package/dist/esm/types.d.ts +138 -0
  53. package/dist/esm/types.d.ts.map +1 -0
  54. package/dist/esm/types.js +15 -0
  55. package/dist/esm/types.js.map +1 -0
  56. package/dist/esm/validation.d.ts +19 -0
  57. package/dist/esm/validation.d.ts.map +1 -0
  58. package/dist/esm/validation.js +121 -0
  59. package/dist/esm/validation.js.map +1 -0
  60. package/docs/callback-verification.md +95 -0
  61. package/docs/express.md +120 -0
  62. package/docs/fastify.md +80 -0
  63. package/docs/javascript-quick-start.md +41 -0
  64. package/docs/qr-code.md +31 -0
  65. package/docs/transactional-processing.md +92 -0
  66. package/docs/typescript-quick-start.md +53 -0
  67. package/package.json +66 -4
@@ -0,0 +1,120 @@
1
+ # Express callback integration
2
+
3
+ Register callback routes before general JSON or form parsing middleware. The configured callback hostname must come from trusted deployment configuration, never `Host` or `X-Forwarded-Host`.
4
+
5
+ ```ts
6
+ import express, { type Request, type Response } from 'express';
7
+ import {
8
+ CallbackVerifier,
9
+ CryptPaysClient,
10
+ type CallbackPayload,
11
+ } from '@cryptpays/sdk';
12
+
13
+ const app = express();
14
+ const client = new CryptPaysClient();
15
+ const callbackHostname = 'merchant.example';
16
+
17
+ // Fetch at startup or through an application-owned bounded cache. Do not fetch
18
+ // a new key for every callback or retry indefinitely after invalid signatures.
19
+ const verifier = new CallbackVerifier(await client.getCallbackPublicKey());
20
+
21
+ function singleRawHeader(request: Request, expectedName: string): string | null {
22
+ const values: string[] = [];
23
+ for (let index = 0; index < request.rawHeaders.length; index += 2) {
24
+ if (request.rawHeaders[index]?.toLowerCase() === expectedName) {
25
+ values.push(request.rawHeaders[index + 1] ?? '');
26
+ }
27
+ }
28
+ return values.length === 1 ? values[0] : null;
29
+ }
30
+
31
+ function verifyCallback(request: Request, rawBody: Buffer) {
32
+ const timestamp = singleRawHeader(request, 'x-cryptpay-timestamp');
33
+ const signature = singleRawHeader(request, 'x-cryptpay-signature');
34
+ if (timestamp === null || signature === null) {
35
+ throw new Error('Missing or ambiguous callback signature headers');
36
+ }
37
+
38
+ return verifier.verify({
39
+ timestamp,
40
+ signature,
41
+ method: request.method,
42
+ host: callbackHostname,
43
+ requestTarget: request.originalUrl,
44
+ rawBody,
45
+ });
46
+ }
47
+
48
+ async function acknowledge(
49
+ response: Response,
50
+ persist: () => Promise<void>,
51
+ ): Promise<void> {
52
+ try {
53
+ await persist();
54
+ } catch {
55
+ // A transaction rollback remains retryable because it is not acknowledged.
56
+ response.status(500).send('callback persistence failed');
57
+ return;
58
+ }
59
+ response.status(200).send('ok');
60
+ }
61
+
62
+ // Application-owned implementation described in transactional-processing.md.
63
+ declare function persistVerifiedCallback(payload: CallbackPayload): Promise<void>;
64
+
65
+ app.post(
66
+ '/cryptpays/callback',
67
+ express.raw({ type: 'application/json', limit: '256kb' }),
68
+ async (request, response) => {
69
+ let payload: CallbackPayload;
70
+ try {
71
+ if (!Buffer.isBuffer(request.body)) throw new Error('Raw body was not captured');
72
+ payload = verifyCallback(request, request.body).jsonPayload();
73
+ } catch {
74
+ response.status(400).send('invalid callback');
75
+ return;
76
+ }
77
+ await acknowledge(response, () => persistVerifiedCallback(payload));
78
+ },
79
+ );
80
+
81
+ // Optional form transport: configure this distinct route when creating the payment.
82
+ app.post(
83
+ '/cryptpays/callback-form',
84
+ express.raw({ type: 'application/x-www-form-urlencoded', limit: '256kb' }),
85
+ async (request, response) => {
86
+ let payload: CallbackPayload;
87
+ try {
88
+ if (!Buffer.isBuffer(request.body)) throw new Error('Raw body was not captured');
89
+ payload = verifyCallback(request, request.body).formPayload();
90
+ } catch {
91
+ response.status(400).send('invalid callback');
92
+ return;
93
+ }
94
+ await acknowledge(response, () => persistVerifiedCallback(payload));
95
+ },
96
+ );
97
+
98
+ // Optional GET transport. The gateway contract requires an empty request body.
99
+ app.get('/cryptpays/callback-get', async (request, response) => {
100
+ let payload: CallbackPayload;
101
+ try {
102
+ if (request.headers['content-length'] !== undefined || request.headers['transfer-encoding'] !== undefined) {
103
+ throw new Error('GET callback body is not allowed');
104
+ }
105
+ payload = verifyCallback(request, Buffer.alloc(0)).getPayload();
106
+ } catch {
107
+ response.status(400).send('invalid callback');
108
+ return;
109
+ }
110
+ await acknowledge(response, () => persistVerifiedCallback(payload));
111
+ });
112
+
113
+ // Parsers for unrelated application routes come after the callback routes.
114
+ app.use(express.json());
115
+ app.use(express.urlencoded({ extended: false }));
116
+ ```
117
+
118
+ JSON POST is recommended. Choose the parser from trusted route configuration rather than callback fields. Confirm that the proxy and Express preserve `request.originalUrl` byte-for-byte; if a proxy rewrites the path or query, preserve the externally signed target at the trusted edge.
119
+
120
+ See [transactional processing](transactional-processing.md) for pending-to-confirmed state transitions, concurrency, rollback, and exactly-once fulfillment guidance.
@@ -0,0 +1,80 @@
1
+ # Fastify callback integration
2
+
3
+ Fastify normally parses request bodies before route handlers. Configure a raw-body facility only for callback routes; this example uses `fastify-raw-body` with bytes retained as a `Buffer`.
4
+
5
+ ```ts
6
+ import Fastify, { type FastifyRequest } from 'fastify';
7
+ import rawBody from 'fastify-raw-body';
8
+ import {
9
+ CallbackVerifier,
10
+ CryptPaysClient,
11
+ type CallbackPayload,
12
+ } from '@cryptpays/sdk';
13
+
14
+ const fastify = Fastify();
15
+ await fastify.register(rawBody, {
16
+ field: 'rawBody',
17
+ global: false,
18
+ encoding: false,
19
+ runFirst: true,
20
+ });
21
+
22
+ const client = new CryptPaysClient();
23
+ const callbackHostname = 'merchant.example'; // Trusted deployment configuration.
24
+ const verifier = new CallbackVerifier(await client.getCallbackPublicKey());
25
+
26
+ function singleRawHeader(request: FastifyRequest, expectedName: string): string | null {
27
+ const values: string[] = [];
28
+ for (let index = 0; index < request.raw.rawHeaders.length; index += 2) {
29
+ if (request.raw.rawHeaders[index]?.toLowerCase() === expectedName) {
30
+ values.push(request.raw.rawHeaders[index + 1] ?? '');
31
+ }
32
+ }
33
+ return values.length === 1 ? values[0] : null;
34
+ }
35
+
36
+ function verifyCallback(request: FastifyRequest, body: Buffer) {
37
+ const timestamp = singleRawHeader(request, 'x-cryptpay-timestamp');
38
+ const signature = singleRawHeader(request, 'x-cryptpay-signature');
39
+ if (timestamp === null || signature === null) {
40
+ throw new Error('Missing or ambiguous callback signature headers');
41
+ }
42
+
43
+ return verifier.verify({
44
+ timestamp,
45
+ signature,
46
+ method: request.method,
47
+ host: callbackHostname,
48
+ requestTarget: request.raw.url ?? '',
49
+ rawBody: body,
50
+ });
51
+ }
52
+
53
+ declare function persistVerifiedCallback(payload: CallbackPayload): Promise<void>;
54
+
55
+ fastify.post('/cryptpays/callback', { config: { rawBody: true } }, async (request, reply) => {
56
+ let payload: CallbackPayload;
57
+ try {
58
+ const body = (request as typeof request & { rawBody?: Buffer }).rawBody;
59
+ if (!Buffer.isBuffer(body)) throw new Error('Raw body was not captured');
60
+ payload = verifyCallback(request, body).jsonPayload();
61
+ } catch {
62
+ return reply.code(400).send('invalid callback');
63
+ }
64
+
65
+ try {
66
+ await persistVerifiedCallback(payload);
67
+ return reply.code(200).send('ok');
68
+ } catch {
69
+ return reply.code(500).send('callback persistence failed');
70
+ }
71
+ });
72
+
73
+ // For a separately configured form route, retain the exact URL-encoded Buffer
74
+ // and call verifyCallback(request, body).formPayload(). For a GET route, reject
75
+ // Content-Length/Transfer-Encoding, pass Buffer.alloc(0), and call getPayload().
76
+ ```
77
+
78
+ JSON POST is recommended. Select the transport from trusted route configuration. Verify that the selected raw-body plugin supports the merchant application's Fastify major version and that the reverse proxy preserves `request.raw.url` byte-for-byte.
79
+
80
+ Return exactly HTTP 200 only after the database transaction commits. A persistence failure must remain non-200 so delivery can be retried. See [transactional processing](transactional-processing.md) for lifecycle, duplicate delivery, concurrency, and rollback handling.
@@ -0,0 +1,41 @@
1
+ # JavaScript quick start
2
+
3
+ This is the shortest server-side payment-address workflow. It uses synthetic merchant values; replace them with trusted application configuration and an opaque order reference.
4
+
5
+ ```js
6
+ import {
7
+ CallbackTransport,
8
+ CryptPaysClient,
9
+ CryptPaysError,
10
+ } from '@cryptpays/sdk';
11
+
12
+ const client = new CryptPaysClient();
13
+
14
+ try {
15
+ const currencies = await client.listCurrencies();
16
+ const currency = currencies.bep20_usdt;
17
+ if (!currency) throw new Error('Selected currency is not currently available');
18
+
19
+ const payment = await client.createPayment({
20
+ ticker: currency.ticker,
21
+ callbackUrl: 'https://merchant.example/cryptpays/callback?order_id=opaque-order-7f31',
22
+ addressOut: '0x1111111111111111111111111111111111111111',
23
+ callbackTransport: CallbackTransport.JsonPost,
24
+ });
25
+
26
+ // Render these values with normal HTML escaping. Keep callbackUrl server-side.
27
+ console.log(`Network: ${currency.networkName}`);
28
+ console.log(`Send ${currency.assetName} to: ${payment.addressIn}`);
29
+ console.log(`Minimum deposit: ${payment.minimumTransactionCoin ?? 'not supplied'}`);
30
+ } catch (error) {
31
+ if (error instanceof CryptPaysError) {
32
+ console.error('CryptPays request failed:', error.message);
33
+ } else {
34
+ throw error;
35
+ }
36
+ }
37
+ ```
38
+
39
+ Payment creation is never retried automatically. Reuse behavior belongs to the gateway: repeating the exact compatible identity may return the existing address, while changed immutable configuration must not be assumed to update it.
40
+
41
+ Continue with the [callback verification guide](callback-verification.md) and [transactional processing guide](transactional-processing.md) before enabling fulfillment.
@@ -0,0 +1,31 @@
1
+ # Optional address-only QR code
2
+
3
+ QR rendering is an application concern and is deliberately not a dependency of `@cryptpays/sdk`. The maintained MIT-licensed [`qrcode`](https://www.npmjs.com/package/qrcode) package can create a PNG data URL locally without sending the payment address to an external service.
4
+
5
+ Install it in the merchant application, not the SDK:
6
+
7
+ ```bash
8
+ yarn add qrcode
9
+ yarn add --dev @types/qrcode # TypeScript applications
10
+ ```
11
+
12
+ ```ts
13
+ import QRCode from 'qrcode';
14
+
15
+ const qrDataUrl = await QRCode.toDataURL(payment.addressIn, {
16
+ type: 'image/png',
17
+ errorCorrectionLevel: 'M',
18
+ margin: 2,
19
+ width: 256,
20
+ });
21
+
22
+ // Pass qrDataUrl, payment.addressIn, and the selected network name to a view
23
+ // that performs its normal contextual HTML escaping.
24
+ return response.render('payment', {
25
+ address: payment.addressIn,
26
+ network: selectedCurrency.networkName,
27
+ qrDataUrl,
28
+ });
29
+ ```
30
+
31
+ The QR content is exactly `payment.addressIn`. Do not prepend an unverified payment URI scheme or append an amount. Always display the selected blockchain network and asset as text beside the QR code, and allow the customer to compare or copy the complete address.
@@ -0,0 +1,92 @@
1
+ # Transactional and idempotent callback processing
2
+
3
+ CryptPays verifies delivery authenticity; the merchant application owns order state, database transactions, authorization, and fulfillment. Pending and confirmed callbacks intentionally share one UUID.
4
+
5
+ The following TypeScript is an illustrative application contract, not an SDK database implementation:
6
+
7
+ ```ts
8
+ import type { CallbackPayload } from '@cryptpays/sdk';
9
+
10
+ interface MerchantPaymentRow {
11
+ readonly orderReference: string;
12
+ readonly ticker: string;
13
+ readonly addressOut: string;
14
+ readonly expectedIncomingTransaction?: string;
15
+ readonly status: 'created' | 'pending' | 'confirmed';
16
+ readonly callbackUuid?: string;
17
+ }
18
+
19
+ interface PaymentTransaction {
20
+ lockPayment(orderReference: string): Promise<MerchantPaymentRow>;
21
+ recordPending(orderReference: string, uuid: string): Promise<void>;
22
+ recordConfirmed(orderReference: string, uuid: string, transactionId: string): Promise<void>;
23
+ enqueueFulfillmentOnce(orderReference: string, uuid: string): Promise<void>;
24
+ }
25
+
26
+ interface MerchantDatabase {
27
+ transaction<T>(work: (transaction: PaymentTransaction) => Promise<T>): Promise<T>;
28
+ }
29
+
30
+ async function persistVerifiedCallback(
31
+ database: MerchantDatabase,
32
+ payload: CallbackPayload,
33
+ ): Promise<void> {
34
+ const orderReference = payload.additional.order_id;
35
+ if (typeof orderReference !== 'string' || orderReference === '') {
36
+ throw new Error('Missing authenticated order reference');
37
+ }
38
+
39
+ await database.transaction(async (transaction) => {
40
+ // SELECT ... FOR UPDATE, an advisory lock, or an equivalent atomic mechanism.
41
+ const payment = await transaction.lockPayment(orderReference);
42
+
43
+ if (payment.ticker !== payload.coin || payment.addressOut !== payload.addressOut) {
44
+ throw new Error('Callback identity does not match the stored payment');
45
+ }
46
+
47
+ if (payload.isPending()) {
48
+ // A duplicate pending event is harmless. A delayed pending event must never
49
+ // downgrade a confirmed payment.
50
+ if (payment.status !== 'confirmed') {
51
+ await transaction.recordPending(orderReference, payload.uuid);
52
+ }
53
+ return;
54
+ }
55
+
56
+ if (payment.status === 'confirmed') {
57
+ // Repeated or concurrent confirmed delivery must not enqueue another effect.
58
+ if (payment.callbackUuid !== payload.uuid) {
59
+ throw new Error('Order is already confirmed by another callback identity');
60
+ }
61
+ return;
62
+ }
63
+
64
+ if (payload.transactionIdIn === null) {
65
+ throw new Error('Confirmed callback is missing its incoming transaction identity');
66
+ }
67
+ if (
68
+ payment.expectedIncomingTransaction !== undefined &&
69
+ payment.expectedIncomingTransaction !== payload.transactionIdIn
70
+ ) {
71
+ throw new Error('Incoming transaction does not match the order');
72
+ }
73
+
74
+ await transaction.recordConfirmed(orderReference, payload.uuid, payload.transactionIdIn);
75
+ // Back this with a unique database constraint on the fulfillment identity.
76
+ // An outbox worker can perform application fulfillment after commit.
77
+ await transaction.enqueueFulfillmentOnce(orderReference, payload.uuid);
78
+ });
79
+ }
80
+ ```
81
+
82
+ Required application behavior:
83
+
84
+ - Pending followed by confirmed advances the same UUID to confirmed.
85
+ - Confirmed without an earlier pending event is valid.
86
+ - Duplicate pending and duplicate confirmed deliveries are idempotent.
87
+ - A delayed pending delivery cannot downgrade confirmed state.
88
+ - Concurrent confirmed deliveries serialize through a lock or atomic update and a unique fulfillment constraint.
89
+ - A database rollback must return a non-200 response so CryptPays can retry.
90
+ - Return exactly HTTP 200 only after the transaction commits. Do not return 201, 202, 204, or a redirect as success.
91
+
92
+ Timestamp freshness limits stale replay but does not replace durable business idempotency. Validate the stored order reference, ticker, payout address, incoming transaction identity, and decimal-string amount policy before fulfillment.
@@ -0,0 +1,53 @@
1
+ # TypeScript quick start
2
+
3
+ The SDK ships declarations and requires no generated types. This example keeps monetary values as decimal strings and selects a currency from the live catalog rather than a hardcoded supported-currency list.
4
+
5
+ ```ts
6
+ import {
7
+ CallbackTransport,
8
+ CryptPaysClient,
9
+ CryptPaysError,
10
+ type Currency,
11
+ type Payment,
12
+ } from '@cryptpays/sdk';
13
+
14
+ const client = new CryptPaysClient();
15
+
16
+ async function createCheckout(): Promise<{
17
+ currency: Currency;
18
+ payment: Payment;
19
+ }> {
20
+ const currencies = await client.listCurrencies();
21
+ const currency = currencies.bep20_usdt;
22
+ if (currency === undefined) {
23
+ throw new Error('Selected currency is not currently available');
24
+ }
25
+
26
+ const payment = await client.createPayment({
27
+ ticker: currency.ticker,
28
+ callbackUrl: 'https://merchant.example/cryptpays/callback?order_id=opaque-order-7f31',
29
+ addressOut: '0x1111111111111111111111111111111111111111',
30
+ callbackTransport: CallbackTransport.JsonPost,
31
+ });
32
+
33
+ return { currency, payment };
34
+ }
35
+
36
+ try {
37
+ const { currency, payment } = await createCheckout();
38
+ console.log({
39
+ network: currency.networkName,
40
+ asset: currency.assetName,
41
+ address: payment.addressIn,
42
+ minimumDeposit: payment.minimumTransactionCoin,
43
+ });
44
+ } catch (error: unknown) {
45
+ if (error instanceof CryptPaysError) {
46
+ console.error('CryptPays request failed:', error.message);
47
+ } else {
48
+ throw error;
49
+ }
50
+ }
51
+ ```
52
+
53
+ Do not convert `minimumTransactionCoin`, prices, fee percentages, or callback amounts to JavaScript `number`. Continue with the [callback verification guide](callback-verification.md) and [transactional processing guide](transactional-processing.md).
package/package.json CHANGED
@@ -1,6 +1,68 @@
1
1
  {
2
2
  "name": "@cryptpays/sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Official Node.js and TypeScript SDK for the CryptPays Merchant API",
5
+ "homepage": "https://cryptpays.com",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/cryptpays/cryptpays-node.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/cryptpays/cryptpays-node/issues"
12
+ },
13
+ "keywords": [
14
+ "cryptpays",
15
+ "cryptocurrency",
16
+ "payments",
17
+ "sdk",
18
+ "typescript"
19
+ ],
20
+ "license": "MIT",
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "type": "module",
25
+ "main": "./dist/cjs/index.js",
26
+ "module": "./dist/esm/index.js",
27
+ "types": "./dist/esm/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/esm/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "require": "./dist/cjs/index.js"
33
+ }
34
+ },
35
+ "files": [
36
+ "dist/",
37
+ "docs/",
38
+ "CHANGELOG.md",
39
+ "LICENSE",
40
+ "README.md",
41
+ "SECURITY.md"
42
+ ],
43
+ "sideEffects": false,
44
+ "engines": {
45
+ "node": ">=22"
46
+ },
47
+ "scripts": {
48
+ "build": "node scripts/build.mjs",
49
+ "format": "prettier --write src tests scripts eslint.config.js .prettierrc.json package.json tsconfig.json tsconfig.cjs.json tsconfig.types-test.json .github/workflows/ci.yml",
50
+ "format:check": "prettier --check src tests scripts eslint.config.js .prettierrc.json package.json tsconfig.json tsconfig.cjs.json tsconfig.types-test.json .github/workflows/ci.yml",
51
+ "lint": "eslint src",
52
+ "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.types-test.json",
53
+ "test:unit": "node --test tests/*.test.mjs tests/*.test.cjs",
54
+ "test:coverage": "yarn build && node scripts/coverage.mjs",
55
+ "test:package": "node scripts/package-smoke.mjs",
56
+ "test": "yarn build && yarn test:unit && yarn typecheck",
57
+ "prepack": "yarn build"
58
+ },
59
+ "devDependencies": {
60
+ "@eslint/js": "^10.0.1",
61
+ "@types/node": "^22.0.0",
62
+ "eslint": "^10.16.0",
63
+ "prettier": "^3.10.1",
64
+ "typescript-eslint": "^8.74.0",
65
+ "typescript": "^5.7.2"
66
+ },
67
+ "packageManager": "yarn@1.22.22"
68
+ }