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

primea-abstract-container

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primea-abstract-container - npm Package Compare versions

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 @@ }

2

package.json
{
"name": "primea-abstract-container",
"version": "0.0.2",
"version": "0.0.3",
"description": "Abstract Primea container",

@@ -5,0 +5,0 @@ "scripts": {

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