@kmkf-fe-packages/kmkf-utils 0.22.1-beta.0 → 0.23.0-alpha.0

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/README.md CHANGED
@@ -1 +1 @@
1
- 11223341
1
+ 112233411
@@ -33,7 +33,9 @@ var getExpression = function getExpression(condition, l, r) {
33
33
  return l === null || l === void 0 ? void 0 : l.includes(r);
34
34
  }
35
35
  if (condition === 'NIN') {
36
- return !(l !== null && l !== void 0 && l.includes(r));
36
+ var _intersection, _intersection2;
37
+ var include = Array.isArray(l) ? ((_intersection = intersection(r, l)) === null || _intersection === void 0 ? void 0 : _intersection.length) > 0 : ((_intersection2 = intersection(r, [l])) === null || _intersection2 === void 0 ? void 0 : _intersection2.length) > 0;
38
+ return !include;
37
39
  }
38
40
  if (condition === 'NON') {
39
41
  return isNull(l);
@@ -43,8 +45,8 @@ var getExpression = function getExpression(condition, l, r) {
43
45
  }
44
46
  // 包含任一
45
47
  if (condition === 'INCLUDE') {
46
- var _intersection, _intersection2;
47
- return Array.isArray(l) ? ((_intersection = intersection(r, l)) === null || _intersection === void 0 ? void 0 : _intersection.length) > 0 : ((_intersection2 = intersection(r, [l])) === null || _intersection2 === void 0 ? void 0 : _intersection2.length) > 0;
48
+ var _intersection3, _intersection4;
49
+ return Array.isArray(l) ? ((_intersection3 = intersection(r, l)) === null || _intersection3 === void 0 ? void 0 : _intersection3.length) > 0 : ((_intersection4 = intersection(r, [l])) === null || _intersection4 === void 0 ? void 0 : _intersection4.length) > 0;
48
50
  }
49
51
  return false;
50
52
  };
@@ -48,7 +48,10 @@ var taobaoGoodHandle = function taobaoGoodHandle() {
48
48
  params.propertiesName = (skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.propertiesName) || "";
49
49
  }
50
50
  if (type === "ITEM_ENCODE") {
51
- params.outerId = (skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.outerSkuId) || outerId;
51
+ params.outerId = outerId;
52
+ if (skuInfoDTO !== null && skuInfoDTO !== void 0 && skuInfoDTO.outerSkuId) {
53
+ params.outerSkuId = skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.outerSkuId;
54
+ }
52
55
  }
53
56
  return params;
54
57
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "0.22.1-beta.0",
3
+ "version": "0.23.0-alpha.0",
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": "db70238e28145cd064996d700539453ad3149405"
45
+ "gitHead": "c3067c39d74b6ffc99ff417e58f87486cf7a5d50"
46
46
  }