Skip to content

Commit

Permalink
fix(registry): update default margin to prevent missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 1, 2023
1 parent d982496 commit 1fafd74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/market/client/components/package.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function formatSize(value: number) {
overflow: hidden;
.spacer {
flex: 0 5 1.5rem;
flex: 0 2 1.5rem;
}
.grow {
Expand Down
2 changes: 1 addition & 1 deletion packages/market/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"utilities"
],
"devDependencies": {
"@koishijs/registry": "^4.6.0",
"@koishijs/registry": "^4.6.1",
"@types/spark-md5": "^3.0.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/registry/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/registry",
"description": "Scan Package Manager for Koishi Plugins",
"version": "4.6.0",
"version": "4.6.1",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -32,7 +32,7 @@
"@types/semver": "^7.3.13"
},
"dependencies": {
"cosmokit": "^1.4.1",
"cosmokit": "^1.4.2",
"p-map": "^4.0.0",
"semver": "^7.5.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/registry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export default class Scanner {
}

public async collect(config: CollectConfig = {}) {
const { step = 250, margin = 10, ignored = [] } = config
const { step = 250, margin = 25, ignored = [] } = config
this.cache = {}
this.time = new Date().toUTCString()
const total = await this.search(0, config)
Expand Down

0 comments on commit 1fafd74

Please sign in to comment.