s402 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.
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "s402",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "s402 — Sui-native HTTP 402 wire format. Types, HTTP encoding, and scheme registry for five payment schemes. Wire-compatible with x402. Zero runtime dependencies.",
6
+ "license": "MIT",
7
+ "author": "Pixel Drift Co <dannydevs@proton.me> (https://s402-protocol.org)",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/s402-protocol/core.git"
11
+ },
12
+ "homepage": "https://s402-protocol.org",
13
+ "bugs": {
14
+ "url": "https://github.com/s402-protocol/core/issues"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "keywords": [
20
+ "sui",
21
+ "http-402",
22
+ "payments",
23
+ "x402",
24
+ "micropayments",
25
+ "streaming",
26
+ "escrow",
27
+ "web3",
28
+ "protocol"
29
+ ],
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "sideEffects": false,
34
+ "files": [
35
+ "dist",
36
+ "README.md",
37
+ "LICENSE",
38
+ "CHANGELOG.md",
39
+ "SECURITY.md"
40
+ ],
41
+ "main": "./dist/index.mjs",
42
+ "module": "./dist/index.mjs",
43
+ "types": "./dist/index.d.mts",
44
+ "exports": {
45
+ ".": {
46
+ "import": {
47
+ "types": "./dist/index.d.mts",
48
+ "default": "./dist/index.mjs"
49
+ },
50
+ "default": "./dist/index.mjs"
51
+ },
52
+ "./types": {
53
+ "import": {
54
+ "types": "./dist/types.d.mts",
55
+ "default": "./dist/types.mjs"
56
+ },
57
+ "default": "./dist/types.mjs"
58
+ },
59
+ "./http": {
60
+ "import": {
61
+ "types": "./dist/http.d.mts",
62
+ "default": "./dist/http.mjs"
63
+ },
64
+ "default": "./dist/http.mjs"
65
+ },
66
+ "./compat": {
67
+ "import": {
68
+ "types": "./dist/compat.d.mts",
69
+ "default": "./dist/compat.mjs"
70
+ },
71
+ "default": "./dist/compat.mjs"
72
+ },
73
+ "./errors": {
74
+ "import": {
75
+ "types": "./dist/errors.d.mts",
76
+ "default": "./dist/errors.mjs"
77
+ },
78
+ "default": "./dist/errors.mjs"
79
+ }
80
+ },
81
+ "scripts": {
82
+ "build": "tsdown",
83
+ "typecheck": "tsc --noEmit",
84
+ "test": "vitest run",
85
+ "test:watch": "vitest",
86
+ "prepublishOnly": "npm run build && npm run typecheck && npm run test",
87
+ "docs:dev": "vitepress dev docs",
88
+ "docs:build": "vitepress build docs",
89
+ "docs:preview": "vitepress preview docs"
90
+ },
91
+ "devDependencies": {
92
+ "@vitest/coverage-v8": "^3.2.4",
93
+ "fast-check": "^4.5.3",
94
+ "tsdown": "^0.20.3",
95
+ "typescript": "^5.7.0",
96
+ "vitepress": "^1.6.4",
97
+ "vitest": "^3.0.5"
98
+ }
99
+ }