Skip to content

Commit b448830

Browse files
committed
2.3.1
1 parent 71f34c9 commit b448830

File tree

4 files changed

+37
-19
lines changed

4 files changed

+37
-19
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "h264-profile-level-id",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "TypeScript utility to process H264 profile-level-id values",
55
"author": "Iñaki Baz Castillo <[email protected]> (https://inakibaz.me)",
66
"license": "ISC",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ export function supportedLevel(
659659
const PixelsPerMacroblock = 16 * 16;
660660

661661
for (let i = LevelConstraints.length - 1; i >= 0; --i) {
662-
const level_constraint: LevelConstraint = LevelConstraints[i];
662+
const level_constraint: LevelConstraint = LevelConstraints[i]!;
663663

664664
if (
665665
level_constraint.max_macroblock_frame_size * PixelsPerMacroblock <=

tsconfig.json

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
11
{
22
"compileOnSave": true,
33
"compilerOptions": {
4-
"lib": ["es2022", "dom"],
5-
"target": "es2020",
6-
"module": "commonjs",
7-
"moduleResolution": "node",
8-
"esModuleInterop": true,
9-
"isolatedModules": true,
10-
"strict": true,
4+
"lib": ["es2024"],
5+
"module": "NodeNext",
6+
"moduleResolution": "NodeNext",
117
"outDir": "lib",
128
"declaration": true,
13-
"declarationMap": true
9+
"declarationMap": true,
10+
"emitDeclarationOnly": false,
11+
"declarationDir": "lib",
12+
"isolatedModules": true,
13+
"verbatimModuleSyntax": false,
14+
"useDefineForClassFields": true,
15+
"esModuleInterop": false,
16+
"allowImportingTsExtensions": false,
17+
"allowUnreachableCode": false,
18+
"allowUnusedLabels": false,
19+
"alwaysStrict": true,
20+
"exactOptionalPropertyTypes": false,
21+
"noFallthroughCasesInSwitch": true,
22+
"noImplicitAny": true,
23+
"noImplicitOverride": true,
24+
"noImplicitReturns": true,
25+
"noImplicitThis": true,
26+
"noPropertyAccessFromIndexSignature": true,
27+
"noUncheckedIndexedAccess": true,
28+
"noUnusedLocals": true,
29+
"noUnusedParameters": true,
30+
"strict": true,
31+
"strictBindCallApply": true,
32+
"strictBuiltinIteratorReturn": true,
33+
"strictFunctionTypes": true,
34+
"strictNullChecks": true,
35+
"strictPropertyInitialization": true,
36+
"useUnknownInCatchVariables": true,
37+
"noUncheckedSideEffectImports": true
1438
},
15-
"include": ["src"],
16-
"watchOptions": {
17-
"watchFile": "useFsEvents",
18-
"watchDirectory": "useFsEvents",
19-
"fallbackPolling": "dynamicPriority",
20-
"synchronousWatchDirectory": true
21-
}
39+
"include": ["src"]
2240
}

0 commit comments

Comments
 (0)