@swrpg-online/dice 1.0.4 → 1.0.5

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/cli.d.ts CHANGED
@@ -2,3 +2,4 @@
2
2
  import { DicePool } from "./types";
3
3
  export declare function parseDiceNotation(input: string): DicePool;
4
4
  export declare function formatResult(result: any): string;
5
+ export declare const main: () => void;
package/dist/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.main = void 0;
4
5
  exports.parseDiceNotation = parseDiceNotation;
5
6
  exports.formatResult = formatResult;
6
7
  const dice_1 = require("./dice");
@@ -54,10 +55,10 @@ function parseDiceNotation(input) {
54
55
  break;
55
56
  // b/boo = Blue/Boost
56
57
  case "b":
57
- pool.setBackDice = count;
58
+ pool.boostDice = count;
58
59
  break;
59
60
  case "boo":
60
- pool.setBackDice = count;
61
+ pool.boostDice = count;
61
62
  break;
62
63
  // r/c = Red/ Challenge
63
64
  case "r":
@@ -125,6 +126,7 @@ const main = () => {
125
126
  const result = (0, dice_1.roll)(pool);
126
127
  console.log(formatResult(result));
127
128
  };
129
+ exports.main = main;
128
130
  if (require.main === module) {
129
- main();
131
+ (0, exports.main)();
130
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swrpg-online/dice",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A TypeScript library for simulating Star Wars RPG narrative dice rolls.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {