shepherd-plugin-interfaces
Advanced tools
Comparing version 0.1.3 to 0.2.0
16
index.ts
export interface FilterResult { | ||
flagged: boolean // main output: whether the image is filtereed or not | ||
scores?: string // optional plugin scoring | ||
scores?: string // optional plugin scoring | ||
} | ||
@@ -10,7 +10,8 @@ | ||
data_reason: | ||
'oversized' // oversized compressed png files that cannot be opened by most image libraries. | ||
| 'partial' // partial image that library cannnot open | ||
| 'unsupported' // unsupported file type (your plugin is expected to handle jpeg/png/gif at a minimum) | ||
| 'corrupt' // image data is corrupt | ||
'oversized' // oversized compressed png files that cannot be opened by most image libraries. | ||
| 'partial' // partial image that library cannnot open | ||
| 'unsupported' // unsupported file type (your plugin is expected to handle jpeg/png/gif at a minimum) | ||
| 'corrupt' // image data is corrupt | ||
| 'corrupt-maybe' // image data is corrupt, but can be displayed by a browser | ||
| 'noop' // no operation | ||
| (string & {}) | ||
@@ -33,2 +34,7 @@ err_message?: string // optional error message | ||
checkImage(buffer: Buffer, mimetype: string, txid: string): Promise<FilterResult | FilterErrorResult> | ||
} | ||
export interface APIFilterResult { | ||
txid: string | ||
result: FilterResult | FilterErrorResult | ||
} |
{ | ||
"name": "shepherd-plugin-interfaces", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -8,4 +8,3 @@ "main": "index.ts", | ||
"preversion": "git init && git add . && git commit -m \"interface updated\"", | ||
"postversion": "git commit -am \"version updated\" && npm publish && npx rimraf .git", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"postversion": "git commit -am \"version updated\" && npm publish && npx rimraf .git" | ||
}, | ||
@@ -12,0 +11,0 @@ "author": "Ros McMahon <rosmcmahon@gmail.com>", |
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
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
28908
34
1