@npora/request 1.14.0 → 1.14.2
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.
- package/README.md +2 -0
- package/dist/index.cjs +4 -3352
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -3335
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -527,6 +527,7 @@ declare class InterceptorManager<T> {
|
|
|
527
527
|
eject(id: number): void;
|
|
528
528
|
clear(): void;
|
|
529
529
|
run(value: T): Promise<T>;
|
|
530
|
+
private runMaybeAsync;
|
|
530
531
|
private refreshOrder;
|
|
531
532
|
}
|
|
532
533
|
//#endregion
|
|
@@ -686,6 +687,9 @@ declare class Client {
|
|
|
686
687
|
* Consume newline-delimited JSON with complete response metadata.
|
|
687
688
|
*/
|
|
688
689
|
ndjsonResponse<T = unknown>(url: string, config?: Omit<RequestConfig, 'url' | 'method' | 'responseType' | 'schema'>): Promise<NporaResponse<AsyncIterable<T>>>;
|
|
690
|
+
private requestMethod;
|
|
691
|
+
private requestMethodResponse;
|
|
692
|
+
private mergeMethodConfig;
|
|
689
693
|
private createPipeline;
|
|
690
694
|
private validatePlugin;
|
|
691
695
|
private findDependent;
|
|
@@ -847,6 +851,7 @@ interface MemoryCacheStoreOptions {
|
|
|
847
851
|
declare class MemoryCacheStore implements CacheStore {
|
|
848
852
|
private readonly entries;
|
|
849
853
|
private readonly maxEntries;
|
|
854
|
+
private newestKey;
|
|
850
855
|
constructor(options?: MemoryCacheStoreOptions);
|
|
851
856
|
get(key: string): CacheEntry | undefined;
|
|
852
857
|
set(key: string, entry: CacheEntry): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -527,6 +527,7 @@ declare class InterceptorManager<T> {
|
|
|
527
527
|
eject(id: number): void;
|
|
528
528
|
clear(): void;
|
|
529
529
|
run(value: T): Promise<T>;
|
|
530
|
+
private runMaybeAsync;
|
|
530
531
|
private refreshOrder;
|
|
531
532
|
}
|
|
532
533
|
//#endregion
|
|
@@ -686,6 +687,9 @@ declare class Client {
|
|
|
686
687
|
* Consume newline-delimited JSON with complete response metadata.
|
|
687
688
|
*/
|
|
688
689
|
ndjsonResponse<T = unknown>(url: string, config?: Omit<RequestConfig, 'url' | 'method' | 'responseType' | 'schema'>): Promise<NporaResponse<AsyncIterable<T>>>;
|
|
690
|
+
private requestMethod;
|
|
691
|
+
private requestMethodResponse;
|
|
692
|
+
private mergeMethodConfig;
|
|
689
693
|
private createPipeline;
|
|
690
694
|
private validatePlugin;
|
|
691
695
|
private findDependent;
|
|
@@ -847,6 +851,7 @@ interface MemoryCacheStoreOptions {
|
|
|
847
851
|
declare class MemoryCacheStore implements CacheStore {
|
|
848
852
|
private readonly entries;
|
|
849
853
|
private readonly maxEntries;
|
|
854
|
+
private newestKey;
|
|
850
855
|
constructor(options?: MemoryCacheStoreOptions);
|
|
851
856
|
get(key: string): CacheEntry | undefined;
|
|
852
857
|
set(key: string, entry: CacheEntry): void;
|