New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

require-inject

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-inject - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

CHANGELOG.md~

15

CHANGELOG.md

@@ -0,1 +1,15 @@

# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="1.4.4"></a>
## [1.4.4](https://github.com/iarna/require-inject/compare/v1.4.3...v1.4.4) (2018-12-25)
### Bug Fixes
* **loaded:** Ensure mocked module’s loaded state is set. ([#17](https://github.com/iarna/require-inject/issues/17)) ([25cac11](https://github.com/iarna/require-inject/commit/25cac11))
## v1.4.3 (2018-05-04)

@@ -51,2 +65,1 @@

wasn't working as intended.

@@ -81,2 +81,3 @@ 'use strict'

mod.exports = mocks[name]
mod.loaded = true
mod.parent = old ? old.parent : parent

@@ -83,0 +84,0 @@ require.cache[namePath] = mod

19

package.json
{
"name": "require-inject",
"version": "1.4.3",
"version": "1.4.4",
"description": "A simple mock injector compatible needing no instrumentation in the libraries being tested",
"main": "index.js",
"scripts": {
"test": "standard && tap test/*.js"
"pretest": "standard",
"test": "tap test/*.js",
"prerelease": "npm t",
"release": "standard-version -s",
"postrelease": "npm publish && git push --follow-tags",
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},

@@ -24,4 +30,7 @@ "author": "Rebecca Turner <me@re-becca.org> (http://re-becca.org)",

"standard": "^7.1.2",
"standard-version": "*",
"tacks": "1.0.11",
"tap": "^2.2.0"
"tap": "^12.1.1",
"weallbehave": "*",
"weallcontribute": "*"
},

@@ -33,3 +42,5 @@ "dependencies": {

"index.js"
]
],
"bugs": "https://github.com/iarna/require-inject/issues",
"homepage": "https://npmjs.com/package/require-inject"
}

@@ -11,3 +11,3 @@ require-inject

var mymod = requireInject('mymod', {
'fs' => {
'fs': {
stat: function (file,cb) {

@@ -14,0 +14,0 @@ switch (file) {

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