Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

think-model-abstract

Package Overview
Dependencies
Maintainers
8
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think-model-abstract - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

8

lib/query.js

@@ -206,3 +206,3 @@ const helper = require('think-helper');

startTrans(connection) {
return this.socket().startTrans(connection).then(connection => {
return this.socket('START TRANSACTION').startTrans(connection).then(connection => {
this.connection = connection;

@@ -217,3 +217,3 @@ return connection;

commit(connection = this.connection) {
return this.socket().commit(connection);
return this.socket('COMMIT').commit(connection);
}

@@ -225,3 +225,3 @@ /**

rollback(connection = this.connection) {
return this.socket().rollback(connection);
return this.socket('ROLLBACK').rollback(connection);
}

@@ -234,3 +234,3 @@ /**

transaction(fn, connection) {
return this.socket().transaction(connection => {
return this.socket('START TRANSACTION').transaction(connection => {
this.connection = connection;

@@ -237,0 +237,0 @@ return fn(connection);

{
"name": "think-model-abstract",
"version": "1.4.2",
"version": "1.4.3",
"description": "Abstract adapter for ThinkJS 3.x",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc