@modern-js/utils 0.0.0-nightly-20240814170652 → 0.0.0-nightly-20240816170717

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.
@@ -56,10 +56,7 @@ const pluginDagSort = (plugins, key = "name", preKey = "pre", postKey = "post")
56
56
  sortedPoint.push(getPluginByAny(zep));
57
57
  allLines = allLines.filter((l) => l[0] !== getPluginByAny(zep)[key]);
58
58
  const restPoints = plugins.filter((item) => !sortedPoint.find((sp) => sp[key] === item[key]));
59
- zeroEndPoints = restPoints.filter(
60
- // eslint-disable-next-line @typescript-eslint/no-loop-func
61
- (item) => !allLines.find((l) => l[1] === item[key])
62
- );
59
+ zeroEndPoints = restPoints.filter((item) => !allLines.find((l) => l[1] === item[key]));
63
60
  }
64
61
  if (allLines.length) {
65
62
  const restInRingPoints = {};
@@ -10,14 +10,11 @@ var pluginDagSort = function(plugins) {
10
10
  return sp[key] === item[key];
11
11
  });
12
12
  });
13
- zeroEndPoints = restPoints.filter(
14
- // eslint-disable-next-line @typescript-eslint/no-loop-func
15
- function(item) {
16
- return !allLines.find(function(l) {
17
- return l[1] === item[key];
18
- });
19
- }
20
- );
13
+ zeroEndPoints = restPoints.filter(function(item) {
14
+ return !allLines.find(function(l) {
15
+ return l[1] === item[key];
16
+ });
17
+ });
21
18
  };
22
19
  var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "name", preKey = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "pre", postKey = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "post";
23
20
  var getPluginByAny = function getPluginByAny2(q) {
@@ -33,10 +33,7 @@ const pluginDagSort = (plugins, key = "name", preKey = "pre", postKey = "post")
33
33
  sortedPoint.push(getPluginByAny(zep));
34
34
  allLines = allLines.filter((l) => l[0] !== getPluginByAny(zep)[key]);
35
35
  const restPoints = plugins.filter((item) => !sortedPoint.find((sp) => sp[key] === item[key]));
36
- zeroEndPoints = restPoints.filter(
37
- // eslint-disable-next-line @typescript-eslint/no-loop-func
38
- (item) => !allLines.find((l) => l[1] === item[key])
39
- );
36
+ zeroEndPoints = restPoints.filter((item) => !allLines.find((l) => l[1] === item[key]));
40
37
  }
41
38
  if (allLines.length) {
42
39
  const restInRingPoints = {};
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240814170652",
18
+ "version": "0.0.0-nightly-20240816170717",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -162,9 +162,9 @@
162
162
  "jest": "^29",
163
163
  "typescript": "^5",
164
164
  "webpack": "^5.93.0",
165
- "@modern-js/types": "0.0.0-nightly-20240814170652",
166
- "@scripts/jest-config": "0.0.0-nightly-20240814170652",
167
- "@scripts/build": "0.0.0-nightly-20240814170652"
165
+ "@modern-js/types": "0.0.0-nightly-20240816170717",
166
+ "@scripts/build": "0.0.0-nightly-20240816170717",
167
+ "@scripts/jest-config": "0.0.0-nightly-20240816170717"
168
168
  },
169
169
  "sideEffects": false,
170
170
  "scripts": {