Skip to content

Commit

Permalink
Merge pull request #353 from prismicio/lh/migration-client-refactor
Browse files Browse the repository at this point in the history
refactor: use classes to detect migration field
  • Loading branch information
lihbr authored Sep 16, 2024
2 parents 143943b + 397b04c commit 78fa415
Show file tree
Hide file tree
Showing 44 changed files with 6,611 additions and 5,976 deletions.
2 changes: 1 addition & 1 deletion src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ export class Client<
throw new RepositoryNotFoundError(
`Prismic repository not found. Check that "${this.documentAPIEndpoint}" is pointing to the correct repository.`,
url,
undefined,
url.startsWith(this.documentAPIEndpoint) ? undefined : res.text,
)
}

Expand Down
Loading

0 comments on commit 78fa415

Please sign in to comment.