@access-dlsu/leapify 0.260531.1 → 0.260601.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,155 +1,155 @@
1
- {
2
- "name": "@access-dlsu/leapify",
3
- "version": "0.260531.1",
4
- "description": "DLSU CSO LEAP backend (run as a standalone Cloudflare Worker or install as an npm module)",
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
14
- },
15
- "./worker": {
16
- "import": "./dist/worker.js"
17
- },
18
- "./client": {
19
- "types": "./dist/client/index.d.ts",
20
- "import": "./dist/client/index.js",
21
- "require": "./dist/client/index.cjs"
22
- },
23
- "./types": {
24
- "types": "./dist/client/types.d.ts",
25
- "import": "./dist/client/types.js",
26
- "require": "./dist/client/types.cjs"
27
- },
28
- "./middleware/turnstile-challenge": {
29
- "types": "./dist/lib/middleware/turnstile-challenge.d.ts",
30
- "import": "./dist/lib/middleware/turnstile-challenge.js",
31
- "require": "./dist/lib/middleware/turnstile-challenge.cjs"
32
- }
33
- },
34
- "files": [
35
- "dist"
36
- ],
37
- "sideEffects": false,
38
- "scripts": {
39
- "build": "npx tsup src/index.ts src/client/index.ts src/client/types.ts src/lib/middleware/turnstile-challenge.ts --format esm,cjs --outDir dist --target es2022 --splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && npx tsup src/worker.ts --format esm --outDir dist --target es2022 --no-splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
40
- "dev": "tsup --watch",
41
- "start": "npm run build && wrangler dev",
42
- "deploy": "npm run build && wrangler deploy",
43
- "test": "vitest",
44
- "test:run": "vitest run",
45
- "cf-typegen": "wrangler types",
46
- "typecheck": "tsc --noEmit",
47
- "db:generate": "drizzle-kit generate",
48
- "db:migrate": "drizzle-kit migrate",
49
- "clean": "node scripts/clean.mjs",
50
- "version:auto": "node scripts/auto-version.mjs",
51
- "pack": "npm run clean && npm run version:auto && npm run build && npm pack",
52
- "pub": "npm whoami && npm run clean && npm run build && npm publish --access public"
53
- },
54
- "cloudflare": {
55
- "bindings": {
56
- "ALLOWED_ORIGINS": {
57
- "description": "Comma-separated allowed origins (e.g., https://yoursite.com). Leave empty to block all cross-origin requests."
58
- },
59
- "BETTER_AUTH_SECRET": {
60
- "description": "Better Auth signing secret. Generate with: openssl rand -base64 32"
61
- },
62
- "BETTER_AUTH_URL": {
63
- "description": "Public HTTPS base URL of this Worker (e.g. https://leap.yourdomain.com). Used for OAuth redirects."
64
- },
65
- "GOOGLE_CLIENT_ID": {
66
- "description": "Google OAuth 2.0 Client ID from Google Cloud Console."
67
- },
68
- "GOOGLE_CLIENT_SECRET": {
69
- "description": "Google OAuth 2.0 Client Secret from Google Cloud Console."
70
- },
71
- "GFORMS_SERVICE_ACCOUNT_JSON": {
72
- "description": "Google Forms Service Account JSON."
73
- },
74
- "GFORMS_WEBHOOK_SECRET": {
75
- "description": "Secret for Google Forms Webhook."
76
- },
77
- "CONTENTFUL_SPACE_ID": {
78
- "description": "Contentful Space ID."
79
- },
80
- "CONTENTFUL_ACCESS_TOKEN": {
81
- "description": "Contentful Access Token."
82
- },
83
- "CONTENTFUL_ENVIRONMENT": {
84
- "description": "Contentful Environment (usually `master`)."
85
- },
86
- "SES_REGION": {
87
- "description": "Amazon SES Region (e.g., `us-east-1`)."
88
- },
89
- "SES_ACCESS_KEY_ID": {
90
- "description": "Amazon SES Access Key ID."
91
- },
92
- "SES_SECRET_ACCESS_KEY": {
93
- "description": "Amazon SES Secret Access Key."
94
- },
95
- "SES_FROM_ADDRESS": {
96
- "description": "Verified from address for Amazon SES."
97
- },
98
- "RESEND_API_KEY": {
99
- "description": "Resend API Key for fallback email (Optional)."
100
- },
101
- "RESEND_FROM_ADDRESS": {
102
- "description": "Resend From Address (Optional)."
103
- },
104
- "INTERNAL_API_SECRET": {
105
- "description": "Secret key for internal API routes. Also used as HMAC signing key for PoW challenge cookies."
106
- },
107
- "TURNSTILE_SITE_KEY": {
108
- "description": "Cloudflare Turnstile site key (public)."
109
- },
110
- "TURNSTILE_SECRET_KEY": {
111
- "description": "Cloudflare Turnstile secret key (sensitive)."
112
- }
113
- }
114
- },
115
- "peerDependencies": {
116
- "@cloudflare/workers-types": "^4.0.0",
117
- "drizzle-orm": "^0.45.2",
118
- "hono": "^4.0.0"
119
- },
120
- "peerDependenciesMeta": {
121
- "@cloudflare/workers-types": {
122
- "optional": true
123
- }
124
- },
125
- "dependencies": {
126
- "@hono/zod-validator": "^0.7.6",
127
- "better-auth": "^1.6.9 <1.6.12 || ^1.7",
128
- "wrangler": "^4.80.0",
129
- "zod": "^4.3.6"
130
- },
131
- "devDependencies": {
132
- "@cloudflare/workers-types": "^4.20260402.1",
133
- "@types/better-sqlite3": "^7.6.13",
134
- "better-sqlite3": "^12.8.0",
135
- "drizzle-kit": "^0.31.10",
136
- "hono": "^4.12.0",
137
- "prettier": "3.8.3",
138
- "tsup": "^8.4.0",
139
- "typescript": "^6.0.3",
140
- "vitest": "^4.1.2"
141
- },
142
- "overrides": {
143
- "esbuild": "^0.25.0"
144
- },
145
- "homepage": "https://github.com/access-dlsu/leapify#readme",
146
- "bugs": {
147
- "url": "https://github.com/access-dlsu/leapify/issues"
148
- },
149
- "repository": {
150
- "type": "git",
151
- "url": "git+https://github.com/access-dlsu/leapify.git"
152
- },
153
- "license": "MIT",
154
- "author": "ACCESS DLSU"
155
- }
1
+ {
2
+ "name": "@access-dlsu/leapify",
3
+ "version": "0.260601.2",
4
+ "description": "DLSU CSO LEAP backend (run as a standalone Cloudflare Worker or install as an npm module)",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./worker": {
16
+ "import": "./dist/worker.js"
17
+ },
18
+ "./client": {
19
+ "types": "./dist/client/index.d.ts",
20
+ "import": "./dist/client/index.js",
21
+ "require": "./dist/client/index.cjs"
22
+ },
23
+ "./types": {
24
+ "types": "./dist/client/types.d.ts",
25
+ "import": "./dist/client/types.js",
26
+ "require": "./dist/client/types.cjs"
27
+ },
28
+ "./middleware/turnstile-challenge": {
29
+ "types": "./dist/lib/middleware/turnstile-challenge.d.ts",
30
+ "import": "./dist/lib/middleware/turnstile-challenge.js",
31
+ "require": "./dist/lib/middleware/turnstile-challenge.cjs"
32
+ }
33
+ },
34
+ "files": [
35
+ "dist"
36
+ ],
37
+ "sideEffects": false,
38
+ "scripts": {
39
+ "build": "npx tsup src/index.ts src/client/index.ts src/client/types.ts src/lib/middleware/turnstile-challenge.ts --format esm,cjs --outDir dist --target es2022 --splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && npx tsup src/worker.ts --format esm --outDir dist --target es2022 --no-splitting --sourcemap false --no-dts --no-clean --external @opentelemetry/api && tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
40
+ "dev": "tsup --watch",
41
+ "start": "npm run build && wrangler dev",
42
+ "deploy": "npm run build && wrangler deploy",
43
+ "test": "vitest",
44
+ "test:run": "vitest run",
45
+ "cf-typegen": "wrangler types",
46
+ "typecheck": "tsc --noEmit",
47
+ "db:generate": "drizzle-kit generate",
48
+ "db:migrate": "drizzle-kit migrate",
49
+ "clean": "node scripts/clean.mjs",
50
+ "version:auto": "node scripts/auto-version.mjs",
51
+ "pack": "npm run clean && npm run version:auto && npm run build && npm pack",
52
+ "pub": "npm whoami && npm run clean && npm run build && npm publish --access public"
53
+ },
54
+ "cloudflare": {
55
+ "bindings": {
56
+ "ALLOWED_ORIGINS": {
57
+ "description": "Comma-separated allowed origins (e.g., https://yoursite.com). Leave empty to block all cross-origin requests."
58
+ },
59
+ "BETTER_AUTH_SECRET": {
60
+ "description": "Better Auth signing secret. Generate with: openssl rand -base64 32"
61
+ },
62
+ "BETTER_AUTH_URL": {
63
+ "description": "Public HTTPS base URL of this Worker (e.g. https://leap.yourdomain.com). Used for OAuth redirects."
64
+ },
65
+ "GOOGLE_CLIENT_ID": {
66
+ "description": "Google OAuth 2.0 Client ID from Google Cloud Console."
67
+ },
68
+ "GOOGLE_CLIENT_SECRET": {
69
+ "description": "Google OAuth 2.0 Client Secret from Google Cloud Console."
70
+ },
71
+ "GFORMS_SERVICE_ACCOUNT_JSON": {
72
+ "description": "Google Forms Service Account JSON."
73
+ },
74
+ "GFORMS_WEBHOOK_SECRET": {
75
+ "description": "Secret for Google Forms Webhook."
76
+ },
77
+ "CONTENTFUL_SPACE_ID": {
78
+ "description": "Contentful Space ID."
79
+ },
80
+ "CONTENTFUL_ACCESS_TOKEN": {
81
+ "description": "Contentful Access Token."
82
+ },
83
+ "CONTENTFUL_ENVIRONMENT": {
84
+ "description": "Contentful Environment (usually `master`)."
85
+ },
86
+ "SES_REGION": {
87
+ "description": "Amazon SES Region (e.g., `us-east-1`)."
88
+ },
89
+ "SES_ACCESS_KEY_ID": {
90
+ "description": "Amazon SES Access Key ID."
91
+ },
92
+ "SES_SECRET_ACCESS_KEY": {
93
+ "description": "Amazon SES Secret Access Key."
94
+ },
95
+ "SES_FROM_ADDRESS": {
96
+ "description": "Verified from address for Amazon SES."
97
+ },
98
+ "RESEND_API_KEY": {
99
+ "description": "Resend API Key for fallback email (Optional)."
100
+ },
101
+ "RESEND_FROM_ADDRESS": {
102
+ "description": "Resend From Address (Optional)."
103
+ },
104
+ "INTERNAL_API_SECRET": {
105
+ "description": "Secret key for internal API routes. Also used as HMAC signing key for PoW challenge cookies."
106
+ },
107
+ "TURNSTILE_SITE_KEY": {
108
+ "description": "Cloudflare Turnstile site key (public)."
109
+ },
110
+ "TURNSTILE_SECRET_KEY": {
111
+ "description": "Cloudflare Turnstile secret key (sensitive)."
112
+ }
113
+ }
114
+ },
115
+ "peerDependencies": {
116
+ "@cloudflare/workers-types": "^4.0.0",
117
+ "drizzle-orm": "^0.45.2",
118
+ "hono": "^4.0.0"
119
+ },
120
+ "peerDependenciesMeta": {
121
+ "@cloudflare/workers-types": {
122
+ "optional": true
123
+ }
124
+ },
125
+ "dependencies": {
126
+ "@hono/zod-validator": "^0.7.6",
127
+ "better-auth": "^1.6.9 <1.6.12 || ^1.7",
128
+ "wrangler": "^4.80.0",
129
+ "zod": "^4.3.6"
130
+ },
131
+ "devDependencies": {
132
+ "@cloudflare/workers-types": "^4.20260402.1",
133
+ "@types/better-sqlite3": "^7.6.13",
134
+ "better-sqlite3": "^12.8.0",
135
+ "drizzle-kit": "^0.31.10",
136
+ "hono": "^4.12.0",
137
+ "prettier": "3.8.3",
138
+ "tsup": "^8.4.0",
139
+ "typescript": "^6.0.3",
140
+ "vitest": "^4.1.2"
141
+ },
142
+ "overrides": {
143
+ "esbuild": "^0.25.0"
144
+ },
145
+ "homepage": "https://github.com/access-dlsu/leapify#readme",
146
+ "bugs": {
147
+ "url": "https://github.com/access-dlsu/leapify/issues"
148
+ },
149
+ "repository": {
150
+ "type": "git",
151
+ "url": "git+https://github.com/access-dlsu/leapify.git"
152
+ },
153
+ "license": "MIT",
154
+ "author": "ACCESS DLSU"
155
+ }