@consenti/api 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,97 @@
1
+ {
2
+ "name": "@consenti/api",
3
+ "version": "0.1.0",
4
+ "description": "Zero-dependency GDPR-compliant Consent Management Platform backend",
5
+ "license": "Apache-2.0",
6
+ "keywords": [
7
+ "gdpr",
8
+ "consent-management",
9
+ "cmp",
10
+ "ccpa",
11
+ "privacy",
12
+ "cookie-consent",
13
+ "admin-dashboard",
14
+ "typescript",
15
+ "node"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/santoshe61/consenti.git"
20
+ },
21
+ "homepage": "https://consenti.dev",
22
+ "bugs": {
23
+ "url": "https://github.com/santoshe61/consenti/issues"
24
+ },
25
+ "type": "module",
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js",
33
+ "require": "./dist/index.cjs"
34
+ }
35
+ },
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "scripts": {
40
+ "buildonly": "tsup",
41
+ "watch": "tsup --watch",
42
+ "build:api": "tsup && node scripts/fix-node-prefix.mjs && node scripts/copy-widget.mjs",
43
+ "build:dashboard": "cd src/dashboard && vite build --config vite.config.ts",
44
+ "build": "npm run build:api && npm run build:dashboard",
45
+ "dev:server": "tsx --watch scripts/dev-server.ts",
46
+ "dev:dashboard": "vite --config src/dashboard/vite.config.ts",
47
+ "dev": "npm run dev:dashboard & npm run dev:server",
48
+ "typecheck": "tsc --noEmit"
49
+ },
50
+ "devDependencies": {
51
+ "@consenti/types": "*",
52
+ "@preact/preset-vite": "^2.8.1",
53
+ "@types/better-sqlite3": "^7.6.13",
54
+ "@types/node": "^22.0.0",
55
+ "@types/pg": "^8.11.0",
56
+ "autoprefixer": "^10.4.21",
57
+ "mongodb": "^6.0.0",
58
+ "mysql2": "^3.0.0",
59
+ "node-sqlite3-wasm": "^0.8.59",
60
+ "pg": "^8.0.0",
61
+ "postcss": "^8.5.5",
62
+ "preact": "^10.26.9",
63
+ "tailwindcss": "^3.4.17",
64
+ "tsup": "^8.5.0",
65
+ "typescript": "^5.8.3",
66
+ "vite": "^6.3.5"
67
+ },
68
+ "peerDependencies": {
69
+ "better-sqlite3": "^12.11.1",
70
+ "mongodb": ">=6.0.0",
71
+ "mysql2": ">=3.0.0",
72
+ "node-sqlite3-wasm": "^0.8.59",
73
+ "pg": ">=8.0.0"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "node-sqlite3-wasm": {
77
+ "optional": true
78
+ },
79
+ "better-sqlite3": {
80
+ "optional": true
81
+ },
82
+ "mongodb": {
83
+ "optional": true
84
+ },
85
+ "mysql2": {
86
+ "optional": true
87
+ },
88
+ "pg": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "packageManager": "npm@10.9.2",
93
+ "engines": {
94
+ "node": ">=20.0.0",
95
+ "npm": ">=10.0.0"
96
+ }
97
+ }