yauzl-clone
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,1 +6,7 @@ # Changelog | ||
* Initial release | ||
## 1.0.1 | ||
* Fix: `.patch` method maintain `this` context in method calls | ||
* README update | ||
* README typo |
@@ -155,3 +155,3 @@ /* -------------------- | ||
return shimmed(reader, totalSize, options, callback); | ||
return shimmed.call(this, reader, totalSize, options, callback); | ||
}; | ||
@@ -171,3 +171,3 @@ } else { | ||
return shimmed(path, null, options, callback); | ||
return shimmed.call(this, path, null, options, callback); | ||
}; | ||
@@ -174,0 +174,0 @@ } |
{ | ||
"name": "yauzl-clone", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Clone yauzl for patching", | ||
@@ -5,0 +5,0 @@ "main": "./lib/", |
@@ -18,2 +18,4 @@ # yauzl-clone.js | ||
[yauzl-promise](https://www.npmjs.com/package/yauzl-promise) and [yauzl-crc](https://www.npmjs.com/package/yauzl-crc), for example, uses this module internally. | ||
When monkey-patching a module, it is good practice to clone the original module first so as not to alter the result of calling `require('yauzl')` somewhere else in your application (perhaps inside a dependency). | ||
@@ -25,3 +27,3 @@ | ||
### `.clone( yauzl [, options ])` | ||
### `.clone( yauzl [, options ] )` | ||
@@ -28,0 +30,0 @@ Options are as follows (defaults shown): |
15178
144