@alicloud/alfa-react 1.4.9-alpha.2 → 1.4.11
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/dist/index.js +5 -5
- package/es/utils/getConsoleConfig.js +3 -3
- package/es/version.js +1 -1
- package/lib/utils/getConsoleConfig.js +3 -3
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/types/version.d.ts +1 -1
|
@@ -28,13 +28,13 @@ var processFeatures = function processFeatures(features) {
|
|
|
28
28
|
blockList = feature.blockList,
|
|
29
29
|
whiteList = feature.whiteList;
|
|
30
30
|
|
|
31
|
-
if (enableBlockList && blockList.includes(md5Uid)) {
|
|
31
|
+
if (enableBlockList && blockList !== null && blockList !== void 0 && blockList.includes(md5Uid)) {
|
|
32
32
|
newFeatures[key] = false;
|
|
33
|
-
} else if (enableWhiteList && whiteList.includes(md5Uid)) {
|
|
33
|
+
} else if (enableWhiteList && whiteList !== null && whiteList !== void 0 && whiteList.includes(md5Uid)) {
|
|
34
34
|
newFeatures[key] = true;
|
|
35
35
|
} else if (enableSampling) {
|
|
36
36
|
var gray = uid.substring(uid.length - 2);
|
|
37
|
-
if (Number(gray) >= sampling * 100 || sampling === 0) newFeatures[key] = false;
|
|
37
|
+
if (Number(gray) >= (sampling !== null && sampling !== void 0 ? sampling : 0) * 100 || sampling === 0) newFeatures[key] = false;
|
|
38
38
|
newFeatures[key] = true;
|
|
39
39
|
} else {
|
|
40
40
|
newFeatures[key] = false;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.4.
|
|
1
|
+
export var version = '1.4.11';
|
|
@@ -39,13 +39,13 @@ var processFeatures = function processFeatures(features) {
|
|
|
39
39
|
blockList = feature.blockList,
|
|
40
40
|
whiteList = feature.whiteList;
|
|
41
41
|
|
|
42
|
-
if (enableBlockList && blockList.includes(md5Uid)) {
|
|
42
|
+
if (enableBlockList && blockList !== null && blockList !== void 0 && blockList.includes(md5Uid)) {
|
|
43
43
|
newFeatures[key] = false;
|
|
44
|
-
} else if (enableWhiteList && whiteList.includes(md5Uid)) {
|
|
44
|
+
} else if (enableWhiteList && whiteList !== null && whiteList !== void 0 && whiteList.includes(md5Uid)) {
|
|
45
45
|
newFeatures[key] = true;
|
|
46
46
|
} else if (enableSampling) {
|
|
47
47
|
var gray = uid.substring(uid.length - 2);
|
|
48
|
-
if (Number(gray) >= sampling * 100 || sampling === 0) newFeatures[key] = false;
|
|
48
|
+
if (Number(gray) >= (sampling !== null && sampling !== void 0 ? sampling : 0) * 100 || sampling === 0) newFeatures[key] = false;
|
|
49
49
|
newFeatures[key] = true;
|
|
50
50
|
} else {
|
|
51
51
|
newFeatures[key] = false;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "^3.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alicloud/alfa-core": "^1.4.
|
|
45
|
+
"@alicloud/alfa-core": "^1.4.11",
|
|
46
46
|
"@alicloud/console-os-loader": "^1.2.3",
|
|
47
47
|
"@alicloud/widget-utils-console": "^0.1.6",
|
|
48
48
|
"classnames": "^2.2.6",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16 | ^17"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "87b8e6d6811149210c81f89e3c5e46c34bd99daf"
|
|
55
55
|
}
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.4.
|
|
1
|
+
export declare const version = "1.4.11";
|