Socket
Socket
Sign inDemoInstall

libsql-stateless-easy

Package Overview
Dependencies
2
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.6.1

5

dist/client.d.ts

@@ -1,4 +0,2 @@

import type { libsqlBatchReqStepExecCond } from "libsql-stateless";
import type { TransactionMode, rawSQLStatement, libsqlConfig, intMode } from "./types.js";
import type { ____Transaction } from "./extras.js";
declare class libsqlClient {

@@ -71,4 +69,3 @@ private readonly conf;

batch(steps: Array<rawSQLStatement>, mode?: TransactionMode): Promise<import("./types.js").ResultSet[]>;
batchPrimitive(steps: Array<rawSQLStatement>, step_conditions: Array<libsqlBatchReqStepExecCond | null | undefined>): Promise<(import("./types.js").ResultSet | null)[]>;
transaction(mode?: TransactionMode): Promise<____Transaction>;
transaction(mode?: TransactionMode): Promise<any>;
/** Execute a sequence of SQL statements separated by semicolons.

@@ -75,0 +72,0 @@ *

13

dist/client.js

@@ -1,2 +0,2 @@

import { CheckHttpUrl, libsqlBatch, libsqlBatchTransaction, libsqlExecute, libsqlExecuteMultiple, libsqlServerCompatCheck } from "./functions.js";
import { CheckHttpUrl, libsqlBatchTransaction, libsqlExecute, libsqlExecuteMultiple, libsqlServerCompatCheck } from "./functions.js";
import { InternalError } from "./errors.js";

@@ -70,7 +70,10 @@ class libsqlClient {

}
async batchPrimitive(steps, step_conditions) {
return await libsqlBatch(this.conf, steps, step_conditions);
}
// public async batchPrimitive(
// steps: Array<rawSQLStatement>,
// step_conditions: Array<libsqlBatchReqStepExecCond|null|undefined>
// ) {
// return await libsqlBatch(this.conf, steps, step_conditions);
// }
// @ts-ignore
async transaction(mode) {
if (mode) { }
throw new InternalError("'libsql-stateless' is stateless and does not support interactive transactions. Use this.batch() instead.");

@@ -77,0 +80,0 @@ }

{
"name": "libsql-stateless-easy",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://github.com/DaBigBlob/libsql-stateless-easy#readme",

@@ -56,3 +56,2 @@ "repository": {

"clean": "npm run prebuild",
"build:clean": "npm run clean && npm run build",
"prod": "npm publish && npm run clean"

@@ -59,0 +58,0 @@ },

@@ -93,4 +93,4 @@ # libsql-stateless-easy

```
## API Level
> NOTE: current API level is that of latest stable [libsql-stateless](https://github.com/DaBigBlob/libsql-stateless).
Read [this section](https://github.com/DaBigBlob/libsql-stateless/?tab=readme-ov-file#api-level).
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