@pintahub/shopify-api 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
27
27
  status
28
28
  featuredImage {
29
29
  altText
30
- url(transform: {preferredContentType: PNG, maxWidth: 1024})
30
+ url(transform: {preferredContentType: PNG, maxWidth: 1200})
31
31
  width
32
32
  height
33
33
  }
@@ -67,7 +67,13 @@ class GetProduct extends ActionBuilder_1.ActionBuilder {
67
67
  }
68
68
  }
69
69
  `;
70
- const { data } = yield this.client.request(query);
70
+ const { data, errors, extensions } = yield this.client.request(query);
71
+ if (errors) {
72
+ const { message } = Object.assign({}, errors);
73
+ if (message) {
74
+ throw new Error(message);
75
+ }
76
+ }
71
77
  const { product } = Object.assign({}, data);
72
78
  return Object.assign({
73
79
  status: 'DELETED'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/shopify-api",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",