From d1d29ef1ddd28d6be128d6a2385885d61c6ffcbf Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 28 Jul 2021 04:03:13 +0000 Subject: [PATCH 1/2] update: update dependency @apextoaster/js-utils to v0.4.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c1168ee3..1c09d2e4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "ssube ", "license": "MIT", "dependencies": { - "@apextoaster/js-utils": "0.3.0", + "@apextoaster/js-utils": "0.4.0", "@apextoaster/js-yaml-schema": "0.4.0", "ajv": "8.6.2", "bunyan": "1.8.15", diff --git a/yarn.lock b/yarn.lock index 844352c9..f30b5771 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@apextoaster/js-utils@0.3.0": - version "0.3.0" - resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-utils/-/js-utils-0.3.0.tgz#c592732d22c95c9df6b97447da641047b4f69e01" - integrity sha512-CUJk4N/69XtiLMz4KFR9kXIvX2tqCqeqGd6Pa+LQ1u0iGD7IOZVJej0Dkr2qFeWwsPamS+XwwSvs8JV02m8/FA== +"@apextoaster/js-utils@0.4.0": + version "0.4.0" + resolved "https://artifacts.apextoaster.com/repository/group-npm/@apextoaster/js-utils/-/js-utils-0.4.0.tgz#2fc1b83af1a4196ea2487d261c9bf6a6d922e814" + integrity sha512-vJHsEK5jFVSUQi8cNb5GhsQMEPyedBxGgxh6/s99GHGiQOMWZtkkNacjagOPGUGPqHymybthrqAhHkLlLQCkSw== "@apextoaster/js-yaml-schema@0.4.0": version "0.4.0" From f0d7fce3b7ef33f8cbbbcaac07adb3f8ce7e4455 Mon Sep 17 00:00:00 2001 From: ssube Date: Sun, 1 Aug 2021 23:59:40 -0500 Subject: [PATCH 2/2] fix(script): replace removed utility functions --- src/script/verb/actor/ActorEquip.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/verb/actor/ActorEquip.ts b/src/script/verb/actor/ActorEquip.ts index 21d759e8..f4216831 100644 --- a/src/script/verb/actor/ActorEquip.ts +++ b/src/script/verb/actor/ActorEquip.ts @@ -1,4 +1,4 @@ -import { countOf, defaultWhen, isNil, mustExist } from '@apextoaster/js-utils'; +import { defaultWhen, isNone, lengthOf, mustExist } from '@apextoaster/js-utils'; import { ScriptTargetError } from '../../../error/ScriptTargetError'; import { isActor } from '../../../model/entity/Actor'; @@ -29,7 +29,7 @@ export async function VerbActorEquip(this: ScriptTarget, context: ScriptContext) }); const item = indexEntity(results, command.index, isItem); - if (isNil(item)) { + if (isNone(item)) { return context.state.show(context.source, 'actor.verb.equip.missing', { command }); } @@ -42,7 +42,7 @@ export async function VerbActorEquip(this: ScriptTarget, context: ScriptContext) } const validSlots = findActorSlots(this, slotName); - if (countOf(validSlots) === 0) { + if (lengthOf(validSlots) === 0) { return context.state.show(context.source, 'actor.verb.equip.slot.missing', { item, slot: slotName }); }