Comparing version 0.4.1 to 0.4.2
var stream = require('stream'); | ||
var Writable = require('stream').Writable; | ||
var util = require('util'); | ||
if (Writable === undefined) { | ||
try { | ||
Writable = require('readable-stream').Writable; | ||
} catch (e) { | ||
throw new Error('stream v2 is not supported by your node version, upgrade or install readable-stream'); | ||
} | ||
} | ||
function Endpoint(options, callback) { | ||
@@ -14,3 +22,3 @@ if (!(this instanceof Endpoint)) return new Endpoint(options, callback); | ||
stream.Writable.call(this, options); | ||
Writable.call(this, options); | ||
var self = this; | ||
@@ -64,3 +72,3 @@ | ||
module.exports = Endpoint; | ||
util.inherits(Endpoint, stream.Writable); | ||
util.inherits(Endpoint, Writable); | ||
@@ -67,0 +75,0 @@ Endpoint.prototype._write = function (data, encodeing, callback) { |
{ | ||
"name": "endpoint", | ||
"description": "Converts a stream intro a buffer or array of objects", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Andreas Madsen <amwebdk@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "./endpoint.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7904
147