@platformatic/remix 2.55.0 → 2.57.0
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/index.js +14 -1
- package/package.json +7 -7
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -121,16 +121,29 @@ export class RemixStackable extends ViteStackable {
|
|
|
121
121
|
return super.inject(injectParams, onInject)
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
if (this.startHttpTimer && this.endHttpTimer) {
|
|
125
|
+
this.startHttpTimer({ request: injectParams })
|
|
126
|
+
|
|
127
|
+
if (onInject) {
|
|
128
|
+
const originalOnInject = onInject
|
|
129
|
+
onInject = (err, response) => {
|
|
130
|
+
this.endHttpTimer({ request: injectParams, response })
|
|
131
|
+
originalOnInject(err, response)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
124
136
|
const res = await inject(this.#app, injectParams, onInject)
|
|
125
137
|
|
|
126
138
|
/* c8 ignore next 3 */
|
|
127
139
|
if (onInject) {
|
|
128
140
|
return
|
|
141
|
+
} else if (this.endHttpTimer) {
|
|
142
|
+
this.endHttpTimer({ request: injectParams, response: res })
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
// Since inject might be called from the main thread directly via ITC, let's clean it up
|
|
132
146
|
const { statusCode, headers, body, payload, rawPayload } = res
|
|
133
|
-
|
|
134
147
|
return { statusCode, headers, body, payload, rawPayload }
|
|
135
148
|
}
|
|
136
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/remix",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.0",
|
|
4
4
|
"description": "Platformatic Remix Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"express": "^4.19.2",
|
|
21
21
|
"pino-http": "^10.2.0",
|
|
22
22
|
"semver": "^7.6.3",
|
|
23
|
-
"@platformatic/basic": "2.
|
|
24
|
-
"@platformatic/config": "2.
|
|
25
|
-
"@platformatic/
|
|
26
|
-
"@platformatic/
|
|
23
|
+
"@platformatic/basic": "2.57.0",
|
|
24
|
+
"@platformatic/config": "2.57.0",
|
|
25
|
+
"@platformatic/vite": "2.57.0",
|
|
26
|
+
"@platformatic/utils": "2.57.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@remix-run/dev": "^2.11.2",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"typescript": "^5.5.4",
|
|
41
41
|
"vite": "^5.4.2",
|
|
42
42
|
"ws": "^8.18.0",
|
|
43
|
-
"@platformatic/composer": "2.
|
|
44
|
-
"@platformatic/service": "2.
|
|
43
|
+
"@platformatic/composer": "2.57.0",
|
|
44
|
+
"@platformatic/service": "2.57.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"test": "npm run lint && borp --concurrency=1 --no-timeout",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/remix/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/remix/2.57.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Remix Stackable",
|
|
5
5
|
"type": "object",
|