@adonisjs/core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -9,2 +9,3 @@ "use strict"; | ||
const useReturnValue_1 = require("@poppinss/http-server/build/src/Server/useReturnValue"); | ||
const findPkg = require("find-package-json"); | ||
class Ignitor { | ||
@@ -18,3 +19,4 @@ constructor(_appRoot) { | ||
global['make'] = ioc.make.bind(ioc); | ||
const pkgVersion = require(path_1.join(__dirname, '..', '..', 'package.json')).version; | ||
const nearestDir = path_1.join(__dirname, '..', '..'); | ||
const pkgVersion = findPkg(nearestDir).next().value.version; | ||
const rcContents = this._require(path_1.join(this._appRoot, '.adonisrc.json'), true) || {}; | ||
@@ -21,0 +23,0 @@ this.application = new application_1.Application(pkgVersion, this._appRoot, ioc, rcContents); |
{ | ||
"name": "@adonisjs/core", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Adonisjs core", | ||
"main": "build/index.js", | ||
"files": [ | ||
"build/providers", | ||
"build/adonis-typings", | ||
@@ -87,2 +88,3 @@ "build/src", | ||
"@poppinss/utils": "^1.0.1", | ||
"find-package-json": "^1.2.0", | ||
"simple-encryptor": "^3.0.0", | ||
@@ -89,0 +91,0 @@ "youch": "^2.0.10", |
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
35877
43
793
8
1
13
+ Addedfind-package-json@^1.2.0
+ Addedfind-package-json@1.2.0(transitive)