Skip to content

Commit

Permalink
Migrate libs
Browse files Browse the repository at this point in the history
  • Loading branch information
vilkinsons committed Aug 8, 2024
1 parent 56c35b9 commit 775092d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/@local/hash-isomorphic-utils/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ export const blockProtocolHubOrigin =
* – this will also be required for block versioning, where we'll want different source locations for the same componentId
*/
export const componentIdBase = `https://blockprotocol${
!blockProtocolHubOrigin.includes("blockprotocol.org") ? "-preview" : ""
!(
// TODO(sentry): Could not automatically migrate - see https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub
blockProtocolHubOrigin.includes("blockprotocol.org")

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
blockprotocol.org
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
)
? "-preview"
: ""
}.hashai.workers.dev`;

export const paragraphBlockComponentId = `${componentIdBase}/blocks/hash/paragraph`;
Expand Down

0 comments on commit 775092d

Please sign in to comment.