servcraft 0.1.3 ā 0.1.5
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/dist/cli/index.cjs +1 -1
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/commands/init.ts +1 -1
- package/.claude/settings.local.json +0 -30
- package/npm-cache/_update-notifier-last-checked +0 -0
package/package.json
CHANGED
package/src/cli/commands/init.ts
CHANGED
|
@@ -620,7 +620,7 @@ model User {
|
|
|
620
620
|
function generateEntryFile(options: InitOptions): string {
|
|
621
621
|
const isTS = options.language === 'typescript';
|
|
622
622
|
|
|
623
|
-
return `${isTS ? "import { createServer } from './core/server.js';\nimport { logger } from './core/logger.js';" : "
|
|
623
|
+
return `${isTS ? "import 'dotenv/config';\nimport { createServer } from './core/server.js';\nimport { logger } from './core/logger.js';" : "require('dotenv').config();\nconst { createServer } = require('./core/server.js');\nconst { logger } = require('./core/logger.js');"}
|
|
624
624
|
|
|
625
625
|
async function main()${isTS ? ': Promise<void>' : ''} {
|
|
626
626
|
const server = createServer();
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(git add:*)",
|
|
5
|
-
"Bash(git commit -m \"$\\(cat <<''EOF''\nfeat: Add advanced rate limiting module\n\n- Implemented three algorithms: fixed-window, sliding-window, token-bucket\n- Support for Memory and Redis stores\n- Flexible key generation \\(IP, User, API Key, custom\\)\n- Whitelist/Blacklist functionality\n- Custom limits per endpoint and user role\n- Pre-configured rate limiters \\(strict, standard, relaxed, auth\\)\n- Admin routes for rate limit management\n- Standard X-RateLimit-* headers\n- Updated documentation with usage examples\n\nAlso includes previous modules:\n- Cache module\n- MFA/TOTP module\n- Notification module\n- OAuth providers \\(Google, GitHub, Facebook, Twitter, Apple\\)\n- Payment providers \\(Stripe, PayPal, Mobile Money\\)\n- File upload module\n\nš¤ Generated with [Claude Code]\\(https://claude.com/claude-code\\)\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>\nEOF\n\\)\")",
|
|
6
|
-
"Bash(npx eslint:*)",
|
|
7
|
-
"Bash(git commit:*)",
|
|
8
|
-
"Bash(git push:*)",
|
|
9
|
-
"Bash(find:*)",
|
|
10
|
-
"Bash(done)",
|
|
11
|
-
"Bash(wc:*)",
|
|
12
|
-
"Bash(npm install:*)",
|
|
13
|
-
"Bash(npm run typecheck:*)",
|
|
14
|
-
"Bash(npm run lint:*)",
|
|
15
|
-
"Bash(npm test:*)",
|
|
16
|
-
"Bash(npm run db:generate:*)",
|
|
17
|
-
"Bash(npx prettier:*)",
|
|
18
|
-
"Bash(grep:*)",
|
|
19
|
-
"Bash(cat:*)",
|
|
20
|
-
"Bash(DATABASE_URL=\"postgresql://postgres:Lesourcier@localhost:5432/servcraft_test?schema=public\" npx prisma db push:*)",
|
|
21
|
-
"Bash(ls:*)",
|
|
22
|
-
"Bash(npm run build:*)",
|
|
23
|
-
"Bash(npm whoami:*)",
|
|
24
|
-
"Bash(npm login)",
|
|
25
|
-
"Bash(npm publish:*)",
|
|
26
|
-
"Bash(npm version:*)",
|
|
27
|
-
"Bash(servcraft:*)"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
File without changes
|