Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shepherd-plugin-interfaces

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shepherd-plugin-interfaces - npm Package Compare versions

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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc