lapeh 2.4.7 → 2.4.9

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": "lapeh",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "description": "Framework API Express yang siap pakai (Standardized)",
5
5
  "main": "dist/lib/bootstrap.js",
6
6
  "bin": {
@@ -47,6 +47,7 @@
47
47
  "typecheck": "tsc --noEmit",
48
48
  "lint": "eslint .",
49
49
  "lint:fix": "eslint . --fix",
50
+ "test": "jest",
50
51
  "prisma:generate": "node scripts/compile-schema.js && prisma generate",
51
52
  "prisma:migrate": "node scripts/compile-schema.js && prisma migrate dev",
52
53
  "prisma:deploy": "node scripts/compile-schema.js && prisma migrate deploy",
@@ -77,10 +78,10 @@
77
78
  "lapeh",
78
79
  "roby-ajo",
79
80
  "ajo-roby",
80
- "roby-karti-s",
81
+ "robyajo",
81
82
  "lapeh"
82
83
  ],
83
- "author": "Roby Karti S <robyfull.dev@gmail.com>",
84
+ "author": "robyajo <robyfull.dev@gmail.com>",
84
85
  "license": "MIT",
85
86
  "type": "commonjs",
86
87
  "dependencies": {
@@ -123,9 +124,14 @@
123
124
  },
124
125
  "devDependencies": {
125
126
  "@eslint/js": "^9.39.2",
127
+ "@types/jest": "^30.0.0",
126
128
  "@types/module-alias": "^2.0.4",
129
+ "@types/supertest": "^6.0.3",
127
130
  "eslint": "^9.39.2",
128
131
  "globals": "^16.5.0",
132
+ "jest": "^30.2.0",
133
+ "supertest": "^7.1.4",
134
+ "ts-jest": "^29.4.6",
129
135
  "typescript-eslint": "^8.50.1"
130
136
  }
131
137
  }
package/readme.md CHANGED
@@ -9,7 +9,7 @@ Cocok untuk developer yang mencari **Express boilerplate** dengan fitur lengkap:
9
9
  - **Production Ready**: Struktur folder modular (MVC) yang mudah dikembangkan.
10
10
  - **TypeScript First**: Full type-safety untuk mengurangi runtime error.
11
11
  - **Prisma ORM Integration**: Database modern dengan dukungan PostgreSQL dan MySQL.
12
- - **Laravel-style Structure**: Controller, Service, dan Route yang terpisah rapi.
12
+ - **Standardized Structure**: Controller, Service, dan Route yang terpisah rapi.
13
13
  - **Auto CLI Generator**: Buat modul, model, dan controller dengan satu perintah.
14
14
  - **Smart Caching**: Otomatis menggunakan Redis jika tersedia, fallback ke in-memory jika tidak.
15
15
  - **Secure by Default**: Dilengkapi Helmet, Rate Limiting, CORS, dan JWT Auth.
@@ -122,7 +122,7 @@ export async function register(req: Request, res: Response) {
122
122
  });
123
123
  }
124
124
 
125
- sendFastSuccess(res, 200, registerSerializer, {
125
+ sendFastSuccess(res, 201, registerSerializer, {
126
126
  status: "success",
127
127
  message: "Registration successful",
128
128
  data: {
@@ -14,6 +14,11 @@
14
14
  "date": 1766768402694,
15
15
  "name": "E:\\PROJECT\\ANY\\2026\\lapeh\\storage\\logs\\lapeh-2025-12-27.log",
16
16
  "hash": "7b83a98dcb0ded21998f90e8c58a724cbb2534104205f97e15b409cfa080e982"
17
+ },
18
+ {
19
+ "date": 1766895868212,
20
+ "name": "E:\\PROJECT\\ANY\\2026\\lapeh\\storage\\logs\\lapeh-2025-12-28.log",
21
+ "hash": "43121130a6745af0345b445cc3497d27a18a857e350d002848a27b0c71a577ae"
17
22
  }
18
23
  ],
19
24
  "hashType": "sha256"