@sveltejs/adapter-vercel 1.0.0-next.73 → 1.0.0-next.75

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +5 -0
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -38,7 +38,7 @@ export default {
38
38
 
39
39
  ### Vercel functions
40
40
 
41
- Vercel functions contained in the `/api` directory at the project's root will _not_ be included in the deployment — these should be implemented as [endpoints](https://kit.svelte.dev/docs/routing#endpoints) in your SvelteKit app.
41
+ Vercel functions contained in the `/api` directory at the project's root will _not_ be included in the deployment — these should be implemented as [server endpoints](https://kit.svelte.dev/docs/routing#server) in your SvelteKit app.
42
42
 
43
43
  ### Node version
44
44
 
package/index.js CHANGED
@@ -308,6 +308,11 @@ async function create_function_bundle(builder, entry, dir, runtime) {
308
308
  // pending https://github.com/vercel/nft/issues/284
309
309
  if (error.message.startsWith('Failed to resolve dependency node:')) return;
310
310
 
311
+ // parse errors are likely not js and can safely be ignored,
312
+ // such as this html file in "main" meant for nw instead of node:
313
+ // https://github.com/vercel/nft/issues/311
314
+ if (error.message.startsWith('Failed to parse')) return;
315
+
311
316
  if (error.message.startsWith('Failed to resolve dependency')) {
312
317
  const match = /Cannot find module '(.+?)' loaded from (.+)/;
313
318
  const [, module, importer] = match.exec(error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "1.0.0-next.73",
3
+ "version": "1.0.0-next.75",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -24,10 +24,10 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@vercel/nft": "^0.22.0",
27
- "esbuild": "^0.14.48"
27
+ "esbuild": "^0.15.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@sveltejs/kit": "1.0.0-next.479",
30
+ "@sveltejs/kit": "1.0.0-next.482",
31
31
  "@types/node": "^16.11.36",
32
32
  "typescript": "^4.8.2"
33
33
  },