Socket
Socket
Sign inDemoInstall

enhanced-require

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhanced-require - npm Package Compare versions

Comparing version 0.5.0-beta3 to 0.5.0-beta4

3

lib/Module.js

@@ -20,2 +20,3 @@ var runInThisContext = require("vm").runInThisContext;

this.children = [];
this.parents = [];
this.loaded = false;

@@ -50,3 +51,3 @@ this.exports = {};

if(!this._source) throw new Error("No source availible");
var code = this._source.source();
var code = this._source.source().replace(/^\#\!.*/, '');
var wrappedCode = "(function (exports, require, define, module, __filename, __dirname) {" + stripBOM(code) + "\n})";

@@ -53,0 +54,0 @@ var wrappedFunction = runInThisContext(wrappedCode, this.id, this.id == this.filename);

{
"name": "enhanced-require",
"version": "0.5.0-beta3",
"version": "0.5.0-beta4",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Enhance the require function in node.js with support for loaders which preprocess files and really async require (AMD). Enables Hot Code Replacement.",

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