xcally-nest-library 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/.nvmrc +1 -1
- package/dist/src/config/env.validation.d.ts +2 -1
- package/dist/src/config/env.validation.js +1 -0
- package/dist/src/config/env.validation.js.map +1 -1
- package/dist/src/db/typeorm/generic.repository.js +1 -5
- package/dist/src/db/typeorm/generic.repository.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/config/env.validation.ts +1 -0
- package/src/db/typeorm/generic.repository.ts +1 -5
package/.nvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v22.1.0
|
@@ -18,6 +18,7 @@ var EnvironmentType;
|
|
18
18
|
EnvironmentType["Prod"] = "production";
|
19
19
|
EnvironmentType["Test"] = "test";
|
20
20
|
EnvironmentType["Staging"] = "staging";
|
21
|
+
EnvironmentType["E2E"] = "e2e";
|
21
22
|
})(EnvironmentType || (EnvironmentType = {}));
|
22
23
|
class EnvironmentVariables {
|
23
24
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env.validation.js","sourceRoot":"","sources":["../../../src/config/env.validation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAmG;AAEnG,IAAK,
|
1
|
+
{"version":3,"file":"env.validation.js","sourceRoot":"","sources":["../../../src/config/env.validation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAmG;AAEnG,IAAK,eAMJ;AAND,WAAK,eAAe;IAClB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,8BAAW,CAAA;AACb,CAAC,EANI,eAAe,KAAf,eAAe,QAMnB;AAED,MAAM,oBAAoB;CAkCzB;AAhCC;IADC,IAAA,wBAAM,EAAC,eAAe,CAAC;;sDACE;AAG1B;IADC,IAAA,0BAAQ,GAAE;;wDACQ;AAGnB;IADC,IAAA,0BAAQ,GAAE;;wDACQ;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAW,EAAC,GAAG,CAAC;;4DACM;AAGvB;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;4DACY;AAGvB;IADC,IAAA,2BAAS,GAAE;;+DACe;AAG3B;IADC,IAAA,0BAAQ,GAAE;;0DACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;gEACgB;AAG3B;IADC,IAAA,0BAAQ,GAAE;;6DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;+DACe;AAG5B,SAAgB,QAAQ,CAAC,aAAsC;IAC7D,MAAM,WAAW,GAAG,IAAA,gCAAY,EAAC,oBAAoB,EAAE,aAAa,EAAE;QACpE,wBAAwB,EAAE,IAAI;KAC/B,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAA,8BAAY,EAAC,WAAW,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1E,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAZD,4BAYC"}
|
@@ -33,13 +33,9 @@ class GenericRepository {
|
|
33
33
|
return this.repository.count();
|
34
34
|
}
|
35
35
|
async findById(id) {
|
36
|
-
|
36
|
+
return await this.repository.findOneBy({
|
37
37
|
id: (0, typeorm_1.Equal)(id),
|
38
38
|
});
|
39
|
-
if (!entity) {
|
40
|
-
throw undefined;
|
41
|
-
}
|
42
|
-
return entity;
|
43
39
|
}
|
44
40
|
}
|
45
41
|
exports.GenericRepository = GenericRepository;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generic.repository.js","sourceRoot":"","sources":["../../../../src/db/typeorm/generic.repository.ts"],"names":[],"mappings":";;;AAAA,qCAAuH;AACvH,qDAAqF;AASrF,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