@bakery-framework/cli 2.0.0-rc.1 → 2.0.0-rc.2
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 +3 -3
- package/src/worker.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakery-framework/cli",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
4
4
|
"description": "Bakery entry point and process supervision: mode dispatch, dev watcher, cluster.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bakery",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"bun": ">=1.4.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@bakery-framework/core": "^2.0.0-rc.
|
|
42
|
+
"@bakery-framework/core": "^2.0.0-rc.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@bakery-framework/orm": "^2.0.0-rc.
|
|
45
|
+
"@bakery-framework/orm": "^2.0.0-rc.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@bakery-framework/orm": {
|
package/src/worker.ts
CHANGED
|
@@ -146,7 +146,7 @@ try {
|
|
|
146
146
|
const hostname = getHostname(req)
|
|
147
147
|
const hostConfig = resolveHostConfig(hostname)
|
|
148
148
|
|
|
149
|
-
return hostStore.run({ config: hostConfig, hostname }, async () => {
|
|
149
|
+
return hostStore.run({ config: hostConfig, hostname, req }, async () => {
|
|
150
150
|
const path = url.pathname
|
|
151
151
|
req.startNs = Bun.nanoseconds()
|
|
152
152
|
req.__hostname = hostname
|
|
@@ -208,7 +208,7 @@ try {
|
|
|
208
208
|
serveLog.UNHANDLED_ERR({ error: errorMsg(error) })
|
|
209
209
|
const hostname = req ? getHostname(req) : ''
|
|
210
210
|
const hostConfig = resolveHostConfig(hostname)
|
|
211
|
-
return hostStore.run({ config: hostConfig, hostname }, async () => {
|
|
211
|
+
return hostStore.run({ config: hostConfig, hostname, req }, async () => {
|
|
212
212
|
return await handleRequestError('/', req, error)
|
|
213
213
|
})
|
|
214
214
|
},
|