@platonic-dice/dice 2.1.0 → 2.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RollType, roll as coreRoll, rollMod as coreRollMod, rollTest as coreRollTest, rollModTest as coreRollModTest, } from "@platonic-dice/core";
|
|
2
2
|
import { isDieRollRecord, isModifiedDieRollRecord, isTargetDieRollRecord, isModifiedTestDieRollRecord, } from "./internal/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation that delegates to `@platonic-dice/core` and uses
|
|
@@ -53,8 +53,7 @@ export class RollRecordFactory {
|
|
|
53
53
|
}
|
|
54
54
|
createModifiedTestRoll(dieType, modifier, testConditions, rollType, options) {
|
|
55
55
|
// Delegate to core rollModTest which combines modifier and test logic
|
|
56
|
-
|
|
57
|
-
const { base, modified, outcome } = core.rollModTest(dieType, modifier, testConditions, rollType, options);
|
|
56
|
+
const { base, modified, outcome } = coreRollModTest(dieType, modifier, testConditions, rollType, options);
|
|
58
57
|
const ts = new Date();
|
|
59
58
|
const record = {
|
|
60
59
|
roll: base,
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,4 @@ export { Die } from "./die.js";
|
|
|
8
8
|
// Re-export core types and values that consumers will need
|
|
9
9
|
// Note: Import from default due to CommonJS/ESM interop
|
|
10
10
|
import core from "@platonic-dice/core";
|
|
11
|
-
export const { DieType, RollType } = core;
|
|
12
|
-
// rollModTest is available on core but not typed in dist-types, export directly
|
|
13
|
-
export const rollModTest = core.rollModTest;
|
|
11
|
+
export const { DieType, RollType, rollModTest } = core;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platonic-dice/dice",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Persistent dice objects with roll history and TypeScript support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test:watch": "vitest"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@platonic-dice/core": "^2.1.
|
|
42
|
+
"@platonic-dice/core": "^2.1.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsc-alias": "^1.8.16",
|