vite-plugin-symfony
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -263,3 +263,5 @@ var __create = Object.create; | ||
const availableKeys = Object.keys(allVars).filter((key) => exposedEnvVars.indexOf(key) !== -1); | ||
const extraDefine = Object.fromEntries(availableKeys.map((key) => [key, JSON.stringify(allVars[key])])); | ||
const extraDefine = Object.fromEntries( | ||
availableKeys.map((key) => [`import.meta.env.${key}`, JSON.stringify(allVars[key])]) | ||
); | ||
return { | ||
@@ -266,0 +268,0 @@ ...extraDefine, |
@@ -80,3 +80,3 @@ var __create = Object.create; | ||
const app = import_stimulus.Application.start(); | ||
app.debug = true; | ||
app.debug = process.env.NODE_ENV === "development"; | ||
for (const controllerName in import_controllers.default) { | ||
@@ -83,0 +83,0 @@ if (!import_controllers.default.hasOwnProperty(controllerName)) { |
{ | ||
"name": "vite-plugin-symfony", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "A Vite plugin to integrate easily Vite in your Symfony application", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -283,3 +283,5 @@ import { loadEnv, type ResolvedConfig } from "vite"; | ||
const availableKeys = Object.keys(allVars).filter((key) => exposedEnvVars.indexOf(key) !== -1); | ||
const extraDefine = Object.fromEntries(availableKeys.map((key) => [key, JSON.stringify(allVars[key])])); | ||
const extraDefine = Object.fromEntries( | ||
availableKeys.map((key) => [`import.meta.env.${key}`, JSON.stringify(allVars[key])]), | ||
); | ||
@@ -286,0 +288,0 @@ return { |
@@ -35,4 +35,5 @@ import { Application, Controller } from "@hotwired/stimulus"; | ||
const app = Application.start(); | ||
app.debug = true; | ||
app.debug = process.env.NODE_ENV === "development"; | ||
for (const controllerName in thirdPartyControllers) { | ||
@@ -39,0 +40,0 @@ // eslint-disable-next-line no-prototype-builtins |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220377
4528
11