Skip to content

Commit

Permalink
chore(deps-dev): Bump prettier from 3.0.3 to 3.1.1 (#638)
Browse files Browse the repository at this point in the history
* chore(deps-dev): Bump prettier from 3.0.3 to 3.1.1

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.0.3...3.1.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* format

* format (again)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Felix Boehm <188768+fb55@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and fb55 authored Jan 4, 2024
1 parent bf3c1d2 commit 330f324
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-unicorn": "^50.0.1",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"typedoc": "^0.25.6",
"typescript": "^5.3.3"
Expand Down
14 changes: 7 additions & 7 deletions src/sniffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ export class Sniffer {
encoding === "x-user-defined"
? "windows-1252"
: // Check if we are in a meta tag or xml declaration, and the encoding is UTF-16
(type === ResultType.META_TAG ||
type === ResultType.XML_ENCODING) &&
(encoding === "UTF-16LE" || encoding === "UTF-16BE")
? "UTF-8"
: encoding;
(type === ResultType.META_TAG ||
type === ResultType.XML_ENCODING) &&
(encoding === "UTF-16LE" || encoding === "UTF-16BE")
? "UTF-8"
: encoding;

this.resultType = type;
}
Expand Down Expand Up @@ -605,8 +605,8 @@ export class Sniffer {
this.attribType === AttribType.Content
? State.MetaContentValueQuotedBeforeEncoding
: this.attribType === AttribType.HttpEquiv
? State.MetaAttribHttpEquivValue
: State.AttributeValueQuoted;
? State.MetaAttribHttpEquivValue
: State.AttributeValueQuoted;
} else if (this.attribType === AttribType.Content) {
this.state = State.MetaContentValueUnquotedBeforeEncoding;
this.stateMetaContentValueUnquotedBeforeEncoding(c);
Expand Down

0 comments on commit 330f324

Please sign in to comment.