prisma-nestjs-graphql 15.0.0 → 15.1.0

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 +9 -0
  2. package/package.json +17 -17
package/index.js CHANGED
@@ -541,6 +541,9 @@ function getPropertyType(args) {
541
541
  "string"
542
542
  ];
543
543
  case "Decimal":
544
+ return [
545
+ "Decimal"
546
+ ];
544
547
  case "Json":
545
548
  return [
546
549
  "any"
@@ -669,6 +672,8 @@ function inputType(args) {
669
672
  importDeclarations.create({
670
673
  ...propertySettings
671
674
  });
675
+ } else if (!propertySettings && propertyType.includes("Decimal")) {
676
+ importDeclarations.add("Decimal", "@prisma/client/runtime");
672
677
  }
673
678
  let graphqlType;
674
679
  const shouldHideField = settings == null ? void 0 : settings.shouldHideField({
@@ -1118,6 +1123,8 @@ function modelOutputType(outputType2, args) {
1118
1123
  importDeclarations.create({
1119
1124
  ...propertySettings
1120
1125
  });
1126
+ } else if (!propertySettings && propertyType.includes("Decimal")) {
1127
+ importDeclarations.add("Decimal", "@prisma/client/runtime");
1121
1128
  }
1122
1129
  (0, import_assert3.ok)(property.decorators, "property.decorators is undefined");
1123
1130
  if (settings == null ? void 0 : settings.shouldHideField({
@@ -1312,6 +1319,8 @@ function outputType(outputType1, args) {
1312
1319
  importDeclarations.create({
1313
1320
  ...propertySettings
1314
1321
  });
1322
+ } else if (!propertySettings && propertyType.includes("Decimal")) {
1323
+ importDeclarations.add("Decimal", "@prisma/client/runtime");
1315
1324
  }
1316
1325
  let graphqlType;
1317
1326
  const shouldHideField = settings == null ? void 0 : settings.shouldHideField({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
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",
@@ -51,8 +51,8 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@nestjs/apollo": "^10.0.6",
55
- "@prisma/generator-helper": "^3.10.0",
54
+ "@nestjs/apollo": "^10.0.7",
55
+ "@prisma/generator-helper": "^3.11.0",
56
56
  "await-event-emitter": "^2.0.2",
57
57
  "filenamify": "4.X",
58
58
  "flat": "^5.0.2",
@@ -65,26 +65,26 @@
65
65
  "ts-morph": ">=11"
66
66
  },
67
67
  "devDependencies": {
68
- "@commitlint/cli": "^16.2.1",
68
+ "@commitlint/cli": "^16.2.3",
69
69
  "@commitlint/config-conventional": "^16.2.1",
70
- "@nestjs/common": "^8.4.0",
71
- "@nestjs/core": "^8.4.0",
72
- "@nestjs/graphql": "^10.0.6",
73
- "@nestjs/platform-express": "^8.4.0",
74
- "@paljs/plugins": "^4.0.16",
75
- "@prisma/client": "^3.10.0",
70
+ "@nestjs/common": "^8.4.1",
71
+ "@nestjs/core": "^8.4.1",
72
+ "@nestjs/graphql": "^10.0.7",
73
+ "@nestjs/platform-express": "^8.4.1",
74
+ "@paljs/plugins": "^4.0.18",
75
+ "@prisma/client": "^3.11.0",
76
76
  "@semantic-release/changelog": "^6.0.1",
77
77
  "@semantic-release/git": "^10.0.1",
78
- "@swc/core": "^1.2.154",
79
- "@swc/helpers": "^0.3.6",
78
+ "@swc/core": "^1.2.156",
79
+ "@swc/helpers": "^0.3.8",
80
80
  "@swc/register": "^0.1.10",
81
81
  "@types/flat": "^5.0.2",
82
- "@types/lodash": "^4.14.179",
82
+ "@types/lodash": "^4.14.180",
83
83
  "@types/mocha": "^9.1.0",
84
84
  "@types/node": "^17.0.21",
85
85
  "@types/pluralize": "^0.0.29",
86
- "@typescript-eslint/eslint-plugin": "^5.14.0",
87
- "@typescript-eslint/parser": "^5.14.0",
86
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
87
+ "@typescript-eslint/parser": "^5.15.0",
88
88
  "apollo-server-express": "^3.6.4",
89
89
  "c8": "^7.11.0",
90
90
  "class-transformer": "^0.5.1",
@@ -112,8 +112,8 @@
112
112
  "mocha": "^9.2.2",
113
113
  "ololog": "^1.1.175",
114
114
  "precise-commits": "^1.0.2",
115
- "prettier": "^2.5.1",
116
- "prisma": "^3.10.0",
115
+ "prettier": "^2.6.0",
116
+ "prisma": "^3.11.0",
117
117
  "prisma-graphql-type-decimal": "^2.0.0",
118
118
  "reflect-metadata": "^0.1.13",
119
119
  "request": "^2.88.2",