Socket
Socket
Sign inDemoInstall

next

Package Overview
Dependencies
Maintainers
1
Versions
2775
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

10

lib/module/require-in-context.js

@@ -12,2 +12,3 @@ // Require module in given context

, natives = process.binding('natives')
, wrap = Module.wrap, get;

@@ -22,7 +23,4 @@

if ((context === global) ||
(context.process && (context.process.title === 'node') &&
(context.pid === global.pid))) {
return require(path);
}
if (context === global) return require(path);
if (natives.hasOwnProperty(path)) return require(path);
fmodule = get(path, context);

@@ -42,5 +40,5 @@ if (fmodule.loaded) return fmodule.exports;

fmodule.loaded = true;
vm.runInContext(wrap(content), context).call(fmodule.exports,
vm.runInContext(wrap(content), context, path).call(fmodule.exports,
fmodule.exports, fmodule.require.bind(fmodule), fmodule, path, dirpath);
return fmodule.exports;
};

2

package.json
{
"name": "next",
"version": "0.3.2",
"version": "0.3.3",
"description": "(deprecated) Node.js extensions",

@@ -5,0 +5,0 @@ "keywords": [

@@ -17,4 +17,4 @@ # node-ext - (Deprecated) Node.js extensions

## Tests [![Build Status](https://secure.travis-ci.org/medikoo/node-ext.png?branch=master)](https://secure.travis-ci.org/medikoo/node-ext)
## Tests [![Build Status](https://api.travis-ci.org/medikoo/node-ext.png?branch=master)](https://travis-ci.org/medikoo/node-ext)
$ npm test

Sorry, the diff of this file is not supported yet

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