Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pretter run #250

Merged
merged 1 commit into from
Nov 28, 2024
Merged

chore: pretter run #250

merged 1 commit into from
Nov 28, 2024

Conversation

DanielRivers
Copy link
Contributor

Explain your changes

Update prettier and use default settings

Checklist

🛟 If you need help, consider asking for advice over in the Kinde community.

Copy link
Contributor

coderabbitai bot commented Nov 28, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request introduces extensive formatting changes across multiple JavaScript and TypeScript files, primarily focusing on standardizing string delimiters from single quotes to double quotes. The modifications include updates to import statements, object properties, and string literals, enhancing consistency in code style without altering functionality or logic. Additionally, minor adjustments such as trailing commas and spacing improvements are made to enhance readability. Overall, the changes aim to maintain a uniform coding style throughout the codebase.

Changes

File Path Change Summary
clientConfig/rollup.config.js Changed string literals and property names from single quotes to double quotes.
componentConfig/rollup.config.js Updated string literals and property names to use double quotes for consistency.
jest.config.js Modified string literals to use double quotes throughout the configuration.
middlewareConfig/rollup.config.js Replaced single quotes with double quotes in string literals and properties.
playground/src/app/api/auth/[...kindeAuth]/route.ts Adjusted import statement to use double quotes.
playground/src/app/api/protected/route.ts Reformatted import statements and error messages to use double quotes.
playground/src/app/api/public/route.ts Changed import statement and object formatting to use double quotes.
playground/src/app/globals.css Updated variable signature to use double quotes.
playground/src/app/layout.tsx Standardized import statements and object properties to use double quotes.
playground/src/app/page.module.css Modified string literals in CSS rules to use double quotes and adjusted mobile styles.
playground/src/app/page.tsx Changed import statement to use double quotes.
playground/src/middleware.ts Reformatted import statement and added a trailing comma in the matcher property.
rollup.config.js Updated import statements to use double quotes.
serverConfig/rollup.config.js Changed string literals and property names to double quotes for consistency.
src/api-client.js Re-added UsersApi import and changed string literals to double quotes.
src/authMiddleware/authMiddleware.ts Reformatted string literals and object destructuring for consistency.
src/components/CreateOrgLink.js Updated import statements and string literals to use double quotes.
src/components/LoginLink.js Changed string delimiters and adjusted formatting for consistency.
src/components/LogoutLink.js Reformatted import statements and string interpolation to use double quotes.
src/components/RegisterLink.js Updated string literals and object spread syntax for consistency.
src/components/index.js Reformatted export statements for consistency.
src/config/index.ts Standardized string delimiters and added trailing commas for consistency.
src/frontend/AuthProvider.jsx Updated import statements and error messages to use double quotes.
src/frontend/KindeBrowserClient.ts Changed string literals to double quotes and adjusted formatting.
src/frontend/index.js Reformatted export statements for consistency.
src/handlers/auth.js Updated string literals and error messages to use double quotes for consistency.
src/handlers/callback.ts Changed string literals to double quotes throughout the function.
src/handlers/createOrg.js Updated string literals and added trailing commas for consistency.
src/handlers/health.js Changed string literals in return statements to double quotes.
src/handlers/login.js Updated string literals to double quotes and added trailing commas.
src/handlers/logout.js Changed string literals to double quotes for consistency.
src/handlers/protect.js Reformatted import statements and error messages to use double quotes.
src/handlers/register.js Updated string literals and added trailing commas for consistency.
src/handlers/setup.ts Changed string literals to double quotes and added trailing commas.
src/index.ts Modified export statements to include previously omitted components and standardize quotes.
src/middleware/index.js Reformatted export statement for consistency.
src/routerClients/AppRouterClient.js Updated string literals to double quotes and adjusted formatting.
src/routerClients/PagesRouterClient.js Changed import statements and added trailing commas for consistency.
src/routerClients/RouterClient.js Updated import statement to use double quotes.
src/server/index.js Reformatted export statements and included previously omitted exports.
src/session/getAccessToken.js Reformatted import statements for consistency.
src/session/getAccessTokenRaw.js Changed string literals in the function to use double quotes.
src/session/getBooleanFlag.js Updated string literals to double quotes for consistency.
src/session/getClaim.js Reformatted import statements and added trailing commas.
src/session/getFlag.js Changed string literals to double quotes and adjusted error handling.
src/session/getIdToken.js Updated string literals to double quotes for consistency.
src/session/getIdTokenRaw.js Changed string literals to double quotes.
src/session/getIntegerFlag.js Updated string literals to double quotes for consistency.
src/session/getOrganization.ts Changed string literals to double quotes for consistency.
src/session/getPermission.js Reformatted import statements and added trailing commas.
src/session/getPermissions.js Updated string literals to double quotes for consistency.
src/session/getRoles.js Changed string literals to double quotes for consistency.
src/session/getStringFlag.js Updated string literals to double quotes for consistency.
src/session/getUser.ts Reformatted import statements for consistency.
src/session/getUserOrganizations.ts Changed string literals to double quotes for consistency.
src/session/index.ts Updated import statements and added trailing commas for consistency.
src/session/isAuthenticated.js Changed import statements to double quotes for consistency.
src/session/kindeServerClient.ts Updated import statements and added a comma for consistency.
src/session/sessionManager.js Standardized string literals to double quotes throughout the file.
src/utils/appRouter/prepareForRedirect.js Reformatted import statements and function signature to use double quotes.
src/utils/appRouter/setVerifierCookie.js Updated import statements to use double quotes.
src/utils/base64Encode.js Changed string literals in the replace methods to double quotes.
src/utils/generateAuthUrl.js Updated string literals and object formatting to use double quotes.
src/utils/generateCallbackUrl.js Adjusted export statement formatting for consistency.
src/utils/generateOrganizationObject.ts Updated string literals and object formatting to use double quotes.
src/utils/generateUserObject.ts Reformatted function signature and object properties for consistency.
src/utils/getAccessToken.ts Changed string literals to double quotes for consistency.
src/utils/getIdToken.ts Updated string literals to double quotes for consistency.
src/utils/pageRouter/prepareForRedirect.js Changed function signature to use double quotes.
src/utils/pageRouter/setVerifierCookie.js Updated import statements to use double quotes.
src/utils/pkceChallenge.js Changed string literals to double quotes for consistency.
src/utils/pkceChallengeFromVerifier.js Updated import statements to use double quotes.
src/utils/randomString.js Changed string literals to double quotes for consistency.
src/utils/refreshTokens.ts Updated string literals to double quotes for consistency.
src/utils/removeTrailingSlash.js Changed string literals to double quotes for consistency.
src/utils/sanitizeRedirect.js Reformatted function signature and string literals to use double quotes.
src/utils/setupChallenge.js Updated import statements and object formatting to use double quotes.
src/utils/sha256.js Changed string literals in the sha256 function to double quotes.
src/utils/validateToken.ts Updated error messages to use double quotes for consistency.
src/utils/version.js Changed string literals to double quotes for consistency.
tests/frontend/generate-organization-object.test.ts Updated string literals in test cases to use double quotes.
tests/frontend/generate-user-object.test.ts Changed string literals in test cases to use double quotes.

Possibly related PRs

  • fix: Post logout redirect URL #192: The changes in this PR involve formatting adjustments in the logout.js file, specifically related to string delimiters, which aligns with the main PR's focus on consistent string formatting in configuration files.
  • fix/remove-api-token-from-cookies #215: This PR modifies the createKindeManagementAPIClient function, which includes changes to string formatting and consistency, similar to the main PR's focus on standardizing string delimiters.
  • fix: validate token on isAuthenticated #223: The changes in this PR involve updates to string formatting in the authMiddleware.ts file, which is consistent with the main PR's emphasis on uniform string usage.
  • fix: get id token (await getSessionItem) #234: This PR updates the getIdToken function to ensure proper awaiting of session management, which includes changes to string formatting, aligning with the main PR's focus on consistent string usage.
  • Fix/refresh token #247: The modifications in this PR enhance token validation and error handling, which includes changes to string formatting, consistent with the main PR's focus on standardizing string delimiters.
  • fix: API handler warning #248: This PR addresses API handler warnings by modifying return statements to avoid returning values, which includes changes to string formatting, aligning with the main PR's focus on consistent string usage.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@DanielRivers DanielRivers merged commit c65d265 into main Nov 28, 2024
3 checks passed
@DanielRivers DanielRivers deleted the chore/prettier-update branch November 28, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant