@superhero/core 4.0.10 → 4.0.11
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 +0 -40
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -291,8 +291,6 @@ export default class Core
|
|
|
291
291
|
}
|
|
292
292
|
else if(false === this.#isBooted)
|
|
293
293
|
{
|
|
294
|
-
await this.#normalizeServcieMapPaths()
|
|
295
|
-
|
|
296
294
|
freeze && this.config.freeze()
|
|
297
295
|
|
|
298
296
|
const locatorMap = this.config.find('locator')
|
|
@@ -370,44 +368,6 @@ export default class Core
|
|
|
370
368
|
return branch + forks
|
|
371
369
|
}
|
|
372
370
|
|
|
373
|
-
/**
|
|
374
|
-
* Eagerload services by the configured locator service map.
|
|
375
|
-
*
|
|
376
|
-
* Resolves the absolute path if any of the services to eagerload is refferencing
|
|
377
|
-
* a relative path.
|
|
378
|
-
*
|
|
379
|
-
* Resolves the absolute path by the config entry, through the config instance.
|
|
380
|
-
*/
|
|
381
|
-
async #normalizeServcieMapPaths()
|
|
382
|
-
{
|
|
383
|
-
const locatorMap = this.config.find('locator')
|
|
384
|
-
|
|
385
|
-
if(locatorMap)
|
|
386
|
-
{
|
|
387
|
-
const serviceMap = this.locate.normaliseServiceMap(locatorMap)
|
|
388
|
-
|
|
389
|
-
for(const entry in serviceMap)
|
|
390
|
-
{
|
|
391
|
-
const servicePath = serviceMap[entry]
|
|
392
|
-
|
|
393
|
-
if('string' === typeof servicePath)
|
|
394
|
-
{
|
|
395
|
-
if(servicePath.startsWith('.'))
|
|
396
|
-
{
|
|
397
|
-
const
|
|
398
|
-
configPath = 'locator/' + entry,
|
|
399
|
-
absolutePath = this.config.findAbsoluteDirPathByConfigEntry(configPath, servicePath)
|
|
400
|
-
|
|
401
|
-
if('string' === typeof absolutePath)
|
|
402
|
-
{
|
|
403
|
-
serviceMap[entry] = path.normalize(path.join(absolutePath, servicePath))
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
|
|
411
371
|
#createSynchoronizer(id)
|
|
412
372
|
{
|
|
413
373
|
const
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superhero/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "Core functionalities for the superhero framework.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
".": "./index.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@superhero/locator": "^4.
|
|
13
|
-
"@superhero/bootstrap": "^4.1.
|
|
12
|
+
"@superhero/locator": "^4.3.0",
|
|
13
|
+
"@superhero/bootstrap": "^4.1.5"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test": "node --trace-warnings --test --experimental-test-coverage"
|