@kmkf-fe-packages/kmkf-utils 0.7.14-alpha.4 → 0.7.14-alpha.9
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.
|
@@ -3,6 +3,12 @@ import isEqual from 'lodash/isEqual';
|
|
|
3
3
|
import intersection from 'lodash/intersection';
|
|
4
4
|
var getExpression = function getExpression(condition, l, r) {
|
|
5
5
|
if (condition === 'EQ') {
|
|
6
|
+
if (Array.isArray(l) && Array.isArray(r)) {
|
|
7
|
+
// 如果长度不想等,直接不想等
|
|
8
|
+
if (l.length !== r.length) return false;
|
|
9
|
+
// 长度相等,并且交集之后长度相等,一定是相等的
|
|
10
|
+
return intersection(l, r).length === l.length;
|
|
11
|
+
}
|
|
6
12
|
return isEqual(l, r);
|
|
7
13
|
}
|
|
8
14
|
if (condition === 'GT') {
|
|
@@ -114,8 +114,8 @@ var taobaoGoodHandle = function taobaoGoodHandle() {
|
|
|
114
114
|
picUrl: picUrl,
|
|
115
115
|
price: price,
|
|
116
116
|
platform: platform,
|
|
117
|
-
itemId: skuInfoDTO.itemId,
|
|
118
|
-
supplierName: skuInfoDTO.supplierName
|
|
117
|
+
itemId: skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.itemId,
|
|
118
|
+
supplierName: skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.supplierName
|
|
119
119
|
};
|
|
120
120
|
if (skuInfoDTO) {
|
|
121
121
|
params.picUrl = skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.picUrl;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "0.7.14-alpha.
|
|
3
|
+
"version": "0.7.14-alpha.9",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"gitHooks": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "daccf9b0ddd0d8845c8033088e15ad7252058265"
|
|
46
46
|
}
|