@alicloud/alfa-core 1.5.0-alpha.6 → 1.5.0-alpha.7

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.
@@ -24,8 +24,8 @@ function _requestInterceptor() {
24
24
  if (currentCdnHost !== 'alicdn.com') {
25
25
  // if cdn is not alicdn, replace it
26
26
  if (currentCdnHost && config.url) {
27
- // 非公有云下无 cws2
28
- config.url = config.url.replace(new RegExp('.alicdn.com'), ".".concat(currentCdnHost)).replace('cws2.', 'cws.');
27
+ config.url = config.url.replace(new RegExp('.alicdn.com'), ".".concat(currentCdnHost)).replace('cws2.', 'cws.') // 非公有云下无 cws2
28
+ .replace('dev.g.idptcloud01cdn.com', 'dev-g.idptcloud01cdn.com'); // idptcloud01cdn 无 dev.g 子域名
29
29
  }
30
30
  }
31
31
  return _context.abrupt("return", config);
@@ -31,8 +31,8 @@ function _requestInterceptor() {
31
31
  if (currentCdnHost !== 'alicdn.com') {
32
32
  // if cdn is not alicdn, replace it
33
33
  if (currentCdnHost && config.url) {
34
- // 非公有云下无 cws2
35
- config.url = config.url.replace(new RegExp('.alicdn.com'), ".".concat(currentCdnHost)).replace('cws2.', 'cws.');
34
+ config.url = config.url.replace(new RegExp('.alicdn.com'), ".".concat(currentCdnHost)).replace('cws2.', 'cws.') // 非公有云下无 cws2
35
+ .replace('dev.g.idptcloud01cdn.com', 'dev-g.idptcloud01cdn.com'); // idptcloud01cdn 无 dev.g 子域名
36
36
  }
37
37
  }
38
38
  return _context.abrupt("return", config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-core",
3
- "version": "1.5.0-alpha.6",
3
+ "version": "1.5.0-alpha.7",
4
4
  "description": "MicroFront End SDK for alicloud",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",