Socket
Socket
Sign inDemoInstall

@cdellacqua/knex-transact

Package Overview
Dependencies
26
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

10

build/index.d.ts

@@ -1,8 +0,8 @@

import Knex, { Transaction } from 'knex';
export declare type TransactionCode<T> = (trx: Transaction) => Promise<T>;
export declare type NextTransactionCode<T = any> = (trx: Transaction, previousValue?: any) => Promise<T>;
import { Knex } from 'knex';
export declare type TransactionCode<T> = (trx: Knex.Transaction) => Promise<T>;
export declare type NextTransactionCode<T = any> = (trx: Knex.Transaction, previousValue?: any) => Promise<T>;
export declare const config: {
knexInstance?: Knex;
};
export declare function transact<T>(provider: TransactionCode<T>, trx?: Transaction): Promise<T>;
export declare function transact<T>(provider: NextTransactionCode[], trx?: Transaction): Promise<T>;
export declare function transact<T>(provider: TransactionCode<T>, trx?: Knex.Transaction): Promise<T>;
export declare function transact<T>(provider: NextTransactionCode[], trx?: Knex.Transaction): Promise<T>;
{
"name": "@cdellacqua/knex-transact",
"version": "2.0.0",
"version": "3.0.0",
"description": "transact function that provides a simple mechanism to translate SQL transactions into code",

@@ -31,8 +31,8 @@ "main": "build/index.js",

"@types/node": "^14.14.7",
"knex": "^0.21.12",
"knex": "0.95.4",
"rimraf": "^3.0.2",
"typescript": "^4.0.5"
"typescript": "^4.2.4"
},
"peerDependencies": {
"knex": "^0.21.6"
"knex": "^0.95.4"
},

@@ -39,0 +39,0 @@ "dependencies": {

@@ -11,3 +11,3 @@ # knex-transact

import knex from 'knex';
import { knex } from 'knex';

@@ -14,0 +14,0 @@ const myKnexInstance = knex({

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