commerce-kit 0.0.40 → 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/README.md +112 -44
- package/dist/currencies.d.ts +1 -1
- package/dist/index.d.ts +423 -39
- package/dist/index.js +240 -3
- package/dist/internal.d.ts +11 -75
- package/dist/internal.js +1 -1
- package/package.json +92 -89
package/package.json
CHANGED
|
@@ -1,90 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
2
|
+
"$schema": "https://json.schemastore.org/package",
|
|
3
|
+
"name": "commerce-kit",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "AGPL-3.0-only",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"commerce",
|
|
9
|
+
"ecommerce",
|
|
10
|
+
"shop",
|
|
11
|
+
"shopping",
|
|
12
|
+
"next.js",
|
|
13
|
+
"react",
|
|
14
|
+
"stripe"
|
|
15
|
+
],
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Your Next Store",
|
|
18
|
+
"email": "hi@yournextstore.com",
|
|
19
|
+
"url": "https://yournextstore.com"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./currencies": {
|
|
27
|
+
"import": "./dist/currencies.js",
|
|
28
|
+
"types": "./dist/currencies.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./internal": {
|
|
31
|
+
"import": "./dist/internal.js",
|
|
32
|
+
"types": "./dist/internal.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./yns": {
|
|
35
|
+
"import": "./dist/yns.js",
|
|
36
|
+
"types": "./dist/yns.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./db": {
|
|
39
|
+
"import": "./dist/db.js",
|
|
40
|
+
"types": "./dist/db.d.ts"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"package.json",
|
|
45
|
+
"dist",
|
|
46
|
+
"README.md",
|
|
47
|
+
"LICENSE.md"
|
|
48
|
+
],
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "biome check && rimraf dist/* && tsup --config tsup.config.ts",
|
|
52
|
+
"prepublishOnly": "bun run build",
|
|
53
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
54
|
+
"lint": "biome check --write --unsafe"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@biomejs/biome": "2.2.2",
|
|
58
|
+
"@neondatabase/serverless": "^1.0.1",
|
|
59
|
+
"@types/node": "^24.3.0",
|
|
60
|
+
"@types/react": "^19.1.12",
|
|
61
|
+
"@types/react-dom": "^19.1.9",
|
|
62
|
+
"next": "15.5.2",
|
|
63
|
+
"react": "19.1.1",
|
|
64
|
+
"react-dom": "19.1.1",
|
|
65
|
+
"rimraf": "6.0.1",
|
|
66
|
+
"server-only": "0.0.1",
|
|
67
|
+
"stripe": "^18.5.0",
|
|
68
|
+
"tsup": "8.5.0",
|
|
69
|
+
"tsx": "^4.20.5",
|
|
70
|
+
"vitest": "^3.2.4",
|
|
71
|
+
"zod": "^4.1.5"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@neondatabase/serverless": "^0.9.5",
|
|
75
|
+
"@types/node": "^24.3.0",
|
|
76
|
+
"@types/react": "^19.0.8",
|
|
77
|
+
"@types/react-dom": "^19.0.3",
|
|
78
|
+
"next": "15.5.2",
|
|
79
|
+
"react": "^19.1.1",
|
|
80
|
+
"react-dom": "19.1.1",
|
|
81
|
+
"server-only": "0.0.1",
|
|
82
|
+
"stripe": "^18.5.0",
|
|
83
|
+
"typescript": "^5.9.2",
|
|
84
|
+
"zod": "^4.1.5"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencyRules": {
|
|
87
|
+
"allowedVersions": {
|
|
88
|
+
"react": "^19",
|
|
89
|
+
"react-dom": "^19"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"packageManager": "bun@1.2.21"
|
|
93
|
+
}
|