@netlify/edge-bundler 8.1.2 → 8.2.1
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.
|
@@ -3,7 +3,7 @@ import { join } from 'path';
|
|
|
3
3
|
import { env } from 'process';
|
|
4
4
|
import { pathToFileURL } from 'url';
|
|
5
5
|
import { deleteAsync } from 'del';
|
|
6
|
-
const BOOTSTRAP_LATEST = 'https://
|
|
6
|
+
const BOOTSTRAP_LATEST = 'https://63c67470ca761b0008582aff--edge.netlify.com/bootstrap/index-combined.ts';
|
|
7
7
|
const defaultFormatExportTypeError = (name) => `The Edge Function "${name}" has failed to load. Does it have a function as the default export?`;
|
|
8
8
|
const defaultFormatImpoortError = (name) => `There was an error with Edge Function "${name}".`;
|
|
9
9
|
const generateStage2 = async ({ distDirectory, fileName, formatExportTypeError, formatImportError, functions, }) => {
|
|
@@ -43,8 +43,8 @@ test('Starts a server and serves requests for edge functions', async () => {
|
|
|
43
43
|
}
|
|
44
44
|
const response1 = await fetch(`http://0.0.0.0:${port}/foo`, {
|
|
45
45
|
headers: {
|
|
46
|
-
'x-
|
|
47
|
-
'x-
|
|
46
|
+
'x-nf-edge-functions': 'echo_env',
|
|
47
|
+
'x-ef-passthrough': 'passthrough',
|
|
48
48
|
'X-NF-Request-ID': uuidv4(),
|
|
49
49
|
},
|
|
50
50
|
});
|
|
@@ -52,8 +52,8 @@ test('Starts a server and serves requests for edge functions', async () => {
|
|
|
52
52
|
expect(await response1.text()).toBe('I LOVE NETLIFY');
|
|
53
53
|
const response2 = await fetch(`http://0.0.0.0:${port}/greet`, {
|
|
54
54
|
headers: {
|
|
55
|
-
'x-
|
|
56
|
-
'x-
|
|
55
|
+
'x-nf-edge-functions': 'greet',
|
|
56
|
+
'x-ef-passthrough': 'passthrough',
|
|
57
57
|
'X-NF-Request-ID': uuidv4(),
|
|
58
58
|
},
|
|
59
59
|
});
|