@sveltejs/adapter-netlify 7.0.0-next.6 → 7.0.0-next.7
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 +2 -3
- package/package.json +2 -2
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';
|
|
@@ -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.7",
|
|
4
4
|
"description": "A SvelteKit adapter that creates a Netlify app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/node": "^22.19.19",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"vitest": "^4.1.10",
|
|
47
|
-
"@sveltejs/kit": "^3.0.0-next.
|
|
47
|
+
"@sveltejs/kit": "^3.0.0-next.17"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@sveltejs/kit": "^2.31.0"
|