From d5577e3e035c04b63bbbccbfc887e4d39f423723 Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Wed, 3 May 2017 22:41:59 +0530 Subject: [PATCH 1/6] bug fix xmlsecure client added --- src/magento.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/magento.js b/src/magento.js index 1d3938b..ac6c6d7 100644 --- a/src/magento.js +++ b/src/magento.js @@ -77,7 +77,11 @@ function Magento(config) { } this.config = magentoConfig; - this.client = xmlrpc.createClient(this.config); + if (!config.secure) { + this.client = xmlrpc.createClient(this.config); + } else { + this.client = xmlrpc.createSecureClient(this.config); + } this.queue = []; this.queue.running = 0; this.queue.parallelLimit = this.config.parallelLimit; From cd97a38d63bc7218b434f77ce40342c6b05c0c15 Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Wed, 3 May 2017 22:52:10 +0530 Subject: [PATCH 2/6] fixed --- src/magento.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magento.js b/src/magento.js index ac6c6d7..d3535cf 100644 --- a/src/magento.js +++ b/src/magento.js @@ -77,7 +77,7 @@ function Magento(config) { } this.config = magentoConfig; - if (!config.secure) { + if (!config.is_secure) { this.client = xmlrpc.createClient(this.config); } else { this.client = xmlrpc.createSecureClient(this.config); From b250c556968f5f0943e8d334f72020d0feaf1ca0 Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Thu, 4 May 2017 12:22:29 +0530 Subject: [PATCH 3/6] using if port 443 xmlrpcsecureclient --- src/magento.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/magento.js b/src/magento.js index d3535cf..8e736a1 100644 --- a/src/magento.js +++ b/src/magento.js @@ -48,7 +48,9 @@ var configDefaults = { path: mandatory, login: mandatory, pass: mandatory, - parallelLimit: Infinity + parallelLimit: Infinity, + is_secure: false, + secure: false }; /** @@ -77,10 +79,10 @@ function Magento(config) { } this.config = magentoConfig; - if (!config.is_secure) { - this.client = xmlrpc.createClient(this.config); + if (this.config.is_secure || this.config.secure || this.config.port == 443) { + this.client = xmlrpc.createSecureClient(this.config); } else { - this.client = xmlrpc.createSecureClient(this.config); + this.client = xmlrpc.createClient(this.config); } this.queue = []; this.queue.running = 0; From 1f98908999903a08a782bd62eacc202b9efcbc0a Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Wed, 28 Mar 2018 16:42:11 +0530 Subject: [PATCH 4/6] magento secure name changed --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4ebf39..4555eea 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "magento", + "name": "magento-secure", "author": "Tim Marshall ", "description": "Magento SOAP API wrapper for Node.js", "version": "0.0.5", From 87af153c36724df7acb81c3958e9b5403fd0a243 Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Wed, 28 Mar 2018 16:42:33 +0530 Subject: [PATCH 5/6] 0.0.6 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4555eea..567bd81 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "magento-secure", "author": "Tim Marshall ", "description": "Magento SOAP API wrapper for Node.js", - "version": "0.0.5", + "version": "0.0.6", "main": "./src/magento", "contributors": [ { @@ -13,7 +13,7 @@ "engines": { "node": ">=0.10.20" }, - "dependencies" : { + "dependencies": { "request": "2.34.0", "xmlrpc": "1.2.0" }, From ba7e0f26334ebf1d6ef4a5dae06873f9fd2ad738 Mon Sep 17 00:00:00 2001 From: Abhilash KM Date: Wed, 28 Mar 2018 16:44:18 +0530 Subject: [PATCH 6/6] magento secure name changed --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 567bd81..8f532dd 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,6 @@ "api", "xml" ], - "repository": "git://github.com/MadisonReed/magentoapi", + "repository": "https://github.com/aaabhilash97/magentoapi.git", "license": "MIT" }