@adonisjs/core
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="@types/node" /> | ||
declare module '@ioc:Adonis/Core/Encryption' { | ||
@@ -3,0 +3,0 @@ export type EncryptionConfig = { |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="@types/node" /> | ||
declare module '@ioc:Adonis/Core/HttpContext' { | ||
@@ -3,0 +3,0 @@ import { IncomingMessage, ServerResponse } from 'http'; |
@@ -7,4 +7,4 @@ "use strict"; | ||
templates.forEach((filename) => { | ||
const dest = application.configPath(filename); | ||
const src = path_1.join(__dirname, 'config', filename); | ||
const dest = `${application.directoriesMap.get('config')}/${filename}`; | ||
const src = path_1.join(__dirname, 'config', filename.replace(/.ts$/, '.txt')); | ||
new TemplateFile(projectRoot, dest, src) | ||
@@ -11,0 +11,0 @@ .apply({}) |
@@ -27,3 +27,3 @@ "use strict"; | ||
this.$container.singleton('Adonis/Core/Config', () => { | ||
const app = this.$container.use('Application'); | ||
const app = this.$container.use('Adonis/Core/Application'); | ||
return new config_1.Config(utils_1.requireAll(app.configPath())); | ||
@@ -39,3 +39,3 @@ }); | ||
this.$container.singleton('Adonis/Core/Env', () => { | ||
const app = this.$container.use('Application'); | ||
const app = this.$container.use('Adonis/Core/Application'); | ||
const { envContents, testEnvContent } = envLoader_1.envLoader(app.appRoot); | ||
@@ -42,0 +42,0 @@ env_1.env.process(envContents, false); |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="@types/node" /> | ||
import { EncryptionContract, EncryptionConfig } from '@ioc:Adonis/Core/Encryption'; | ||
@@ -3,0 +3,0 @@ export declare class Encryption implements EncryptionContract { |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="@types/node" /> | ||
import { Server as HttpsServer } from 'https'; | ||
@@ -3,0 +3,0 @@ import { ApplicationContract } from '@poppinss/application'; |
@@ -23,3 +23,3 @@ "use strict"; | ||
this.application = new application_1.Application(this._appRoot, ioc, rcContents, pkg); | ||
ioc.singleton('Adonis/Core/Application', () => this); | ||
ioc.singleton('Adonis/Core/Application', () => this.application); | ||
} | ||
@@ -26,0 +26,0 @@ _require(filePath, optional = false) { |
{ | ||
"name": "@adonisjs/core", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Adonisjs core", | ||
@@ -10,4 +10,2 @@ "main": "build/index.js", | ||
"build/src", | ||
"build/index.d.ts", | ||
"build/index.js", | ||
"build/config", | ||
@@ -22,3 +20,3 @@ "build/instructions.js" | ||
"clean": "del build", | ||
"compile": "npm run lint && npm run clean && tsc", | ||
"compile": "npm run lint && npm run clean && tsc && copyfiles config/* build", | ||
"build": "npm run compile", | ||
@@ -46,8 +44,9 @@ "commit": "git-cz", | ||
"devDependencies": { | ||
"@adonisjs/fold": "^6.1.0", | ||
"@adonisjs/fold": "^6.1.1", | ||
"@adonisjs/mrm-preset": "^2.0.3", | ||
"@adonisjs/sink": "^2.0.4", | ||
"@adonisjs/sink": "^2.0.7", | ||
"@poppinss/dev-utils": "^1.0.0", | ||
"@types/node": "^12.6.8", | ||
"commitizen": "^4.0.3", | ||
"copyfiles": "^2.1.1", | ||
"cz-conventional-changelog": "^3.0.2", | ||
@@ -87,3 +86,3 @@ "del-cli": "^2.0.0", | ||
"dependencies": { | ||
"@poppinss/application": "^1.0.6", | ||
"@poppinss/application": "^1.0.7", | ||
"@poppinss/config": "^1.0.6", | ||
@@ -94,4 +93,4 @@ "@poppinss/env": "^1.0.5", | ||
"@poppinss/http-server": "^1.1.8", | ||
"@poppinss/logger": "^1.1.1", | ||
"@poppinss/request": "^1.0.10", | ||
"@poppinss/logger": "^1.1.2", | ||
"@poppinss/request": "^1.0.11", | ||
"@poppinss/response": "^1.0.10", | ||
@@ -98,0 +97,0 @@ "@poppinss/utils": "^1.0.4", |
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
57059
21
59
1054
Updated@poppinss/application@^1.0.7
Updated@poppinss/logger@^1.1.2
Updated@poppinss/request@^1.0.11