@specter-automation/test 1.0.114 → 1.0.115

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.
@@ -58,6 +58,10 @@ export declare class SpecterLocator<T = any> {
58
58
  } ? (A extends Record<string, never> ? [] : [A]) : [Record<string, any>?]) : [Record<string, any>?]) : [Record<string, any>?]): Promise<T extends keyof SpecterFunctionRegistry ? (F extends keyof SpecterFunctionRegistry[T] ? (SpecterFunctionRegistry[T][F] extends {
59
59
  returnType: infer R;
60
60
  } ? R : any) : any) : any>;
61
+ /**
62
+ * Alias for `callFunction`. Calls a C++ UFUNCTION and returns the result.
63
+ */
64
+ callFunctionWithReturn(functionName: string, parameters?: Record<string, any>): Promise<any>;
61
65
  hasGameplayTag(tagToCheck: string): Promise<boolean>;
62
66
  getObjectName(): Promise<string>;
63
67
  getPropertyValue(propertyName: string): Promise<any>;
@@ -201,6 +201,12 @@ class SpecterLocator {
201
201
  }, functionName);
202
202
  return response.data?.ReturnValue || response.data?.returnValue || response.data;
203
203
  }
204
+ /**
205
+ * Alias for `callFunction`. Calls a C++ UFUNCTION and returns the result.
206
+ */
207
+ async callFunctionWithReturn(functionName, parameters) {
208
+ return this.callFunction(functionName, parameters);
209
+ }
204
210
  async hasGameplayTag(tagToCheck) {
205
211
  const response = await this.evaluate("HasGameplayTag", { tag: tagToCheck }, tagToCheck);
206
212
  return response.data.hasTag === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specter-automation/test",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "Playwright integration for Unreal Engine automation via Specter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",