nitropack-nightly 2.13.0-20251216-115630-9617490c → 2.13.0-20260107-111908-1e9a7f50
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/dist/core/index.mjs
CHANGED
|
@@ -2433,7 +2433,7 @@ async function defaultHandler(error, event, opts) {
|
|
|
2433
2433
|
ansiError
|
|
2434
2434
|
);
|
|
2435
2435
|
}
|
|
2436
|
-
const useJSON = opts?.json
|
|
2436
|
+
const useJSON = opts?.json ?? !getRequestHeader(event, "accept")?.includes("text/html");
|
|
2437
2437
|
const headers = {
|
|
2438
2438
|
"content-type": useJSON ? "application/json" : "text/html",
|
|
2439
2439
|
// Prevent browser from guessing the MIME types of resources.
|
package/dist/meta/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ export const handler = awslambda.streamifyResponse(
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
const writer = awslambda.HttpResponseStream.from(
|
|
48
|
-
// @ts-
|
|
48
|
+
// @ts-ignore TODO: IMPORTANT! It should be a Writable according to the aws-lambda types
|
|
49
49
|
responseStream,
|
|
50
50
|
httpResponseMetadata
|
|
51
51
|
);
|
|
@@ -56,7 +56,7 @@ export async function defaultHandler(error, event, opts) {
|
|
|
56
56
|
ansiError
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
const useJSON = opts?.json
|
|
59
|
+
const useJSON = opts?.json ?? !getRequestHeader(event, "accept")?.includes("text/html");
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": useJSON ? "application/json" : "text/html",
|
|
62
62
|
// Prevent browser from guessing the MIME types of resources.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.13.0-
|
|
3
|
+
"version": "2.13.0-20260107-111908-1e9a7f50",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@rollup/plugin-terser": "^0.4.4",
|
|
108
108
|
"@vercel/nft": "^1.1.1",
|
|
109
109
|
"archiver": "^7.0.1",
|
|
110
|
-
"c12": "^3.3.
|
|
111
|
-
"chokidar": "^
|
|
110
|
+
"c12": "^3.3.3",
|
|
111
|
+
"chokidar": "^5.0.0",
|
|
112
112
|
"citty": "^0.1.6",
|
|
113
113
|
"compatx": "^0.2.0",
|
|
114
114
|
"confbox": "^0.2.2",
|
|
@@ -120,16 +120,16 @@
|
|
|
120
120
|
"defu": "^6.1.4",
|
|
121
121
|
"destr": "^2.0.5",
|
|
122
122
|
"dot-prop": "^10.1.0",
|
|
123
|
-
"esbuild": "^0.27.
|
|
123
|
+
"esbuild": "^0.27.2",
|
|
124
124
|
"escape-string-regexp": "^5.0.0",
|
|
125
125
|
"etag": "^1.8.1",
|
|
126
126
|
"exsolve": "^1.0.8",
|
|
127
|
-
"globby": "^16.
|
|
127
|
+
"globby": "^16.1.0",
|
|
128
128
|
"gzip-size": "^7.0.0",
|
|
129
129
|
"h3": "^1.15.4",
|
|
130
130
|
"hookable": "^5.5.3",
|
|
131
131
|
"httpxy": "^0.1.7",
|
|
132
|
-
"ioredis": "^5.
|
|
132
|
+
"ioredis": "^5.9.0",
|
|
133
133
|
"jiti": "^2.6.1",
|
|
134
134
|
"klona": "^2.0.6",
|
|
135
135
|
"knitwork": "^1.3.0",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"pkg-types": "^2.3.0",
|
|
148
148
|
"pretty-bytes": "^7.1.0",
|
|
149
149
|
"radix3": "^1.1.2",
|
|
150
|
-
"rollup": "^4.
|
|
150
|
+
"rollup": "^4.55.1",
|
|
151
151
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
152
152
|
"scule": "^1.3.0",
|
|
153
153
|
"semver": "^7.7.3",
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
"serve-static": "^2.2.1",
|
|
156
156
|
"source-map": "^0.7.6",
|
|
157
157
|
"std-env": "^3.10.0",
|
|
158
|
-
"ufo": "^1.6.
|
|
158
|
+
"ufo": "^1.6.2",
|
|
159
159
|
"ultrahtml": "^1.6.0",
|
|
160
160
|
"uncrypto": "^0.1.3",
|
|
161
|
-
"unctx": "^2.
|
|
161
|
+
"unctx": "^2.5.0",
|
|
162
162
|
"unenv": "^2.0.0-rc.24",
|
|
163
163
|
"unimport": "^5.6.0",
|
|
164
164
|
"unplugin-utils": "^0.3.1",
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
"devDependencies": {
|
|
172
172
|
"@azure/functions": "^3.5.1",
|
|
173
173
|
"@azure/static-web-apps-cli": "^2.0.7",
|
|
174
|
-
"@cloudflare/workers-types": "^4.
|
|
174
|
+
"@cloudflare/workers-types": "^4.20260103.0",
|
|
175
175
|
"@deno/types": "^0.0.1",
|
|
176
176
|
"@netlify/edge-functions": "^3.0.3",
|
|
177
|
-
"@netlify/functions": "^5.1.
|
|
178
|
-
"@scalar/api-reference": "^1.40.
|
|
177
|
+
"@netlify/functions": "^5.1.2",
|
|
178
|
+
"@scalar/api-reference": "^1.40.9",
|
|
179
179
|
"@types/archiver": "^7.0.0",
|
|
180
180
|
"@types/aws-lambda": "^8.10.159",
|
|
181
181
|
"@types/estree": "^1.0.8",
|
|
@@ -185,24 +185,24 @@
|
|
|
185
185
|
"@types/semver": "^7.7.1",
|
|
186
186
|
"@types/serve-static": "^2.2.0",
|
|
187
187
|
"@types/xml2js": "^0.4.14",
|
|
188
|
-
"@vitest/coverage-v8": "^4.0.
|
|
188
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
189
189
|
"automd": "^0.4.2",
|
|
190
190
|
"changelogen": "^0.6.2",
|
|
191
191
|
"edge-runtime": "^4.0.1",
|
|
192
192
|
"eslint": "^9.39.2",
|
|
193
|
-
"eslint-config-unjs": "^0.
|
|
193
|
+
"eslint-config-unjs": "^0.6.2",
|
|
194
194
|
"execa": "^9.6.1",
|
|
195
195
|
"expect-type": "^1.3.0",
|
|
196
196
|
"firebase-admin": "^13.6.0",
|
|
197
|
-
"firebase-functions": "^7.0.
|
|
197
|
+
"firebase-functions": "^7.0.2",
|
|
198
198
|
"get-port-please": "^3.2.0",
|
|
199
|
-
"miniflare": "^4.
|
|
199
|
+
"miniflare": "^4.20251217.0",
|
|
200
200
|
"ohash-v1": "npm:ohash@^1.1.6",
|
|
201
201
|
"prettier": "^3.7.4",
|
|
202
202
|
"typescript": "^5.9.3",
|
|
203
203
|
"unbuild": "^3.6.1",
|
|
204
|
-
"undici": "^7.
|
|
205
|
-
"vitest": "^4.0.
|
|
204
|
+
"undici": "^7.18.2",
|
|
205
|
+
"vitest": "^4.0.16",
|
|
206
206
|
"wrangler": "^4.54.0",
|
|
207
207
|
"xml2js": "^0.6.2"
|
|
208
208
|
},
|