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.1 to 4.1.2

2

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

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

@@ -211,2 +211,11 @@ rets-client

var Promise = require('bluebird');
// this function doesn't do much, it's just a placeholder for whatever you want to do with the results
var doAsyncProcessing = function (row, index, callback) {
console.log("-------- Result " + index + " --------");
outputFields(row);
// must be sure callback is called when this is done
callback();
}
// establish connection to RETS server which auto-logs out when we're done

@@ -217,2 +226,6 @@ rets.getAutoLogoutClient(clientSettings, function (client) {

return new Promise(function (resolve, reject) {
console.log("====================================");
console.log("======== Streamed Results ========");
console.log("====================================");
var count = 0;
var retsStream = client.search.stream.query("OpenHouse", "OPENHOUSE", "(OpenHouseType=PUBLIC),(ActiveYN=1)", {limit:100, offset:10});

@@ -224,3 +237,4 @@ var processorStream = through2.obj(function (event, encoding, callback) {

// make sure callback is called only when all processing is complete
doAsyncProcessing(event.payload, callback);
count++;
doAsyncProcessing(event.payload, count, callback);
break;

@@ -227,0 +241,0 @@ case 'done':

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