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

abstract-confine-runtime

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-confine-runtime - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

9

index.js
module.exports = class AbstractConfineRuntime {
constructor (sourcePath, opts = {}) {
this.sourcePath = sourcePath
constructor (opts = {}) {
this.source = opts.source
this.ipc = opts.ipc
this.opts = opts

@@ -15,2 +16,6 @@ }

}
async handleRequest (body) {
}
}
{
"name": "abstract-confine-runtime",
"version": "0.0.1",
"version": "0.1.0",
"description": "The base class for confine runtimes. ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,4 +16,5 @@ # Abstract Confine Runtime

module.exports = class MyConfineRuntime extends AbstractConfineRuntime {
constructor (scriptPath, opts) {
super(scriptPath, opts)
constructor (opts) {
super(opts)
// sets this.source, this.ipc, and this.opts
}

@@ -32,2 +33,6 @@

}
async handleRequest (body) {
// handle requests sent to the runtime by the host environment
}
}

@@ -34,0 +39,0 @@ ```

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