streams: refactor LazyTransform to internal/
authorBrendan Ashworth <brendan.ashworth@me.com>
Wed, 26 Aug 2015 21:41:28 +0000 (14:41 -0700)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Tue, 15 Sep 2015 17:53:21 +0000 (13:53 -0400)
commiteaa8e60b91eaedd65befa62a4493c110c5f4a148
tree604b14c36177d3e6bfb23913463e43e8d04dd9d9
parent6108ea9bb4530b756c5ebe13477bf7e3d4255b30
streams: refactor LazyTransform to internal/

This commit refactors LazyTransform from the crypto implementation
(lib/crypto.js) into an internal module (not publicy accessible) in
internal/streams/lazy_transform.js. This promotes a more modular core
design and removes code bloat in crypto, as LazyTransform didn't
specifically have anything to do with cryptography, but rather a fast
way to support two APIs on a stream.

PR-URL: https://github.com/nodejs/node/pull/2566
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
lib/crypto.js
lib/internal/streams/lazy_transform.js [new file with mode: 0644]
node.gyp