rewiremock
Advanced tools
Comparing version 3.7.4 to 3.7.5
{ | ||
"name": "rewiremock", | ||
"version": "3.7.4", | ||
"version": "3.7.5", | ||
"description": "Advanced dependency mocking device.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
const {relative} = require("path"); | ||
const {ConcatSource} = require("webpack-sources"); | ||
const file = './' + relative(process.cwd(), __dirname + '/interceptor.js').replace(/\\/g, '/'); | ||
const normalizePath = a => a[0] === '.' ? a : './' + a; | ||
const file = normalizePath(relative(process.cwd(), __dirname + '/interceptor.js').replace(/\\/g, '/')); | ||
const injectString = "/***/if(typeof __webpack_require__!=='undefined'){__webpack_require__ = __webpack_require__('" + file + "')(__webpack_require__, module);}\n"; | ||
@@ -7,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163454
3526