@specy/risc-v 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -43006,7 +43006,10 @@ var RISCVRegisters = /* @__PURE__ */ ((RISCVRegisters2) => {
43006
43006
  RISCVRegisters2[RISCVRegisters2["t6"] = 31] = "t6";
43007
43007
  return RISCVRegisters2;
43008
43008
  })(RISCVRegisters || {});
43009
- var RISCV_REGISTERS = Object.keys(RISCVRegisters);
43009
+ function keysOfEnum(e) {
43010
+ return Object.keys(e).filter((k) => isNaN(Number(k)));
43011
+ }
43012
+ var RISCV_REGISTERS = keysOfEnum(RISCVRegisters);
43010
43013
  function registerHandlers(riscv, handlers) {
43011
43014
  for (const [name, handler] of Object.entries(handlers)) {
43012
43015
  riscv.registerHandler(name, handler);
package/dist/index.mjs CHANGED
@@ -42972,7 +42972,10 @@ var RISCVRegisters = /* @__PURE__ */ ((RISCVRegisters2) => {
42972
42972
  RISCVRegisters2[RISCVRegisters2["t6"] = 31] = "t6";
42973
42973
  return RISCVRegisters2;
42974
42974
  })(RISCVRegisters || {});
42975
- var RISCV_REGISTERS = Object.keys(RISCVRegisters);
42975
+ function keysOfEnum(e) {
42976
+ return Object.keys(e).filter((k) => isNaN(Number(k)));
42977
+ }
42978
+ var RISCV_REGISTERS = keysOfEnum(RISCVRegisters);
42976
42979
  function registerHandlers(riscv, handlers) {
42977
42980
  for (const [name, handler] of Object.entries(handlers)) {
42978
42981
  riscv.registerHandler(name, handler);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specy/risc-v",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "keywords": [
5
5
  "risc-v",
6
6
  "rars",