fix: fix master tag type

This commit is contained in:
2025-03-18 02:46:18 +08:00
parent 11fdb0f2fc
commit 9a5d025f40
24 changed files with 880 additions and 905 deletions

View File

@@ -1,11 +1,11 @@
import { assert, describe, it } from 'vitest';
import {
EbmlTagPosition,
EbmlElementType,
EbmlStreamDecoder as Decoder,
EbmlDataTag,
EbmlElementType,
EbmlTagPosition,
type EbmlTagType,
} from 'konoebml';
import { assert, describe, it } from 'vitest';
const bufFrom = (data: Uint8Array | readonly number[]): ArrayBuffer =>
new Uint8Array(data).buffer;

View File

@@ -1,11 +1,11 @@
import { assert, expect, describe, it } from 'vitest';
import {
EbmlStreamEncoder,
EbmlTagIdEnum,
EbmlTagPosition,
type EbmlTagTrait,
EbmlTagIdEnum,
createEbmlTagForManuallyBuild,
EbmlStreamEncoder,
} from 'konoebml';
import { assert, describe, expect, it } from 'vitest';
const invalidTag: EbmlTagTrait = <EbmlTagTrait>(<any>{
id: undefined,

View File

@@ -1,14 +1,14 @@
import { assert, describe, it, expect } from 'vitest';
import {
type EbmlBlockTag,
EbmlStreamDecoder,
EbmlStreamEncoder,
type EbmlTagTrait,
EbmlTagIdEnum,
type EbmlBlockTag,
createEbmlTagForManuallyBuild,
type EbmlTagTrait,
type EbmlTagType,
createEbmlTagForManuallyBuild,
} from 'konoebml';
import { concatArrayBuffers } from 'konoebml/tools';
import { assert, describe, expect, it } from 'vitest';
describe('EBML Pipeline', () => {
async function assertPipelineOutputEquals(

View File

@@ -1,4 +1,3 @@
import { assert, describe, it } from 'vitest';
import {
readAscii,
readElementIdVint,
@@ -9,6 +8,7 @@ import {
readVint,
writeVint,
} from 'konoebml/tools';
import { assert, describe, it } from 'vitest';
function bufFrom(data: Uint8Array | readonly number[]): Uint8Array {
return new Uint8Array(data);

View File

@@ -1,14 +1,14 @@
import fs from 'node:fs';
import { assert, describe, it } from 'vitest';
import {
EbmlStreamDecoder,
EbmlTagIdEnum,
EbmlSimpleBlockTag as SimpleBlock,
EbmlDataTag,
type EbmlTagType,
} from 'konoebml';
import { Readable } from 'node:stream';
import { WritableStream } from 'node:stream/web';
import {
EbmlDataTag,
EbmlStreamDecoder,
EbmlTagIdEnum,
type EbmlTagType,
EbmlSimpleBlockTag as SimpleBlock,
} from 'konoebml';
import { assert, describe, it } from 'vitest';
process.setMaxListeners(Number.POSITIVE_INFINITY);