vite-plugin-esi
Advanced tools
+1
-1
@@ -85,3 +85,3 @@ "use strict"; | ||
| const esi = new import_nodesi.default(options); | ||
| const resolvedHtml = yield esi.process(html); | ||
| const resolvedHtml = yield esi.process(html, { headers: options == null ? void 0 : options.headers }); | ||
| return resolvedHtml; | ||
@@ -88,0 +88,0 @@ }); |
+4
-3
@@ -9,5 +9,6 @@ import { Plugin } from 'vite'; | ||
| type NodeEsiOptions = { | ||
| onError: (src: string, err: Error) => string; | ||
| allowedHosts: string[]; | ||
| baseUrl: string; | ||
| onError?: (src: string, err: Error) => string; | ||
| allowedHosts?: string[]; | ||
| baseUrl?: string; | ||
| headers?: Record<string, string>; | ||
| }; | ||
@@ -14,0 +15,0 @@ type EsiOptions = { |
+4
-3
@@ -9,5 +9,6 @@ import { Plugin } from 'vite'; | ||
| type NodeEsiOptions = { | ||
| onError: (src: string, err: Error) => string; | ||
| allowedHosts: string[]; | ||
| baseUrl: string; | ||
| onError?: (src: string, err: Error) => string; | ||
| allowedHosts?: string[]; | ||
| baseUrl?: string; | ||
| headers?: Record<string, string>; | ||
| }; | ||
@@ -14,0 +15,0 @@ type EsiOptions = { |
+1
-1
@@ -50,3 +50,3 @@ var __async = (__this, __arguments, generator) => { | ||
| const esi = new ESI(options); | ||
| const resolvedHtml = yield esi.process(html); | ||
| const resolvedHtml = yield esi.process(html, { headers: options == null ? void 0 : options.headers }); | ||
| return resolvedHtml; | ||
@@ -53,0 +53,0 @@ }); |
+3
-1
| { | ||
| "name": "vite-plugin-esi", | ||
| "version": "1.2.4", | ||
| "version": "1.3.0", | ||
| "description": "", | ||
@@ -34,4 +34,6 @@ "type": "module", | ||
| "@types/jest": "29.5.12", | ||
| "@types/node": "20.12.7", | ||
| "jest": "29.7.0", | ||
| "ts-jest": "29.1.2", | ||
| "ts-node": "10.9.2", | ||
| "tsup": "8.0.2", | ||
@@ -38,0 +40,0 @@ "vite": "5.2.10" |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11713
2.19%187
0.54%1
-50%8
33.33%