@adonisjs/application
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -75,2 +75,3 @@ declare module '@ioc:Adonis/Core/Application' { | ||
namespaces: NamespacesNode; | ||
raw: any; | ||
}; | ||
@@ -77,0 +78,0 @@ export interface ApplicationContract { |
@@ -44,3 +44,3 @@ "use strict"; | ||
function parse(contents) { | ||
contents = Object.assign({ | ||
const normalizedContents = Object.assign({ | ||
typescript: true, | ||
@@ -58,6 +58,6 @@ directories: {}, | ||
return { | ||
typescript: contents.typescript, | ||
directories: Object.assign({}, DEFAULT_DIRECTORIES, contents.directories), | ||
exceptionHandlerNamespace: contents.exceptionHandlerNamespace, | ||
preloads: contents.preloads.map((preload, index) => { | ||
typescript: normalizedContents.typescript, | ||
directories: Object.assign({}, DEFAULT_DIRECTORIES, normalizedContents.directories), | ||
exceptionHandlerNamespace: normalizedContents.exceptionHandlerNamespace, | ||
preloads: normalizedContents.preloads.map((preload, index) => { | ||
if (typeof (preload) === 'string') { | ||
@@ -79,5 +79,5 @@ return { | ||
}), | ||
namespaces: Object.assign({}, DEFAULT_NAMESPACES, contents.namespaces), | ||
aliases: Object.assign({}, contents.autoloads, contents.aliases), | ||
metaFiles: contents.metaFiles.map((file, index) => { | ||
namespaces: Object.assign({}, DEFAULT_NAMESPACES, normalizedContents.namespaces), | ||
aliases: Object.assign({}, normalizedContents.autoloads, normalizedContents.aliases), | ||
metaFiles: normalizedContents.metaFiles.map((file, index) => { | ||
if (typeof (file) === 'string') { | ||
@@ -98,7 +98,8 @@ return { | ||
}), | ||
commands: contents.commands, | ||
providers: contents.providers, | ||
aceProviders: contents.aceProviders, | ||
commands: normalizedContents.commands, | ||
providers: normalizedContents.providers, | ||
aceProviders: normalizedContents.aceProviders, | ||
raw: contents, | ||
}; | ||
} | ||
exports.parse = parse; |
{ | ||
"name": "@adonisjs/application", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "AdonisJs application class to read app related data", | ||
@@ -33,3 +33,3 @@ "main": "build/standalone.js", | ||
"@adonisjs/mrm-preset": "^2.2.4", | ||
"@types/node": "^13.7.4", | ||
"@types/node": "^13.7.6", | ||
"@types/semver": "^7.1.0", | ||
@@ -45,8 +45,8 @@ "commitizen": "^4.0.3", | ||
"jsonschema": "^1.2.5", | ||
"mrm": "^2.0.4", | ||
"np": "^6.1.0", | ||
"mrm": "^2.1.0", | ||
"np": "^6.2.0", | ||
"ts-node": "^8.6.2", | ||
"typedoc": "^0.16.10", | ||
"typedoc-plugin-external-module-name": "^3.0.0", | ||
"typedoc-plugin-markdown": "^2.2.16", | ||
"typedoc-plugin-markdown": "^2.2.17", | ||
"typescript": "^3.8.2" | ||
@@ -53,0 +53,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27861
694