From 3d98e9b211a575e995c4c89a17898b27a191ca53 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Sun, 8 Dec 2024 17:13:52 -0800 Subject: [PATCH] Fix import error in unrar/rarvm, v1.2.4 --- CHANGELOG.md | 6 ++++++ archive/rarvm.js | 2 +- archive/unrar.js | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fe6dac..fa71a0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.2.4] - 2024-12-08 + +### Fixed + +- Fixed import error in unrar/rarvm. + ## [1.2.3] - 2024-02-04 ### Added diff --git a/archive/rarvm.js b/archive/rarvm.js index 55206ea..da0782f 100644 --- a/archive/rarvm.js +++ b/archive/rarvm.js @@ -336,7 +336,7 @@ class VM_PreparedProgram { /** */ -class UnpackFilter { +export class UnpackFilter { constructor() { /** @type {number} */ this.BlockStart = 0; diff --git a/archive/unrar.js b/archive/unrar.js index df89122..8a75c59 100644 --- a/archive/unrar.js +++ b/archive/unrar.js @@ -14,7 +14,8 @@ import { BitStream } from '../io/bitstream.js'; import { ByteStream } from '../io/bytestream.js'; import { ByteBuffer } from '../io/bytebuffer.js'; -import { RarVM, VM_GLOBALMEMADDR, VM_GLOBALMEMSIZE, VM_FIXEDGLOBALSIZE, MAXWINMASK } from './rarvm.js'; +import { RarVM, UnpackFilter, VM_GLOBALMEMADDR, VM_GLOBALMEMSIZE, + VM_FIXEDGLOBALSIZE, MAXWINMASK } from './rarvm.js'; const UnarchiveState = { NOT_STARTED: 0,