New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuclia/core

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuclia/core - npm Package Compare versions

Comparing version

to
1.14.6

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# 1.14.6 (2024-04-12)
### Improvements
- Improve reliability of file uploads
- Add `maxWaitOn429` parameter to `uploadFile` and `TUSuploadFile` methods
- Add `limitExceeded` field to file upload status
- Method to dump all the last logged events (last query, last results, etc.) and download it as JSON file
# 1.14.5 (2024-04-08)

@@ -2,0 +11,0 @@

1

esm/libs/sdk-core/src/lib/db/kb/kb.models.d.ts

@@ -227,2 +227,3 @@ import type { Observable } from 'rxjs';

rephrase?: boolean;
dumpLog?: boolean;
}

@@ -229,0 +230,0 @@ export declare enum RagStrategyName {

7

esm/libs/sdk-core/src/lib/db/upload.d.ts

@@ -11,2 +11,3 @@ import { Observable } from 'rxjs';

conflict?: boolean;
limitExceeded?: boolean;
}

@@ -20,2 +21,3 @@ export interface UploadStatus {

conflicts?: number;
limitExceeded?: number;
}

@@ -28,2 +30,3 @@ export interface FileUploadStatus {

conflicts?: boolean;
limitExceeded?: boolean;
}

@@ -43,4 +46,4 @@ export interface FileWithMetadata extends File {

export declare const upload: (nuclia: INuclia, path: string, data: File | FileWithMetadata | ArrayBuffer, TUS: boolean, metadata?: FileMetadata) => Observable<UploadResponse>;
export declare const uploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata) => Observable<UploadResponse>;
export declare const TUSuploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, creationPayload?: ICreateResource) => Observable<UploadResponse>;
export declare const uploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, maxWaitOn429?: number) => Observable<UploadResponse>;
export declare const TUSuploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, creationPayload?: ICreateResource, maxWaitOn429?: number) => Observable<UploadResponse>;
export declare const batchUpload: (nuclia: INuclia, path: string, files: FileList | File[] | FileWithMetadata[], isResource?: boolean) => Observable<UploadStatus>;

@@ -47,0 +50,0 @@ export declare const uploadToProcess: (nuclia: INuclia, nuaKey: string, file: File, metadata?: FileMetadata) => Observable<string>;

@@ -5,4 +5,9 @@ import type { Observable } from 'rxjs';

private messages;
emit<T>(eventName: string, data: T): void;
on<T>(eventName: string): Observable<T>;
private logs;
emit<T = any>(eventName: string, data: T): void;
on<T = any>(eventName: string): Observable<T>;
log(eventName: string, data: any): void;
dump(): Observable<{
[name: string]: any;
}>;
}

@@ -18,4 +18,8 @@ import type { Observable } from 'rxjs';

export interface IEvents {
emit<T>(eventName: string, data: T): void;
on<T>(eventName: string): Observable<T>;
emit<T = any>(eventName: string, data: T): void;
on<T = any>(eventName: string): Observable<T>;
log(eventName: string, data: any): void;
dump(): Observable<{
[name: string]: any;
}>;
}

@@ -22,0 +26,0 @@ export interface IAuthentication {

{
"name": "@nuclia/core",
"version": "1.14.5",
"version": "1.14.6",
"description": "SDK allowing to integrate Nuclia services in your frontend application",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -227,2 +227,3 @@ import type { Observable } from 'rxjs';

rephrase?: boolean;
dumpLog?: boolean;
}

@@ -229,0 +230,0 @@ export declare enum RagStrategyName {

@@ -11,2 +11,3 @@ import { Observable } from 'rxjs';

conflict?: boolean;
limitExceeded?: boolean;
}

@@ -20,2 +21,3 @@ export interface UploadStatus {

conflicts?: number;
limitExceeded?: number;
}

@@ -28,2 +30,3 @@ export interface FileUploadStatus {

conflicts?: boolean;
limitExceeded?: boolean;
}

@@ -43,4 +46,4 @@ export interface FileWithMetadata extends File {

export declare const upload: (nuclia: INuclia, path: string, data: File | FileWithMetadata | ArrayBuffer, TUS: boolean, metadata?: FileMetadata) => Observable<UploadResponse>;
export declare const uploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata) => Observable<UploadResponse>;
export declare const TUSuploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, creationPayload?: ICreateResource) => Observable<UploadResponse>;
export declare const uploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, maxWaitOn429?: number) => Observable<UploadResponse>;
export declare const TUSuploadFile: (nuclia: INuclia, path: string, buffer: ArrayBuffer, metadata?: FileMetadata, creationPayload?: ICreateResource, maxWaitOn429?: number) => Observable<UploadResponse>;
export declare const batchUpload: (nuclia: INuclia, path: string, files: FileList | File[] | FileWithMetadata[], isResource?: boolean) => Observable<UploadStatus>;

@@ -47,0 +50,0 @@ export declare const uploadToProcess: (nuclia: INuclia, nuaKey: string, file: File, metadata?: FileMetadata) => Observable<string>;

@@ -5,4 +5,9 @@ import type { Observable } from 'rxjs';

private messages;
emit<T>(eventName: string, data: T): void;
on<T>(eventName: string): Observable<T>;
private logs;
emit<T = any>(eventName: string, data: T): void;
on<T = any>(eventName: string): Observable<T>;
log(eventName: string, data: any): void;
dump(): Observable<{
[name: string]: any;
}>;
}

@@ -18,4 +18,8 @@ import type { Observable } from 'rxjs';

export interface IEvents {
emit<T>(eventName: string, data: T): void;
on<T>(eventName: string): Observable<T>;
emit<T = any>(eventName: string, data: T): void;
on<T = any>(eventName: string): Observable<T>;
log(eventName: string, data: any): void;
dump(): Observable<{
[name: string]: any;
}>;
}

@@ -22,0 +26,0 @@ export interface IAuthentication {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display