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

prisma-mock

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-mock - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

lib/utils/deepCopy.d.ts

18

lib/index.js

@@ -32,2 +32,3 @@ "use strict";

const deepEqual_1 = require("./utils/deepEqual");
const deepCopy_1 = require("./utils/deepCopy");
function IsFieldDefault(f) {

@@ -139,6 +140,17 @@ return f.name !== undefined;

const res = [];
for (const action of actions) {
res.push(await action);
if (Array.isArray(actions)) {
for (const action of actions) {
res.push(await action);
}
return res;
}
return res;
else {
const snapshot = (0, deepCopy_1.deepCopy)(data);
try {
await actions(client);
}
catch {
data = snapshot;
}
}
});

@@ -145,0 +157,0 @@ client["$connect"].mockImplementation(async () => { });

2

package.json
{
"name": "prisma-mock",
"version": "0.5.3",
"version": "0.5.4",
"description": "Mock prisma for unit testing database",

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

@@ -208,3 +208,3 @@ # Prisma Mock

- $transaction
- TODO: $transaction (interactive)
- $transaction (interactive)
- TODO: $transaction (isolation)

@@ -211,0 +211,0 @@

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