@onlineapps/content-resolver 2.0.0 → 2.0.1
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 +2 -2
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/content-resolver",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Automatic conversion between text content and storage references with Content Descriptor pattern",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "OnlineApps",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@onlineapps/conn-base-storage": "
|
|
21
|
+
"@onlineapps/conn-base-storage": "3.0.0",
|
|
22
22
|
"@onlineapps/runtime-config": "1.0.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
package/src/index.js
CHANGED
|
@@ -220,7 +220,10 @@ class ContentResolver {
|
|
|
220
220
|
if (config.endPoint) {
|
|
221
221
|
config.endPoint = config.endPoint.replace(/^https?:\/\//, '');
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
// The connector requires an injected logger (conn-base-storage 3.0.0,
|
|
224
|
+
// architecture-principles.md §1). ContentResolver already fail-fasts on
|
|
225
|
+
// its own logger, so it has one to give.
|
|
226
|
+
this.storage = new StorageConnector({ ...config, logger: this.logger });
|
|
224
227
|
await this.storage.initialize();
|
|
225
228
|
}
|
|
226
229
|
return this.storage;
|