prisma-mock
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -822,2 +822,6 @@ "use strict"; | ||
} | ||
if (args?.cursor !== undefined) { | ||
const cursorVal = res.findIndex((r) => Object.keys(args?.cursor).every((key) => r[key] === args?.cursor[key])); | ||
res = res.slice(cursorVal); | ||
} | ||
if (args?.skip !== undefined || args?.take !== undefined) { | ||
@@ -824,0 +828,0 @@ const start = args?.skip !== undefined ? args?.skip : 0; |
{ | ||
"name": "prisma-mock", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "Mock prisma for unit testing database", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68557
1394
4173