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

@adonisjs/application

Package Overview
Dependencies
Maintainers
3
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 7.1.2-3 to 7.1.2-4

1

build/src/application.d.ts

@@ -92,2 +92,3 @@ /// <reference types="node" resolution-mode="require"/>

booted(handler: HookHandler<[Application<ContainerBindings>], [Application<ContainerBindings>]>): Promise<void>;
starting(handler: HookHandler<[Application<ContainerBindings>], [Application<ContainerBindings>]>): this;
start(callback: (app: this) => void | Promise<void>): Promise<void>;

@@ -94,0 +95,0 @@ ready(handler: HookHandler<[Application<ContainerBindings>], [Application<ContainerBindings>]>): Promise<void>;

@@ -208,2 +208,6 @@ import Hooks from '@poppinss/hooks';

}
starting(handler) {
this.#hooks.add('starting', handler);
return this;
}
async start(callback) {

@@ -216,2 +220,4 @@ if (this.#state !== 'booted') {

await this.#providersManager.start();
await this.#hooks.runner('starting').run(this);
this.#hooks.clear('starting');
await this.#preloadsManager.use(this.rcFile.preloads).import();

@@ -218,0 +224,0 @@ await callback(this);

22

package.json
{
"name": "@adonisjs/application",
"version": "7.1.2-3",
"version": "7.1.2-4",
"description": "AdonisJS application class to read app related data",

@@ -46,4 +46,4 @@ "type": "module",

"@adonisjs/fold": "^9.9.3-4",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@japa/assert": "^1.4.1",

@@ -55,11 +55,11 @@ "@japa/expect-type": "^1.0.3",

"@japa/spec-reporter": "^1.3.3",
"@swc/core": "^1.3.42",
"@swc/core": "^1.3.59",
"@types/fs-extra": "^11.0.1",
"@types/glob-parent": "^5.1.1",
"@types/node": "^18.15.9",
"@types/semver": "^7.3.13",
"@types/node": "^20.2.3",
"@types/semver": "^7.5.0",
"c8": "^7.13.0",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.36.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",

@@ -72,8 +72,8 @@ "eslint-plugin-adonis": "^3.0.3",

"jsonschema": "^1.4.1",
"np": "^7.6.4",
"prettier": "^2.8.7",
"semver": "^7.3.8",
"np": "^7.7.0",
"prettier": "^2.8.8",
"semver": "^7.5.1",
"ts-dedent": "^2.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
"typescript": "^5.0.4"
},

@@ -80,0 +80,0 @@ "dependencies": {

@@ -94,2 +94,3 @@ /*

booted: HooksState<ContainerBindings>
starting: HooksState<ContainerBindings>
ready: HooksState<ContainerBindings>

@@ -515,2 +516,12 @@ terminating: HooksState<ContainerBindings>

/**
* Register hooks that are called when the app is starting
*/
starting(
handler: HookHandler<[Application<ContainerBindings>], [Application<ContainerBindings>]>
): this {
this.#hooks.add('starting', handler)
return this
}
/**
* Start the application. Calling this method performs the following

@@ -536,2 +547,5 @@ * operations.

await this.#providersManager.start()
await this.#hooks.runner('starting').run(this)
this.#hooks.clear('starting')
await this.#preloadsManager.use(this.rcFile.preloads).import()

@@ -538,0 +552,0 @@

Sorry, the diff of this file is not supported yet

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