@gasket/core
Advanced tools
Comparing version 7.0.0-next.42 to 7.0.0-next.44
{ | ||
"name": "@gasket/core", | ||
"version": "7.0.0-next.42", | ||
"version": "7.0.0-next.44", | ||
"description": "Entry point to setting up Gasket instances", | ||
@@ -91,3 +91,3 @@ "exports": { | ||
"type": "module", | ||
"gitHead": "d96c86a52f608ea702f9b91a5a72f3b19389877c" | ||
"gitHead": "3a1d51a5e98ce4bad06faa2fceae90c580c8a0a9" | ||
} |
@@ -11,3 +11,3 @@ # @gasket/core | ||
Add a `gasket.mjs` file to the root of your project. | ||
Add a `gasket.js` file to the root of your project. | ||
This can be a `.js` extension if your package.json has the `type` field set to `module`. | ||
@@ -17,3 +17,3 @@ It is also possible to use with a `.ts` extension if you have TypeScript configured. | ||
```js | ||
// gasket.mjs | ||
// gasket.js | ||
import { makeGasket } from '@gasket/core'; | ||
@@ -31,3 +31,3 @@ import LoggerPlugin from '@gasket/plugin-logger'; | ||
You can now import the Gasket instance from your `gasket.mjs` file into your | ||
You can now import the Gasket instance from your `gasket.js` file into your | ||
application code. | ||
@@ -41,3 +41,3 @@ With a Gasket, you can fire **actions** that will trigger **lifecycles** hooked | ||
(See [Plugins Guide]). | ||
In your `gasket.mjs` file, you can import plugins and add them to the `plugins` | ||
In your `gasket.js` file, you can import plugins and add them to the `plugins` | ||
array of the Gasket configuration. | ||
@@ -59,9 +59,9 @@ | ||
```js | ||
// gasket-plugin-example.mjs | ||
// gasket-plugin-example.js | ||
export const name = 'gasket-plugin-example'; | ||
const name = 'gasket-plugin-example'; | ||
let _initializedTime; | ||
export const hooks = { | ||
const hooks = { | ||
init(gasket) { | ||
@@ -71,2 +71,4 @@ _initializedTime = Date.now(); | ||
}; | ||
export default { name, hooks }; | ||
``` | ||
@@ -80,9 +82,9 @@ | ||
```diff | ||
// gasket-plugin-example.mjs | ||
// gasket-plugin-example.js | ||
export const name = 'gasket-plugin-example'; | ||
const name = 'gasket-plugin-example'; | ||
let _initializedTime; | ||
export const hooks = { | ||
const hooks = { | ||
init(gasket) { | ||
@@ -104,2 +106,4 @@ - gasket.initializedTime = Date.now(); | ||
}; | ||
export default { name, hooks }; | ||
``` | ||
@@ -114,7 +118,7 @@ | ||
```js | ||
// gasket-plugin-example.mjs | ||
// gasket-plugin-example.js | ||
export const name = 'gasket-plugin-example'; | ||
const name = 'gasket-plugin-example'; | ||
export const hooks = { | ||
const hooks = { | ||
actions(gasket) { | ||
@@ -131,2 +135,4 @@ return { | ||
}; | ||
export default { name, hooks }; | ||
``` | ||
@@ -142,7 +148,7 @@ | ||
```js | ||
// gasket-plugin-example.mjs | ||
// gasket-plugin-example.js | ||
export const name = 'gasket-plugin-example'; | ||
const name = 'gasket-plugin-example'; | ||
export const hooks = { | ||
const hooks = { | ||
configure(gasket, gasketConfig) { | ||
@@ -156,2 +162,4 @@ // Modify the configuration | ||
}; | ||
export default { name, hooks }; | ||
``` | ||
@@ -158,0 +166,0 @@ |
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
54924
165