Skip to content

Commit f3a628f

Browse files
committed
fix issue with getting latest version
1 parent d3ebaa7 commit f3a628f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

npm-app/release-legacy/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ function httpGet(url, options = {}) {
9292

9393
async function getLatestLegacyVersion() {
9494
try {
95-
const res = await httpGet(
96-
`https://registry.npmjs.org/${packageName}/legacy`,
97-
)
95+
const res = await httpGet(`https://registry.npmjs.org/codebuff/legacy`)
9896

9997
if (res.statusCode !== 200) return null
10098

npm-app/release/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ function httpGet(url, options = {}) {
9292

9393
async function getLatestVersion() {
9494
try {
95-
const res = await httpGet(
96-
`https://registry.npmjs.org/${packageName}/latest`,
97-
)
95+
const res = await httpGet(`https://registry.npmjs.org/codebuff/latest`)
9896

9997
if (res.statusCode !== 200) return null
10098

0 commit comments

Comments
 (0)