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

proxyquire

Package Overview
Dependencies
Maintainers
2
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 2.0.0 to 2.0.1

test/samples/no-call-thru-test/index.js

2

lib/proxyquire.js

@@ -282,2 +282,4 @@ 'use strict'

Module._cache[id] = cached
} else {
delete Module._cache[id]
}

@@ -284,0 +286,0 @@ }

4

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

@@ -36,4 +36,4 @@ "main": "index.js",

"module-not-found-error": "^1.0.0",
"resolve": "~1.1.7"
"resolve": "~1.5.0"
}
}

@@ -20,2 +20,11 @@ 'use strict'

})
it('does not pollute the cache when module is proxyquired before it is loaded', function () {
var proxyquire = require('..')
proxyquire('./samples/no-call-thru-test', { './required': false })
var original = require('./samples/no-call-thru-test')
assert.equal(original.original, true)
})
})

@@ -22,0 +31,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