@pnp/odata
Advanced tools
Comparing version 2.1.0-beta10 to 2.1.0-beta11
import { IODataParser } from "./parsers.js"; | ||
import { IPnPClientStore, PnPClientStorage } from "@pnp/common"; | ||
import { IPnPClientStore } from "@pnp/common"; | ||
export interface ICachingOptions { | ||
@@ -12,3 +12,2 @@ expiration?: Date; | ||
expiration?: Date; | ||
protected static storage: PnPClientStorage; | ||
constructor(key: string, storeName?: "session" | "local", expiration?: Date); | ||
@@ -15,0 +14,0 @@ get store(): IPnPClientStore; |
import { PnPClientStorage } from "@pnp/common"; | ||
const storage = new PnPClientStorage(); | ||
export class CachingOptions { | ||
@@ -10,10 +11,9 @@ constructor(key, storeName, expiration) { | ||
if (this.storeName === "local") { | ||
return CachingOptions.storage.local; | ||
return storage.local; | ||
} | ||
else { | ||
return CachingOptions.storage.session; | ||
return storage.session; | ||
} | ||
} | ||
} | ||
CachingOptions.storage = new PnPClientStorage(); | ||
export class CachingParserWrapper { | ||
@@ -20,0 +20,0 @@ constructor(parser, cacheOptions) { |
{ | ||
"name": "@pnp/odata", | ||
"version": "2.1.0-beta10", | ||
"version": "2.1.0-beta11", | ||
"description": "pnp - provides shared odata functionality and base classes", | ||
@@ -9,4 +9,4 @@ "main": "./index.js", | ||
"tslib": "2.0.3", | ||
"@pnp/logging": "2.1.0-beta10", | ||
"@pnp/common": "2.1.0-beta10" | ||
"@pnp/logging": "2.1.0-beta11", | ||
"@pnp/common": "2.1.0-beta11" | ||
}, | ||
@@ -13,0 +13,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
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
97857
1417
+ Added@pnp/common@2.1.0-beta11(transitive)
+ Added@pnp/logging@2.1.0-beta11(transitive)
- Removed@pnp/common@2.1.0-beta10(transitive)
- Removed@pnp/logging@2.1.0-beta10(transitive)
Updated@pnp/common@2.1.0-beta11
Updated@pnp/logging@2.1.0-beta11