@sveltejs/adapter-vercel 1.0.0-next.52 → 1.0.0-next.53
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 +7 -5
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -145,10 +145,10 @@ async function v1(builder, external) {
|
|
|
145
145
|
bundle: true,
|
|
146
146
|
platform: 'node',
|
|
147
147
|
external,
|
|
148
|
-
format: '
|
|
148
|
+
format: 'cjs'
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
writeFileSync(`${dirs.lambda}/package.json`, JSON.stringify({ type: '
|
|
151
|
+
writeFileSync(`${dirs.lambda}/package.json`, JSON.stringify({ type: 'commonjs' }));
|
|
152
152
|
|
|
153
153
|
builder.log.minor('Copying assets...');
|
|
154
154
|
|
|
@@ -271,7 +271,7 @@ async function v3(builder, external, edge, split) {
|
|
|
271
271
|
target: `node${node_version.full}`,
|
|
272
272
|
bundle: true,
|
|
273
273
|
platform: 'node',
|
|
274
|
-
format: '
|
|
274
|
+
format: 'cjs',
|
|
275
275
|
external
|
|
276
276
|
});
|
|
277
277
|
|
|
@@ -284,7 +284,7 @@ async function v3(builder, external, edge, split) {
|
|
|
284
284
|
})
|
|
285
285
|
);
|
|
286
286
|
|
|
287
|
-
write(`${dirs.functions}/${name}.func/package.json`, JSON.stringify({ type: '
|
|
287
|
+
write(`${dirs.functions}/${name}.func/package.json`, JSON.stringify({ type: 'commonjs' }));
|
|
288
288
|
|
|
289
289
|
routes.push({ src: pattern, dest: `/${name}` });
|
|
290
290
|
}
|
|
@@ -405,7 +405,9 @@ function get_node_version() {
|
|
|
405
405
|
const major = parseInt(full.split('.')[0]); // '16.5.0' --> 16
|
|
406
406
|
|
|
407
407
|
if (major < 16) {
|
|
408
|
-
throw new Error(
|
|
408
|
+
throw new Error(
|
|
409
|
+
`SvelteKit only supports Node.js version 16 or greater (currently using v${full}). Consult the documentation: https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version`
|
|
410
|
+
);
|
|
409
411
|
}
|
|
410
412
|
|
|
411
413
|
return { major, full };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/adapter-vercel",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.53",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/sveltejs/kit",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"index.d.ts"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"esbuild": "^0.14.
|
|
25
|
+
"esbuild": "^0.14.29"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@sveltejs/kit": "1.0.0-next.
|
|
28
|
+
"@sveltejs/kit": "1.0.0-next.338",
|
|
29
29
|
"@types/node": "^14.14.20",
|
|
30
30
|
"typescript": "^4.6.2"
|
|
31
31
|
},
|