Socket
Socket
Sign inDemoInstall

fibers

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fibers - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

20

fibers.js

@@ -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

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