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
package/dist/ml/index.cjs
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/ml/index.ts
|
|
20
|
-
var ml_exports = {};
|
|
21
|
-
__export(ml_exports, {
|
|
22
|
-
HybridFilter: () => HybridFilter,
|
|
23
|
-
ToxicityDetector: () => ToxicityDetector
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(ml_exports);
|
|
1
|
+
'use strict';
|
|
26
2
|
|
|
27
3
|
// src/ml/ToxicityDetector.ts
|
|
28
4
|
var _ToxicityDetector = class _ToxicityDetector {
|
|
@@ -5506,8 +5482,6 @@ var HybridFilter = class {
|
|
|
5506
5482
|
this.mlDetector?.dispose();
|
|
5507
5483
|
}
|
|
5508
5484
|
};
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
ToxicityDetector
|
|
5513
|
-
});
|
|
5485
|
+
|
|
5486
|
+
exports.HybridFilter = HybridFilter;
|
|
5487
|
+
exports.ToxicityDetector = ToxicityDetector;
|
package/dist/ml/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult,
|
|
2
|
-
export { d as ToxicityPrediction } from '../types-
|
|
1
|
+
import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult, F as FilterConfig, C as CheckProfanityResult, H as HybridAnalysisResult, a as Filter } from '../types-CdDqSZY7.cjs';
|
|
2
|
+
export { d as ToxicityPrediction } from '../types-CdDqSZY7.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* ML-based toxicity detection using TensorFlow.js.
|
package/dist/ml/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult,
|
|
2
|
-
export { d as ToxicityPrediction } from '../types-
|
|
1
|
+
import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult, F as FilterConfig, C as CheckProfanityResult, H as HybridAnalysisResult, a as Filter } from '../types-CdDqSZY7.js';
|
|
2
|
+
export { d as ToxicityPrediction } from '../types-CdDqSZY7.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* ML-based toxicity detection using TensorFlow.js.
|