testing-farm
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -13,2 +13,3 @@ import { isError } from './util'; | ||
newRequest(request: NewRequest, strict: boolean): Promise<unknown>; | ||
unsafeNewRequest(request: unknown): Promise<unknown>; | ||
requestDetails(requestId: string): Promise<Request>; | ||
@@ -15,0 +16,0 @@ requestDetails(requestId: string, strict: boolean): Promise<unknown>; |
@@ -23,2 +23,5 @@ import { PublicLink } from './link'; | ||
} | ||
async unsafeNewRequest(request) { | ||
return await this.link.post('requests', request); | ||
} | ||
async requestDetails(requestId, strict) { | ||
@@ -25,0 +28,0 @@ const id = requestIdSchema.parse(requestId); |
{ | ||
"name": "testing-farm", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "A NodeJS module to access Testing Farm instances through the REST API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -53,2 +53,3 @@ # Testing Farm | ||
const response: unknown = await api.newRequest(request, false); | ||
const response: unknown = await api.unsafeNewRequest(request /* unknown type */); | ||
``` | ||
@@ -55,0 +56,0 @@ |
@@ -81,2 +81,6 @@ import { PublicLink } from './link'; | ||
async unsafeNewRequest(request: unknown): Promise<unknown> { | ||
return await this.link.post('requests', request); | ||
} | ||
async requestDetails(requestId: string): Promise<Request>; | ||
@@ -83,0 +87,0 @@ async requestDetails(requestId: string, strict: boolean): Promise<unknown>; |
Sorry, the diff of this file is not supported yet
105413
1691
100