From 0dc3952a5dee98548022d88b143aea18584524a8 Mon Sep 17 00:00:00 2001 From: ctrevorrow Date: Mon, 4 Jun 2018 21:01:34 -0400 Subject: [PATCH 1/3] Adding ability for nest objects in url Adding the ability for Shopify API Proxy to work with URLs with nested objects, such as requests for a single asset file from a store. --- routes/shopifyApiProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/shopifyApiProxy.js b/routes/shopifyApiProxy.js index 6abfc2b..22e990f 100644 --- a/routes/shopifyApiProxy.js +++ b/routes/shopifyApiProxy.js @@ -1,4 +1,4 @@ -const querystring = require('querystring'); +const querystring = require('qs'); const fetch = require('node-fetch'); const DISALLOWED_URLS = [ From 29e3bc83e7980496b6da6ede7639b0f75272e749 Mon Sep 17 00:00:00 2001 From: ctrevorrow Date: Wed, 20 Jun 2018 10:30:34 -0400 Subject: [PATCH 2/3] Adding qs as dependency --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 84c1e94..ff016da 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "knex": "^0.13.0", "node-fetch": "^1.7.3", "prop-types": "^15.6.1", + "qs": "^6.5.2", "raw-body": "^2.3.2", "sqlite3": "^3.1.9", "url": "^0.11.0" From d7174237c5d226babd0c4ad702ca7ba36806097a Mon Sep 17 00:00:00 2001 From: ctrevorrow Date: Wed, 20 Jun 2018 10:47:00 -0400 Subject: [PATCH 3/3] Updating yarn.lock --- yarn.lock | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/yarn.lock b/yarn.lock index 3160a6a..f41f08d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2600,13 +2600,9 @@ punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" -qs@6.5.1, qs@~6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" +qs@^6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" querystring@0.2.0: version "0.2.0"