@alicloud/alfa-core 1.4.34 → 1.4.35
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.
package/es/utils/getManifest.js
CHANGED
|
@@ -7,7 +7,12 @@ import { getRelativePath, getFeatureStatus } from './index';
|
|
|
7
7
|
var formatURL = function formatURL(origin, base) {
|
|
8
8
|
// incorrect: new URL('../b', 'https://example.com/a/c') => https://example.com/b
|
|
9
9
|
// correct: new URL('../b', 'https://example.com/a/c/') => https://example.com/a/b
|
|
10
|
-
|
|
10
|
+
try {
|
|
11
|
+
return new URL(origin, base.endsWith('/') ? base : "".concat(base, "/")).toString();
|
|
12
|
+
} catch (e) {
|
|
13
|
+
// base maybe not legal
|
|
14
|
+
return origin;
|
|
15
|
+
}
|
|
11
16
|
};
|
|
12
17
|
|
|
13
18
|
/**
|
package/lib/utils/getManifest.js
CHANGED
|
@@ -14,7 +14,12 @@ var _index = require("./index");
|
|
|
14
14
|
var formatURL = function formatURL(origin, base) {
|
|
15
15
|
// incorrect: new URL('../b', 'https://example.com/a/c') => https://example.com/b
|
|
16
16
|
// correct: new URL('../b', 'https://example.com/a/c/') => https://example.com/a/b
|
|
17
|
-
|
|
17
|
+
try {
|
|
18
|
+
return new URL(origin, base.endsWith('/') ? base : "".concat(base, "/")).toString();
|
|
19
|
+
} catch (e) {
|
|
20
|
+
// base maybe not legal
|
|
21
|
+
return origin;
|
|
22
|
+
}
|
|
18
23
|
};
|
|
19
24
|
|
|
20
25
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.35",
|
|
4
4
|
"description": "MicroFront End SDK for alicloud",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"axios": "^0.21.4",
|
|
29
29
|
"crypto-js": "^4.1.1",
|
|
30
30
|
"tslib": "^2.4.0",
|
|
31
|
-
"@alicloud/console-os-kernal": "^1.4.
|
|
31
|
+
"@alicloud/console-os-kernal": "^1.4.37"
|
|
32
32
|
},
|
|
33
33
|
"gitHead": "6387c6b9e984da70641716a25ff92d382cc4d7ca",
|
|
34
34
|
"scripts": {
|