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

battalion

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

battalion - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "battalion",
"version": "0.1.0",
"version": "0.1.1",
"description": "Web worker management utilities",

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

@@ -19,3 +19,3 @@ # Battalion

Battalion.export({
Battalion.export(self, {
addTwo ({ first, second }) {

@@ -53,2 +53,10 @@ return first + second

### Battalion.export(context, methods)
Exposes methods from a worker file.
`context`: The worker context (should be `self`)
`methods`: Object containing methods that will be called by `dispatch`.
### Battalion#createInstance(options)

@@ -55,0 +63,0 @@

@@ -77,3 +77,3 @@ const { RETURN, ERROR } = require('./message-types')

this._jobQueue = []
this._coompleted = 0
this._completed = 0
}

@@ -80,0 +80,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