From 5480f271f702768a2cae1af68c7888eeeccff391 Mon Sep 17 00:00:00 2001 From: Eric Crooks Date: Mon, 5 Aug 2024 23:01:15 -0400 Subject: [PATCH 1/2] fix(aoconnect): add dryRun() method return type to prevent `any` type --- src/modules/aoprocess/Process.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/aoprocess/Process.ts b/src/modules/aoprocess/Process.ts index 0523667..d9db494 100644 --- a/src/modules/aoprocess/Process.ts +++ b/src/modules/aoprocess/Process.ts @@ -1,5 +1,6 @@ import { Client } from "../aoconnect/Client.ts"; import { AoConnect } from "../aoconnect/interfaces/AoConnect.ts"; +import { DryRun } from "../aoconnect/units/compute/DryRun.ts"; export class Process { protected client: Client; @@ -49,12 +50,16 @@ export class Process { } /** - * Get DryRun message request builder for the given action. + * Get the DryRun message request builder for the given action. + * + * This method sets `.tags({ Action: action })`, so if you call `.tags()` and + * overwrite the `Action` tag, then this DryRun message request will use the + * `Action` you passed in. * * @param action The name of the action to build the DryRun message for. * @returns The DryRun message builder - predefined with this process' ID. */ - dryRun(action: Actions) { + dryRun(action: Actions): DryRun { return this.client .cu() .dryRun() From 0fe2f92f5ea1a39e245356ed4fe3f6a871d2d9e7 Mon Sep 17 00:00:00 2001 From: Eric Crooks Date: Mon, 5 Aug 2024 23:04:24 -0400 Subject: [PATCH 2/2] chore: bump to v0.0.13 --- package.json | 4 ++-- src/modules/aoprocess/Process.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index eae85f4..4200a56 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@smartweaver/slick-transaction", - "version": "0.0.12", - "versionBuildDate": "202340731.1624", + "version": "0.0.13", + "versionBuildDate": "20240805.2304", "description": "Slick builder APIs for creating Arweave transactions", "author": "Eric Crooks (https://crookse.com)", "license": "GPL-3.0", diff --git a/src/modules/aoprocess/Process.ts b/src/modules/aoprocess/Process.ts index d9db494..835ab36 100644 --- a/src/modules/aoprocess/Process.ts +++ b/src/modules/aoprocess/Process.ts @@ -51,7 +51,7 @@ export class Process { /** * Get the DryRun message request builder for the given action. - * + * * This method sets `.tags({ Action: action })`, so if you call `.tags()` and * overwrite the `Action` tag, then this DryRun message request will use the * `Action` you passed in.