@commercetools-frontend/application-config 22.3.0 → 22.3.2
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.
|
@@ -600,14 +600,16 @@ const CLOUD_IDENTIFIERS = {
|
|
|
600
600
|
GCP_EU: 'gcp-eu',
|
|
601
601
|
GCP_US: 'gcp-us',
|
|
602
602
|
AWS_FRA: 'aws-fra',
|
|
603
|
-
AWS_OHIO: 'aws-ohio'
|
|
603
|
+
AWS_OHIO: 'aws-ohio',
|
|
604
|
+
AWS_CN: 'aws-cn'
|
|
604
605
|
};
|
|
605
606
|
const MC_API_URLS = {
|
|
606
607
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
607
608
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
608
609
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
609
610
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
610
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
611
|
+
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
612
|
+
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
|
|
611
613
|
};
|
|
612
614
|
|
|
613
615
|
const ajv = new Ajv__default["default"]({
|
|
@@ -753,6 +755,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
753
755
|
return MC_API_URLS.AWS_FRA;
|
|
754
756
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
755
757
|
return MC_API_URLS.AWS_OHIO;
|
|
758
|
+
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
759
|
+
return MC_API_URLS.AWS_CN;
|
|
756
760
|
default:
|
|
757
761
|
// We would probably never get to this point, as the JSON schema validation
|
|
758
762
|
// kicks in before.
|
|
@@ -600,14 +600,16 @@ const CLOUD_IDENTIFIERS = {
|
|
|
600
600
|
GCP_EU: 'gcp-eu',
|
|
601
601
|
GCP_US: 'gcp-us',
|
|
602
602
|
AWS_FRA: 'aws-fra',
|
|
603
|
-
AWS_OHIO: 'aws-ohio'
|
|
603
|
+
AWS_OHIO: 'aws-ohio',
|
|
604
|
+
AWS_CN: 'aws-cn'
|
|
604
605
|
};
|
|
605
606
|
const MC_API_URLS = {
|
|
606
607
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
607
608
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
608
609
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
609
610
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
610
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
611
|
+
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
612
|
+
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
|
|
611
613
|
};
|
|
612
614
|
|
|
613
615
|
const ajv = new Ajv__default["default"]({
|
|
@@ -753,6 +755,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
753
755
|
return MC_API_URLS.AWS_FRA;
|
|
754
756
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
755
757
|
return MC_API_URLS.AWS_OHIO;
|
|
758
|
+
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
759
|
+
return MC_API_URLS.AWS_CN;
|
|
756
760
|
default:
|
|
757
761
|
// We would probably never get to this point, as the JSON schema validation
|
|
758
762
|
// kicks in before.
|
|
@@ -567,14 +567,16 @@ const CLOUD_IDENTIFIERS = {
|
|
|
567
567
|
GCP_EU: 'gcp-eu',
|
|
568
568
|
GCP_US: 'gcp-us',
|
|
569
569
|
AWS_FRA: 'aws-fra',
|
|
570
|
-
AWS_OHIO: 'aws-ohio'
|
|
570
|
+
AWS_OHIO: 'aws-ohio',
|
|
571
|
+
AWS_CN: 'aws-cn'
|
|
571
572
|
};
|
|
572
573
|
const MC_API_URLS = {
|
|
573
574
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
574
575
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
575
576
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
576
577
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
577
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
578
|
+
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
579
|
+
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
|
|
578
580
|
};
|
|
579
581
|
|
|
580
582
|
const ajv = new Ajv({
|
|
@@ -720,6 +722,8 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
720
722
|
return MC_API_URLS.AWS_FRA;
|
|
721
723
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
722
724
|
return MC_API_URLS.AWS_OHIO;
|
|
725
|
+
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
726
|
+
return MC_API_URLS.AWS_CN;
|
|
723
727
|
default:
|
|
724
728
|
// We would probably never get to this point, as the JSON schema validation
|
|
725
729
|
// kicks in before.
|
|
@@ -6,6 +6,7 @@ export declare const CLOUD_IDENTIFIERS: {
|
|
|
6
6
|
readonly GCP_US: "gcp-us";
|
|
7
7
|
readonly AWS_FRA: "aws-fra";
|
|
8
8
|
readonly AWS_OHIO: "aws-ohio";
|
|
9
|
+
readonly AWS_CN: "aws-cn";
|
|
9
10
|
};
|
|
10
11
|
export declare const MC_API_URLS: {
|
|
11
12
|
readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
@@ -13,4 +14,5 @@ export declare const MC_API_URLS: {
|
|
|
13
14
|
readonly GCP_US: "https://mc-api.us-central1.gcp.commercetools.com";
|
|
14
15
|
readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
15
16
|
readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
17
|
+
readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
|
|
16
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "22.3.
|
|
3
|
+
"version": "22.3.2",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/register": "^7.18.9",
|
|
45
45
|
"@babel/runtime": "^7.20.13",
|
|
46
46
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
47
|
-
"@commercetools-frontend/babel-preset-mc-app": "22.3.
|
|
47
|
+
"@commercetools-frontend/babel-preset-mc-app": "22.3.2",
|
|
48
48
|
"@types/dompurify": "^2.4.0",
|
|
49
49
|
"@types/lodash": "^4.14.191",
|
|
50
50
|
"@types/react": "^17.0.53",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@types/jsdom": "^21.1.1",
|
|
61
61
|
"json-schema-to-typescript": "13.0.1",
|
|
62
62
|
"shelljs": "0.8.5",
|
|
63
|
-
"@commercetools-frontend/assets": "22.3.
|
|
63
|
+
"@commercetools-frontend/assets": "22.3.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": "16.x || >=18.0.0"
|