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.3.0
to
1.3.1
+1
-1
dist/index.cjs

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

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

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

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

{
"name": "vite-plugin-esi",
"version": "1.3.0",
"version": "1.3.1",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",