Socket
Socket
Sign inDemoInstall

libsql-stateless-easy

Package Overview
Dependencies
2
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.4 to 1.5.6

8

lib-cjs/builders.js

@@ -114,3 +114,3 @@ "use strict";

return [
{ stmt: { sql: "COMMIT" } },
{ stmt: { sql: "COMMIT" }, condition: { type: "ok", step: last_step_before_this } },
{ stmt: { sql: "ROLLBACK" }, condition: { type: "not", cond: { type: "ok", step: last_step_before_this + 1 } } }

@@ -125,11 +125,7 @@ ];

stmt: libsqlStatementBuilder(q),
condition: exports.libsqlBatchReqStepExecCondBuilder.and([
exports.libsqlBatchReqStepExecCondBuilder.ok(i),
exports.libsqlBatchReqStepExecCondBuilder.not(exports.libsqlBatchReqStepExecCondBuilder.is_autocommit())
])
condition: exports.libsqlBatchReqStepExecCondBuilder.ok(i)
};
});
main_steps[0].condition = undefined; //elm 1's ok index is set to 0 (transaction begin); removing that
return [libsqlTransactionBeginStatement(mode)].concat(main_steps).concat(libsqlTransactionEndStatements(main_steps.length));
}
exports.libsqlTransactionBatchReqStepsBuilder = libsqlTransactionBatchReqStepsBuilder;

@@ -115,3 +115,5 @@ "use strict";

async sync() {
throw new errors_js_1.LibsqlError("sync not supported in http mode", "SYNC_NOT_SUPPORTED");
// throw new LibsqlError("sync not supported in http mode", "SYNC_NOT_SUPPORTED");
// don't throw error for max compatiblity
console.error("'libsql-stateless' is remote only so nothing to sync.");
}

@@ -118,0 +120,0 @@ close() {

@@ -107,3 +107,3 @@ import { Base64 } from 'js-base64';

return [
{ stmt: { sql: "COMMIT" } },
{ stmt: { sql: "COMMIT" }, condition: { type: "ok", step: last_step_before_this } },
{ stmt: { sql: "ROLLBACK" }, condition: { type: "not", cond: { type: "ok", step: last_step_before_this + 1 } } }

@@ -117,10 +117,6 @@ ];

stmt: libsqlStatementBuilder(q),
condition: libsqlBatchReqStepExecCondBuilder.and([
libsqlBatchReqStepExecCondBuilder.ok(i),
libsqlBatchReqStepExecCondBuilder.not(libsqlBatchReqStepExecCondBuilder.is_autocommit())
])
condition: libsqlBatchReqStepExecCondBuilder.ok(i)
};
});
main_steps[0].condition = undefined; //elm 1's ok index is set to 0 (transaction begin); removing that
return [libsqlTransactionBeginStatement(mode)].concat(main_steps).concat(libsqlTransactionEndStatements(main_steps.length));
}
import { CheckHttpUrl, libsqlBatch, libsqlBatchTransaction, libsqlExecute, libsqlExecuteMultiple, libsqlServerCompatCheck } from "./functions.js";
import { InternalError, LibsqlError } from "./errors.js";
import { InternalError } from "./errors.js";
class libsqlClient {

@@ -112,3 +112,5 @@ conf;

async sync() {
throw new LibsqlError("sync not supported in http mode", "SYNC_NOT_SUPPORTED");
// throw new LibsqlError("sync not supported in http mode", "SYNC_NOT_SUPPORTED");
// don't throw error for max compatiblity
console.error("'libsql-stateless' is remote only so nothing to sync.");
}

@@ -115,0 +117,0 @@ close() {

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

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc