propro-utils 1.7.44 → 1.7.45
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/package.json +1 -1
- package/src/index.js +10 -0
- package/utils/serviceManager.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -100,11 +100,21 @@ class ProProAuthMiddleware {
|
|
|
100
100
|
this.redisClient
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
console.log("SERVER AUTH INITIALIZED", {
|
|
105
|
+
userSchema: this.userSchema,
|
|
106
|
+
userStyleSchema: this.userStyleSchema,
|
|
107
|
+
folderSchema: this.folderSchema,
|
|
108
|
+
themeSchema: this.themeSchema,
|
|
109
|
+
redisClient: this.redisClient
|
|
110
|
+
});
|
|
111
|
+
|
|
103
112
|
ServiceManager.registerService('UserSchema', this.userSchema);
|
|
104
113
|
ServiceManager.registerService('UserStyleSchema', this.userStyleSchema);
|
|
105
114
|
ServiceManager.registerService('RedisClient', this.redisClient);
|
|
106
115
|
ServiceManager.registerService('FolderSchema', this.folderSchema);
|
|
107
116
|
ServiceManager.registerService('ThemeSchema', this.themeSchema);
|
|
117
|
+
|
|
108
118
|
return this.serverAuth.middleware();
|
|
109
119
|
}
|
|
110
120
|
|
package/utils/serviceManager.js
CHANGED
|
@@ -31,7 +31,7 @@ class ServiceManager {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
getService(name) {
|
|
34
|
-
console.log("GET SERVICE ", {name, service: this.services[name], servicePromise: this.servicePromises[name]});
|
|
34
|
+
// console.log("GET SERVICE ", {name, service: this.services[name], servicePromise: this.servicePromises[name]});
|
|
35
35
|
|
|
36
36
|
if (this.services[name]) {
|
|
37
37
|
return this.services[name];
|