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