Comparing version 0.1.0 to 0.1.1
{ | ||
"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 @@ |
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
93
7207
8