Merge branch 'update-for-0.7.10' into 'master'

Update for 0.7.10

See merge request dungeonslayers/ds4!109
This commit is contained in:
Johannes Loher 2021-05-29 19:56:49 +00:00
commit 6b2e6ba440
8 changed files with 1165 additions and 1005 deletions

View file

@ -1,6 +1,5 @@
module.exports = { module.exports = {
preset: "ts-jest", preset: "ts-jest",
testEnvironment: "node",
globals: { globals: {
"ts-jest": { "ts-jest": {
tsconfig: "<rootDir>/spec/tsconfig.spec.json", tsconfig: "<rootDir>/spec/tsconfig.spec.json",

View file

@ -46,33 +46,33 @@
"postinstall": "husky install" "postinstall": "husky install"
}, },
"devDependencies": { "devDependencies": {
"@league-of-foundry-developers/foundry-vtt-types": "^0.7.9-6", "@league-of-foundry-developers/foundry-vtt-types": "^0.7.10-0",
"@rollup/plugin-node-resolve": "^11.2.1", "@rollup/plugin-node-resolve": "^13.0.0",
"@types/fs-extra": "^9.0.11", "@types/fs-extra": "^9.0.11",
"@types/jest": "^26.0.22", "@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.22.0", "@typescript-eslint/parser": "^4.25.0",
"chalk": "^4.1.1", "chalk": "^4.1.1",
"eslint": "^7.25.0", "eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^24.3.5", "eslint-plugin-jest": "^24.3.6",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.0",
"fs-extra": "^9.1.0", "fs-extra": "^10.0.0",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-sass": "^4.1.0", "gulp-sass": "^4.1.0",
"husky": "^5.2.0", "husky": "^6.0.0",
"jest": "^26.6.3", "jest": "^27.0.3",
"jest-junit": "^12.0.0", "jest-junit": "^12.1.0",
"lint-staged": "^10.5.4", "lint-staged": "^11.0.0",
"prettier": "^2.2.1", "prettier": "^2.3.0",
"rollup": "^2.45.2", "rollup": "^2.50.4",
"rollup-plugin-typescript2": "^0.30.0", "rollup-plugin-typescript2": "^0.30.0",
"sass": "^1.32.8", "sass": "^1.32.8",
"semver": "^7.3.5", "semver": "^7.3.5",
"ts-jest": "^26.5.5", "ts-jest": "^27.0.1",
"tslib": "^2.2.0", "tslib": "^2.2.0",
"typescript": "^4.2.4", "typescript": "^4.2.4",
"yargs": "^16.2.0" "yargs": "^17.0.1"
}, },
"lint-staged": { "lint-staged": {
"*.ts": "eslint --cache --fix", "*.ts": "eslint --cache --fix",

View file

@ -94,7 +94,7 @@ export class DS4Item extends Item<DS4ItemData, DS4ItemPreparedData> {
); );
} }
const actor = (this.actor as unknown) as DS4Actor; // TODO(types): Improve so that the concrete Actor type is known here const actor = this.actor as unknown as DS4Actor; // TODO(types): Improve so that the concrete Actor type is known here
const ownerDataData = actor.data.data; const ownerDataData = actor.data.data;
const weaponBonus = this.data.data.weaponBonus; const weaponBonus = this.data.data.weaponBonus;
const combatValue = await this.getCombatValueKeyForAttackType(this.data.data.attackType); const combatValue = await this.getCombatValueKeyForAttackType(this.data.data.attackType);
@ -130,7 +130,7 @@ export class DS4Item extends Item<DS4ItemData, DS4ItemPreparedData> {
); );
} }
const actor = (this.actor as unknown) as DS4Actor; // TODO(types): Improve so that the concrete Actor type is known here const actor = this.actor as unknown as DS4Actor; // TODO(types): Improve so that the concrete Actor type is known here
const ownerDataData = actor.data.data; const ownerDataData = actor.data.data;
const spellBonus = Number.isNumeric(this.data.data.bonus) ? parseInt(this.data.data.bonus) : undefined; const spellBonus = Number.isNumeric(this.data.data.bonus) ? parseInt(this.data.data.bonus) : undefined;
if (spellBonus === undefined) { if (spellBonus === undefined) {

View file

@ -79,7 +79,7 @@ function getSceneUpdateData(sceneData: Scene.Data) {
} }
const token = new Token(tokenData); const token = new Token(tokenData);
if (!token.actor) { if (!token.actor) {
tokenData.actorId = (null as unknown) as string; tokenData.actorId = null as unknown as string;
tokenData.actorData = {}; tokenData.actorData = {};
hasTokenUpdates = true; hasTokenUpdates = true;
} else if (!tokenData.actorLink) { } else if (!tokenData.actorLink) {

View file

@ -83,7 +83,7 @@ function getSceneUpdateData(sceneData: Scene.Data) {
} }
const token = new Token(tokenData); const token = new Token(tokenData);
if (!token.actor) { if (!token.actor) {
tokenData.actorId = (null as unknown) as string; tokenData.actorId = null as unknown as string;
tokenData.actorData = {}; tokenData.actorData = {};
hasTokenUpdates = true; hasTokenUpdates = true;
} else if (!tokenData.actorLink) { } else if (!tokenData.actorLink) {

View file

@ -95,7 +95,7 @@ function getSceneUpdateData(sceneData: Scene.Data) {
} }
const token = new Token(tokenData); const token = new Token(tokenData);
if (!token.actor) { if (!token.actor) {
tokenData.actorId = (null as unknown) as string; tokenData.actorId = null as unknown as string;
tokenData.actorData = {}; tokenData.actorData = {};
hasTokenUpdates = true; hasTokenUpdates = true;
} else if (!tokenData.actorLink) { } else if (!tokenData.actorLink) {

View file

@ -4,7 +4,7 @@
"description": "The Dungeonslayers 4 system for FoundryVTT. Dungeonslayers (© Christian Kennig) is licensed under CC BY-NC-SA 3.0 (https://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.en).", "description": "The Dungeonslayers 4 system for FoundryVTT. Dungeonslayers (© Christian Kennig) is licensed under CC BY-NC-SA 3.0 (https://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.en).",
"version": "0.7.0", "version": "0.7.0",
"minimumCoreVersion": "0.7.9", "minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.10",
"templateVersion": 6, "templateVersion": 6,
"author": "Johannes Loher, Gesina Schwalbe, Oliver Rümpelein, Siegfried Krug", "author": "Johannes Loher, Gesina Schwalbe, Oliver Rümpelein, Siegfried Krug",
"authors": [ "authors": [

2125
yarn.lock

File diff suppressed because it is too large Load diff