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.
- package/dist/index.cjs +26 -2266
- package/dist/index.d.cts +11 -14
- package/dist/index.d.ts +11 -14
- package/dist/index.js +4983 -2199
- package/dist/ml/index.cjs +4 -30
- package/dist/ml/index.d.cts +2 -2
- package/dist/ml/index.d.ts +2 -2
- package/dist/ml/index.js +4935 -8
- package/dist/{types-BgQe4FSE.d.cts → types-CdDqSZY7.d.cts} +1 -1
- package/dist/{types-BgQe4FSE.d.ts → types-CdDqSZY7.d.ts} +1 -1
- package/package.json +6 -2
- package/dist/chunk-KNHWF6MX.js +0 -5050
|
@@ -347,4 +347,4 @@ interface HybridAnalysisResult {
|
|
|
347
347
|
reason: string;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
export { type CheckProfanityResult as C,
|
|
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,
|
|
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.
|
|
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
|
|
52
|
+
"build": "tsup",
|
|
49
53
|
"test": "jest",
|
|
50
54
|
"test:watch": "jest --watch",
|
|
51
55
|
"test:coverage": "jest --coverage",
|