index.js 575 B

12345678910111213141516171819202122
  1. 'use strict';
  2. var implementation = require('./implementation');
  3. var getPolyfill = require('./polyfill');
  4. var polyfill = getPolyfill();
  5. var shim = require('./shim');
  6. var define = require('define-properties');
  7. var streamModule = require('stream');
  8. /* eslint-disable no-unused-vars */
  9. var boundFinished = function finished(stream, opts, callback) {
  10. /* eslint-enable no-unused-vars */
  11. return polyfill.apply(streamModule, arguments);
  12. };
  13. define(boundFinished, {
  14. getPolyfill: getPolyfill,
  15. implementation: implementation,
  16. shim: shim
  17. });
  18. module.exports = boundFinished;