Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

proxyquire

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxyquire - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

test/proxyquire-sub-dependencies.js

5

lib/proxyquire.js

@@ -105,3 +105,6 @@ 'use strict';

var require_super = module.require.bind(module);
require_super.extensions = require.extensions;
require_super.extensions[extname] = ext_super;
require_super.main = process.mainModule;
module.require = function (request) {

@@ -108,0 +111,0 @@ // NOTE: This function is for requiring dependencies for the SUT

4

package.json
{
"name": "proxyquire",
"version": "0.4.1",
"version": "0.5.0",
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.",

@@ -24,3 +24,3 @@ "main": "index.js",

"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
"url": "https://github.com/thlorenz/proxyquire/blob/master/LICENSE"
}

@@ -27,0 +27,0 @@ ],

/*jshint asi:true*/
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */
'use strict';

@@ -4,0 +4,0 @@

/*jshint asi:true*/
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */
"use strict";

@@ -4,0 +5,0 @@

'use strict';
/*jshint asi:true */
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */
var proxyquire = require('..').noCallThru()

@@ -5,0 +6,0 @@

/*jshint asi:true*/
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */
"use strict";

@@ -4,0 +4,0 @@

'use strict';
/*jshint asi:true*/
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */

@@ -5,0 +5,0 @@ var assert = require('assert')

/*jshint asi:true*/
/*global describe before beforeEach it */
/*global describe, before, beforeEach, it */
"use strict";

@@ -4,0 +4,0 @@

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