@commercetools-frontend/application-config 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.
|
@@ -81,7 +81,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
81
81
|
AWS_FRA: 'aws-fra',
|
|
82
82
|
AWS_OHIO: 'aws-ohio',
|
|
83
83
|
AWS_CN: 'aws-cn',
|
|
84
|
-
AZURE_US: 'azure-us'
|
|
84
|
+
AZURE_US: 'azure-us',
|
|
85
|
+
AZURE_EU: 'azure-eu'
|
|
85
86
|
};
|
|
86
87
|
const MC_API_URLS = {
|
|
87
88
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -90,7 +91,8 @@ const MC_API_URLS = {
|
|
|
90
91
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
91
92
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
92
93
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
93
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
94
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
95
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
94
96
|
};
|
|
95
97
|
const LOADED_CONFIG_TYPES = {
|
|
96
98
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1091,6 +1093,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1091
1093
|
return MC_API_URLS.AWS_CN;
|
|
1092
1094
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1093
1095
|
return MC_API_URLS.AZURE_US;
|
|
1096
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1097
|
+
return MC_API_URLS.AZURE_EU;
|
|
1094
1098
|
default:
|
|
1095
1099
|
// We would probably never get to this point, as the JSON schema validation
|
|
1096
1100
|
// kicks in before.
|
|
@@ -81,7 +81,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
81
81
|
AWS_FRA: 'aws-fra',
|
|
82
82
|
AWS_OHIO: 'aws-ohio',
|
|
83
83
|
AWS_CN: 'aws-cn',
|
|
84
|
-
AZURE_US: 'azure-us'
|
|
84
|
+
AZURE_US: 'azure-us',
|
|
85
|
+
AZURE_EU: 'azure-eu'
|
|
85
86
|
};
|
|
86
87
|
const MC_API_URLS = {
|
|
87
88
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -90,7 +91,8 @@ const MC_API_URLS = {
|
|
|
90
91
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
91
92
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
92
93
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
93
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
94
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
95
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
94
96
|
};
|
|
95
97
|
const LOADED_CONFIG_TYPES = {
|
|
96
98
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1091,6 +1093,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1091
1093
|
return MC_API_URLS.AWS_CN;
|
|
1092
1094
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1093
1095
|
return MC_API_URLS.AZURE_US;
|
|
1096
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1097
|
+
return MC_API_URLS.AZURE_EU;
|
|
1094
1098
|
default:
|
|
1095
1099
|
// We would probably never get to this point, as the JSON schema validation
|
|
1096
1100
|
// kicks in before.
|
|
@@ -49,7 +49,8 @@ const CLOUD_IDENTIFIERS = {
|
|
|
49
49
|
AWS_FRA: 'aws-fra',
|
|
50
50
|
AWS_OHIO: 'aws-ohio',
|
|
51
51
|
AWS_CN: 'aws-cn',
|
|
52
|
-
AZURE_US: 'azure-us'
|
|
52
|
+
AZURE_US: 'azure-us',
|
|
53
|
+
AZURE_EU: 'azure-eu'
|
|
53
54
|
};
|
|
54
55
|
const MC_API_URLS = {
|
|
55
56
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
@@ -58,7 +59,8 @@ const MC_API_URLS = {
|
|
|
58
59
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
59
60
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
60
61
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
61
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
|
|
62
|
+
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
63
|
+
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
62
64
|
};
|
|
63
65
|
const LOADED_CONFIG_TYPES = {
|
|
64
66
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1059,6 +1061,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1059
1061
|
return MC_API_URLS.AWS_CN;
|
|
1060
1062
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1061
1063
|
return MC_API_URLS.AZURE_US;
|
|
1064
|
+
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1065
|
+
return MC_API_URLS.AZURE_EU;
|
|
1062
1066
|
default:
|
|
1063
1067
|
// We would probably never get to this point, as the JSON schema validation
|
|
1064
1068
|
// kicks in before.
|
|
@@ -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 LOADED_CONFIG_TYPES: {
|
|
20
22
|
readonly CUSTOM_APPLICATION: "custom-application";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.34.0",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@babel/register": "^7.22.15",
|
|
46
46
|
"@babel/runtime": "^7.22.15",
|
|
47
47
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
48
|
-
"@commercetools-frontend/babel-preset-mc-app": "22.
|
|
49
|
-
"@commercetools-frontend/constants": "22.
|
|
48
|
+
"@commercetools-frontend/babel-preset-mc-app": "22.34.0",
|
|
49
|
+
"@commercetools-frontend/constants": "22.34.0",
|
|
50
50
|
"@types/dompurify": "^2.4.0",
|
|
51
51
|
"@types/lodash": "^4.14.198",
|
|
52
52
|
"@types/react": "^17.0.80",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/jsdom": "^21.1.2",
|
|
63
63
|
"json-schema-to-typescript": "13.1.2",
|
|
64
64
|
"shelljs": "0.8.5",
|
|
65
|
-
"@commercetools-frontend/assets": "22.
|
|
65
|
+
"@commercetools-frontend/assets": "22.34.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "16.x || >=18.0.0"
|