@dicelette/core 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/core/dice.ts +1 -1
- package/core/verify_template.ts +1 -1
- package/index.ts +4 -0
- package/package.json +2 -2
- package/tests/verify_template.test.ts +1 -1
- package/core/index.ts +0 -4
package/core/dice.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import { DiceRoller } from "@dice-roller/rpg-dice-roller";
|
3
3
|
import { evaluate } from "mathjs";
|
4
4
|
|
5
|
-
import { Compare, Modifier, Resultat, Sign } from "
|
5
|
+
import { Compare, Modifier, Resultat, Sign } from "..";
|
6
6
|
|
7
7
|
export const COMMENT_REGEX = /\s+(#|\/{2}|\[|\/\*)(.*)/;
|
8
8
|
const SIGN_REGEX =/[><=!]+/;
|
package/core/verify_template.ts
CHANGED
@@ -3,7 +3,7 @@ import { evaluate } from "mathjs";
|
|
3
3
|
import {Random } from "random-js";
|
4
4
|
import removeAccents from "remove-accents";
|
5
5
|
|
6
|
-
import { Statistic, StatisticalTemplate } from "
|
6
|
+
import { Statistic, StatisticalTemplate } from "..";
|
7
7
|
import { roll } from "./dice";
|
8
8
|
import { escapeRegex, replaceFormulaInDice } from "./utils";
|
9
9
|
|
package/index.ts
ADDED
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dicelette/core",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.5",
|
4
4
|
"description": "Core library for the Dicelette Discord bot",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "https://github.com/Dicelette/core.git"
|
8
8
|
},
|
9
9
|
"types": "@types",
|
10
|
-
"main": "
|
10
|
+
"main": "index.ts",
|
11
11
|
"keywords": [
|
12
12
|
"discord",
|
13
13
|
"roll",
|
package/core/index.ts
DELETED