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

rewiremock

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rewiremock - npm Package Compare versions

Comparing version 3.7.5 to 3.7.6

4

package.json
{
"name": "rewiremock",
"version": "3.7.5",
"version": "3.7.6",
"description": "Advanced dependency mocking device.",

@@ -79,3 +79,3 @@ "main": "lib/index.js",

"wipe-node-cache": "^1.1.0",
"wipe-webpack-cache": "^1.0.2"
"wipe-webpack-cache": "^1.0.3"
},

@@ -82,0 +82,0 @@ "devDependencies": {

@@ -8,3 +8,9 @@ const {relative} = require("path");

const injectString = "/***/if(typeof __webpack_require__!=='undefined'){__webpack_require__ = __webpack_require__('" + file + "')(__webpack_require__, module);}\n";
const injectString = `/***/if(typeof __webpack_require__!=='undefined') {
var rewiremockInterceptor = __webpack_require__('${file}');
if (rewiremockInterceptor) {
__webpack_require__ = rewiremockInterceptor(__webpack_require__, module);
}
}
`;

@@ -18,3 +24,3 @@ class RewiremockPlugin {

if (moduleSource.source().indexOf('require') > 0) {
source.add(injectString);
source.add(injectString);
}

@@ -21,0 +27,0 @@ source.add(moduleSource);

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