haystack-nclient
Advanced tools
Comparing version 3.0.14 to 3.0.15
@@ -170,2 +170,9 @@ import { HNamespace, HVal, HaysonVal } from 'haystack-core'; | ||
fetchVal<T extends HVal>(resource: RequestInfo, body?: HVal | HaysonVal, options?: RequestInit): Promise<T>; | ||
/** | ||
* Closes the client. | ||
* | ||
* Warning: this will close any watches associated with this client. Any | ||
* watches may throw an error if they are used after being closed. | ||
*/ | ||
close(): Promise<void>; | ||
} |
import { FetchMethod } from './fetchVal'; | ||
/** | ||
* An enhanced fetch API for a pluggable authentication mechanism | ||
* An enhanced fetch API for a pluggable authentication mechanism. | ||
* | ||
@@ -8,7 +8,7 @@ * Transparently handles pre-authentication, authentication fault detection, authentication, and | ||
* | ||
* This fetch function will utilize the finCsrfFetch function internally to execute the request | ||
* By default, this fetch function will utilize the finCsrfFetch function internally to execute the request. | ||
* | ||
* Example | ||
* For example... | ||
* | ||
* ```typescript | ||
* | ||
* const result = finAuthFetch(request, { | ||
@@ -15,0 +15,0 @@ * authenticator: { |
@@ -121,2 +121,12 @@ import { HGrid, HDict } from 'haystack-core'; | ||
/** | ||
* Close all watches for the given subject. | ||
* | ||
* Please note, this method doesn't normally need to be called | ||
* and is designed to be used internally. If you want | ||
* to close a watch then please just call `Watch.#close()` instead. | ||
* | ||
* @param subject The subject to close watches for. | ||
*/ | ||
static close(subject: Subject): Promise<void>; | ||
/** | ||
* Add records to watch. | ||
@@ -123,0 +133,0 @@ * |
@@ -31,2 +31,6 @@ import { HGrid } from 'haystack-core'; | ||
make(display: string, ids: Ids, grid?: HGrid): Promise<Watch>; | ||
/** | ||
* Closes any open watches for this watch service. | ||
*/ | ||
close(): Promise<void>; | ||
} |
@@ -13,3 +13,3 @@ { | ||
"homepage": "https://github.com/j2inn/haystack-nclient", | ||
"version": "3.0.14", | ||
"version": "3.0.15", | ||
"module": "dist/index.es.js", | ||
@@ -16,0 +16,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
490403
12060