Comparing version 1.0.0 to 1.0.1
@@ -109,4 +109,4 @@ 'use strict'; | ||
app.config.i18n.dirs = app.config.i18n.dirs || []; | ||
for (const dir of app.loader.loadDirs()) { | ||
app.config.i18n.dirs.push(path.join(dir, 'config/locales')); | ||
for (const unit of app.loader.getLoadUnits()) { | ||
app.config.i18n.dirs.push(path.join(unit.path, 'config/locales')); | ||
} | ||
@@ -113,0 +113,0 @@ |
1.0.1 / 2016-08-16 | ||
================== | ||
* fix: use loader.getLoadUnits from egg-core (#2) | ||
1.0.0 / 2016-08-02 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "egg-i18n", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "i18n plugin for egg", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"egg": "*", | ||
"egg": "test", | ||
"egg-bin": "1", | ||
@@ -44,3 +44,2 @@ "egg-mock": "*", | ||
"eslint-config-egg": "3", | ||
"mm": "1", | ||
"pedding": "1", | ||
@@ -47,0 +46,0 @@ "should": "10", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10682
8
0