@netlify/edge-bundler 14.4.0 → 14.5.0
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.
|
@@ -166,7 +166,7 @@ describe('route headers', () => {
|
|
|
166
166
|
manifest.routes[0].headers = {
|
|
167
167
|
'x-custom-header': {
|
|
168
168
|
matcher: 'regex',
|
|
169
|
-
pattern: '
|
|
169
|
+
pattern: 'Bearer .+',
|
|
170
170
|
},
|
|
171
171
|
};
|
|
172
172
|
expect(() => validateManifest(manifest)).not.toThrowError();
|
|
@@ -203,7 +203,7 @@ describe('route headers', () => {
|
|
|
203
203
|
manifest.routes[0].headers = {
|
|
204
204
|
'x-custom-header': {
|
|
205
205
|
matcher: 'regex',
|
|
206
|
-
pattern:
|
|
206
|
+
pattern: /^Bearer .+/,
|
|
207
207
|
},
|
|
208
208
|
};
|
|
209
209
|
expect(() => validateManifest(manifest)).toThrowErrorMatchingSnapshot();
|
|
@@ -66,7 +66,6 @@ declare const edgeManifestSchema: {
|
|
|
66
66
|
properties: {
|
|
67
67
|
pattern: {
|
|
68
68
|
type: string;
|
|
69
|
-
format: string;
|
|
70
69
|
};
|
|
71
70
|
matcher: {
|
|
72
71
|
type: string;
|
|
@@ -139,7 +138,6 @@ declare const edgeManifestSchema: {
|
|
|
139
138
|
properties: {
|
|
140
139
|
pattern: {
|
|
141
140
|
type: string;
|
|
142
|
-
format: string;
|
|
143
141
|
};
|
|
144
142
|
matcher: {
|
|
145
143
|
type: string;
|
|
@@ -3,7 +3,7 @@ const bundlesSchema = {
|
|
|
3
3
|
required: ['asset', 'format'],
|
|
4
4
|
properties: {
|
|
5
5
|
asset: { type: 'string' },
|
|
6
|
-
format: { type: 'string', enum: ['eszip2', 'js'] },
|
|
6
|
+
format: { type: 'string', enum: ['eszip2', 'js', 'tar'] },
|
|
7
7
|
},
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
};
|
|
@@ -24,7 +24,6 @@ const headersSchema = {
|
|
|
24
24
|
properties: {
|
|
25
25
|
pattern: {
|
|
26
26
|
type: 'string',
|
|
27
|
-
format: 'regexPattern',
|
|
28
27
|
},
|
|
29
28
|
matcher: {
|
|
30
29
|
type: 'string',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/edge-bundler",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"description": "Intelligently prepare Netlify Edge Functions for deployment",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -68,9 +68,7 @@
|
|
|
68
68
|
"esbuild": "0.25.6",
|
|
69
69
|
"execa": "^8.0.0",
|
|
70
70
|
"find-up": "^7.0.0",
|
|
71
|
-
"get-package-name": "^2.2.0",
|
|
72
71
|
"get-port": "^7.0.0",
|
|
73
|
-
"is-path-inside": "^4.0.0",
|
|
74
72
|
"node-stream-zip": "^1.15.0",
|
|
75
73
|
"p-retry": "^6.0.0",
|
|
76
74
|
"p-wait-for": "^5.0.0",
|
|
@@ -82,5 +80,5 @@
|
|
|
82
80
|
"urlpattern-polyfill": "8.0.2",
|
|
83
81
|
"uuid": "^11.0.0"
|
|
84
82
|
},
|
|
85
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "6c0a42f34965ccca2564cf7b3c5a4d458debbe50"
|
|
86
84
|
}
|