refactor!: drop cjs support

+ Publish to JSR (jsr.io)
This commit is contained in:
Luan
2024-11-02 01:50:30 -03:00
parent b2076342e7
commit ec64dd5183
5 changed files with 52 additions and 24 deletions

View File

@@ -113,7 +113,6 @@ export class UMP {
}
public canReadFromCurrentChunk(offset: number, length: number): boolean {
this.chunkedDataBuffer.isFocused(offset);
return offset - this.chunkedDataBuffer.currentChunkOffset + length <= this.chunkedDataBuffer.chunks[this.chunkedDataBuffer.currentChunkIndex].length;
}

View File

@@ -90,7 +90,7 @@ export class CustomEvent extends Event {
this.#detail = options?.detail ?? null;
}
get detail() {
get detail(): any[] | null {
return this.#detail;
}
}