Socket
Socket
Sign inDemoInstall

@intuned/runner-types

Package Overview
Dependencies
Maintainers
5
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intuned/runner-types - npm Package Compare versions

Comparing version 0.13.4 to 0.13.5

38

index.d.ts

@@ -268,2 +268,25 @@ declare module '@intuned/runner' {

}
export function extractFromPdf(pdfBuffer: Buffer, entityName: string, jsonSchema: JSONSchema, pages: [
number
]): Promise<any>;
export interface SearchPdfConfigs {
contextWindow?: number;
matchCase?: boolean;
wholeWord?: boolean;
}
export type SearchPdfResult = {
context: string;
page: number;
found: true;
} | {
found: false;
};
export function searchPdf(dataBuffer: Buffer, search: string, options?: SearchPdfConfigs): Promise<SearchPdfResult>;
export function pdfPageToText(dataBuffer: Buffer, pageNumbers: number[]): Promise<{
results: {
text: string;
pageNumber: number;
}[];
totalPages: number;
}>;
const pdfSourceSchema: z.ZodObject<{

@@ -569,2 +592,17 @@ type: z.ZodLiteral<"pdf">;

export class FileHelpers {
static searchPdf(...params: Parameters<typeof searchPdf>): Promise<{
context: string;
page: number;
found: true;
} | {
found: false;
}>;
static extractFromPdf(...extractFromPdfParams: Parameters<typeof extractFromPdf>): Promise<any>;
static pdfPageToText(...pdfPageToTextParams: Parameters<typeof pdfPageToText>): Promise<{
results: {
text: string;
pageNumber: number;
}[];
totalPages: number;
}>;
static extractTablesFromPdf(...extractTablesFromPdfParams: Parameters<typeof extractTablesFromPdf>): Promise<{

@@ -571,0 +609,0 @@ pages: {

2

package.json
{
"name": "@intuned/runner-types",
"version": "0.13.4",
"version": "0.13.5",
"description": "intuned runner types",

@@ -5,0 +5,0 @@ "author": "Intuned Team",

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