@tsed/prisma 6.114.18 → 6.116.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.
@@ -6,9 +6,6 @@ const path_1 = tslib_1.__importDefault(require("path"));
6
6
  function generateIndex(project, baseDirPath, hasEnum) {
7
7
  const indexFile = path_1.default.resolve(baseDirPath, "index.ts");
8
8
  project.createSourceFile(indexFile, undefined, { overwrite: true }).addExportDeclarations([
9
- {
10
- moduleSpecifier: "./client"
11
- },
12
9
  {
13
10
  moduleSpecifier: "./interfaces"
14
11
  },
@@ -1 +1 @@
1
- {"version":3,"file":"generateIndex.js","sourceRoot":"","sources":["../../../../src/generator/utils/generateIndex.ts"],"names":[],"mappings":";;;;AACA,wDAAwB;AAExB,SAAgB,aAAa,CAAC,OAAgB,EAAE,WAAmB,EAAE,OAAgB;IACnF,MAAM,SAAS,GAAG,cAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAExD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,qBAAqB,CACrF;QACE;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,cAAc;SAChC;QACD,OAAO,IAAI;YACT,eAAe,EAAE,SAAS;SAC3B;QACD;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,0BAA0B;SAC5C;QACD;YACE,eAAe,EAAE,gBAAgB;SAClC;KACF,CAAC,MAAM,CAAC,OAAO,CAAU,CAC3B,CAAC;AACJ,CAAC;AAzBD,sCAyBC","sourcesContent":["import {Project} from \"ts-morph\";\nimport path from \"path\";\n\nexport function generateIndex(project: Project, baseDirPath: string, hasEnum: boolean) {\n const indexFile = path.resolve(baseDirPath, \"index.ts\");\n\n project.createSourceFile(indexFile, undefined, {overwrite: true}).addExportDeclarations(\n [\n {\n moduleSpecifier: \"./client\"\n },\n {\n moduleSpecifier: \"./interfaces\"\n },\n hasEnum && {\n moduleSpecifier: \"./enums\"\n },\n {\n moduleSpecifier: \"./models\"\n },\n {\n moduleSpecifier: \"./services/PrismaService\"\n },\n {\n moduleSpecifier: \"./repositories\"\n }\n ].filter(Boolean) as any[]\n );\n}\n"]}
1
+ {"version":3,"file":"generateIndex.js","sourceRoot":"","sources":["../../../../src/generator/utils/generateIndex.ts"],"names":[],"mappings":";;;;AACA,wDAAwB;AAExB,SAAgB,aAAa,CAAC,OAAgB,EAAE,WAAmB,EAAE,OAAgB;IACnF,MAAM,SAAS,GAAG,cAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAExD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,qBAAqB,CACrF;QACE;YACE,eAAe,EAAE,cAAc;SAChC;QACD,OAAO,IAAI;YACT,eAAe,EAAE,SAAS;SAC3B;QACD;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,0BAA0B;SAC5C;QACD;YACE,eAAe,EAAE,gBAAgB;SAClC;KACF,CAAC,MAAM,CAAC,OAAO,CAAU,CAC3B,CAAC;AACJ,CAAC;AAtBD,sCAsBC","sourcesContent":["import {Project} from \"ts-morph\";\nimport path from \"path\";\n\nexport function generateIndex(project: Project, baseDirPath: string, hasEnum: boolean) {\n const indexFile = path.resolve(baseDirPath, \"index.ts\");\n\n project.createSourceFile(indexFile, undefined, {overwrite: true}).addExportDeclarations(\n [\n {\n moduleSpecifier: \"./interfaces\"\n },\n hasEnum && {\n moduleSpecifier: \"./enums\"\n },\n {\n moduleSpecifier: \"./models\"\n },\n {\n moduleSpecifier: \"./services/PrismaService\"\n },\n {\n moduleSpecifier: \"./repositories\"\n }\n ].filter(Boolean) as any[]\n );\n}\n"]}
@@ -2,9 +2,6 @@ import path from "path";
2
2
  export function generateIndex(project, baseDirPath, hasEnum) {
3
3
  const indexFile = path.resolve(baseDirPath, "index.ts");
4
4
  project.createSourceFile(indexFile, undefined, { overwrite: true }).addExportDeclarations([
5
- {
6
- moduleSpecifier: "./client"
7
- },
8
5
  {
9
6
  moduleSpecifier: "./interfaces"
10
7
  },
@@ -1 +1 @@
1
- {"version":3,"file":"generateIndex.js","sourceRoot":"","sources":["../../../../src/generator/utils/generateIndex.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,WAAmB,EAAE,OAAgB;IACnF,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAExD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,qBAAqB,CACrF;QACE;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,cAAc;SAChC;QACD,OAAO,IAAI;YACT,eAAe,EAAE,SAAS;SAC3B;QACD;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,0BAA0B;SAC5C;QACD;YACE,eAAe,EAAE,gBAAgB;SAClC;KACF,CAAC,MAAM,CAAC,OAAO,CAAU,CAC3B,CAAC;AACJ,CAAC","sourcesContent":["import {Project} from \"ts-morph\";\nimport path from \"path\";\n\nexport function generateIndex(project: Project, baseDirPath: string, hasEnum: boolean) {\n const indexFile = path.resolve(baseDirPath, \"index.ts\");\n\n project.createSourceFile(indexFile, undefined, {overwrite: true}).addExportDeclarations(\n [\n {\n moduleSpecifier: \"./client\"\n },\n {\n moduleSpecifier: \"./interfaces\"\n },\n hasEnum && {\n moduleSpecifier: \"./enums\"\n },\n {\n moduleSpecifier: \"./models\"\n },\n {\n moduleSpecifier: \"./services/PrismaService\"\n },\n {\n moduleSpecifier: \"./repositories\"\n }\n ].filter(Boolean) as any[]\n );\n}\n"]}
1
+ {"version":3,"file":"generateIndex.js","sourceRoot":"","sources":["../../../../src/generator/utils/generateIndex.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,WAAmB,EAAE,OAAgB;IACnF,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAExD,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,qBAAqB,CACrF;QACE;YACE,eAAe,EAAE,cAAc;SAChC;QACD,OAAO,IAAI;YACT,eAAe,EAAE,SAAS;SAC3B;QACD;YACE,eAAe,EAAE,UAAU;SAC5B;QACD;YACE,eAAe,EAAE,0BAA0B;SAC5C;QACD;YACE,eAAe,EAAE,gBAAgB;SAClC;KACF,CAAC,MAAM,CAAC,OAAO,CAAU,CAC3B,CAAC;AACJ,CAAC","sourcesContent":["import {Project} from \"ts-morph\";\nimport path from \"path\";\n\nexport function generateIndex(project: Project, baseDirPath: string, hasEnum: boolean) {\n const indexFile = path.resolve(baseDirPath, \"index.ts\");\n\n project.createSourceFile(indexFile, undefined, {overwrite: true}).addExportDeclarations(\n [\n {\n moduleSpecifier: \"./interfaces\"\n },\n hasEnum && {\n moduleSpecifier: \"./enums\"\n },\n {\n moduleSpecifier: \"./models\"\n },\n {\n moduleSpecifier: \"./services/PrismaService\"\n },\n {\n moduleSpecifier: \"./repositories\"\n }\n ].filter(Boolean) as any[]\n );\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/prisma",
3
- "version": "6.114.18",
3
+ "version": "6.116.0",
4
4
  "description": "Generate Ts.ED JsonSchema based on Prisma models",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -33,20 +33,20 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@prisma/client": "^3.10.0",
36
- "@tsed/core": "6.114.18",
37
- "@tsed/di": "6.114.18",
38
- "@tsed/json-mapper": "6.114.18",
39
- "@tsed/schema": "6.114.18",
36
+ "@tsed/core": "6.116.0",
37
+ "@tsed/di": "6.116.0",
38
+ "@tsed/json-mapper": "6.116.0",
39
+ "@tsed/schema": "6.116.0",
40
40
  "@types/change-case": "^2.3.1",
41
41
  "@types/pluralize": "0.0.29",
42
42
  "prisma": "^3.10.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@prisma/client": "^2 || ^3",
46
- "@tsed/core": "^6.114.18",
47
- "@tsed/di": "^6.114.18",
48
- "@tsed/json-mapper": "^6.114.18",
49
- "@tsed/schema": "^6.114.18"
46
+ "@tsed/core": "^6.116.0",
47
+ "@tsed/di": "^6.116.0",
48
+ "@tsed/json-mapper": "^6.116.0",
49
+ "@tsed/schema": "^6.116.0"
50
50
  },
51
51
  "keywords": [
52
52
  "TypeScript",