@alltuner/vibetuner 10.21.0 → 10.22.0
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/htmx-csp.js +3 -2
- package/htmx-safeeval.js +9 -0
- package/package.json +2 -2
package/htmx-csp.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
// ABOUTME: Re-exports the htmx hx-csp extension via @alltuner/vibetuner/htmx/csp
|
|
2
|
-
// ABOUTME:
|
|
1
|
+
// ABOUTME: Re-exports the htmx hx-csp extension via @alltuner/vibetuner/htmx/csp and
|
|
2
|
+
// ABOUTME: enables safeEval, so hx-on:/hx-live stay CSP-safe without unsafe-eval.
|
|
3
|
+
import "./htmx-safeeval.js";
|
|
3
4
|
import "htmx.org/dist/ext/hx-csp.js";
|
package/htmx-safeeval.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ABOUTME: Turns on htmx safeEval before the hx-csp extension registers, so hx-csp
|
|
2
|
+
// ABOUTME: evaluates hx-on:/hx-live via nonce-based script injection, not new Function().
|
|
3
|
+
import htmx from "htmx.org";
|
|
4
|
+
|
|
5
|
+
// hx-csp reads htmx.config.safeEval synchronously in its init (which runs the
|
|
6
|
+
// moment the extension module evaluates), so this must be set first. Keeping it
|
|
7
|
+
// in its own module lets htmx-csp.js import it ahead of the extension regardless
|
|
8
|
+
// of how config.js orders the framework imports.
|
|
9
|
+
htmx.config.safeEval = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alltuner/vibetuner",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.22.0",
|
|
4
4
|
"description": "Blessed JavaScript/frontend build dependencies for production-ready Vibetuner projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tailwindcss",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tailwindcss": "./bin/tailwindcss.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alltuner/vibetuner-jinja": "10.
|
|
37
|
+
"@alltuner/vibetuner-jinja": "10.22.0",
|
|
38
38
|
"daisyui": "^5.5.19",
|
|
39
39
|
"htmx.org": "4.0.0-beta4",
|
|
40
40
|
"tailwindcss": "^4.3.0",
|