Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'validators/*': cb => {
dictionary.aggregate({
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.api, api, strapi.config.paths.config, strapi.config.paths.validators),
filter: /(.+)\.(json|js)$/,
depth: 2
}, cb);
},
common: cb => {
dictionary.aggregate({
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.admin, strapi.config.paths.config),
excludeDirs: /(locales|environments|policies)$/,
filter: /(.+)\.(js|json)$/,
depth: 2
}, cb);
},
specific: cb => {
'config/*': cb => {
dictionary.aggregate(
{
dirname: path.resolve(
strapi.config.appPath,
strapi.config.paths.config
),
excludeDirs: /(locales|environments|policies)$/,
filter: /(.+)\.(js|json)$/,
depth: 2
},
cb
);
},
'policies/*': cb => {
dictionary.aggregate({
dirname: path.resolve(strapi.config.appPath, strapi.config.paths.plugins, plugin, strapi.config.paths.policies),
filter: /(.+)\.(js)$/,
depth: 1
}, cb);
},