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

wrench

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrench - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

lib/wrench.js

@@ -296,3 +296,3 @@ /* wrench.js

if(typof failSilent === 'function')
if(typeof failSilent === 'function')
clbk = failSilent;

@@ -299,0 +299,0 @@

{
"name": "wrench",
"description": "Recursive filesystem (and other) operations that Node *should* have.",
"version": "1.5.0",
"version": "1.5.1",
"author": "Ryan McGrath <ryan@venodesigns.net>",

@@ -6,0 +6,0 @@

@@ -11,2 +11,25 @@ wrench.js - Recursive file operations in Node.js

Possibly Breaking Change in v1.5.0
-----------------------------------------------------------------------------
In previous versions of Wrench, we went against the OS-default behavior of not
deleting a directory unless the operation is forced. In 1.5.0, this has been
changed to be the behavior people expect there to be - if you try to copy over
a directory that already exists, you'll get an Error returned or thrown stating
that you need to force it.
Something like this will do the trick:
``` javascript
wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up', {
forceDelete: true
});
```
If you desire the older behavior of Wrench... hit up your package.json. If you
happen to find bugs in the 1.5.0 release please feel free to file them on the
GitHub issues tracker for this project, or send me a pull request and I'll get to
it as fast as I can. Thanks!
**If this breaks enough projects I will consider rolling it back. Please hit me up if this seems to be the case.**
Installation

@@ -13,0 +36,0 @@ -----------------------------------------------------------------------------

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