You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

Comparing version 0.4.0-beta11 to 0.4.0-beta12

0

examples/simple-server/README.md

@@ -0,0 +0,0 @@ # simple-server

@@ -0,0 +0,0 @@ var pageTemplate = require("./page.jade");

@@ -0,0 +0,0 @@ var http = require("http");

@@ -0,0 +0,0 @@ require("../../")(module, {

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ var RequireContext = require("./RequireContext");

@@ -0,0 +0,0 @@ var fs = require("fs");

@@ -0,0 +0,0 @@ var runInThisContext = require("vm").runInThisContext;

@@ -0,0 +0,0 @@ module.exports = function() {

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

2

lib/RequireContext.js

@@ -61,3 +61,3 @@ var fs = require("fs");

this.module = parent;
this.context = (!parent) ? "" : parent.id === "." ? process.cwd() : path.dirname(parent.id.split("!").pop());
this.context = (!parent) ? "" : path.dirname(parent.id === "." ? process.argv[1] : parent.id.split("!").pop());
}

@@ -64,0 +64,0 @@

@@ -0,0 +0,0 @@ var RequireContext = require("./RequireContext");

{
"name": "enhanced-require",
"version": "0.4.0-beta11",
"version": "0.4.0-beta12",
"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.",

@@ -0,0 +0,0 @@ # enhanced-require

@@ -0,0 +0,0 @@ var should = require("should");

module.exports = 1;
module.exports = { two: require("./circular2") };
module.exports = 2;
module.exports = { one: require("./circular1") };
exports.module = module;
exports.a = require("./graph/a.js");
exports.b = require("./graph/b.js");
module.exports = module;
require("./b");

@@ -0,0 +0,0 @@ var list = [];

@@ -0,0 +0,0 @@ var list = [];

@@ -0,0 +0,0 @@ var list = [];

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

@@ -0,0 +0,0 @@ var should = require("should");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc