@waftester/cli 2.9.4 → 2.9.6

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/templates/embed.go +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waftester/cli",
3
- "version": "2.9.4",
3
+ "version": "2.9.6",
4
4
  "description": "WAFtester — the most comprehensive WAF testing CLI & MCP server",
5
5
  "license": "BUSL-1.1",
6
6
  "repository": {
@@ -43,11 +43,11 @@
43
43
  "node": ">=16"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@waftester/darwin-x64": "2.9.4",
47
- "@waftester/darwin-arm64": "2.9.4",
48
- "@waftester/linux-x64": "2.9.4",
49
- "@waftester/linux-arm64": "2.9.4",
50
- "@waftester/win32-x64": "2.9.4",
51
- "@waftester/win32-arm64": "2.9.4"
46
+ "@waftester/darwin-x64": "2.9.6",
47
+ "@waftester/darwin-arm64": "2.9.6",
48
+ "@waftester/linux-x64": "2.9.6",
49
+ "@waftester/linux-arm64": "2.9.6",
50
+ "@waftester/win32-x64": "2.9.6",
51
+ "@waftester/win32-arm64": "2.9.6"
52
52
  }
53
53
  }
@@ -0,0 +1,20 @@
1
+ // Package templates embeds all bundled template files for distribution.
2
+ //
3
+ // This ensures templates are available regardless of installation method
4
+ // (Homebrew, Scoop, npm, Docker, or manual download). The CLI falls back
5
+ // to these embedded templates when no on-disk templates directory exists.
6
+ //
7
+ // Usage:
8
+ //
9
+ // fs := templates.FS
10
+ // data, _ := fs.ReadFile("policies/strict.yaml")
11
+ package templates
12
+
13
+ import "embed"
14
+
15
+ // FS contains all bundled template files (nuclei, workflows, policies,
16
+ // overrides, output formats, and report configs). Subdirectory structure
17
+ // matches the on-disk templates/ layout minus this Go file and README.md.
18
+ //
19
+ //go:embed nuclei/**/* workflows/*.yaml policies/*.yaml overrides/*.yaml output/*.tmpl report-configs/*.yaml
20
+ var FS embed.FS