prisma-nestjs-graphql 15.2.1 → 15.2.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.
- package/index.js +59 -2
- package/package.json +23 -23
package/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var import_lodash = require("lodash");
|
|
|
29
29
|
function pascalCase(string) {
|
|
30
30
|
return (0, import_lodash.startCase)((0, import_lodash.camelCase)(string)).replace(/ /g, "");
|
|
31
31
|
}
|
|
32
|
+
__name(pascalCase, "pascalCase");
|
|
32
33
|
|
|
33
34
|
// src/handlers/args-type.ts
|
|
34
35
|
function argsType(field, args) {
|
|
@@ -101,18 +102,21 @@ function argsType(field, args) {
|
|
|
101
102
|
classDecoratorName: "ArgsType"
|
|
102
103
|
});
|
|
103
104
|
}
|
|
105
|
+
__name(argsType, "argsType");
|
|
104
106
|
|
|
105
107
|
// src/handlers/combine-scalar-filters.ts
|
|
106
108
|
function combineScalarFilters(eventEmitter) {
|
|
107
109
|
eventEmitter.on("BeforeInputType", beforeInputType);
|
|
108
110
|
eventEmitter.on("BeforeGenerateField", beforeGenerateField);
|
|
109
111
|
}
|
|
112
|
+
__name(combineScalarFilters, "combineScalarFilters");
|
|
110
113
|
function beforeInputType(args) {
|
|
111
114
|
const { inputType: inputType2 } = args;
|
|
112
115
|
if (isContainBogus(inputType2.name) && isScalarFilter(inputType2)) {
|
|
113
116
|
inputType2.name = replaceBogus(String(inputType2.name));
|
|
114
117
|
}
|
|
115
118
|
}
|
|
119
|
+
__name(beforeInputType, "beforeInputType");
|
|
116
120
|
function beforeGenerateField(field) {
|
|
117
121
|
for (const fieldInput of field.inputTypes) {
|
|
118
122
|
if (fieldInput.location !== "inputObjectTypes") {
|
|
@@ -124,12 +128,15 @@ function beforeGenerateField(field) {
|
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
}
|
|
131
|
+
__name(beforeGenerateField, "beforeGenerateField");
|
|
127
132
|
function replaceBogus(name) {
|
|
128
133
|
return name.replace(/(Nullable|Nested)/g, "");
|
|
129
134
|
}
|
|
135
|
+
__name(replaceBogus, "replaceBogus");
|
|
130
136
|
function isContainBogus(name) {
|
|
131
137
|
return name.startsWith("Nested") || name.includes("Nullable") && name.endsWith("Filter") || name.endsWith("NullableFilter");
|
|
132
138
|
}
|
|
139
|
+
__name(isContainBogus, "isContainBogus");
|
|
133
140
|
function isScalarFilter(inputType2) {
|
|
134
141
|
if (!inputType2.name.endsWith("Filter")) {
|
|
135
142
|
return false;
|
|
@@ -146,6 +153,7 @@ function isScalarFilter(inputType2) {
|
|
|
146
153
|
}
|
|
147
154
|
return result;
|
|
148
155
|
}
|
|
156
|
+
__name(isScalarFilter, "isScalarFilter");
|
|
149
157
|
|
|
150
158
|
// src/handlers/create-aggregate-input.ts
|
|
151
159
|
function createAggregateInput(args) {
|
|
@@ -180,11 +188,13 @@ function createAggregateInput(args) {
|
|
|
180
188
|
classDecoratorName: "InputType"
|
|
181
189
|
});
|
|
182
190
|
}
|
|
191
|
+
__name(createAggregateInput, "createAggregateInput");
|
|
183
192
|
|
|
184
193
|
// src/handlers/emit-single.ts
|
|
185
194
|
function emitSingle(emitter) {
|
|
186
195
|
emitter.on("ClassProperty", classProperty);
|
|
187
196
|
}
|
|
197
|
+
__name(emitSingle, "emitSingle");
|
|
188
198
|
function classProperty(property, eventArguments) {
|
|
189
199
|
const { location, isList, propertyType } = eventArguments;
|
|
190
200
|
if ([
|
|
@@ -198,6 +208,7 @@ function classProperty(property, eventArguments) {
|
|
|
198
208
|
}
|
|
199
209
|
}
|
|
200
210
|
}
|
|
211
|
+
__name(classProperty, "classProperty");
|
|
201
212
|
|
|
202
213
|
// src/handlers/generate-files.ts
|
|
203
214
|
var import_assert = require("assert");
|
|
@@ -262,6 +273,7 @@ var ImportDeclarationMap = class extends Map {
|
|
|
262
273
|
}
|
|
263
274
|
}
|
|
264
275
|
};
|
|
276
|
+
__name(ImportDeclarationMap, "ImportDeclarationMap");
|
|
265
277
|
|
|
266
278
|
// src/handlers/generate-files.ts
|
|
267
279
|
async function generateFiles(args) {
|
|
@@ -364,6 +376,7 @@ async function generateFiles(args) {
|
|
|
364
376
|
await project.save();
|
|
365
377
|
}
|
|
366
378
|
}
|
|
379
|
+
__name(generateFiles, "generateFiles");
|
|
367
380
|
|
|
368
381
|
// src/handlers/input-type.ts
|
|
369
382
|
var import_assert2 = require("assert");
|
|
@@ -384,6 +397,7 @@ function fileTypeByLocation(fieldLocation) {
|
|
|
384
397
|
}
|
|
385
398
|
return "object";
|
|
386
399
|
}
|
|
400
|
+
__name(fileTypeByLocation, "fileTypeByLocation");
|
|
387
401
|
|
|
388
402
|
// src/helpers/relative-path.ts
|
|
389
403
|
var import_get_relative_path = __toESM(require("get-relative-path"));
|
|
@@ -403,6 +417,7 @@ function relativePath(from, to) {
|
|
|
403
417
|
}
|
|
404
418
|
return result;
|
|
405
419
|
}
|
|
420
|
+
__name(relativePath, "relativePath");
|
|
406
421
|
|
|
407
422
|
// src/helpers/get-graphql-import.ts
|
|
408
423
|
function getGraphqlImport(args) {
|
|
@@ -468,6 +483,7 @@ function getGraphqlImport(args) {
|
|
|
468
483
|
specifier
|
|
469
484
|
};
|
|
470
485
|
}
|
|
486
|
+
__name(getGraphqlImport, "getGraphqlImport");
|
|
471
487
|
|
|
472
488
|
// src/helpers/get-graphql-input-type.ts
|
|
473
489
|
var import_lodash2 = require("lodash");
|
|
@@ -517,6 +533,7 @@ function getGraphqlInputType(inputTypes, pattern) {
|
|
|
517
533
|
}
|
|
518
534
|
throw new TypeError(`Cannot get matching input type from ${inputTypes.map((x) => x.type).join(", ") || "zero length inputTypes"}`);
|
|
519
535
|
}
|
|
536
|
+
__name(getGraphqlInputType, "getGraphqlInputType");
|
|
520
537
|
|
|
521
538
|
// src/helpers/get-property-type.ts
|
|
522
539
|
function getPropertyType(args) {
|
|
@@ -584,6 +601,7 @@ function getPropertyType(args) {
|
|
|
584
601
|
"unknown"
|
|
585
602
|
];
|
|
586
603
|
}
|
|
604
|
+
__name(getPropertyType, "getPropertyType");
|
|
587
605
|
|
|
588
606
|
// src/helpers/property-structure.ts
|
|
589
607
|
var import_ts_morph3 = require("ts-morph");
|
|
@@ -600,6 +618,7 @@ function propertyStructure(args) {
|
|
|
600
618
|
leadingTrivia: "\n"
|
|
601
619
|
};
|
|
602
620
|
}
|
|
621
|
+
__name(propertyStructure, "propertyStructure");
|
|
603
622
|
|
|
604
623
|
// src/handlers/input-type.ts
|
|
605
624
|
function inputType(args) {
|
|
@@ -647,6 +666,9 @@ function inputType(args) {
|
|
|
647
666
|
field.inputTypes = field.inputTypes.filter((t) => !removeTypes.has(String(t.type)));
|
|
648
667
|
eventEmitter.emitSync("BeforeGenerateField", field, args);
|
|
649
668
|
const { inputTypes, isRequired, name } = field;
|
|
669
|
+
if (inputTypes.length === 0) {
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
650
672
|
const usePattern = (useInputType == null ? void 0 : useInputType.ALL) || (useInputType == null ? void 0 : useInputType[name]);
|
|
651
673
|
const graphqlInputType = getGraphqlInputType(inputTypes, usePattern);
|
|
652
674
|
const { isList, location, type } = graphqlInputType;
|
|
@@ -767,6 +789,7 @@ function inputType(args) {
|
|
|
767
789
|
]
|
|
768
790
|
});
|
|
769
791
|
}
|
|
792
|
+
__name(inputType, "inputType");
|
|
770
793
|
|
|
771
794
|
// src/helpers/object-settings.ts
|
|
772
795
|
var import_json52 = __toESM(require("json5"));
|
|
@@ -826,6 +849,7 @@ var ObjectSettings = class extends Array {
|
|
|
826
849
|
return resultArguments.map((x) => import_json52.default.stringify(x));
|
|
827
850
|
}
|
|
828
851
|
};
|
|
852
|
+
__name(ObjectSettings, "ObjectSettings");
|
|
829
853
|
function createObjectSettings(args) {
|
|
830
854
|
var _a, _b, _c, _d, _e;
|
|
831
855
|
const { config, text } = args;
|
|
@@ -898,6 +922,7 @@ function createObjectSettings(args) {
|
|
|
898
922
|
documentation: documentationLines.filter(Boolean).join("\\n") || void 0
|
|
899
923
|
};
|
|
900
924
|
}
|
|
925
|
+
__name(createObjectSettings, "createObjectSettings");
|
|
901
926
|
function customType(args) {
|
|
902
927
|
var _a;
|
|
903
928
|
const result = {};
|
|
@@ -920,6 +945,7 @@ function customType(args) {
|
|
|
920
945
|
}
|
|
921
946
|
return result;
|
|
922
947
|
}
|
|
948
|
+
__name(customType, "customType");
|
|
923
949
|
function hideFieldDecorator(match) {
|
|
924
950
|
var _a;
|
|
925
951
|
const result = {
|
|
@@ -953,6 +979,7 @@ function hideFieldDecorator(match) {
|
|
|
953
979
|
}
|
|
954
980
|
return result;
|
|
955
981
|
}
|
|
982
|
+
__name(hideFieldDecorator, "hideFieldDecorator");
|
|
956
983
|
function parseArgs(string) {
|
|
957
984
|
try {
|
|
958
985
|
return import_json52.default.parse(string);
|
|
@@ -964,6 +991,7 @@ function parseArgs(string) {
|
|
|
964
991
|
}
|
|
965
992
|
}
|
|
966
993
|
}
|
|
994
|
+
__name(parseArgs, "parseArgs");
|
|
967
995
|
function getNamespace(name) {
|
|
968
996
|
if (name === void 0) {
|
|
969
997
|
return void 0;
|
|
@@ -974,6 +1002,7 @@ function getNamespace(name) {
|
|
|
974
1002
|
}
|
|
975
1003
|
return result;
|
|
976
1004
|
}
|
|
1005
|
+
__name(getNamespace, "getNamespace");
|
|
977
1006
|
|
|
978
1007
|
// src/handlers/model-data.ts
|
|
979
1008
|
function modelData(model, args) {
|
|
@@ -996,6 +1025,7 @@ function modelData(model, args) {
|
|
|
996
1025
|
modelFieldsValue.set(field.name, field);
|
|
997
1026
|
}
|
|
998
1027
|
}
|
|
1028
|
+
__name(modelData, "modelData");
|
|
999
1029
|
|
|
1000
1030
|
// src/handlers/model-output-type.ts
|
|
1001
1031
|
var import_assert3 = require("assert");
|
|
@@ -1008,6 +1038,7 @@ var import_ts_morph5 = require("ts-morph");
|
|
|
1008
1038
|
function getOutputTypeName(name) {
|
|
1009
1039
|
return name.replace(/(?:OutputType|Output)$/, "");
|
|
1010
1040
|
}
|
|
1041
|
+
__name(getOutputTypeName, "getOutputTypeName");
|
|
1011
1042
|
|
|
1012
1043
|
// src/handlers/model-output-type.ts
|
|
1013
1044
|
var nestjsGraphql = "@nestjs/graphql";
|
|
@@ -1213,20 +1244,24 @@ function modelOutputType(outputType2, args) {
|
|
|
1213
1244
|
});
|
|
1214
1245
|
}
|
|
1215
1246
|
}
|
|
1247
|
+
__name(modelOutputType, "modelOutputType");
|
|
1216
1248
|
function shouldBeDecorated(setting) {
|
|
1217
1249
|
return setting.kind === "Decorator" && (setting.output || setting.model) && !(setting.output && setting.model);
|
|
1218
1250
|
}
|
|
1251
|
+
__name(shouldBeDecorated, "shouldBeDecorated");
|
|
1219
1252
|
function getExportDeclaration(name, statements) {
|
|
1220
1253
|
return statements.find((structure) => {
|
|
1221
1254
|
return structure.kind === import_ts_morph5.StructureKind.ExportDeclaration && structure.namedExports.some((o) => (o.alias || o.name) === name);
|
|
1222
1255
|
});
|
|
1223
1256
|
}
|
|
1257
|
+
__name(getExportDeclaration, "getExportDeclaration");
|
|
1224
1258
|
|
|
1225
1259
|
// src/handlers/no-atomic-operations.ts
|
|
1226
1260
|
function noAtomicOperations(eventEmitter) {
|
|
1227
1261
|
eventEmitter.on("BeforeInputType", beforeInputType2);
|
|
1228
1262
|
eventEmitter.on("BeforeGenerateFiles", beforeGenerateFiles);
|
|
1229
1263
|
}
|
|
1264
|
+
__name(noAtomicOperations, "noAtomicOperations");
|
|
1230
1265
|
function beforeInputType2(args) {
|
|
1231
1266
|
const { inputType: inputType1 } = args;
|
|
1232
1267
|
for (const field of inputType1.fields) {
|
|
@@ -1249,9 +1284,11 @@ function beforeGenerateFiles(args) {
|
|
|
1249
1284
|
}
|
|
1250
1285
|
}
|
|
1251
1286
|
}
|
|
1287
|
+
__name(beforeGenerateFiles, "beforeGenerateFiles");
|
|
1252
1288
|
function isAtomicOperation(name) {
|
|
1253
1289
|
return name.endsWith("FieldUpdateOperationsInput");
|
|
1254
1290
|
}
|
|
1291
|
+
__name(isAtomicOperation, "isAtomicOperation");
|
|
1255
1292
|
|
|
1256
1293
|
// src/handlers/output-type.ts
|
|
1257
1294
|
var import_assert4 = require("assert");
|
|
@@ -1405,6 +1442,7 @@ function outputType(outputType1, args) {
|
|
|
1405
1442
|
]
|
|
1406
1443
|
});
|
|
1407
1444
|
}
|
|
1445
|
+
__name(outputType, "outputType");
|
|
1408
1446
|
|
|
1409
1447
|
// src/handlers/purge-output.ts
|
|
1410
1448
|
var import_fs = require("fs");
|
|
@@ -1412,6 +1450,7 @@ function purgeOutput(emitter) {
|
|
|
1412
1450
|
emitter.on("Begin", begin);
|
|
1413
1451
|
emitter.on("End", end);
|
|
1414
1452
|
}
|
|
1453
|
+
__name(purgeOutput, "purgeOutput");
|
|
1415
1454
|
function begin({ project, output }) {
|
|
1416
1455
|
var _a;
|
|
1417
1456
|
const sourceFiles = (_a = project.getDirectory(output)) == null ? void 0 : _a.getDescendantSourceFiles();
|
|
@@ -1421,6 +1460,7 @@ function begin({ project, output }) {
|
|
|
1421
1460
|
}
|
|
1422
1461
|
}
|
|
1423
1462
|
}
|
|
1463
|
+
__name(begin, "begin");
|
|
1424
1464
|
async function end({ project, output }) {
|
|
1425
1465
|
var _a;
|
|
1426
1466
|
const directories = (_a = project.getDirectory(output)) == null ? void 0 : _a.getDescendantDirectories().filter((directory) => directory.getSourceFiles().length === 0).map((directory) => directory.getPath());
|
|
@@ -1431,6 +1471,7 @@ async function end({ project, output }) {
|
|
|
1431
1471
|
}
|
|
1432
1472
|
}
|
|
1433
1473
|
}
|
|
1474
|
+
__name(end, "end");
|
|
1434
1475
|
|
|
1435
1476
|
// src/handlers/re-export.ts
|
|
1436
1477
|
var import_ts_morph7 = require("ts-morph");
|
|
@@ -1444,6 +1485,7 @@ var ReExport;
|
|
|
1444
1485
|
function reExport(emitter) {
|
|
1445
1486
|
emitter.on("BeforeGenerateFiles", beforeGenerateFiles2);
|
|
1446
1487
|
}
|
|
1488
|
+
__name(reExport, "reExport");
|
|
1447
1489
|
function beforeGenerateFiles2(args) {
|
|
1448
1490
|
const { project, output, config } = args;
|
|
1449
1491
|
const rootDirectory = project.getDirectoryOrThrow(output);
|
|
@@ -1514,6 +1556,7 @@ function getNamespaceExportDeclaration(directory, sourceDirectory) {
|
|
|
1514
1556
|
moduleSpecifier: directory.getRelativePathAsModuleSpecifierTo(sourceDirectory)
|
|
1515
1557
|
};
|
|
1516
1558
|
}
|
|
1559
|
+
__name(getNamespaceExportDeclaration, "getNamespaceExportDeclaration");
|
|
1517
1560
|
|
|
1518
1561
|
// src/handlers/register-enum.ts
|
|
1519
1562
|
var import_ts_morph8 = require("ts-morph");
|
|
@@ -1551,11 +1594,13 @@ function registerEnum(enumType, args) {
|
|
|
1551
1594
|
]
|
|
1552
1595
|
});
|
|
1553
1596
|
}
|
|
1597
|
+
__name(registerEnum, "registerEnum");
|
|
1554
1598
|
|
|
1555
1599
|
// src/handlers/require-single-fields-in-whereunique-input.ts
|
|
1556
1600
|
function requireSingleFieldsInWhereUniqueInput(eventEmitter) {
|
|
1557
1601
|
eventEmitter.on("BeforeInputType", beforeInputType3);
|
|
1558
1602
|
}
|
|
1603
|
+
__name(requireSingleFieldsInWhereUniqueInput, "requireSingleFieldsInWhereUniqueInput");
|
|
1559
1604
|
function beforeInputType3(args) {
|
|
1560
1605
|
const { inputType: inputType2 } = args;
|
|
1561
1606
|
if (!isWhereUniqueInputType(inputType2.name) || inputType2.fields.length !== 1) {
|
|
@@ -1570,6 +1615,7 @@ __name(beforeInputType3, "beforeInputType");
|
|
|
1570
1615
|
function isWhereUniqueInputType(name) {
|
|
1571
1616
|
return name.endsWith("WhereUniqueInput");
|
|
1572
1617
|
}
|
|
1618
|
+
__name(isWhereUniqueInputType, "isWhereUniqueInputType");
|
|
1573
1619
|
|
|
1574
1620
|
// src/handlers/warning.ts
|
|
1575
1621
|
function warning(message) {
|
|
@@ -1580,6 +1626,7 @@ function warning(message) {
|
|
|
1580
1626
|
console.log("prisma-nestjs-graphql:", message);
|
|
1581
1627
|
}
|
|
1582
1628
|
}
|
|
1629
|
+
__name(warning, "warning");
|
|
1583
1630
|
|
|
1584
1631
|
// src/helpers/create-config.ts
|
|
1585
1632
|
var import_assert5 = require("assert");
|
|
@@ -1663,6 +1710,7 @@ function createConfig(data) {
|
|
|
1663
1710
|
decorate
|
|
1664
1711
|
};
|
|
1665
1712
|
}
|
|
1713
|
+
__name(createConfig, "createConfig");
|
|
1666
1714
|
var tsConfigFileExists = (0, import_lodash7.memoize)((filePath) => {
|
|
1667
1715
|
return (0, import_fs2.existsSync)(filePath);
|
|
1668
1716
|
});
|
|
@@ -1672,6 +1720,7 @@ function createTsConfigFilePathValue(value) {
|
|
|
1672
1720
|
if (tsConfigFileExists("tsconfig.json"))
|
|
1673
1721
|
return "tsconfig.json";
|
|
1674
1722
|
}
|
|
1723
|
+
__name(createTsConfigFilePathValue, "createTsConfigFilePathValue");
|
|
1675
1724
|
function createUseInputType(data) {
|
|
1676
1725
|
if (!data) {
|
|
1677
1726
|
return [];
|
|
@@ -1693,6 +1742,7 @@ function createUseInputType(data) {
|
|
|
1693
1742
|
}
|
|
1694
1743
|
return result;
|
|
1695
1744
|
}
|
|
1745
|
+
__name(createUseInputType, "createUseInputType");
|
|
1696
1746
|
function toBoolean(value) {
|
|
1697
1747
|
return [
|
|
1698
1748
|
"true",
|
|
@@ -1700,6 +1750,7 @@ function toBoolean(value) {
|
|
|
1700
1750
|
"on"
|
|
1701
1751
|
].includes(String(value));
|
|
1702
1752
|
}
|
|
1753
|
+
__name(toBoolean, "toBoolean");
|
|
1703
1754
|
|
|
1704
1755
|
// src/helpers/generate-file-name.ts
|
|
1705
1756
|
var import_lodash8 = require("lodash");
|
|
@@ -1734,11 +1785,12 @@ function generateFileName(args) {
|
|
|
1734
1785
|
}
|
|
1735
1786
|
});
|
|
1736
1787
|
}
|
|
1788
|
+
__name(generateFileName, "generateFileName");
|
|
1737
1789
|
|
|
1738
1790
|
// src/helpers/factory-get-source-file.ts
|
|
1739
1791
|
function factoryGetSourceFile(args1) {
|
|
1740
1792
|
const { outputFilePattern, output, getModelName: getModelName2, project } = args1;
|
|
1741
|
-
return function getSourceFile(args) {
|
|
1793
|
+
return /* @__PURE__ */ __name(function getSourceFile(args) {
|
|
1742
1794
|
const { name, type } = args;
|
|
1743
1795
|
let filePath = generateFileName({
|
|
1744
1796
|
getModelName: getModelName2,
|
|
@@ -1750,8 +1802,9 @@ function factoryGetSourceFile(args1) {
|
|
|
1750
1802
|
return project.getSourceFile(filePath) || project.createSourceFile(filePath, void 0, {
|
|
1751
1803
|
overwrite: true
|
|
1752
1804
|
});
|
|
1753
|
-
};
|
|
1805
|
+
}, "getSourceFile");
|
|
1754
1806
|
}
|
|
1807
|
+
__name(factoryGetSourceFile, "factoryGetSourceFile");
|
|
1755
1808
|
|
|
1756
1809
|
// src/helpers/get-model-name.ts
|
|
1757
1810
|
var import_lodash9 = require("lodash");
|
|
@@ -1763,7 +1816,9 @@ function createGetModelName(modelNames) {
|
|
|
1763
1816
|
name
|
|
1764
1817
|
});
|
|
1765
1818
|
}
|
|
1819
|
+
__name(tryGetName, "tryGetName");
|
|
1766
1820
|
}
|
|
1821
|
+
__name(createGetModelName, "createGetModelName");
|
|
1767
1822
|
function getModelName(args) {
|
|
1768
1823
|
const { name, modelNames } = args;
|
|
1769
1824
|
for (const keyword of splitKeywords) {
|
|
@@ -1801,6 +1856,7 @@ function getModelName(args) {
|
|
|
1801
1856
|
}
|
|
1802
1857
|
return void 0;
|
|
1803
1858
|
}
|
|
1859
|
+
__name(getModelName, "getModelName");
|
|
1804
1860
|
var splitKeywords = [
|
|
1805
1861
|
"CreateInput",
|
|
1806
1862
|
"CreateMany",
|
|
@@ -2031,6 +2087,7 @@ async function generate(args) {
|
|
|
2031
2087
|
eventEmitter.off(name);
|
|
2032
2088
|
}
|
|
2033
2089
|
}
|
|
2090
|
+
__name(generate, "generate");
|
|
2034
2091
|
|
|
2035
2092
|
// src/index.ts
|
|
2036
2093
|
(0, import_generator_helper.generatorHandler)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prisma-nestjs-graphql",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.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",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@nestjs/apollo": "^10.0.
|
|
55
|
-
"@prisma/generator-helper": "^3.
|
|
54
|
+
"@nestjs/apollo": "^10.0.8",
|
|
55
|
+
"@prisma/generator-helper": "^3.12.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
|
-
"json5": "^2.2.
|
|
60
|
+
"json5": "^2.2.1",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"outmatch": "^0.7.0",
|
|
63
63
|
"pluralize": "^8.0.0",
|
|
@@ -67,53 +67,53 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@commitlint/cli": "^16.2.3",
|
|
69
69
|
"@commitlint/config-conventional": "^16.2.1",
|
|
70
|
-
"@nestjs/common": "^8.4.
|
|
71
|
-
"@nestjs/core": "^8.4.
|
|
72
|
-
"@nestjs/graphql": "^10.0.
|
|
73
|
-
"@nestjs/platform-express": "^8.4.
|
|
70
|
+
"@nestjs/common": "^8.4.4",
|
|
71
|
+
"@nestjs/core": "^8.4.4",
|
|
72
|
+
"@nestjs/graphql": "^10.0.8",
|
|
73
|
+
"@nestjs/platform-express": "^8.4.4",
|
|
74
74
|
"@paljs/plugins": "^4.0.18",
|
|
75
|
-
"@prisma/client": "^3.
|
|
75
|
+
"@prisma/client": "^3.12.0",
|
|
76
76
|
"@semantic-release/changelog": "^6.0.1",
|
|
77
77
|
"@semantic-release/git": "^10.0.1",
|
|
78
|
-
"@swc/core": "^1.2.
|
|
78
|
+
"@swc/core": "^1.2.165",
|
|
79
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.
|
|
82
|
+
"@types/lodash": "^4.14.181",
|
|
83
83
|
"@types/mocha": "^9.1.0",
|
|
84
|
-
"@types/node": "^17.0.
|
|
84
|
+
"@types/node": "^17.0.23",
|
|
85
85
|
"@types/pluralize": "^0.0.29",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
87
|
-
"@typescript-eslint/parser": "^5.
|
|
88
|
-
"apollo-server-express": "^3.6.
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
87
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
88
|
+
"apollo-server-express": "^3.6.7",
|
|
89
89
|
"c8": "^7.11.0",
|
|
90
90
|
"class-transformer": "^0.5.1",
|
|
91
91
|
"class-validator": "^0.13.2",
|
|
92
92
|
"commitizen": "^4.2.4",
|
|
93
93
|
"cz-customizable": "^6.3.0",
|
|
94
94
|
"decimal.js": "^10.3.1",
|
|
95
|
-
"eslint": "^8.
|
|
95
|
+
"eslint": "^8.13.0",
|
|
96
96
|
"eslint-import-resolver-node": "^0.3.6",
|
|
97
97
|
"eslint-plugin-etc": "^2.0.2",
|
|
98
|
-
"eslint-plugin-import": "^2.
|
|
98
|
+
"eslint-plugin-import": "^2.26.0",
|
|
99
99
|
"eslint-plugin-only-warn": "^1.0.3",
|
|
100
100
|
"eslint-plugin-prettier": "^4.0.0",
|
|
101
|
-
"eslint-plugin-regexp": "^1.
|
|
101
|
+
"eslint-plugin-regexp": "^1.6.0",
|
|
102
102
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
103
103
|
"eslint-plugin-sort-class-members": "^1.14.1",
|
|
104
|
-
"eslint-plugin-unicorn": "^
|
|
104
|
+
"eslint-plugin-unicorn": "^42.0.0",
|
|
105
105
|
"eslint-plugin-wix-editor": "^3.3.0",
|
|
106
106
|
"expect": "^27.5.1",
|
|
107
107
|
"ghooks": "^2.0.4",
|
|
108
108
|
"git-branch-is": "^4.0.0",
|
|
109
109
|
"graphql": "^16.3.0",
|
|
110
|
-
"graphql-scalars": "^1.
|
|
110
|
+
"graphql-scalars": "^1.17.0",
|
|
111
111
|
"graphql-type-json": "^0.3.2",
|
|
112
112
|
"mocha": "^9.2.2",
|
|
113
113
|
"ololog": "^1.1.175",
|
|
114
114
|
"precise-commits": "^1.0.2",
|
|
115
|
-
"prettier": "^2.6.
|
|
116
|
-
"prisma": "^3.
|
|
115
|
+
"prettier": "^2.6.2",
|
|
116
|
+
"prisma": "^3.12.0",
|
|
117
117
|
"prisma-graphql-type-decimal": "^2.0.0",
|
|
118
118
|
"reflect-metadata": "^0.1.13",
|
|
119
119
|
"request": "^2.88.2",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"ts-node": "^10.7.0",
|
|
125
125
|
"ts-node-dev": "^1.1.8",
|
|
126
126
|
"tslib": "^2.3.1",
|
|
127
|
-
"typescript": "^4.6.
|
|
127
|
+
"typescript": "^4.6.3",
|
|
128
128
|
"watchexec-bin": "^1.0.0"
|
|
129
129
|
}
|
|
130
130
|
}
|