Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnp/odata

Package Overview
Dependencies
Maintainers
13
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/odata - npm Package Compare versions

Comparing version 2.1.0-beta9 to 2.1.0

3

caching.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc