@pnp/queryable
Advanced tools
Comparing version 3.0.0-v3nightly.20210902 to 3.0.0-v3nightly.20210905
import { Queryable } from "../queryable.js"; | ||
import { TimelinePipe } from "@pnp/core"; | ||
/** | ||
@@ -12,3 +11,3 @@ * Pessimistic Caching Behavior | ||
*/ | ||
export declare function CachingPessimisticRefresh(type?: "local" | "session", keyFactory?: (url: string) => string, expireFunc?: () => Date): TimelinePipe<Queryable>; | ||
export declare function CachingPessimisticRefresh(type?: "local" | "session", keyFactory?: (url: string) => string, expireFunc?: () => Date): (instance: Queryable) => Queryable; | ||
//# sourceMappingURL=cachingPessimistic.d.ts.map |
@@ -11,3 +11,2 @@ import { isFunc, getHashCode, PnPClientStorage, getGUID, extend } from "@pnp/core"; | ||
*/ | ||
// eslint-disable-next-line max-len | ||
export function CachingPessimisticRefresh(type = "session", keyFactory, expireFunc) { | ||
@@ -69,3 +68,2 @@ let store; | ||
const requestId = getGUID(); | ||
// let requestUrl: URL; | ||
const emitError = (e) => { | ||
@@ -90,3 +88,3 @@ this.emit.log(`[id:${requestId}] Emitting error: "${e.message || e}"`, 3); | ||
[requestUrl, result] = await this.emit.post(requestUrl, result); | ||
this.emit.log(`[id:${requestId}] Emitted post`, 0); | ||
this.emit.log(`[id:${requestId}] Emitted post`, 0 /* Verbose */); | ||
return result; | ||
@@ -93,0 +91,0 @@ }; |
{ | ||
"name": "@pnp/queryable", | ||
"version": "3.0.0-v3nightly.20210902", | ||
"version": "3.0.0-v3nightly.20210905", | ||
"description": "pnp - provides shared odata functionality and base classes", | ||
@@ -9,3 +9,3 @@ "main": "./index.js", | ||
"tslib": "2.1.0", | ||
"@pnp/core": "3.0.0" | ||
"@pnp/core": "3.0.0-v3nightly.20210905" | ||
}, | ||
@@ -12,0 +12,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69857
787
+ Added@pnp/core@3.0.0-v3nightly.20210905(transitive)
+ Addedlodash.clonedeep@4.5.0(transitive)
- Removed@pnp/core@3.0.0(transitive)
- Removedtslib@2.3.1(transitive)