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.1 to 2.0.2

2

examples/sinon/foo-tests.js
'use strict'
/* global describe before after it */
/*

@@ -6,0 +4,0 @@ * These examples demonstrate how to use proxyquire with Sinon.JS (<http://sinonjs.org/>).

15

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

@@ -27,6 +27,6 @@ "main": "index.js",

"devDependencies": {
"mocha": "^3.5.3",
"mocha": "^5.2.0",
"native-hello-world": "^1.0.0",
"should": "~3.3",
"sinon": "~1.9",
"should": "~13.2",
"sinon": "~6.1",
"standard": "^11.0.0"

@@ -37,4 +37,9 @@ },

"module-not-found-error": "^1.0.0",
"resolve": "~1.5.0"
"resolve": "~1.8.1"
},
"standard": {
"env": [
"mocha"
]
}
}

@@ -1,4 +0,7 @@

# proxyquire [![Build Status](https://secure.travis-ci.org/thlorenz/proxyquire.svg)](http://travis-ci.org/thlorenz/proxyquire)
# proxyquire [![Build Status](https://secure.travis-ci.org/thlorenz/proxyquire.svg?branch=master)](http://travis-ci.org/thlorenz/proxyquire)
[![NPM](https://nodei.co/npm/proxyquire.png?downloads=true&stars=true)](https://nodei.co/npm/proxyquire/)
<span>
<a href="https://nodei.co/npm/proxyquire/"><img src="https://nodei.co/npm/proxyquire.png?downloads=true&stars=true"></a>
<a href="https://www.patreon.com/bePatron?u=8663953"><img alt="become a patron" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="69px"></a>
</span>

@@ -5,0 +8,0 @@ Proxies nodejs's require in order to make overriding dependencies during testing easy while staying **totally unobtrusive**.

'use strict'
/* global describe, it */
var assert = require('assert')

@@ -6,0 +4,0 @@ var realFoo = require('./samples/foo')

'use strict'
/* global describe, it */
var assert = require('assert')

@@ -6,0 +4,0 @@ var proxyquire = require('..')

'use strict'
/* global describe, it */
var assert = require('assert')

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

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

@@ -5,0 +4,0 @@ var proxyquire = require('..')

'use strict'
/* global describe, before, it */
var proxyquire = require('..').noCallThru()

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

'use strict'
/* global describe, it */
var assert = require('assert')

@@ -6,0 +4,0 @@ var realFoo = require('./samples/global/foo')

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

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

'use strict'
/* global describe, before, it */
var assert = require('assert')

@@ -6,0 +4,0 @@ var proxyquire = require('..')

'use strict'
/* global describe, it */
var assert = require('assert')

@@ -6,0 +4,0 @@ var proxyquire = require('..')

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

@@ -6,0 +5,0 @@ var proxyquire = require('..')

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

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

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

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

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

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