shepherd-plugin-interfaces
Advanced tools
Comparing version 0.2.0 to 0.2.1
19
index.ts
@@ -1,4 +0,10 @@ | ||
export interface FilterResult { | ||
flagged: boolean // main output: whether the image is filtereed or not | ||
scores?: string // optional plugin scoring | ||
import { Readable } from "stream" | ||
export * as DbTypes from "./types" //not imported locally | ||
import * as Types from "./types" //import locally | ||
export interface FilterResult extends Types.TxFlaggedOptions { | ||
flagged: boolean // main output: whether the image is filtered or not | ||
/** @deprecated */ | ||
scores?: string //remove later | ||
} | ||
@@ -20,2 +26,3 @@ | ||
export interface FilterPluginInterface { | ||
@@ -38,3 +45,7 @@ /** | ||
txid: string | ||
result: FilterResult | FilterErrorResult | ||
filterResult: FilterResult | FilterErrorResult | ||
} | ||
export interface StreamPluginInterface { | ||
checkStream(read: Readable, mimetype: string, txid: string):Promise<string | Error> | ||
} |
{ | ||
"name": "shepherd-plugin-interfaces", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30621
5
101
1