egg 3.17.5 → 3.17.6
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/README.md +1 -1
- package/index.d.ts +1 -1
- package/lib/core/singleton.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -449,7 +449,7 @@ declare module 'egg' {
|
|
|
449
449
|
/**
|
|
450
450
|
* i18n resource file dir, not recommend to change default value
|
|
451
451
|
*/
|
|
452
|
-
|
|
452
|
+
dirs: string[];
|
|
453
453
|
/**
|
|
454
454
|
* custom the locale value field, default `query.locale`, you can modify this config, such as `query.lang`
|
|
455
455
|
*/
|
package/lib/core/singleton.js
CHANGED
|
@@ -34,7 +34,7 @@ class Singleton {
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// multi
|
|
37
|
+
// multi client, use app[name].getInstance(id)
|
|
38
38
|
if (options.clients) {
|
|
39
39
|
Object.keys(options.clients).forEach(id => {
|
|
40
40
|
const client = this.createInstance(options.clients[id], id);
|
|
@@ -61,7 +61,7 @@ class Singleton {
|
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
// multi
|
|
64
|
+
// multi client, use app[name].getInstance(id)
|
|
65
65
|
if (options.clients) {
|
|
66
66
|
await Promise.all(Object.keys(options.clients).map(id => {
|
|
67
67
|
return this.createInstanceAsync(options.clients[id], id)
|