Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adonisjs/application

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/application - npm Package Compare versions

Comparing version 5.0.2 to 5.1.0

5

build/src/Application.d.ts

@@ -103,2 +103,7 @@ /// <reference path="../adonis-typings/application.d.ts" />

/**
* Verify the node version when defined under "engines" object in
* "packages.json" file.
*/
private verifyNodeEngine;
/**
* Resolve a given module from the application root. The callback is invoked

@@ -105,0 +110,0 @@ * when the module is missing

@@ -36,2 +36,3 @@ "use strict";

const semver_1 = require("semver");
const utils_1 = require("@poppinss/utils");
const fold_1 = require("@adonisjs/fold");

@@ -105,2 +106,3 @@ const env_1 = require("@adonisjs/env");

const corePkgFile = this.loadCorePackageJson();
this.verifyNodeEngine(pkgFile.engines);
/**

@@ -132,2 +134,15 @@ * Fetching following info from the package file

/**
* Verify the node version when defined under "engines" object in
* "packages.json" file.
*/
verifyNodeEngine(engines) {
const nodeEngine = engines?.node;
if (!nodeEngine) {
return;
}
if (!semver_1.satisfies(process.version, nodeEngine)) {
throw new utils_1.Exception(`The installed Node.js version "${process.version}" does not satisfies the expected version "${nodeEngine}" defined inside package.json file`, 500);
}
}
/**
* Resolve a given module from the application root. The callback is invoked

@@ -134,0 +149,0 @@ * when the module is missing

6

build/src/rcParser.js

@@ -72,3 +72,3 @@ "use strict";

optional: false,
environment: ['web', 'console', 'test'],
environment: ['web', 'console', 'test', 'repl'],
};

@@ -82,3 +82,5 @@ }

optional: preload.optional === undefined ? false : preload.optional,
environment: preload.environment === undefined ? ['web', 'console', 'test'] : preload.environment,
environment: preload.environment === undefined
? ['web', 'console', 'test', 'repl']
: preload.environment,
};

@@ -85,0 +87,0 @@ }),

{
"name": "@adonisjs/application",
"version": "5.0.2",
"version": "5.1.0",
"description": "AdonisJS application class to read app related data",

@@ -37,3 +37,3 @@ "main": "build/index.js",

"@poppinss/dev-utils": "^1.1.1",
"@types/node": "^14.14.35",
"@types/node": "^14.14.41",
"@types/semver": "^7.3.4",

@@ -43,14 +43,14 @@ "commitizen": "^4.2.3",

"del-cli": "^3.0.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-adonis": "^1.3.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-prettier": "^3.4.0",
"github-label-sync": "^2.0.0",
"husky": "^5.2.0",
"husky": "^6.0.0",
"japa": "^3.1.1",
"jsonschema": "^1.4.0",
"mrm": "^2.6.1",
"mrm": "^3.0.1",
"np": "^7.4.0",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
"typescript": "^4.2.4"
},

@@ -57,0 +57,0 @@ "nyc": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc