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 1.1.22 to 1.1.23

35

lib/metadata.js

@@ -9,5 +9,3 @@ /*jshint node:true */

var retsSession;
/*

@@ -31,3 +29,3 @@ * Retrieves RETS Metadata.

if (!retsSession) {
if (!this.retsSession) {
if(typeof callback === "function")

@@ -47,3 +45,3 @@ callback(new Error("System data not set; invoke login first."));

retsSession(options, function(error, response, data) {
this.retsSession(options, function(error, response, data) {

@@ -134,3 +132,3 @@ var isErr = error || false;

var getSystem = function(callback) {
getMetadata("METADATA-SYSTEM", "0", "COMPACT", function(error, data) {
this.getMetadata("METADATA-SYSTEM", "0", "COMPACT", function(error, data) {
if (error) {

@@ -171,3 +169,3 @@ callback(error);

getMetadata("METADATA-RESOURCE", "0", "COMPACT", function(error, data) {
this.getMetadata("METADATA-RESOURCE", "0", "COMPACT", function(error, data) {

@@ -202,3 +200,3 @@ if (error) {

getForeignKeys("0", function(error, data) {
this.getForeignKeys("0", function(error, data) {
if(typeof callback === "function") {

@@ -226,3 +224,3 @@ callback(error, data);

getMetadata("METADATA-FOREIGNKEYS", resourceType, "COMPACT", function(error, data) {
this.getMetadata("METADATA-FOREIGNKEYS", resourceType, "COMPACT", function(error, data) {

@@ -257,3 +255,3 @@ if (error) {

getClass("0", function(error, data) {
this.getClass("0", function(error, data) {
if(typeof callback === "function") {

@@ -281,3 +279,3 @@ callback(error, data);

getMetadata("METADATA-CLASS", resourceType, "COMPACT", function(error, data) {
this.getMetadata("METADATA-CLASS", resourceType, "COMPACT", function(error, data) {

@@ -313,3 +311,3 @@ if (error) {

getTable("0", "", function(error, data) {
this.getTable("0", "", function(error, data) {
if(typeof callback === "function") {

@@ -345,3 +343,3 @@ callback(error, data);

getMetadata("METADATA-TABLE", params, "COMPACT", function(error, data) {
this.getMetadata("METADATA-TABLE", params, "COMPACT", function(error, data) {

@@ -377,3 +375,3 @@ if (error) {

getLookups("0", function(error, data) {
this.getLookups("0", function(error, data) {
if(typeof callback === "function") {

@@ -401,3 +399,3 @@ callback(error, data);

getMetadata("METADATA-LOOKUP", resourceType, "COMPACT", function(error, data) {
this.getMetadata("METADATA-LOOKUP", resourceType, "COMPACT", function(error, data) {

@@ -434,3 +432,3 @@ if (error) {

getLookupTypes("0", "", function(error, data) {
this.getLookupTypes("0", "", function(error, data) {
if(typeof callback === "function") {

@@ -466,3 +464,3 @@ callback(error, data);

getMetadata("METADATA-LOOKUP_TYPE", params, "COMPACT", function(error, data) {
this.getMetadata("METADATA-LOOKUP_TYPE", params, "COMPACT", function(error, data) {

@@ -506,3 +504,3 @@ if (error) {

getMetadata("METADATA-OBJECT", resourceType, "COMPACT", function(error, data) {
this.getMetadata("METADATA-OBJECT", resourceType, "COMPACT", function(error, data) {

@@ -532,5 +530,4 @@ if (error) {

retsSession = _retsSession;
return {
retsSession: _retsSession,
getMetadata: getMetadata,

@@ -537,0 +534,0 @@ getSystem: getSystem,

@@ -9,4 +9,2 @@ /*jshint node:true */

var retsSession;
/**

@@ -30,3 +28,3 @@ * Retrieves RETS object data.

if (!retsSession) {
if (!this.retsSession) {
if(typeof callback === "function")

@@ -51,3 +49,3 @@ callback(new Error("System data not set; invoke login first."));

});
var req = retsSession(options);
var req = this.retsSession(options);

@@ -95,3 +93,3 @@ //pipe object data to stream buffer

var getPhotos = function(resourceType, photoType, matrixId, callback) {
getObject(resourceType, photoType, matrixId+":*", function(error, contentType, data) {
this.getObject(resourceType, photoType, matrixId+":*", function(error, contentType, data) {

@@ -108,5 +106,4 @@ var multipartBoundary = contentType.match(/boundary=(?:"([^"]+)"|([^;]+))/i)[1];

retsSession = _retsSession;
return {
retsSession: _retsSession,
getObject: getObject,

@@ -113,0 +110,0 @@ getPhotos: getPhotos

@@ -9,4 +9,2 @@ /*jshint node:true */

var retsSession;
function mergeInto(o1, o2) {

@@ -125,3 +123,3 @@ if (o1 === null || o2 === null)

if (!retsSession) {
if (!this.retsSession) {
if(typeof callback === "function")

@@ -139,3 +137,3 @@ callback(new Error("System data not set; invoke login first."));

retsSession(options, function(error, response, body) {
this.retsSession(options, function(error, response, body) {

@@ -223,3 +221,3 @@ var isErr = error || false;

searchRets(queryOpts, function(error, data) {
this.searchRets(queryOpts, function(error, data) {
parseCompactDecoded(data, function(error, data) {

@@ -291,3 +289,3 @@ if(typeof callback === "function") {

searchRets(queryOpts, function(error, data) {
this.searchRets(queryOpts, function(error, data) {
parseCompactDecoded(data, function(error, data) {

@@ -302,5 +300,5 @@ if(typeof callback === "function") {

module.exports = function(_retsSession) {
retsSession = _retsSession;
return {
retsSession: _retsSession,
searchRets:searchRets,

@@ -307,0 +305,0 @@ query: query,

{
"name": "rets-client",
"version": "1.1.22",
"version": "1.1.23",
"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