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.0.9 to 0.0.10

9

lib/index.js

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

model.fields.forEach(field => {
d; //?
if (d[field.name] && field.kind === 'object') {

@@ -116,3 +117,8 @@ const c = d[field.name];

else {
delegate.create(Object.assign(Object.assign({}, create.create), { data: map(create.create) }));
if (Array.isArray(c.create)) {
delegate.createMany(Object.assign(Object.assign({}, c.create), { data: c.create.map(map) }));
}
else {
delegate.create(Object.assign(Object.assign({}, create.create), { data: map(create.create) }));
}
}

@@ -288,2 +294,3 @@ }

data = Object.assign(Object.assign({}, data), { [prop]: [...data[prop], d] });
data; //?
data = checkIds(model, data);

@@ -290,0 +297,0 @@ return findOne(Object.assign({ where: { id: d.id } }, args));

2

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

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

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