Skip to content

Commit

Permalink
修复sdk无法安装的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Jun 2, 2024
1 parent 72d33da commit d753511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-tips-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opendoc/backend": patch
---

修复 sdk 无法安装的问题
4 changes: 2 additions & 2 deletions app/backend/src/modules/registry/registry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class RegistryService {
const versions = npmPackages.reduce(
(versionMap, npmPackage) => R.assoc(npmPackage.version.get().version, {
name: npmPackage.fullName,
version: npmPackage.version,
version: npmPackage.version.get().version,
dist: <PackageMetadataVersionDistDTO>{
tarball: `${this.appConfig.registry}${npmPackage.tarball}`,
integrity: npmPackage.integrity,
Expand All @@ -98,7 +98,7 @@ export class RegistryService {
const sdk = await this.sdkRepo.findOneOrFail({
scope: packageScope,
name: packageName,
version: version,
version: { version },
status: SdkStatus.published,
})

Expand Down

0 comments on commit d753511

Please sign in to comment.