prisma-nestjs-graphql 18.0.1 → 18.0.2

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 +5 -5
  2. package/package.json +27 -25
package/index.js CHANGED
@@ -1650,7 +1650,7 @@ function outputType(outputType2, args) {
1650
1650
  __name(outputType, "outputType");
1651
1651
 
1652
1652
  // src/handlers/purge-output.ts
1653
- var import_fs = require("fs");
1653
+ var import_graceful_fs = require("graceful-fs");
1654
1654
  function purgeOutput(emitter) {
1655
1655
  emitter.on("Begin", begin);
1656
1656
  emitter.on("End", end);
@@ -1665,11 +1665,11 @@ function begin({ project, output }) {
1665
1665
  }
1666
1666
  }
1667
1667
  __name(begin, "begin");
1668
- async function end({ project, output }) {
1668
+ function end({ project, output }) {
1669
1669
  const directories = project.getDirectory(output)?.getDescendantDirectories().filter((directory) => directory.getSourceFiles().length === 0).map((directory) => directory.getPath());
1670
1670
  for (const directory of directories || []) {
1671
1671
  try {
1672
- await import_fs.promises.rmdir(directory);
1672
+ (0, import_graceful_fs.rmdirSync)(directory);
1673
1673
  } catch {
1674
1674
  }
1675
1675
  }
@@ -1835,7 +1835,7 @@ __name(warning, "warning");
1835
1835
  var import_assert5 = require("assert");
1836
1836
  var import_filenamify = __toESM(require("filenamify"));
1837
1837
  var import_flat = require("flat");
1838
- var import_fs2 = require("fs");
1838
+ var import_graceful_fs2 = require("graceful-fs");
1839
1839
  var import_json55 = __toESM(require("json5"));
1840
1840
  var import_lodash8 = require("lodash");
1841
1841
  var import_outmatch3 = __toESM(require("outmatch"));
@@ -1914,7 +1914,7 @@ function createConfig(data) {
1914
1914
  }
1915
1915
  __name(createConfig, "createConfig");
1916
1916
  var tsConfigFileExists = (0, import_lodash8.memoize)((filePath) => {
1917
- return (0, import_fs2.existsSync)(filePath);
1917
+ return (0, import_graceful_fs2.existsSync)(filePath);
1918
1918
  });
1919
1919
  function createTsConfigFilePathValue(value) {
1920
1920
  if (typeof value === "string")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-nestjs-graphql",
3
- "version": "18.0.1",
3
+ "version": "18.0.2",
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",
@@ -52,11 +52,12 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@prisma/generator-helper": "^4.12.0",
55
+ "@prisma/generator-helper": "^4.14.0",
56
56
  "await-event-emitter": "^2.0.2",
57
57
  "filenamify": "4.X",
58
58
  "flat": "^5.0.2",
59
59
  "get-relative-path": "^1.0.2",
60
+ "graceful-fs": "^4.2.11",
60
61
  "json5": "^2.2.3",
61
62
  "lodash": "^4.17.21",
62
63
  "outmatch": "^0.7.0",
@@ -65,27 +66,28 @@
65
66
  "ts-morph": ">=11 <=16"
66
67
  },
67
68
  "devDependencies": {
68
- "@commitlint/cli": "^17.5.1",
69
- "@commitlint/config-conventional": "^17.4.4",
70
- "@nestjs/apollo": "^10.1.7",
71
- "@nestjs/common": "^9.3.12",
72
- "@nestjs/core": "^9.3.12",
73
- "@nestjs/graphql": "^10.1.7",
74
- "@nestjs/platform-express": "^9.3.12",
69
+ "@commitlint/cli": "^17.6.3",
70
+ "@commitlint/config-conventional": "^17.6.3",
71
+ "@nestjs/apollo": "^11.0.5",
72
+ "@nestjs/common": "^9.4.0",
73
+ "@nestjs/core": "^9.4.0",
74
+ "@nestjs/graphql": "^11.0.5",
75
+ "@nestjs/platform-express": "^9.4.0",
75
76
  "@paljs/plugins": "^5.3.0",
76
- "@prisma/client": "^4.12.0",
77
+ "@prisma/client": "^4.14.0",
77
78
  "@semantic-release/changelog": "^6.0.3",
78
79
  "@semantic-release/git": "^10.0.1",
79
- "@swc/core": "^1.3.44",
80
- "@swc/helpers": "^0.4.14",
80
+ "@swc/core": "^1.3.57",
81
+ "@swc/helpers": "^0.5.1",
81
82
  "@swc/register": "^0.1.10",
82
83
  "@types/flat": "^5.0.2",
83
- "@types/lodash": "^4.14.192",
84
+ "@types/graceful-fs": "^4.1.6",
85
+ "@types/lodash": "^4.14.194",
84
86
  "@types/mocha": "^10.0.1",
85
- "@types/node": "^18.15.11",
87
+ "@types/node": "^20.1.1",
86
88
  "@types/pluralize": "^0.0.29",
87
- "@typescript-eslint/eslint-plugin": "^5.57.0",
88
- "@typescript-eslint/parser": "^5.57.0",
89
+ "@typescript-eslint/eslint-plugin": "^5.59.5",
90
+ "@typescript-eslint/parser": "^5.59.5",
89
91
  "apollo-server-express": "^3.10.0",
90
92
  "c8": "^7.13.0",
91
93
  "class-transformer": "^0.5.1",
@@ -93,16 +95,16 @@
93
95
  "commitizen": "^4.3.0",
94
96
  "cz-customizable": "^7.0.0",
95
97
  "decimal.js": "^10.4.3",
96
- "eslint": "^8.37.0",
98
+ "eslint": "^8.40.0",
97
99
  "eslint-import-resolver-node": "^0.3.7",
98
100
  "eslint-plugin-etc": "^2.0.2",
99
101
  "eslint-plugin-import": "^2.27.5",
100
102
  "eslint-plugin-only-warn": "^1.1.0",
101
103
  "eslint-plugin-prettier": "^4.2.1",
102
- "eslint-plugin-regexp": "^1.14.0",
104
+ "eslint-plugin-regexp": "^1.15.0",
103
105
  "eslint-plugin-simple-import-sort": "^10.0.0",
104
- "eslint-plugin-sort-class-members": "^1.16.0",
105
- "eslint-plugin-unicorn": "^46.0.0",
106
+ "eslint-plugin-sort-class-members": "^1.17.1",
107
+ "eslint-plugin-unicorn": "^47.0.0",
106
108
  "eslint-plugin-wix-editor": "^3.3.0",
107
109
  "expect": "^29.5.0",
108
110
  "ghooks": "^2.0.4",
@@ -113,18 +115,18 @@
113
115
  "mocha": "^10.2.0",
114
116
  "ololog": "^1.1.175",
115
117
  "precise-commits": "^1.0.2",
116
- "prettier": "^2.8.7",
117
- "prisma": "^4.12.0",
118
+ "prettier": "^2.8.8",
119
+ "prisma": "^4.14.0",
118
120
  "prisma-graphql-type-decimal": "^3.0.0",
119
121
  "reflect-metadata": "^0.1.13",
120
122
  "request": "^2.88.2",
121
- "rxjs": "^7.8.0",
122
- "semantic-release": "^21.0.1",
123
+ "rxjs": "^7.8.1",
124
+ "semantic-release": "^21.0.2",
123
125
  "simplytyped": "^3.3.0",
124
126
  "temp-dir": "2.X",
125
127
  "ts-node": "^10.9.1",
126
128
  "tslib": "^2.5.0",
127
- "typescript": "^5.0.3",
129
+ "typescript": "^5.0.4",
128
130
  "watchexec-bin": "^1.0.0"
129
131
  }
130
132
  }