Skip to content

Commit

Permalink
🩹 fix bug in publish workflow AGAIN MOAR
Browse files Browse the repository at this point in the history
  • Loading branch information
protiev committed Jun 16, 2024
1 parent 6ac967c commit d89f258
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/ts/jsr-metadata/jsrMetadataFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
*/
export const jsrMetadataFetch = async (scopeName: string, packageName: string): Promise<any> =>
{
const trimmedScopeName = scopeName.startsWith('@')
? scopeName.substring(1)
: scopeName;
const datWerxScopeName = !scopeName.startsWith('@')
? scopeName
: '@' + scopeName;

const url = `https://jsr.io/${trimmedScopeName}/${packageName}/meta.json`;
const url = `https://jsr.io/${datWerxScopeName}/${packageName}/meta.json`;
const response = await fetch(url, {
headers: {
'User-Agent': 'JSR Metadata Fetcher',
Expand Down

0 comments on commit d89f258

Please sign in to comment.