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

endpoint

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

endpoint - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

14

endpoint.js
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",

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