ai-warden 0.8.1 → 0.8.2

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 +1 -1
  2. package/src/client.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-warden",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "AI security scanner - Detect prompt injection attacks and PII with user settings",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/client.js CHANGED
@@ -137,7 +137,7 @@ class AIWardenClient {
137
137
 
138
138
  const url = `${this.apiUrl}/api/validate`;
139
139
  const payload = {
140
- content,
140
+ text: content, // API expects 'text', not 'content'
141
141
  settings: this.settings,
142
142
  ...options
143
143
  };