vite-plugin-esi
Advanced tools
+1
-1
@@ -84,3 +84,3 @@ "use strict"; | ||
| return __async(this, null, function* () { | ||
| const esi = new import_nodesi.default(options); | ||
| const esi = new import_nodesi.default(options == null ? void 0 : options.nodeEsi); | ||
| const resolvedHtml = yield esi.process(html, { headers: options == null ? void 0 : options.headers }); | ||
@@ -87,0 +87,0 @@ return resolvedHtml; |
+7
-8
| import { Plugin } from 'vite'; | ||
| import { NodeEsiOptions } from 'nodesi'; | ||
@@ -8,14 +9,12 @@ type Tag = { | ||
| }; | ||
| type NodeEsiOptions = { | ||
| onError?: (src: string, err: Error) => string; | ||
| allowedHosts?: string[]; | ||
| baseUrl?: string; | ||
| headers?: Record<string, string>; | ||
| type EsiTags = { | ||
| [name: string]: Tag[]; | ||
| }; | ||
| type EsiOptions = { | ||
| [name: string]: Tag[]; | ||
| nodeEsi?: NodeEsiOptions; | ||
| headers?: Record<string, string>; | ||
| }; | ||
| type Options = { | ||
| esiOptions?: NodeEsiOptions; | ||
| esi: EsiOptions; | ||
| esiOptions?: EsiOptions; | ||
| esi: EsiTags; | ||
| resolveESI?: boolean; | ||
@@ -22,0 +21,0 @@ }; |
+7
-8
| import { Plugin } from 'vite'; | ||
| import { NodeEsiOptions } from 'nodesi'; | ||
@@ -8,14 +9,12 @@ type Tag = { | ||
| }; | ||
| type NodeEsiOptions = { | ||
| onError?: (src: string, err: Error) => string; | ||
| allowedHosts?: string[]; | ||
| baseUrl?: string; | ||
| headers?: Record<string, string>; | ||
| type EsiTags = { | ||
| [name: string]: Tag[]; | ||
| }; | ||
| type EsiOptions = { | ||
| [name: string]: Tag[]; | ||
| nodeEsi?: NodeEsiOptions; | ||
| headers?: Record<string, string>; | ||
| }; | ||
| type Options = { | ||
| esiOptions?: NodeEsiOptions; | ||
| esi: EsiOptions; | ||
| esiOptions?: EsiOptions; | ||
| esi: EsiTags; | ||
| resolveESI?: boolean; | ||
@@ -22,0 +21,0 @@ }; |
+1
-1
@@ -49,3 +49,3 @@ var __async = (__this, __arguments, generator) => { | ||
| return __async(this, null, function* () { | ||
| const esi = new ESI(options); | ||
| const esi = new ESI(options == null ? void 0 : options.nodeEsi); | ||
| const resolvedHtml = yield esi.process(html, { headers: options == null ? void 0 : options.headers }); | ||
@@ -52,0 +52,0 @@ return resolvedHtml; |
+1
-1
| { | ||
| "name": "vite-plugin-esi", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
0
-100%11693
-0.17%186
-0.53%