primea-abstract-container
Advanced tools
Comparing version 0.0.2 to 0.0.3
11
index.js
@@ -14,10 +14,17 @@ module.exports = class AbstractContainer { | ||
// Optionally it can return a single value. | ||
async initialize (message) { | ||
async onCreation (message) { | ||
throw new Error('Unimplemented initialiser') | ||
} | ||
// This method runs when the container needs to be started up. It cannot be | ||
// called before onCreation was successful. It can be called after a shutdown | ||
// was requested in onIdle. | ||
async onStartup () { | ||
throw new Error('Unimplemented startup method') | ||
} | ||
// This is called for each incoming message the container gets. | ||
// | ||
// Optionally it can return a single value. | ||
async run (message) { | ||
async onMessage (message) { | ||
throw new Error('Unimplemented message: ' + message.data) | ||
@@ -24,0 +31,0 @@ } |
{ | ||
"name": "primea-abstract-container", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Abstract Primea container", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
2583
39