@pnp/odata
Advanced tools
Comparing version 2.1.0-beta9 to 2.1.0
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-beta9", | ||
"version": "2.1.0", | ||
"description": "pnp - provides shared odata functionality and base classes", | ||
@@ -8,5 +8,5 @@ "main": "./index.js", | ||
"dependencies": { | ||
"tslib": "2.0.3", | ||
"@pnp/logging": "2.1.0-beta9", | ||
"@pnp/common": "2.1.0-beta9" | ||
"tslib": "2.1.0", | ||
"@pnp/logging": "2.1.0", | ||
"@pnp/common": "2.1.0" | ||
}, | ||
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
97836
1417
+ Added@pnp/common@2.1.0(transitive)
+ Added@pnp/logging@2.1.0(transitive)
+ Addedtslib@2.1.0(transitive)
- Removed@pnp/common@2.1.0-beta9(transitive)
- Removed@pnp/logging@2.1.0-beta9(transitive)
- Removedtslib@2.0.3(transitive)
Updated@pnp/common@2.1.0
Updated@pnp/logging@2.1.0
Updatedtslib@2.1.0