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 3.2.1 to 3.2.2

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,7 +8,12 @@ rets-client

#### 3.2.2
Version 3.2.2 adds support for per-object errors when calling `client.objects.getPhotos()`. The
[Example RETS Session](#example-rets-session) illustrates proper error checking.
#### 3.2.0
Version 3.2 passes through any multipart headers (except for content-disposition, which gets split up
first, and content-type/content-transfer-encoding which are hidden) onto the objects resolved from
`client.objects.getPhotos()`. It also fixes a race condition in `client.objects.getPhotos()`.
Version 3.2 passes through any multipart headers (except for content-disposition, which gets split up first;
content-type which is renamed to `mime`; and content-transfer-encoding which is used internally and not passed) onto
the objects resolved from `client.objects.getPhotos()`. It also fixes a race condition in `client.objects.getPhotos()`.

@@ -45,3 +50,4 @@ #### 3.1.0

This interface uses promises, and an optional stream-based interface for better performance with large search results.
Future development will include an optional stream-based interface for large objects.
Future development will include an optional stream-based interface for object downloads, and an improved API for the
non-streaming object methods.

@@ -65,3 +71,3 @@ This library is written primarily in CoffeeScript, but may be used just as easily in a Node app using Javascript or

#### TODO
- create optional streaming interface for object downloads; when implemented, this will be a minor version bump
- create optional streaming interface for object downloads; when implemented, this will be a 4.0 release
- create unit tests -- specifically ones that run off example RETS data rather than requiring access to a real RETS server

@@ -176,7 +182,18 @@

for (var i = 0; i < photoList.length; i++) {
console.log("Photo " + (i + 1) + " MIME type: " + photoList[i].mime);
fs.writeFileSync(
"/tmp/photo" + (i + 1) + "." + photoList[i].mime.match(/\w+\/(\w+)/i)[1],
photoList[i].buffer
);
if (photoList[i].error) {
var msg;
if (photoList[i].error instanceof rets.RetsReplyError) {
msg = "Photo " + (i + 1) + " had an error: " + photoList[i].error;
} else {
msg = "Parsing error encountered after photo " + i +
"; more photos may have been available. Error: " + photoList[i].error;
}
console.log(msg);
} else {
console.log("Photo " + (i + 1) + " MIME type: " + photoList[i].mime);
fs.writeFileSync(
"/tmp/photo" + (i + 1) + "." + photoList[i].mime.match(/\w+\/(\w+)/i)[1],
photoList[i].buffer
);
}
}

@@ -183,0 +200,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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