vite-plugin-php 1.0.65 → 1.0.651

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 CHANGED
@@ -7085,9 +7085,12 @@ function usePHP(cfg = {}) {
7085
7085
  phpServer.start(viteServer?.config.root);
7086
7086
  server.middlewares.use(async (req, res, next) => {
7087
7087
  try {
7088
- if (req.url && !["/@vite", "/@fs", "/@id/__x00__"].some(
7089
- (path) => req.url.startsWith(path)
7090
- )) {
7088
+ if (req.url && ![
7089
+ "/@vite",
7090
+ "/@fs",
7091
+ "/@id/__x00__",
7092
+ "/node_modules"
7093
+ ].some((path) => req.url.startsWith(path))) {
7091
7094
  req.on("error", (error) => {
7092
7095
  throw error;
7093
7096
  });
package/dist/index.mjs CHANGED
@@ -7071,9 +7071,12 @@ function usePHP(cfg = {}) {
7071
7071
  phpServer.start(viteServer?.config.root);
7072
7072
  server.middlewares.use(async (req, res, next) => {
7073
7073
  try {
7074
- if (req.url && !["/@vite", "/@fs", "/@id/__x00__"].some(
7075
- (path) => req.url.startsWith(path)
7076
- )) {
7074
+ if (req.url && ![
7075
+ "/@vite",
7076
+ "/@fs",
7077
+ "/@id/__x00__",
7078
+ "/node_modules"
7079
+ ].some((path) => req.url.startsWith(path))) {
7077
7080
  req.on("error", (error) => {
7078
7081
  throw error;
7079
7082
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-php",
3
- "version": "1.0.65",
3
+ "version": "1.0.651",
4
4
  "author": "Nikita 'donnikitos' Nitichevski <me@donnikitos.com> (https://donnikitos.com/)",
5
5
  "repository": {
6
6
  "type": "git",