@chdlabs/my-shield 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -112,8 +112,13 @@ app.use(shield.middleware());
112
112
  // 2. Mount honeypot trap router (BEFORE application routes)
113
113
  app.use(shield.honeypot());
114
114
 
115
- // 3. Application routes
115
+
116
+ // -----------------> ADD IN HERE ALL YOUR APPLICATION ROUTES <----------------//
116
117
  app.get('/api/data', (req, res) => res.json({ status: 'ok' }));
118
+ // -----------------> ADD IN HERE ALL YOUR APPLICATION ROUTES <----------------//
119
+
120
+
121
+
117
122
 
118
123
  // 4. Mount 404 intelligence collector (AFTER application routes)
119
124
  app.use(shield.notFoundCollector());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chdlabs/my-shield",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Zero-latency security shield middleware with Bloom filter, honeypots, and 404 intelligence",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -43,4 +43,4 @@
43
43
  "scripts": {
44
44
  "test": "node test/integration.test.js"
45
45
  }
46
- }
46
+ }