@rio-pay/sdk 0.0.0-stage → 0.0.1-alpha.2

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,85 @@
1
1
  {
2
2
  "name": "@rio-pay/sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-alpha.2",
4
+ "description": "SDK for Rio USDC payments: the checkout widget, an API client, shared types and webhook signature verification.",
5
+ "keywords": [
6
+ "sei",
7
+ "usdc",
8
+ "payments",
9
+ "checkout",
10
+ "react",
11
+ "stablecoin",
12
+ "webhooks"
13
+ ],
14
+ "homepage": "https://github.com/Zilla-HQ/payments/tree/main/sdk#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/Zilla-HQ/payments.git",
18
+ "directory": "sdk"
19
+ },
20
+ "license": "UNLICENSED",
21
+ "type": "module",
22
+ "main": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "./server": {
31
+ "types": "./dist/server.d.ts",
32
+ "import": "./dist/server.js",
33
+ "default": "./dist/server.js"
34
+ },
35
+ "./client": {
36
+ "types": "./dist/client.d.ts",
37
+ "import": "./dist/client.js",
38
+ "default": "./dist/client.js"
39
+ },
40
+ "./checkout/react": {
41
+ "types": "./dist/checkout/react.d.ts",
42
+ "import": "./dist/checkout/react.js",
43
+ "default": "./dist/checkout/react.js"
44
+ },
45
+ "./package.json": "./package.json"
46
+ },
47
+ "files": [
48
+ "dist",
49
+ "README.md"
50
+ ],
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "engines": {
55
+ "node": ">=18"
56
+ },
57
+ "scripts": {
58
+ "build": "bun run clean && bun build src/index.ts src/server.ts src/client.ts --production --outdir dist --root src --target browser --format esm && bun build src/checkout/react.ts --production --outdir dist --root src --target browser --format esm --external react --external react/jsx-runtime --banner '\"use client\";' && tsc -p tsconfig.build.json",
59
+ "clean": "rm -rf dist",
60
+ "dev": "bun dev/server.ts",
61
+ "typecheck": "tsc -p tsconfig.json",
62
+ "test": "bun test",
63
+ "test:dist": "bun test dist-exports.test.ts",
64
+ "prepublishOnly": "node -e \"if(process.env.GITHUB_ACTIONS!=='true'||process.env.GITHUB_REF_TYPE!=='tag'){console.error('@rio-pay/sdk is released only by the publish-sdk workflow (push a sdk-v* tag); see sdk/README.md.');process.exit(1)}\""
65
+ },
66
+ "peerDependencies": {
67
+ "react": "^18.2.0 || ^19.0.0"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "react": {
71
+ "optional": true
72
+ }
73
+ },
74
+ "devDependencies": {
75
+ "@happy-dom/global-registrator": "21.0.1",
76
+ "@testing-library/dom": "10.4.2",
77
+ "@testing-library/react": "16.3.3",
78
+ "@types/bun": "1.4.3",
79
+ "@types/react": "^19",
80
+ "@types/react-dom": "^19",
81
+ "react": "19.3.0",
82
+ "react-dom": "19.3.0",
83
+ "typescript": "^7"
84
+ }
85
+ }