Skip to content

Commit

Permalink
feat: make new structures
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipraty authored Oct 6, 2023
1 parent e22a91e commit dc0e274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context, Dict, Logger, Schema, Time } from 'koishi'
import type { AnalyzedPackage, MarketResult } from '@koishijs/registry'
import {} from '@koishijs/plugin-market'
import { } from '@koishijs/plugin-market'

const logger = new Logger('market')

Expand Down Expand Up @@ -47,7 +47,7 @@ export function apply(ctx: Context, config: Config) {
const dict: Dict<AnalyzedPackage> = {}
for (const object of result.objects) {
if (object.manifest.hidden && !config.showHidden) continue
dict[object.shortname] = object
dict[object.shortname] = Object.assign(object.package, { manifest: object.manifest })
}
return dict
}
Expand Down

0 comments on commit dc0e274

Please sign in to comment.