Comparing version 0.12.0 to 0.12.1
@@ -10,3 +10,3 @@ 'use strict'; | ||
if (typeof process !== 'undefined' && 'pid' in process) { | ||
if (typeof process !== 'undefined' && process.arch !== 'browser' && 'pid' in process) { | ||
module.exports = require('./defaults.node'); | ||
@@ -13,0 +13,0 @@ } else { |
@@ -10,3 +10,3 @@ 'use strict'; | ||
if (typeof process !== 'undefined' && 'pid' in process) { | ||
if (typeof process !== 'undefined' && process.arch !== 'browser' && 'pid' in process) { | ||
module.exports = require('./worker.node/worker'); | ||
@@ -13,0 +13,0 @@ } else { |
{ | ||
"name": "threads", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"keywords": [ | ||
@@ -64,2 +64,3 @@ "threads", | ||
"mocha": "^3.1.2", | ||
"natives": "^1.1.6", | ||
"sinon": "^1.16.1", | ||
@@ -66,0 +67,0 @@ "through2": "^2.0.0", |
@@ -17,3 +17,5 @@ # threads.js | ||
Side note: Using threads.js? Check out the [Version 1.0 API draft](https://github.com/andywer/threads.js/issues/88) and feel free to leave feedback! | ||
## Basic usage | ||
@@ -70,3 +72,3 @@ | ||
Note: Replace `VERSION` with the library's version you want to use, like `v0.12.0`. The library will be exposed on the global window scope as `threads`. | ||
Note: Replace `VERSION` with the library's version you want to use, like `0.12.0`. The library will be exposed on the global window scope as `threads`. | ||
@@ -73,0 +75,0 @@ |
@@ -8,3 +8,3 @@ /*eslint-env node*/ | ||
if (typeof process !== 'undefined' && 'pid' in process) { | ||
if (typeof process !== 'undefined' && process.arch !== 'browser' && 'pid' in process) { | ||
module.exports = require('./defaults.node'); | ||
@@ -11,0 +11,0 @@ } else { |
@@ -8,3 +8,3 @@ /*eslint-env node*/ | ||
if (typeof process !== 'undefined' && 'pid' in process) { | ||
if (typeof process !== 'undefined' && process.arch !== 'browser' && 'pid' in process) { | ||
module.exports = require('./worker.node/worker'); | ||
@@ -11,0 +11,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
190315
419
27