Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fs-monkey

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-monkey - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/patchRequire.js

@@ -26,3 +26,3 @@ 'use strict';

function patchRequire(vol) {
var unixifyPaths = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var unixifyPaths = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var Module = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : require('module');

@@ -29,0 +29,0 @@

{
"name": "fs-monkey",
"version": "0.2.0",
"version": "0.2.1",
"description": "Monkey patches for file system related things.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -35,3 +35,3 @@ import * as path from 'path';

*/
export default function patchRequire(vol, unixifyPaths = true, Module = require('module')) {
export default function patchRequire(vol, unixifyPaths = false, Module = require('module')) {

@@ -38,0 +38,0 @@ // ensure all paths are corrected before use.

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