grand-connectors
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -30,4 +30,4 @@ "use strict"; | ||
let serviceName = typeof Service === "function" | ||
? (_b = (_a = Service.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name | ||
: Service.constructor.name || Service.constructor.name; | ||
? (_b = (_a = Service === null || Service === void 0 ? void 0 : Service.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name | ||
: (Service === null || Service === void 0 ? void 0 : Service.constructor.name) || (Service === null || Service === void 0 ? void 0 : Service.constructor.name); | ||
let serviceNameLowerCase = serviceName.charAt(0).toLowerCase() + serviceName.slice(1); | ||
@@ -34,0 +34,0 @@ if (Object.values(types_1.ServiceModes).includes(mode)) { |
{ | ||
"name": "grand-connectors", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A Grandjs package for applying repository pattern for nodejs and javascript applications using typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -31,4 +31,4 @@ /** | ||
typeof Service === "function" | ||
? Service.prototype?.constructor?.name | ||
: Service.constructor.name || Service.constructor.name; | ||
? Service?.prototype?.constructor?.name | ||
: Service?.constructor.name || Service?.constructor.name; | ||
let serviceNameLowerCase = serviceName.charAt(0).toLowerCase() + serviceName.slice(1); | ||
@@ -35,0 +35,0 @@ if (Object.values(ServiceModes).includes(mode)) { |
36859