@relaypro/sdk
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -87,2 +87,3 @@ import * as enums from './enums'; | ||
unset(names: string | string[]): Promise<void>; | ||
getQueryText(): Promise<string | undefined>; | ||
getVar(name: string, defaultValue?: undefined): Promise<string | undefined>; | ||
@@ -89,0 +90,0 @@ getMappedVar<Type>(name: string, mapper: Mapper<Type>, defaultValue?: undefined): Promise<Type | undefined>; |
@@ -362,2 +362,5 @@ "use strict"; | ||
} | ||
async getQueryText() { | ||
return this.getVar(`spillover`); | ||
} | ||
async getVar(name, defaultValue = undefined) { | ||
@@ -364,0 +367,0 @@ const result = await this._call(`get_var`, { name }); |
@@ -43,3 +43,3 @@ /// <reference types="node" /> | ||
export interface Relay { | ||
workflow: (path: string, workflow: Workflow) => void; | ||
workflow: (path: string | Workflow, workflow: Workflow) => void; | ||
} | ||
@@ -46,0 +46,0 @@ export declare type StopEvent = { |
{ | ||
"name": "@relaypro/sdk", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Workflow SDK Relay on Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
53327
1185