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

rets-client

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rets-client - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

28

dist/utils/multipart.js

@@ -22,3 +22,3 @@ // Generated by CoffeeScript 1.10.0

return new Promise(function(resolve, reject) {
var bodyStream, done, flush, flushed, handleEnd, handleError, headerField, headerValue, headers, interceptor, multipartBoundary, objectStream, parser, partDone, ref, ref1, streamError;
var bodyStream, done, flush, flushed, handleEnd, handleError, headerField, headerValue, headers, interceptor, multipartBoundary, objectStream, objectStreamDone, parser, partDone, ref, ref1, streamError;
multipartBoundary = (ref = headerInfo.contentType.match(/boundary="[^"]+"/ig)) != null ? ref[0].slice('boundary="'.length, -1) : void 0;

@@ -33,2 +33,3 @@ if (!multipartBoundary) {

objectStream = through2.obj();
objectStreamDone = false;
headerField = '';

@@ -42,2 +43,5 @@ headerValue = '';

flushed = false;
objectStream.on('end', function() {
return objectStreamDone = true;
});
handleError = function(err) {

@@ -49,2 +53,5 @@ if (bodyStream) {

}
if (objectStreamDone) {
return;
}
if (!err.error || !err.headerInfo) {

@@ -58,3 +65,3 @@ err = {

handleEnd = function() {
if (done && partDone && flushed) {
if (done && partDone && flushed && !objectStreamDone) {
return objectStream.end();

@@ -89,5 +96,12 @@ }

parser.onHeadersEnd = function() {
var bodyStreamDone;
bodyStream = through2();
bodyStreamDone = false;
bodyStream.on('end', function() {
return bodyStreamDone = true;
});
handler(headers, bodyStream).then(function(object) {
return objectStream.write(object);
if (!objectStreamDone) {
return objectStream.write(object);
}
})["catch"](handleError).then(function() {

@@ -98,6 +112,10 @@ partDone = true;

parser.onPartData = function(b, start, end) {
return bodyStream.write(b.slice(start, end));
if (!bodyStreamDone) {
return bodyStream.write(b.slice(start, end));
}
};
return parser.onPartEnd = function() {
bodyStream.end();
if (!bodyStreamDone) {
bodyStream.end();
}
return bodyStream = null;

@@ -104,0 +122,0 @@ };

2

package.json
{
"name": "rets-client",
"version": "4.1.2",
"version": "4.1.3",
"description": "A RETS client (Real Estate Transaction Standard).",

@@ -5,0 +5,0 @@ "main": "index.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