@tahminator/sapling 1.5.14 → 1.5.16
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/README.md +2 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -82,6 +82,8 @@ class UserController {
|
|
|
82
82
|
const app = express();
|
|
83
83
|
Sapling.registerApp(app);
|
|
84
84
|
|
|
85
|
+
// @Controller and @MiddlewareClass must be registered (in order).
|
|
86
|
+
// @Injectable classes will automatically be formed into singletons by Sapling behind the scenes!
|
|
85
87
|
const controllers: Class<any>[] = [HelloController, UserController];
|
|
86
88
|
controllers.map(Sapling.resolve).forEach((r) => app.use(r));
|
|
87
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tahminator/sapling",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
4
4
|
"author": "Tahmid Ahmed",
|
|
5
5
|
"description": "A library to help you write cleaner Express.js code",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"jiti": "^2.6.1",
|
|
51
51
|
"jsdom": "^29.0.1",
|
|
52
52
|
"prettier": "^3.8.1",
|
|
53
|
+
"superjson": "^2.2.6",
|
|
53
54
|
"supertest": "^7.2.2",
|
|
54
55
|
"typescript-eslint": "^8.57.2",
|
|
55
56
|
"vite-tsconfig-paths": "^6.1.1",
|