Socket
Socket
Sign inDemoInstall

@lucidtech/las-sdk-core

Package Overview
Dependencies
2
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.0 to 3.6.1

2

lib/types.d.ts
/// <reference types="node" />
import { AxiosRequestConfig, AxiosResponse } from 'axios';
export declare type ContentType = 'application/pdf' | 'image/jpeg';
export declare type ContentType = 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff';
export interface CreatePredictionsOptions {

@@ -5,0 +5,0 @@ maxPages?: number;

{
"name": "@lucidtech/las-sdk-core",
"version": "3.6.0",
"version": "3.6.1",
"author": "Lucidtech AS <hello@lucidtech.ai>",

@@ -32,3 +32,3 @@ "maintainers": [

},
"gitHead": "29e841340d74a3d6793fe0588ca5a254e64d8bfa"
"gitHead": "96bc35fa56b242a860fb7de39a607934de797b0f"
}

@@ -48,2 +48,9 @@ /**

test.each<ContentType>(['image/jpeg', 'application/pdf', 'image/png', 'image/tiff'])('allows content type: %s', async (contentType) => {
const testContent = uuidv4();
const createDocumentPromise = client.createDocument(testContent, contentType);
await expect(createDocumentPromise).resolves.toHaveProperty('contentType');
await expect(createDocumentPromise).resolves.toHaveProperty('documentId');
});
test('invalid Content-Type', async () => {

@@ -50,0 +57,0 @@ const testContent = uuidv4();

@@ -5,3 +5,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

export type ContentType = 'application/pdf' | 'image/jpeg';
export type ContentType = 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff';

@@ -8,0 +8,0 @@ export interface CreatePredictionsOptions {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc