@adonisjs/application
Advanced tools
Comparing version 8.1.0 to 8.2.0
import { | ||
Application | ||
} from "../chunk-KSQZ56RF.js"; | ||
} from "../chunk-WIOBO4NG.js"; | ||
import "../chunk-7WA7C5MT.js"; | ||
@@ -5,0 +5,0 @@ |
@@ -6,3 +6,3 @@ import { | ||
generators_default | ||
} from "./chunk-KSQZ56RF.js"; | ||
} from "./chunk-WIOBO4NG.js"; | ||
import "./chunk-7WA7C5MT.js"; | ||
@@ -9,0 +9,0 @@ |
@@ -47,3 +47,3 @@ import type { Logger } from '@poppinss/cliui'; | ||
*/ | ||
export type AssemblerHookNode<Handler extends Function> = () => Promise<{ | ||
export type AssemblerHookNode<Handler extends AssemblerHookHandler | SourceFileChangedHookHandler | HttpServerMessageHookHandler> = () => Promise<{ | ||
default: Handler; | ||
@@ -66,2 +66,11 @@ }>; | ||
/** | ||
* Handler for the onHttpServerMessage hook | ||
*/ | ||
export type HttpServerMessageHookHandler = (ui: { | ||
logger: Logger; | ||
colors: Colors; | ||
}, message: any, actions: { | ||
restartServer: () => void; | ||
}) => any; | ||
/** | ||
* Shape of directories object with known and unknown | ||
@@ -222,2 +231,6 @@ * directories | ||
onBuildCompleted?: AssemblerHookNode<AssemblerHookHandler>[]; | ||
/** | ||
* When a message is received from the HTTP server process | ||
*/ | ||
onHttpServerMessage?: AssemblerHookNode<AssemblerHookHandler>[]; | ||
}; | ||
@@ -224,0 +237,0 @@ /** |
{ | ||
"name": "@adonisjs/application", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"description": "AdonisJS application class to read app related data", | ||
@@ -28,3 +28,3 @@ "type": "module", | ||
"build": "npm run compile", | ||
"release": "np", | ||
"release": "release-it", | ||
"version": "npm run build", | ||
@@ -68,4 +68,4 @@ "prepublishOnly": "npm run build", | ||
"husky": "^9.0.6", | ||
"np": "^9.2.0", | ||
"prettier": "^3.2.4", | ||
"release-it": "^17.1.1", | ||
"semver": "^7.5.4", | ||
@@ -105,7 +105,13 @@ "ts-dedent": "^2.2.0", | ||
}, | ||
"np": { | ||
"message": "chore(release): %s", | ||
"tag": "latest", | ||
"branch": "main", | ||
"anyBranch": false | ||
"release-it": { | ||
"git": { | ||
"commitMessage": "chore(release): ${version}", | ||
"tagAnnotation": "v${version}", | ||
"tagName": "v${version}" | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseName": "v${version}", | ||
"web": true | ||
} | ||
}, | ||
@@ -112,0 +118,0 @@ "c8": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
204689
3187
0