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.2.0 to 0.2.1

types.ts

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

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