prisma-nestjs-graphql 15.2.3 → 15.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -494,6 +494,7 @@ function getGraphqlInputType(inputTypes, pattern) {
494
494
  "null",
495
495
  "Null"
496
496
  ].includes(String(t.type)));
497
+ inputTypes = (0, import_lodash2.uniqWith)(inputTypes, import_lodash2.isEqual);
497
498
  if (inputTypes.length === 1) {
498
499
  return inputTypes[0];
499
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "15.2.3",
3
+ "version": "15.2.4",
4
4
  "license": "MIT",
5
5
  "description": "Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module",
6
6
  "main": "index.js",
@@ -25,7 +25,7 @@
25
25
  "mocha": "node node_modules/mocha/bin/mocha",
26
26
  "test:r": "npm run mocha -- -r ts-node/register src/**/*.spec.ts",
27
27
  "test:cov": "c8 --reporter text --exclude \"**/*.spec.ts\" --exclude \"**/test/**\" npm run test:r -- --no-timeouts",
28
- "test:w": "npm run test:r -- --watch-files src --watch",
28
+ "test:w": "npm run test:r -- --watch-files src --watch --timeout=10s",
29
29
  "test:d": "ndb -r @swc/register node_modules/mocha/bin/_mocha --no-timeouts --watch-files src/**/*.ts --watch src/**/*.spec.ts",
30
30
  "tscheck": "tsc --noEmit",
31
31
  "tscheck:w": "npm run tscheck -- --watch",