From 1d3079b4c3d73c48295e53f85f378e3a67024190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Romanowicz?= <46789227+lukeromanowicz@users.noreply.github.com> Date: Thu, 9 May 2019 08:38:16 +0200 Subject: [PATCH] Export RestClient in Magento1VSBridgetClient --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5b9f09d..d24982a 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ module.exports.Magento1Client = function (options) { options.version = MAGENTO_API_VERSION; - let client = RestClient(options); + const client = RestClient(options); instance.user = user(client); instance.cart = cart(client); @@ -37,6 +37,7 @@ module.exports.Magento1Client = function (options) { instance.stockAlert = stockAlert(client); instance.newsletter = newsletter(client); instance.address = address(client); - + instance.client = client + return instance; };