servcraft 0.1.4 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "servcraft",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A modular, production-ready Node.js backend framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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';" : "const { createServer } = require('./core/server.js');\nconst { logger } = require('./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