@sp-api-sdk/orders-api-v0
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -655,3 +655,4 @@ import globalAxios from 'axios'; | ||
const configuration = new Configuration(); | ||
const endpoint = endpoints.sandbox[parameters.region]; | ||
const environment = parameters.sandbox ? 'sandbox' : 'production'; | ||
const endpoint = endpoints[environment][parameters.region]; | ||
if (!endpoint) { | ||
@@ -658,0 +659,0 @@ throw new OrdersApiError(`Unknown region : ${parameters.region}`); |
@@ -663,3 +663,4 @@ 'use strict'; | ||
const configuration = new Configuration(); | ||
const endpoint = common.endpoints.sandbox[parameters.region]; | ||
const environment = parameters.sandbox ? 'sandbox' : 'production'; | ||
const endpoint = common.endpoints[environment][parameters.region]; | ||
if (!endpoint) { | ||
@@ -666,0 +667,0 @@ throw new OrdersApiError(`Unknown region : ${parameters.region}`); |
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
@@ -47,3 +47,3 @@ "module": "dist/index.es.js", | ||
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/orders-api-v0", | ||
"gitHead": "274784d33011859a0420d05c147c1bad6106597b" | ||
"gitHead": "cd78b8e2ce4ae17eef56606ac7aec8446f7fc62b" | ||
} |
200674
3084