Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

fix: don't use module #243

Merged
merged 1 commit into from
Sep 21, 2023
Merged

fix: don't use module #243

merged 1 commit into from
Sep 21, 2023

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Sep 21, 2023

🧰 Changes

😬 not sure how this got in here! This PR shuffles functions around a bit to address errors like this:

CleanShot 2023-09-21 at 14 04 41@2x

🧬 QA & Testing

Do tests pass?

@kanadgupta kanadgupta added the bug Something isn't working label Sep 21, 2023
@kanadgupta kanadgupta marked this pull request as ready for review September 21, 2023 19:03
@kanadgupta kanadgupta merged commit b457c36 into main Sep 21, 2023
7 checks passed
@kanadgupta kanadgupta deleted the don't-use-module branch September 21, 2023 19:06
@@ -322,7 +321,7 @@ function encodeObject({ location, key, value, style, explode, escape, isAllowedR
*/
function encodePrimitive({ location, key, value, style, escape, isAllowedReserved = false }: StylizerConfig) {
const valueEncoder = (str: string) =>
module.exports.encodeDisallowedCharacters(str, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an eslint rule to flag these that we should add in to the esm eslint config of ours? @kanadgupta

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erunion definitely — I can PR that!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants