@based/client
Advanced tools
Comparing version 6.2.0 to 6.2.1
@@ -1,2 +0,2 @@ | ||
import { BasedClient } from './index.js'; | ||
import { BasedClient, BasedQuery } from './index.js'; | ||
import { CacheValue } from './types/cache.js'; | ||
@@ -16,5 +16,2 @@ export declare const createCacheObject: (client: BasedClient) => { | ||
}[]) => string; | ||
export declare const createInlineCache: (client: BasedClient, queries: { | ||
endpoint: string; | ||
payload?: any; | ||
}[]) => Promise<string>; | ||
export declare const createInlineCache: (client: BasedClient, queries: BasedQuery[]) => Promise<string>; |
@@ -27,4 +27,3 @@ import { genObserveId } from './genObserveId.js'; | ||
const m = {}; | ||
await Promise.all(queries.map(async ({ endpoint, payload }) => { | ||
const query = client.query(endpoint, payload); | ||
await Promise.all(queries.map(async (query) => { | ||
await query.get(); | ||
@@ -31,0 +30,0 @@ m[query.id] = client.cache.get(query.id); |
{ | ||
"name": "@based/client", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201131
3210