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 1.0.1 to 1.1.0

4

lib/proxyquire-error.js
'use strict';
var util = require('util');
function ProxyquireError(msg) {

@@ -9,2 +11,4 @@ this.name = 'ProxyquireError';

util.inherits(ProxyquireError, Error);
module.exports = ProxyquireError;

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,3 +17,3 @@ /*jshint asi:true*/

assert.throws(action, function (err) {
return err.name === 'ProxyquireError' && regex.test(err.message);
return err.name === 'ProxyquireError' && regex.test(err.message) && regex.test(err.toString());
});

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