Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Apr 2, 2024
1 parent b9fff65 commit 525afe1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@run-z/eslint-config": "^4.0.0",
"@run-z/prettier-config": "^2.0.0",
"@run-z/project-config": "^0.20.2",
"@swc/core": "^1.4.8",
"@swc/core": "^1.4.11",
"@swc/jest": "^0.2.36",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/schema/map/uc-map.serializer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('UcMap serializer', () => {
);
});
it('serializes entry with special keys', async () => {
const specialKey = '(%)\r\n\t\uD83D\uDFB1 ' as const;
const specialKey = '(%)\r\n\t\uD83D\uDFB1 ';
const compiler = new UcsCompiler({
models: {
writeMap: {
Expand Down
12 changes: 6 additions & 6 deletions src/syntax/uc-token-kind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
UcToken,
} from './uc-token.js';

export const UC_TOKEN_KIND_CONTROL = 0 as const;
export const UC_TOKEN_KIND_STRING = 1 as const;
export const UC_TOKEN_KIND_CONTROL = 0;
export const UC_TOKEN_KIND_STRING = 1;

export const UC_TOKEN_KIND_PADDING = 2 as const;
export const UC_TOKEN_KIND_NL = 4 as const;
export const UC_TOKEN_KIND_PADDING = 2;
export const UC_TOKEN_KIND_NL = 4;
export const UC_TOKEN_KIND_IS_WHITESPACE = UC_TOKEN_KIND_PADDING | UC_TOKEN_KIND_NL;

export const UC_TOKEN_KIND_BOUND = 0x10 as const;
export const UC_TOKEN_KIND_DELIMITER = 0x20 as const;
export const UC_TOKEN_KIND_BOUND = 0x10;
export const UC_TOKEN_KIND_DELIMITER = 0x20;
export const UC_TOKEN_KIND_IS_RESERVED = UC_TOKEN_KIND_BOUND | UC_TOKEN_KIND_DELIMITER;

export type UcTokenKind =
Expand Down
24 changes: 12 additions & 12 deletions src/syntax/uc-token.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Line terminators.
export const UC_TOKEN_LF = 0x0a as const;
export const UC_TOKEN_CR = 0x0d as const;
export const UC_TOKEN_CRLF = 0x0a0d as const; // Windows-style
export const UC_TOKEN_LF = 0x0a;
export const UC_TOKEN_CR = 0x0d;
export const UC_TOKEN_CRLF = 0x0a0d; // Windows-style

// Padding prefixes.
// Lowest byte is a code (space or tab), higher byte is the number of repeats.
export const UC_TOKEN_PREFIX_TAB = 0x09 as const;
export const UC_TOKEN_PREFIX_SPACE = 0x20 as const;
export const UC_TOKEN_PREFIX_TAB = 0x09;
export const UC_TOKEN_PREFIX_SPACE = 0x20;

/**
* _Inset_ starts with number token which lowest byte equals to this prefix. Tokens after this token considered
Expand All @@ -18,16 +18,16 @@ export const UC_TOKEN_PREFIX_SPACE = 0x20 as const;
*/
export const UC_TOKEN_PREFIX_INSET = 0x1f;

export const UC_TOKEN_INSET_URI_PARAM = 0x011f as const;
export const UC_TOKEN_INSET_URI_PARAM = 0x011f;
export const UC_TOKEN_INSET_END = UC_TOKEN_PREFIX_INSET;

// [Reserved characters](https://www.rfc-editor.org/rfc/rfc3986#section-2.2).
export const UC_TOKEN_EXCLAMATION_MARK = 0x21 as const;
export const UC_TOKEN_DOLLAR_SIGN = 0x24 as const;
export const UC_TOKEN_APOSTROPHE = 0x27 as const;
export const UC_TOKEN_OPENING_PARENTHESIS = 0x28 as const;
export const UC_TOKEN_CLOSING_PARENTHESIS = 0x29 as const;
export const UC_TOKEN_COMMA = 0x2c as const;
export const UC_TOKEN_EXCLAMATION_MARK = 0x21;
export const UC_TOKEN_DOLLAR_SIGN = 0x24;
export const UC_TOKEN_APOSTROPHE = 0x27;
export const UC_TOKEN_OPENING_PARENTHESIS = 0x28;
export const UC_TOKEN_CLOSING_PARENTHESIS = 0x29;
export const UC_TOKEN_COMMA = 0x2c;

/**
* URI charge token.
Expand Down

0 comments on commit 525afe1

Please sign in to comment.