New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@prisma/driver-adapter-utils

Package Overview
Dependencies
Maintainers
10
Versions
2243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/driver-adapter-utils - npm Package Compare versions

Comparing version

to
5.7.0-integration-janpio-pdp-link.5

6

dist/index.d.ts

@@ -47,6 +47,2 @@ export declare const bindAdapter: (adapter: DriverAdapter) => ErrorCapturingDriverAdapter;

startTransaction(): Promise<Result<Transaction>>;
/**
* Closes the connection to the database, if any.
*/
close: () => Promise<Result<void>>;
}

@@ -107,3 +103,3 @@

export declare interface Queryable {
readonly flavour: 'mysql' | 'postgres' | 'sqlite';
readonly provider: 'mysql' | 'postgres' | 'sqlite';
/**

@@ -110,0 +106,0 @@ * Execute a query given as SQL, interpolating the given parameters,

7

dist/index.js

@@ -92,8 +92,7 @@ "use strict";

executeRaw: wrapAsync(errorRegistry, adapter.executeRaw.bind(adapter)),
flavour: adapter.flavour,
provider: adapter.provider,
startTransaction: async (...args) => {
const result = await startTransaction(...args);
return result.map((tx) => bindTransaction(errorRegistry, tx));
},
close: wrapAsync(errorRegistry, adapter.close.bind(adapter))
}
};

@@ -103,3 +102,3 @@ };

return {
flavour: transaction.flavour,
provider: transaction.provider,
options: transaction.options,

@@ -106,0 +105,0 @@ queryRaw: wrapAsync(errorRegistry, transaction.queryRaw.bind(transaction)),

{
"name": "@prisma/driver-adapter-utils",
"version": "5.7.0-integration-janpio-pdp-link.4",
"version": "5.7.0-integration-janpio-pdp-link.5",
"description": "Internal set of utilities and types for Prisma's driver adapters.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet