@clerk/shared 4.21.0-snapshot.v20260622234151 → 4.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/_chunks/{telemetry-_APzqTkn.mjs → telemetry-9C6N5ppw.mjs} +31 -5
  2. package/dist/_chunks/{telemetry-_APzqTkn.mjs.map → telemetry-9C6N5ppw.mjs.map} +1 -1
  3. package/dist/_chunks/{telemetry-DU6Crgm7.js → telemetry-DZp9OI1j.js} +36 -4
  4. package/dist/_chunks/{telemetry-DU6Crgm7.js.map → telemetry-DZp9OI1j.js.map} +1 -1
  5. package/dist/alternativePhoneCode.js +1 -2
  6. package/dist/apiUrlFromPublishableKey.js +1 -2
  7. package/dist/authorization-errors.js +1 -2
  8. package/dist/authorization.js +1 -2
  9. package/dist/browser.js +1 -2
  10. package/dist/buildAccountsBaseUrl.js +1 -2
  11. package/dist/clerkEventBus.js +1 -2
  12. package/dist/color.js +1 -2
  13. package/dist/constants.js +1 -2
  14. package/dist/cookie.js +3 -4
  15. package/dist/date.js +1 -2
  16. package/dist/deprecated.js +2 -3
  17. package/dist/deriveState.js +1 -2
  18. package/dist/devBrowser.js +1 -2
  19. package/dist/dom/waitForElement.js +1 -2
  20. package/dist/error.js +42 -32
  21. package/dist/eventBus.js +1 -2
  22. package/dist/file.js +1 -2
  23. package/dist/getEnvVariable.js +1 -2
  24. package/dist/getToken.js +2 -3
  25. package/dist/globs.js +3 -4
  26. package/dist/handleValueOrFn.js +2 -3
  27. package/dist/index.js +1 -2
  28. package/dist/inert.js +1 -2
  29. package/dist/internal/clerk-js/completeSignUpFlow.js +1 -2
  30. package/dist/internal/clerk-js/componentGuards.js +1 -2
  31. package/dist/internal/clerk-js/constants.js +1 -2
  32. package/dist/internal/clerk-js/email.js +1 -2
  33. package/dist/internal/clerk-js/encoders.js +1 -2
  34. package/dist/internal/clerk-js/errors.js +1 -2
  35. package/dist/internal/clerk-js/hex.js +1 -2
  36. package/dist/internal/clerk-js/injectedWeb3EthProviders.js +1 -2
  37. package/dist/internal/clerk-js/injectedWeb3SolanaProviders.js +2 -3
  38. package/dist/internal/clerk-js/organization.js +1 -2
  39. package/dist/internal/clerk-js/passkeys.js +10 -10
  40. package/dist/internal/clerk-js/passwords/complexity.js +1 -2
  41. package/dist/internal/clerk-js/passwords/loadZxcvbn.js +1 -2
  42. package/dist/internal/clerk-js/passwords/password.js +2 -3
  43. package/dist/internal/clerk-js/passwords/strength.js +1 -2
  44. package/dist/internal/clerk-js/path.js +1 -2
  45. package/dist/internal/clerk-js/queryParams.js +1 -2
  46. package/dist/internal/clerk-js/queryStateParams.js +1 -2
  47. package/dist/internal/clerk-js/querystring.js +1 -2
  48. package/dist/internal/clerk-js/redirectUrls.js +1 -2
  49. package/dist/internal/clerk-js/runtime.js +1 -2
  50. package/dist/internal/clerk-js/sessionTasks.js +1 -2
  51. package/dist/internal/clerk-js/thirdPartyDomains.js +1 -2
  52. package/dist/internal/clerk-js/url.js +1 -2
  53. package/dist/internal/clerk-js/user.js +1 -2
  54. package/dist/internal/clerk-js/warnings.js +1 -2
  55. package/dist/internal/clerk-js/web3.js +5 -5
  56. package/dist/internal/clerk-js/windowNavigate.js +1 -2
  57. package/dist/isomorphicAtob.js +1 -2
  58. package/dist/isomorphicBtoa.js +1 -2
  59. package/dist/jwtPayloadParser.js +1 -2
  60. package/dist/keyless/index.js +12 -369
  61. package/dist/keys.js +1 -2
  62. package/dist/loadClerkJsScript.js +6 -6
  63. package/dist/loadClerkJsScript.js.map +1 -1
  64. package/dist/loadClerkJsScript.mjs +1 -1
  65. package/dist/loadClerkJsScript.mjs.map +1 -1
  66. package/dist/loadScript.js +1 -2
  67. package/dist/localStorageBroadcastChannel.js +1 -2
  68. package/dist/logger.js +1 -2
  69. package/dist/netlifyCacheHandler.js +1 -2
  70. package/dist/oauth.js +2 -4
  71. package/dist/oauth.js.map +1 -1
  72. package/dist/oauth.mjs +1 -2
  73. package/dist/oauth.mjs.map +1 -1
  74. package/dist/object.js +1 -2
  75. package/dist/organization.js +1 -2
  76. package/dist/pathMatcher.js +2 -3
  77. package/dist/pathToRegexp.js +23 -3
  78. package/dist/poller.js +3 -4
  79. package/dist/proxy.js +1 -2
  80. package/dist/react/index.js +89 -3636
  81. package/dist/react/index.mjs +1 -1
  82. package/dist/retry.js +1 -2
  83. package/dist/router.js +9 -150
  84. package/dist/safeImport.js +1 -2
  85. package/dist/saml.js +1 -2
  86. package/dist/telemetry/events/flow-step.d.mts +20 -0
  87. package/dist/telemetry/events/flow-step.d.ts +20 -0
  88. package/dist/telemetry/events/flow-step.js +28 -0
  89. package/dist/telemetry/events/index.d.mts +1 -0
  90. package/dist/telemetry/events/index.d.ts +1 -0
  91. package/dist/telemetry.d.mts +2 -1
  92. package/dist/telemetry.d.ts +2 -1
  93. package/dist/telemetry.js +16 -10
  94. package/dist/telemetry.mjs +2 -2
  95. package/dist/types/localization.d.mts +3 -0
  96. package/dist/types/localization.d.ts +3 -0
  97. package/dist/types/oauth.d.mts +1 -1
  98. package/dist/types/oauth.d.ts +1 -1
  99. package/dist/underscore.js +1 -2
  100. package/dist/url.js +2 -3
  101. package/dist/utils/index.js +14 -11
  102. package/dist/versionCheck.js +1 -2
  103. package/dist/versionSelector.js +2 -3
  104. package/dist/versionSelector.js.map +1 -1
  105. package/dist/versionSelector.mjs +1 -1
  106. package/dist/versionSelector.mjs.map +1 -1
  107. package/dist/web3.js +1 -2
  108. package/dist/webauthn.js +1 -2
  109. package/dist/workerTimers/index.js +2 -2
  110. package/package.json +1 -1
package/dist/oauth.js CHANGED
@@ -161,8 +161,7 @@ const OAUTH_PROVIDERS = [
161
161
  {
162
162
  provider: "enstall",
163
163
  strategy: "oauth_enstall",
164
- name: "Enstall",
165
- docsUrl: "https://clerk.com/docs/authentication/social-connections/enstall"
164
+ name: "Enstall"
166
165
  },
167
166
  {
168
167
  provider: "huggingface",
@@ -187,5 +186,4 @@ function getOAuthProviderData({ provider, strategy }) {
187
186
 
188
187
  //#endregion
189
188
  exports.OAUTH_PROVIDERS = OAUTH_PROVIDERS;
190
- exports.getOAuthProviderData = getOAuthProviderData;
191
- //# sourceMappingURL=oauth.js.map
189
+ exports.getOAuthProviderData = getOAuthProviderData;
package/dist/oauth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.js","names":[],"sources":["../src/oauth.ts"],"sourcesContent":["import type { OAuthProvider, OAuthProviderData, OAuthStrategy } from './types';\n\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n {\n provider: 'vercel',\n strategy: 'oauth_vercel',\n name: 'Vercel',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n *\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n"],"mappings":";;;AAEA,MAAa,kBAAuC;CAClD;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;AACF;;;;AAUA,SAAgB,qBAAqB,EACnC,UACA,YACkE;CAClE,IAAI,UACF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;CAGnF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;AACnF"}
1
+ {"version":3,"file":"oauth.js","names":[],"sources":["../src/oauth.ts"],"sourcesContent":["import type { OAuthProvider, OAuthProviderData, OAuthStrategy } from './types';\n\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n {\n provider: 'vercel',\n strategy: 'oauth_vercel',\n name: 'Vercel',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n *\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n"],"mappings":";;;AAEA,MAAa,kBAAuC;CAClD;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;CACR;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;AACF;;;;AAUA,SAAgB,qBAAqB,EACnC,UACA,YACkE;CAClE,IAAI,UACF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;CAGnF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;AACnF"}
package/dist/oauth.mjs CHANGED
@@ -159,8 +159,7 @@ const OAUTH_PROVIDERS = [
159
159
  {
160
160
  provider: "enstall",
161
161
  strategy: "oauth_enstall",
162
- name: "Enstall",
163
- docsUrl: "https://clerk.com/docs/authentication/social-connections/enstall"
162
+ name: "Enstall"
164
163
  },
165
164
  {
166
165
  provider: "huggingface",
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.mjs","names":[],"sources":["../src/oauth.ts"],"sourcesContent":["import type { OAuthProvider, OAuthProviderData, OAuthStrategy } from './types';\n\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n {\n provider: 'vercel',\n strategy: 'oauth_vercel',\n name: 'Vercel',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n *\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n"],"mappings":";AAEA,MAAa,kBAAuC;CAClD;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;AACF;;;;AAUA,SAAgB,qBAAqB,EACnC,UACA,YACkE;CAClE,IAAI,UACF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;CAGnF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;AACnF"}
1
+ {"version":3,"file":"oauth.mjs","names":[],"sources":["../src/oauth.ts"],"sourcesContent":["import type { OAuthProvider, OAuthProviderData, OAuthStrategy } from './types';\n\nexport const OAUTH_PROVIDERS: OAuthProviderData[] = [\n {\n provider: 'google',\n strategy: 'oauth_google',\n name: 'Google',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/google',\n },\n {\n provider: 'discord',\n strategy: 'oauth_discord',\n name: 'Discord',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/discord',\n },\n {\n provider: 'facebook',\n strategy: 'oauth_facebook',\n name: 'Facebook',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/facebook',\n },\n {\n provider: 'twitch',\n strategy: 'oauth_twitch',\n name: 'Twitch',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitch',\n },\n {\n provider: 'twitter',\n strategy: 'oauth_twitter',\n name: 'Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/twitter',\n },\n {\n provider: 'microsoft',\n strategy: 'oauth_microsoft',\n name: 'Microsoft',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/microsoft',\n },\n {\n provider: 'tiktok',\n strategy: 'oauth_tiktok',\n name: 'TikTok',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/tiktok',\n },\n {\n provider: 'linkedin',\n strategy: 'oauth_linkedin',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin',\n },\n {\n provider: 'linkedin_oidc',\n strategy: 'oauth_linkedin_oidc',\n name: 'LinkedIn',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',\n },\n {\n provider: 'github',\n strategy: 'oauth_github',\n name: 'GitHub',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/github',\n },\n {\n provider: 'gitlab',\n strategy: 'oauth_gitlab',\n name: 'GitLab',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/gitlab',\n },\n {\n provider: 'dropbox',\n strategy: 'oauth_dropbox',\n name: 'Dropbox',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/dropbox',\n },\n {\n provider: 'atlassian',\n strategy: 'oauth_atlassian',\n name: 'Atlassian',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/atlassian',\n },\n {\n provider: 'bitbucket',\n strategy: 'oauth_bitbucket',\n name: 'Bitbucket',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/bitbucket',\n },\n {\n provider: 'hubspot',\n strategy: 'oauth_hubspot',\n name: 'HubSpot',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/hubspot',\n },\n {\n provider: 'notion',\n strategy: 'oauth_notion',\n name: 'Notion',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/notion',\n },\n {\n provider: 'apple',\n strategy: 'oauth_apple',\n name: 'Apple',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/apple',\n },\n {\n provider: 'line',\n strategy: 'oauth_line',\n name: 'LINE',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/line',\n },\n {\n provider: 'instagram',\n strategy: 'oauth_instagram',\n name: 'Instagram',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/instagram',\n },\n {\n provider: 'coinbase',\n strategy: 'oauth_coinbase',\n name: 'Coinbase',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/coinbase',\n },\n {\n provider: 'spotify',\n strategy: 'oauth_spotify',\n name: 'Spotify',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/spotify',\n },\n {\n provider: 'xero',\n strategy: 'oauth_xero',\n name: 'Xero',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/xero',\n },\n {\n provider: 'box',\n strategy: 'oauth_box',\n name: 'Box',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/box',\n },\n {\n provider: 'slack',\n strategy: 'oauth_slack',\n name: 'Slack',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/slack',\n },\n {\n provider: 'linear',\n strategy: 'oauth_linear',\n name: 'Linear',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/linear',\n },\n {\n provider: 'x',\n strategy: 'oauth_x',\n name: 'X / Twitter',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/x-twitter-v2',\n },\n {\n provider: 'enstall',\n strategy: 'oauth_enstall',\n name: 'Enstall',\n },\n {\n provider: 'huggingface',\n strategy: 'oauth_huggingface',\n name: 'Hugging Face',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/huggingface',\n },\n {\n provider: 'vercel',\n strategy: 'oauth_vercel',\n name: 'Vercel',\n docsUrl: 'https://clerk.com/docs/authentication/social-connections/vercel',\n },\n];\n\ninterface getOAuthProviderDataProps {\n provider?: OAuthProvider;\n strategy?: OAuthStrategy;\n}\n\n/**\n *\n */\nexport function getOAuthProviderData({\n provider,\n strategy,\n}: getOAuthProviderDataProps): OAuthProviderData | undefined | null {\n if (provider) {\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.provider == provider);\n }\n\n return OAUTH_PROVIDERS.find(oauth_provider => oauth_provider.strategy == strategy);\n}\n"],"mappings":";AAEA,MAAa,kBAAuC;CAClD;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;CACR;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;CACA;EACE,UAAU;EACV,UAAU;EACV,MAAM;EACN,SAAS;CACX;AACF;;;;AAUA,SAAgB,qBAAqB,EACnC,UACA,YACkE;CAClE,IAAI,UACF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;CAGnF,OAAO,gBAAgB,MAAK,mBAAkB,eAAe,YAAY,QAAQ;AACnF"}
package/dist/object.js CHANGED
@@ -27,5 +27,4 @@ const filterProps = (obj, filter) => {
27
27
  exports.applyFunctionToObj = applyFunctionToObj;
28
28
  exports.filterProps = filterProps;
29
29
  exports.removeUndefined = removeUndefined;
30
- exports.without = without;
31
- //# sourceMappingURL=object.js.map
30
+ exports.without = without;
@@ -13,5 +13,4 @@ function getCurrentOrganizationMembership(organizationMemberships, organizationI
13
13
  }
14
14
 
15
15
  //#endregion
16
- exports.getCurrentOrganizationMembership = getCurrentOrganizationMembership;
17
- //# sourceMappingURL=organization.js.map
16
+ exports.getCurrentOrganizationMembership = getCurrentOrganizationMembership;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_pathToRegexp = require('./_chunks/pathToRegexp-59IML7-f.js');
2
+ const require_pathToRegexp = require('./pathToRegexp.js');
3
3
 
4
4
  //#region src/pathMatcher.ts
5
5
  var MalformedURLError = class extends Error {
@@ -54,5 +54,4 @@ const createPathMatcher = (patterns) => {
54
54
  exports.MalformedURLError = MalformedURLError;
55
55
  exports.createPathMatcher = createPathMatcher;
56
56
  exports.isMalformedURLError = isMalformedURLError;
57
- exports.normalizePath = normalizePath;
58
- //# sourceMappingURL=pathMatcher.js.map
57
+ exports.normalizePath = normalizePath;
@@ -1,5 +1,25 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_pathToRegexp = require('./_chunks/pathToRegexp-59IML7-f.js');
2
+ const require_index = require('./compiled/path-to-regexp/index.js');
3
3
 
4
- exports.match = require_pathToRegexp.match;
5
- exports.pathToRegexp = require_pathToRegexp.pathToRegexp;
4
+ //#region src/pathToRegexp.ts
5
+ const pathToRegexp = (path) => {
6
+ try {
7
+ return require_index.P(path);
8
+ } catch (e) {
9
+ throw new Error(`Invalid path: ${path}.\nConsult the documentation of path-to-regexp here: https://github.com/pillarjs/path-to-regexp/tree/6.x\n${e.message}`);
10
+ }
11
+ };
12
+ /**
13
+ *
14
+ */
15
+ function match(str, options) {
16
+ try {
17
+ return require_index.H(str, options);
18
+ } catch (e) {
19
+ throw new Error(`Invalid path and options: Consult the documentation of path-to-regexp here: https://github.com/pillarjs/path-to-regexp/tree/6.x\n${e.message}`);
20
+ }
21
+ }
22
+
23
+ //#endregion
24
+ exports.match = match;
25
+ exports.pathToRegexp = pathToRegexp;
package/dist/poller.js CHANGED
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_workerTimers = require('./_chunks/workerTimers-CHs7azwr.js');
2
+ const require_createWorkerTimers = require('./workerTimers/createWorkerTimers.js');
3
3
 
4
4
  //#region src/poller.ts
5
5
  /**
6
6
  *
7
7
  */
8
8
  function Poller({ delayInMs } = { delayInMs: 1e3 }) {
9
- const workerTimers = require_workerTimers.createWorkerTimers();
9
+ const workerTimers = require_createWorkerTimers.createWorkerTimers();
10
10
  let timerId;
11
11
  let stopped = false;
12
12
  const stop = () => {
@@ -31,5 +31,4 @@ function Poller({ delayInMs } = { delayInMs: 1e3 }) {
31
31
  }
32
32
 
33
33
  //#endregion
34
- exports.Poller = Poller;
35
- //# sourceMappingURL=poller.js.map
34
+ exports.Poller = Poller;
package/dist/proxy.js CHANGED
@@ -67,5 +67,4 @@ exports.isHttpOrHttps = isHttpOrHttps;
67
67
  exports.isProxyUrlRelative = isProxyUrlRelative;
68
68
  exports.isValidProxyUrl = isValidProxyUrl;
69
69
  exports.proxyUrlToAbsoluteURL = proxyUrlToAbsoluteURL;
70
- exports.shouldAutoProxy = shouldAutoProxy;
71
- //# sourceMappingURL=proxy.js.map
70
+ exports.shouldAutoProxy = shouldAutoProxy;