Socket
Socket
Sign inDemoInstall

mock-require

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

3

index.js

@@ -7,2 +7,3 @@ 'use strict';

const resolve = require('path').resolve;
const pathsep = require('path').sep;
const getCallerFile = require('get-caller-file');

@@ -66,3 +67,3 @@ const normalize = require('normalize-path');

.map((nodePath) => {
return resolve(process.cwd(), nodePath) + '/';
return resolve(process.cwd(), nodePath) + pathsep;
})

@@ -69,0 +70,0 @@ .some((fullNodePath) => {

{
"name": "mock-require",
"version": "3.0.2",
"version": "3.0.3",
"description": "Simple, intuitive mocking of Node.js modules.",

@@ -14,2 +14,3 @@ "main": "index.js",

"devDependencies": {
"cross-env": "^5.2.0",
"eslint": "^4.15.0",

@@ -20,3 +21,3 @@ "mocha": "^4.1.0"

"lint": "eslint .",
"test": "NODE_PATH=test/node-path mocha ./test/runner"
"test": "cross-env NODE_PATH=test/node-path mocha ./test/runner"
},

@@ -23,0 +24,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc