Update dependencies
This commit is contained in:
parent
0ea18966f6
commit
18fbe6dcf9
7 changed files with 1164 additions and 1004 deletions
|
@ -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",
|
||||||
|
|
32
package.json
32
package.json
|
@ -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",
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue