@sveltejs/adapter-netlify 7.0.0-next.6 → 7.0.0-next.8
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/files/edge.js +0 -1
- package/index.js +3 -4
- package/package.json +8 -8
package/files/edge.js
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { join, posix } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
4
|
import { builtinModules } from 'node:module';
|
|
5
5
|
import process from 'node:process';
|
|
6
6
|
import toml from '@iarna/toml';
|
|
@@ -30,7 +30,7 @@ const netlify_framework_edge_path = '.netlify/v1/edge-functions';
|
|
|
30
30
|
|
|
31
31
|
const FUNCTION_PREFIX = 'sveltekit-';
|
|
32
32
|
|
|
33
|
-
/** @type {import('./index.js').default} */
|
|
33
|
+
/** @type {typeof import('./index.js').default} */
|
|
34
34
|
export default function ({ split = false, edge = edge_set_in_env_var } = {}) {
|
|
35
35
|
return {
|
|
36
36
|
name,
|
|
@@ -378,8 +378,7 @@ async function generate_edge_functions({ builder }) {
|
|
|
378
378
|
writeFileSync(`${tmp}/manifest.js`, `export const manifest = ${manifest};\n`);
|
|
379
379
|
|
|
380
380
|
/** @type {{ assets: Set<string> }} */
|
|
381
|
-
|
|
382
|
-
const { assets } = (await import(`file://${tmp}/manifest.js`)).manifest;
|
|
381
|
+
const { assets } = (await import(pathToFileURL(`${tmp}/manifest.js`).href)).manifest;
|
|
383
382
|
|
|
384
383
|
const path = '/*';
|
|
385
384
|
// We only need to specify paths without the trailing slash because
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/adapter-netlify",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.8",
|
|
4
4
|
"description": "A SvelteKit adapter that creates a Netlify app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"types": "index.d.ts",
|
|
29
29
|
"files": [
|
|
30
|
-
"files",
|
|
30
|
+
"files/*.js",
|
|
31
31
|
"index.js",
|
|
32
32
|
"utils.js",
|
|
33
33
|
"index.d.ts",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@iarna/toml": "^2.2.5",
|
|
38
38
|
"@netlify/types": "^2.8.0",
|
|
39
|
-
"rolldown": "^1.2.
|
|
39
|
+
"rolldown": "^1.2.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@netlify/edge-functions": "^3.0.8",
|
|
43
43
|
"@types/deno": "^2.7.0",
|
|
44
44
|
"@types/node": "^22.19.19",
|
|
45
|
-
"typescript": "^
|
|
45
|
+
"typescript": "^7.0.2",
|
|
46
46
|
"vitest": "^4.1.10",
|
|
47
|
-
"@sveltejs/kit": "^3.0.0-next.
|
|
47
|
+
"@sveltejs/kit": "^3.0.0-next.20"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@sveltejs/kit": "^2.31.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"check": "tsc",
|
|
54
|
-
"lint": "
|
|
55
|
-
"format": "
|
|
53
|
+
"check": "tsc && tsc --project files/tsconfig.json",
|
|
54
|
+
"lint": "oxfmt --check .",
|
|
55
|
+
"format": "oxfmt --write .",
|
|
56
56
|
"test:unit": "vitest run",
|
|
57
57
|
"test:build": "pnpm -r --workspace-concurrency 1 --filter=\"./test/**\" build",
|
|
58
58
|
"test": "pnpm test:unit && pnpm test:build"
|