glin-profanity 3.1.1 → 3.1.5

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.
@@ -347,4 +347,4 @@ interface HybridAnalysisResult {
347
347
  reason: string;
348
348
  }
349
349
 
350
- export { type CheckProfanityResult as C, Filter as F, type HybridAnalysisResult as H, type Language as L, type Match as M, SeverityLevel as S, type ToxicityLabel as T, type FilterConfig as a, type FilteredProfanityResult as b, type ContextAwareConfig as c, type ToxicityPrediction as d, type MLAnalysisResult as e, type MLDetectorConfig as f };
350
+ export { type CheckProfanityResult as C, type FilterConfig as F, type HybridAnalysisResult as H, type Language as L, type Match as M, SeverityLevel as S, type ToxicityLabel as T, Filter as a, type FilteredProfanityResult as b, type ContextAwareConfig as c, type ToxicityPrediction as d, type MLAnalysisResult as e, type MLDetectorConfig as f };
@@ -347,4 +347,4 @@ interface HybridAnalysisResult {
347
347
  reason: string;
348
348
  }
349
349
 
350
- export { type CheckProfanityResult as C, Filter as F, type HybridAnalysisResult as H, type Language as L, type Match as M, SeverityLevel as S, type ToxicityLabel as T, type FilterConfig as a, type FilteredProfanityResult as b, type ContextAwareConfig as c, type ToxicityPrediction as d, type MLAnalysisResult as e, type MLDetectorConfig as f };
350
+ export { type CheckProfanityResult as C, type FilterConfig as F, type HybridAnalysisResult as H, type Language as L, type Match as M, SeverityLevel as S, type ToxicityLabel as T, Filter as a, type FilteredProfanityResult as b, type ContextAwareConfig as c, type ToxicityPrediction as d, type MLAnalysisResult as e, type MLDetectorConfig as f };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glin-profanity",
3
- "version": "3.1.1",
3
+ "version": "3.1.5",
4
4
  "description": "Glin-Profanity is a lightweight and efficient npm package designed to detect and filter profane language in text inputs across multiple languages. Whether you’re building a chat application, a comment section, or any platform where user-generated content is involved, Glin-Profanity helps you maintain a clean and respectful environment.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,10 +29,14 @@
29
29
  }
30
30
  },
31
31
  "peerDependencies": {
32
+ "react": ">=16.8.0",
32
33
  "@tensorflow-models/toxicity": ">=1.2.0",
33
34
  "@tensorflow/tfjs": ">=4.0.0"
34
35
  },
35
36
  "peerDependenciesMeta": {
37
+ "react": {
38
+ "optional": true
39
+ },
36
40
  "@tensorflow/tfjs": {
37
41
  "optional": true
38
42
  },
@@ -45,7 +49,7 @@
45
49
  "README.md"
46
50
  ],
47
51
  "scripts": {
48
- "build": "tsup src/index.ts src/ml/index.ts --format cjs,esm --dts --clean",
52
+ "build": "tsup",
49
53
  "test": "jest",
50
54
  "test:watch": "jest --watch",
51
55
  "test:coverage": "jest --coverage",