Use npm package import for capstone.js instead of vendor copy

Replace the vendored capstone.min.js with the import from the
@alexaltea/capstone-js npm package, as suggested in code review.
This avoids duplicating the library in the repository while the
npm dependency was already declared in package.json.
This commit is contained in:
Medjedtxm 2026-03-08 08:35:59 -04:00
parent bf64fad392
commit 6b88ed42f5
2 changed files with 1 additions and 7966 deletions

View File

@ -7,7 +7,7 @@
import Operation from "../Operation.mjs";
import OperationError from "../errors/OperationError.mjs";
import { isWorkerEnvironment } from "../Utils.mjs";
import cs from "../vendor/capstone.min.js";
import cs from "@alexaltea/capstone-js/dist/capstone.min.js";
/**
* Disassemble ARM operation

File diff suppressed because one or more lines are too long