@ttt-productions/moderation-core 0.2.0 → 0.3.0
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/likelihood.d.ts +1 -1
- package/dist/likelihood.js +1 -1
- package/package.json +1 -1
package/dist/likelihood.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const LIKELIHOOD_ORDER: Record<Likelihood, number>;
|
|
|
6
6
|
export declare function likelihoodToString(value: string | number | null | undefined): Likelihood;
|
|
7
7
|
/**
|
|
8
8
|
* Returns true if `value` is at or above any of the `rejectionLikelihoods`.
|
|
9
|
-
* The caller provides the set — `moderation-core` does not bake in
|
|
9
|
+
* The caller provides the set — `moderation-core` does not bake in app-specific thresholds.
|
|
10
10
|
*/
|
|
11
11
|
export declare function isRejectionLikelihood(value: string | number | null | undefined, rejectionLikelihoods: ReadonlySet<string>): boolean;
|
|
12
12
|
//# sourceMappingURL=likelihood.d.ts.map
|
package/dist/likelihood.js
CHANGED
|
@@ -26,7 +26,7 @@ export function likelihoodToString(value) {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Returns true if `value` is at or above any of the `rejectionLikelihoods`.
|
|
29
|
-
* The caller provides the set — `moderation-core` does not bake in
|
|
29
|
+
* The caller provides the set — `moderation-core` does not bake in app-specific thresholds.
|
|
30
30
|
*/
|
|
31
31
|
export function isRejectionLikelihood(value, rejectionLikelihoods) {
|
|
32
32
|
const str = likelihoodToString(value);
|