Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

vite-plugin-esi

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-esi - npm Package Compare versions

Comparing version
1.2.4
to
1.3.0
+1
-1
dist/index.cjs

@@ -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 @@ });

@@ -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 = {

@@ -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 = {

@@ -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 @@ });

{
"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"