@commercetools-backend/express 22.32.2 → 22.34.0
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,7 +46,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
46
46
|
AWS_FRA: 'aws-fra',
|
|
47
47
|
AWS_OHIO: 'aws-ohio',
|
|
48
48
|
AWS_CN: 'aws-cn',
|
|
49
|
-
AZURE_US: 'azure-us'
|
|
49
|
+
AZURE_US: 'azure-us',
|
|
50
|
+
AZURE_EU: 'azure-eu'
|
|
50
51
|
};
|
|
51
52
|
const MC_API_URLS = {
|
|
52
53
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -55,7 +56,8 @@ const MC_API_URLS = {
|
|
|
55
56
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
56
57
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
57
58
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
58
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
59
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
60
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
59
61
|
};
|
|
60
62
|
const MC_API_PROXY_HEADERS = {
|
|
61
63
|
FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
|
|
@@ -127,6 +129,8 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
127
129
|
return MC_API_URLS.AWS_CN;
|
|
128
130
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
129
131
|
return MC_API_URLS.AZURE_US;
|
|
132
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
133
|
+
return MC_API_URLS.AZURE_EU;
|
|
130
134
|
default:
|
|
131
135
|
return undefined;
|
|
132
136
|
}
|
|
@@ -46,7 +46,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
46
46
|
AWS_FRA: 'aws-fra',
|
|
47
47
|
AWS_OHIO: 'aws-ohio',
|
|
48
48
|
AWS_CN: 'aws-cn',
|
|
49
|
-
AZURE_US: 'azure-us'
|
|
49
|
+
AZURE_US: 'azure-us',
|
|
50
|
+
AZURE_EU: 'azure-eu'
|
|
50
51
|
};
|
|
51
52
|
const MC_API_URLS = {
|
|
52
53
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -55,7 +56,8 @@ const MC_API_URLS = {
|
|
|
55
56
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
56
57
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
57
58
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
58
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
59
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
60
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
59
61
|
};
|
|
60
62
|
const MC_API_PROXY_HEADERS = {
|
|
61
63
|
FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
|
|
@@ -127,6 +129,8 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
127
129
|
return MC_API_URLS.AWS_CN;
|
|
128
130
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
129
131
|
return MC_API_URLS.AZURE_US;
|
|
132
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
133
|
+
return MC_API_URLS.AZURE_EU;
|
|
130
134
|
default:
|
|
131
135
|
return undefined;
|
|
132
136
|
}
|
|
@@ -24,7 +24,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
24
24
|
AWS_FRA: 'aws-fra',
|
|
25
25
|
AWS_OHIO: 'aws-ohio',
|
|
26
26
|
AWS_CN: 'aws-cn',
|
|
27
|
-
AZURE_US: 'azure-us'
|
|
27
|
+
AZURE_US: 'azure-us',
|
|
28
|
+
AZURE_EU: 'azure-eu'
|
|
28
29
|
};
|
|
29
30
|
const MC_API_URLS = {
|
|
30
31
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -33,7 +34,8 @@ const MC_API_URLS = {
|
|
|
33
34
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
34
35
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
35
36
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
36
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
37
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
38
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
37
39
|
};
|
|
38
40
|
const MC_API_PROXY_HEADERS = {
|
|
39
41
|
FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
|
|
@@ -105,6 +107,8 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
105
107
|
return MC_API_URLS.AWS_CN;
|
|
106
108
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
107
109
|
return MC_API_URLS.AZURE_US;
|
|
110
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
111
|
+
return MC_API_URLS.AZURE_EU;
|
|
108
112
|
default:
|
|
109
113
|
return undefined;
|
|
110
114
|
}
|
|
@@ -6,6 +6,7 @@ export declare const CLOUD_IDENTIFIERS: {
|
|
|
6
6
|
readonly AWS_OHIO: "aws-ohio";
|
|
7
7
|
readonly AWS_CN: "aws-cn";
|
|
8
8
|
readonly AZURE_US: "azure-us";
|
|
9
|
+
readonly AZURE_EU: "azure-eu";
|
|
9
10
|
};
|
|
10
11
|
export declare const MC_API_URLS: {
|
|
11
12
|
readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
@@ -15,6 +16,7 @@ export declare const MC_API_URLS: {
|
|
|
15
16
|
readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
16
17
|
readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
|
|
17
18
|
readonly AZURE_US: "https://mc-api.eastus.azure.commercetools.com";
|
|
19
|
+
readonly AZURE_EU: "https://mc-api.germanywestcentral.azure.commercetools.com";
|
|
18
20
|
};
|
|
19
21
|
export declare const MC_API_PROXY_HEADERS: {
|
|
20
22
|
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
|
+
"version": "22.34.0",
|
|
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": {
|