-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): Replace shared module with @clerk/shared imports
- Loading branch information
Showing
10 changed files
with
10,879 additions
and
14,379 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
/* | ||
* This module will contain functionality that will be copied | ||
* from @clerk/shared and will be replaced by imports when the | ||
* bundling issue is fixed. | ||
*/ | ||
export { isDevelopmentFromApiKey, isProductionFromApiKey, isStaging } from './instance'; | ||
export { | ||
addClerkPrefix, | ||
buildPublishableKey, | ||
callWithRetry, | ||
getClerkJsMajorVersionOrTag, | ||
getScriptUrl, | ||
isDevelopmentFromApiKey, | ||
isProductionFromApiKey, | ||
isPublishableKey, | ||
isStaging, | ||
parsePublishableKey, | ||
} from '@clerk/shared'; | ||
|
||
export { addClerkPrefix, getScriptUrl, getClerkJsMajorVersionOrTag } from './url'; | ||
export { callWithRetry } from './callWithRetry'; | ||
import { buildErrorThrower } from '@clerk/shared'; | ||
// TODO: replace packageName with `${PACKAGE_NAME}@${PACKAGE_VERSION}` from tsup.config.ts | ||
export const errorThrower = buildErrorThrower({ packageName: '@clerk/backend' }); | ||
|
||
// TODO: replace it with @clerk/shared errorThrower.throwMissingPublishableKeyError() | ||
export const missingPublishableKeyErrorMessage = `Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.`; | ||
|
||
export { isDevOrStagingUrl } from './isDevOrStagingUrl'; | ||
export { buildPublishableKey, isPublishableKey, parsePublishableKey } from './parsePublishableKey'; | ||
import { createDevOrStagingUrlCache } from '@clerk/shared'; | ||
export const { isDevOrStagingUrl } = createDevOrStagingUrlCache(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.