@xysfe/vite-plugin-dev-proxy 1.0.4 → 1.0.5
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.
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -172,16 +172,16 @@ function handleHtmlResponse(proxyRes, req, res, context) {
|
|
|
172
172
|
const buffer = Buffer.concat(chunks);
|
|
173
173
|
const decompressed = decompressBuffer(buffer, encoding);
|
|
174
174
|
let html = decompressed.toString("utf-8");
|
|
175
|
-
html = injectEntryScript(
|
|
176
|
-
html,
|
|
177
|
-
context.fullEntry,
|
|
178
|
-
context.developmentAgentOccupancy
|
|
179
|
-
);
|
|
180
175
|
html = clearScriptCssTags(
|
|
181
176
|
html,
|
|
182
177
|
context.clearScriptCssPrefixes,
|
|
183
178
|
context.log
|
|
184
179
|
);
|
|
180
|
+
html = injectEntryScript(
|
|
181
|
+
html,
|
|
182
|
+
context.fullEntry,
|
|
183
|
+
context.developmentAgentOccupancy
|
|
184
|
+
);
|
|
185
185
|
const headers = rewriteCookies({ ...proxyRes.headers }, context.log);
|
|
186
186
|
headers["content-type"] = "text/html; charset=utf-8";
|
|
187
187
|
delete headers["content-encoding"];
|
package/dist/index.mjs
CHANGED
|
@@ -163,16 +163,16 @@ function handleHtmlResponse(proxyRes, req, res, context) {
|
|
|
163
163
|
const buffer = Buffer.concat(chunks);
|
|
164
164
|
const decompressed = decompressBuffer(buffer, encoding);
|
|
165
165
|
let html = decompressed.toString("utf-8");
|
|
166
|
-
html = injectEntryScript(
|
|
167
|
-
html,
|
|
168
|
-
context.fullEntry,
|
|
169
|
-
context.developmentAgentOccupancy
|
|
170
|
-
);
|
|
171
166
|
html = clearScriptCssTags(
|
|
172
167
|
html,
|
|
173
168
|
context.clearScriptCssPrefixes,
|
|
174
169
|
context.log
|
|
175
170
|
);
|
|
171
|
+
html = injectEntryScript(
|
|
172
|
+
html,
|
|
173
|
+
context.fullEntry,
|
|
174
|
+
context.developmentAgentOccupancy
|
|
175
|
+
);
|
|
176
176
|
const headers = rewriteCookies({ ...proxyRes.headers }, context.log);
|
|
177
177
|
headers["content-type"] = "text/html; charset=utf-8";
|
|
178
178
|
delete headers["content-encoding"];
|
package/package.json
CHANGED