From fe0f72be3b96d02c8bf4b46a297f4d120623d0a4 Mon Sep 17 00:00:00 2001 From: Matheus Sampaio Queiroga Date: Sun, 3 Jul 2022 23:07:03 -0300 Subject: [PATCH] Update --- .github/workflows/Root.yml | 1 + src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Root.yml b/.github/workflows/Root.yml index 8759733..20e3602 100644 --- a/.github/workflows/Root.yml +++ b/.github/workflows/Root.yml @@ -55,6 +55,7 @@ jobs: run: npm run build - name: Publish + continue-on-error: true run: npm publish --tag "${{ github.event.inputs.package_tag }}" env: NODE_AUTH_TOKEN: ${{ matrix.npm_registry == 'NPM' && secrets.NPM_ORG_TOKEN || secrets.GITHUB_TOKEN }} diff --git a/src/index.ts b/src/index.ts index 4cc710a..8dd35ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,7 @@ export async function findUrlVersion(server: BdsCorePlatforms, Version: string|b if (server === "bedrock") { let bedrockData: Root["versions"]["bedrock"][0] = undefined; if (Version === "latest"||typeof Version === "boolean") { - bedrockData = JSON.parse(await fetchBuffer("https://mcpeversions.sirherobrine23.org//bedrock/latest").then(res => res.toString("utf8"))); + bedrockData = JSON.parse(await fetchBuffer("https://mcpeversions.sirherobrine23.org/bedrock/latest").then(res => res.toString("utf8"))); } else { bedrockData = JSON.parse(await fetchBuffer(`https://mcpeversions.sirherobrine23.org/bedrock/search?version=${Version}`).then(res => res.toString("utf8"))); }