express.io.js 1.22.1015 → 2026.122.1345

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.
@@ -161,9 +161,8 @@ express.response = function (app, request, http_d) {
161
161
 
162
162
  express.setup = async function (request, response, next) {
163
163
  if ("db") {
164
- if (this.config.db.driver === "json") {
165
- request.db = new JSON.db ({dir: this.dir.db, collection: this.config.db.collection});
166
- }
164
+ if (this.config.db.driver === "json") request.db = new JSON.db ({dir: this.dir.db, collection: this.config.db.collection});
165
+ if (this.config.db.driver === "appwrite") request.db = new $.appwrite.db ({id: this.config.db.id, host: this.config.db.host, project: this.config.db.project, collection: this.config.db.collection});
167
166
  }
168
167
  if ("app:client") {
169
168
  request.app = (await request.db.select ("app").find ({host: request.url.host.name})).data.one ()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "express.io.js",
3
3
  "description": "Hello World",
4
- "version": "1.022.1015",
4
+ "version": "2026.122.1345",
5
5
  "author": "Seindi Rahmat Barus <xseindi@gmail.com>",
6
6
  "contributors": [
7
7
  "Seindi Rahmat Barus <xseindi@gmail.com>"
@@ -22,6 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "express": "^5.2.1",
25
- "script.io.js": "^1.022.1015"
25
+ "script.io.js": "^2026.122.1345",
26
+ "node-appwrite": "^21.1.0"
26
27
  }
27
28
  }