@redsocs/spam-warden 1.1.5 → 1.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redsocs/spam-warden",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Lightweight client-side JavaScript library for real-time spam detection. Trained on Thai spam data using Bernoulli Naive Bayes.",
5
5
  "main": "dist/spamwarden.min.js",
6
6
  "browser": "dist/spamwarden.min.js",
@@ -11,6 +11,7 @@
11
11
  "scripts": {
12
12
  "build": "node build.js",
13
13
  "dev:build": "if [ -z \"$MODEL_DECRYPTION_KEY\" ]; then echo \"Error: MODEL_DECRYPTION_KEY environment variable is required\"; exit 1; fi && openssl enc -d -pbkdf2 -in model.json.enc -out model.json -k \"$MODEL_DECRYPTION_KEY\" && (npm run build; status=$?; openssl enc -e -pbkdf2 -in model.json -out model.json.enc -k \"$MODEL_DECRYPTION_KEY\"; rm -f model.json; exit $status) && echo \"✅ Build and re-encryption complete.\"",
14
+ "dev:test": "if [ -z \"$MODEL_DECRYPTION_KEY\" ]; then echo \"Error: MODEL_DECRYPTION_KEY environment variable is required\"; exit 1; fi && openssl enc -d -pbkdf2 -in model.json.enc -out model.json -k \"$MODEL_DECRYPTION_KEY\" && (npm run build; build_status=$?; rm -f model.json; if [ $build_status -ne 0 ]; then exit $build_status; fi; npm test)",
14
15
  "lazy": "node lazy.js",
15
16
  "dev:lazy": "if [ -z \"$MODEL_DECRYPTION_KEY\" ]; then echo \"Error: MODEL_DECRYPTION_KEY environment variable is required\"; exit 1; fi && openssl enc -d -pbkdf2 -in model.json.enc -out model.json -k \"$MODEL_DECRYPTION_KEY\" && (npm run lazy && npm run build; status=$?; openssl enc -e -pbkdf2 -in model.json -out model.json.enc -k \"$MODEL_DECRYPTION_KEY\"; rm -f model.json; exit $status) && echo \"✅ Lazy import, build, and re-encryption complete.\"",
16
17
  "test": "node tests/test.js",