@logto/cli 1.22.0 → 1.23.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.
|
@@ -106,17 +106,17 @@ export const fetchOfficialConnectorList = async (includingCloudConnectors = fals
|
|
|
106
106
|
return got(`https://registry.npmjs.org/-/v1/search?${parameters.toString()}`).json();
|
|
107
107
|
};
|
|
108
108
|
const packages = [];
|
|
109
|
+
const excludeList = ['mock', 'kit', ...conditionalArray(!includingCloudConnectors && 'logto')];
|
|
110
|
+
// The API called by `fetchList` performs a 'fuzzy' search based on the `text` parameter, which will yield many irrelevant results. We need to filter out these irrelevant results (using `name.startsWith(officialConnectorPrefix)` for filtering).
|
|
109
111
|
// Disable lint rules for business need
|
|
110
112
|
// eslint-disable-next-line @silverhand/fp/no-let, @silverhand/fp/no-mutation
|
|
111
113
|
for (let page = 0;; ++page) {
|
|
112
114
|
// eslint-disable-next-line no-await-in-loop
|
|
113
|
-
const { objects } = await fetchList(page * 20, 20);
|
|
114
|
-
const
|
|
115
|
+
const { objects: rawObjects } = await fetchList(page * 20, 20);
|
|
116
|
+
const objects = rawObjects.filter(({ package: { name, scope } }) => name.startsWith(officialConnectorPrefix) &&
|
|
117
|
+
excludeList.every((excluded) => !name.slice(officialConnectorPrefix.length).startsWith(excluded)));
|
|
115
118
|
// eslint-disable-next-line @silverhand/fp/no-mutating-methods
|
|
116
|
-
packages.push(...objects
|
|
117
|
-
.filter(({ package: { name, scope } }) => scope === 'logto' &&
|
|
118
|
-
excludeList.every((excluded) => !name.slice(officialConnectorPrefix.length).startsWith(excluded)))
|
|
119
|
-
.map(({ package: data }) => data));
|
|
119
|
+
packages.push(...objects.map(({ package: data }) => data));
|
|
120
120
|
if (objects.length < 20) {
|
|
121
121
|
break;
|
|
122
122
|
}
|
package/lib/package-json.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const packageJson = {
|
|
2
2
|
"name": "@logto/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Logto CLI.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -43,8 +43,8 @@ export const packageJson = {
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@logto/connector-kit": "workspace:^4.1.0",
|
|
46
|
-
"@logto/core-kit": "workspace:^2.5.
|
|
47
|
-
"@logto/schemas": "workspace:1.
|
|
46
|
+
"@logto/core-kit": "workspace:^2.5.2",
|
|
47
|
+
"@logto/schemas": "workspace:1.23.0",
|
|
48
48
|
"@logto/shared": "workspace:^3.1.2",
|
|
49
49
|
"@silverhand/essentials": "^2.9.1",
|
|
50
50
|
"@silverhand/slonik": "31.0.0-beta.2",
|
|
@@ -54,7 +54,7 @@ export const packageJson = {
|
|
|
54
54
|
"got": "^14.0.0",
|
|
55
55
|
"hpagent": "^1.2.0",
|
|
56
56
|
"inquirer": "^9.0.0",
|
|
57
|
-
"nanoid": "^5.0.
|
|
57
|
+
"nanoid": "^5.0.9",
|
|
58
58
|
"ora": "^8.0.1",
|
|
59
59
|
"p-limit": "^6.0.0",
|
|
60
60
|
"p-retry": "^6.0.0",
|
|
@@ -73,14 +73,14 @@ export const packageJson = {
|
|
|
73
73
|
"@types/sinon": "^17.0.0",
|
|
74
74
|
"@types/tar": "^6.1.12",
|
|
75
75
|
"@types/yargs": "^17.0.13",
|
|
76
|
-
"@vitest/coverage-v8": "^2.
|
|
76
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
77
77
|
"@withtyped/server": "^0.14.0",
|
|
78
78
|
"eslint": "^8.56.0",
|
|
79
79
|
"lint-staged": "^15.0.0",
|
|
80
80
|
"prettier": "^3.0.0",
|
|
81
81
|
"sinon": "^19.0.0",
|
|
82
82
|
"typescript": "^5.5.3",
|
|
83
|
-
"vitest": "^2.
|
|
83
|
+
"vitest": "^2.1.8"
|
|
84
84
|
},
|
|
85
85
|
"eslintConfig": {
|
|
86
86
|
"extends": "@silverhand",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Logto CLI.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@logto/connector-kit": "^4.1.0",
|
|
32
|
-
"@logto/core-kit": "^2.5.
|
|
33
|
-
"@logto/schemas": "1.
|
|
32
|
+
"@logto/core-kit": "^2.5.2",
|
|
33
|
+
"@logto/schemas": "1.23.0",
|
|
34
34
|
"@logto/shared": "^3.1.2",
|
|
35
35
|
"@silverhand/essentials": "^2.9.1",
|
|
36
36
|
"@silverhand/slonik": "31.0.0-beta.2",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"got": "^14.0.0",
|
|
41
41
|
"hpagent": "^1.2.0",
|
|
42
42
|
"inquirer": "^9.0.0",
|
|
43
|
-
"nanoid": "^5.0.
|
|
43
|
+
"nanoid": "^5.0.9",
|
|
44
44
|
"ora": "^8.0.1",
|
|
45
45
|
"p-limit": "^6.0.0",
|
|
46
46
|
"p-retry": "^6.0.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@types/sinon": "^17.0.0",
|
|
60
60
|
"@types/tar": "^6.1.12",
|
|
61
61
|
"@types/yargs": "^17.0.13",
|
|
62
|
-
"@vitest/coverage-v8": "^2.
|
|
62
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
63
63
|
"@withtyped/server": "^0.14.0",
|
|
64
64
|
"eslint": "^8.56.0",
|
|
65
65
|
"lint-staged": "^15.0.0",
|
|
66
66
|
"prettier": "^3.0.0",
|
|
67
67
|
"sinon": "^19.0.0",
|
|
68
68
|
"typescript": "^5.5.3",
|
|
69
|
-
"vitest": "^2.
|
|
69
|
+
"vitest": "^2.1.8"
|
|
70
70
|
},
|
|
71
71
|
"eslintConfig": {
|
|
72
72
|
"extends": "@silverhand",
|