@libsql/core
Advanced tools
+12
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.LibsqlError = void 0; | ||
| exports.LibsqlBatchError = exports.LibsqlError = void 0; | ||
| /** Error thrown by the client. */ | ||
@@ -21,1 +21,12 @@ class LibsqlError extends Error { | ||
| exports.LibsqlError = LibsqlError; | ||
| /** Error thrown by the client during batch operations. */ | ||
| class LibsqlBatchError extends LibsqlError { | ||
| /** The zero-based index of the statement that failed in the batch. */ | ||
| statementIndex; | ||
| constructor(message, statementIndex, code, rawCode, cause) { | ||
| super(message, code, rawCode, cause); | ||
| this.statementIndex = statementIndex; | ||
| this.name = "LibsqlBatchError"; | ||
| } | ||
| } | ||
| exports.LibsqlBatchError = LibsqlBatchError; |
+6
-0
@@ -450,1 +450,7 @@ /** Configuration object for {@link createClient}. */ | ||
| } | ||
| /** Error thrown by the client during batch operations. */ | ||
| export declare class LibsqlBatchError extends LibsqlError { | ||
| /** The zero-based index of the statement that failed in the batch. */ | ||
| statementIndex: number; | ||
| constructor(message: string, statementIndex: number, code: string, rawCode?: number, cause?: Error); | ||
| } |
+10
-0
@@ -17,1 +17,11 @@ /** Error thrown by the client. */ | ||
| } | ||
| /** Error thrown by the client during batch operations. */ | ||
| export class LibsqlBatchError extends LibsqlError { | ||
| /** The zero-based index of the statement that failed in the batch. */ | ||
| statementIndex; | ||
| constructor(message, statementIndex, code, rawCode, cause) { | ||
| super(message, code, rawCode, cause); | ||
| this.statementIndex = statementIndex; | ||
| this.name = "LibsqlBatchError"; | ||
| } | ||
| } |
+1
-1
| { | ||
| "name": "@libsql/core", | ||
| "version": "0.15.15", | ||
| "version": "0.16.0", | ||
| "keywords": [ | ||
@@ -5,0 +5,0 @@ "libsql", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
49734
2.5%1211
2.28%