@yipe/dice 0.2.21 → 0.2.22

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.cjs CHANGED
@@ -2309,7 +2309,9 @@ var Dice = class _Dice {
2309
2309
  if (key === "hit") {
2310
2310
  this.ensureHitDistribution();
2311
2311
  }
2312
- return this.outcomeData[key];
2312
+ const distribution = this.outcomeData[key];
2313
+ if (distribution === void 0) return void 0;
2314
+ return { ...distribution };
2313
2315
  }
2314
2316
  getFullOutcomeDistribution() {
2315
2317
  return { ...this.outcomeData };