@commercetools-backend/express 22.3.0 → 22.3.1

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.
@@ -46,14 +46,16 @@ const CLOUD_IDENTIFIERS = {
46
46
  GCP_EU: 'gcp-eu',
47
47
  GCP_US: 'gcp-us',
48
48
  AWS_FRA: 'aws-fra',
49
- AWS_OHIO: 'aws-ohio'
49
+ AWS_OHIO: 'aws-ohio',
50
+ AWS_CN: 'aws-cn'
50
51
  };
51
52
  const MC_API_URLS = {
52
53
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
53
54
  GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
54
55
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
55
56
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
56
- AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
57
+ AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
58
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
57
59
  };
58
60
  const MC_API_PROXY_HEADERS = {
59
61
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -121,6 +123,8 @@ const mapCloudIdentifierToIssuer = issuer => {
121
123
  return MC_API_URLS.AWS_FRA;
122
124
  case CLOUD_IDENTIFIERS.AWS_OHIO:
123
125
  return MC_API_URLS.AWS_OHIO;
126
+ case CLOUD_IDENTIFIERS.AWS_CN:
127
+ return MC_API_URLS.AWS_CN;
124
128
  default:
125
129
  return undefined;
126
130
  }
@@ -46,14 +46,16 @@ const CLOUD_IDENTIFIERS = {
46
46
  GCP_EU: 'gcp-eu',
47
47
  GCP_US: 'gcp-us',
48
48
  AWS_FRA: 'aws-fra',
49
- AWS_OHIO: 'aws-ohio'
49
+ AWS_OHIO: 'aws-ohio',
50
+ AWS_CN: 'aws-cn'
50
51
  };
51
52
  const MC_API_URLS = {
52
53
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
53
54
  GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
54
55
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
55
56
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
56
- AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
57
+ AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
58
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
57
59
  };
58
60
  const MC_API_PROXY_HEADERS = {
59
61
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -121,6 +123,8 @@ const mapCloudIdentifierToIssuer = issuer => {
121
123
  return MC_API_URLS.AWS_FRA;
122
124
  case CLOUD_IDENTIFIERS.AWS_OHIO:
123
125
  return MC_API_URLS.AWS_OHIO;
126
+ case CLOUD_IDENTIFIERS.AWS_CN:
127
+ return MC_API_URLS.AWS_CN;
124
128
  default:
125
129
  return undefined;
126
130
  }
@@ -23,14 +23,16 @@ const CLOUD_IDENTIFIERS = {
23
23
  GCP_EU: 'gcp-eu',
24
24
  GCP_US: 'gcp-us',
25
25
  AWS_FRA: 'aws-fra',
26
- AWS_OHIO: 'aws-ohio'
26
+ AWS_OHIO: 'aws-ohio',
27
+ AWS_CN: 'aws-cn'
27
28
  };
28
29
  const MC_API_URLS = {
29
30
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
30
31
  GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
31
32
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
32
33
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
33
- AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
34
+ AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
35
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
34
36
  };
35
37
  const MC_API_PROXY_HEADERS = {
36
38
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -98,6 +100,8 @@ const mapCloudIdentifierToIssuer = issuer => {
98
100
  return MC_API_URLS.AWS_FRA;
99
101
  case CLOUD_IDENTIFIERS.AWS_OHIO:
100
102
  return MC_API_URLS.AWS_OHIO;
103
+ case CLOUD_IDENTIFIERS.AWS_CN:
104
+ return MC_API_URLS.AWS_CN;
101
105
  default:
102
106
  return undefined;
103
107
  }
@@ -4,6 +4,7 @@ export declare const CLOUD_IDENTIFIERS: {
4
4
  readonly GCP_US: "gcp-us";
5
5
  readonly AWS_FRA: "aws-fra";
6
6
  readonly AWS_OHIO: "aws-ohio";
7
+ readonly AWS_CN: "aws-cn";
7
8
  };
8
9
  export declare const MC_API_URLS: {
9
10
  readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
@@ -11,6 +12,7 @@ export declare const MC_API_URLS: {
11
12
  readonly GCP_US: "https://mc-api.us-central1.gcp.commercetools.com";
12
13
  readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
13
14
  readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
15
+ readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
14
16
  };
15
17
  export declare const MC_API_PROXY_HEADERS: {
16
18
  readonly FORWARD_TO_VERSION: "x-mc-api-forward-to-version";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-backend/express",
3
- "version": "22.3.0",
3
+ "version": "22.3.1",
4
4
  "description": "Zero-config HTTP server as Express.js to facilitate development",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {