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/ml/index.cjs CHANGED
@@ -1,28 +1,4 @@
1
- var __defProp = Object.defineProperty;
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
- // Annotate the CommonJS export names for ESM import in node:
5510
- 0 && (module.exports = {
5511
- HybridFilter,
5512
- ToxicityDetector
5513
- });
5485
+
5486
+ exports.HybridFilter = HybridFilter;
5487
+ exports.ToxicityDetector = ToxicityDetector;
@@ -1,5 +1,5 @@
1
- import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult, a as FilterConfig, C as CheckProfanityResult, H as HybridAnalysisResult, F as Filter } from '../types-BgQe4FSE.cjs';
2
- export { d as ToxicityPrediction } from '../types-BgQe4FSE.cjs';
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.
@@ -1,5 +1,5 @@
1
- import { T as ToxicityLabel, f as MLDetectorConfig, e as MLAnalysisResult, a as FilterConfig, C as CheckProfanityResult, H as HybridAnalysisResult, F as Filter } from '../types-BgQe4FSE.js';
2
- export { d as ToxicityPrediction } from '../types-BgQe4FSE.js';
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.