Comparing version 0.1.0 to 0.1.1
@@ -1,12 +0,12 @@ | ||
if (process.env.FIBER_SHIM) { | ||
require('./src/fibers'); | ||
return; | ||
} | ||
var fs = require('fs'); | ||
/** | ||
* If the library wasn't preloaded then we should gracefully fail instead of segfaulting if they | ||
* attempt to use a Fiber. | ||
*/ | ||
Fiber = function() { | ||
if (fs.statSync(process.execPath).mtime > | ||
fs.statSync(require.resolve('./src/fibers')).mtime) { | ||
throw new Error( | ||
'`node` has a newer mtime than `fiber`; it is possible your build is out of date. This ' + | ||
'could happen if you upgrade node. Try `npm rebuild fibers` to rebuild. If that doesn\'t ' + | ||
'work you could consider running `touch ' + require.resolve('./src/fibers') + '` and maybe ' + | ||
'there won\'t be a problem.'); | ||
} else if (!process.env.FIBER_SHIM) { | ||
throw new Error( | ||
'Fiber support was not enabled when you ran node. To enable support for fibers, please run ' + | ||
@@ -19,1 +19,3 @@ 'node with the included `node-fibers` script. For example, instead of running:\n\n' + | ||
} | ||
require('./src/fibers'); |
{ | ||
"name": "fibers", | ||
"version": "0.1.0", | ||
"description": "Cooperative multi-tasking for Javascript; or, the closet thing to a thread you'll see in node", | ||
"version": "0.1.1", | ||
"description": "Cooperative multi-tasking for Javascript; or, the closest thing to a thread you'll see in node", | ||
"keywords": ["fiber", "fibers", "coroutine", "thread", "async", "parallel", "worker"], | ||
@@ -10,3 +10,3 @@ "homepage": "https://github.com/laverdet/node-fibers", | ||
"scripts": { | ||
"install": "make" | ||
"install": "make clean all" | ||
}, | ||
@@ -13,0 +13,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
56375
18
2