@pnp/azidjsclient
Advanced tools
Comparing version 3.14.0 to 3.15.0-v3nightly.20230515
import { PnPClientStorage, getHashCode } from "@pnp/core/index.js"; | ||
export function AzureIdentity(credential, scopes = ["https://graph.microsoft.com/.default"], options) { | ||
const key = `AzureIdentityCredential${getHashCode(scopes.join())}`; | ||
const key = `AzureIdentityCredential${Math.abs(getHashCode(scopes.join()))}`; | ||
const storage = new PnPClientStorage(); | ||
@@ -12,3 +12,3 @@ return (instance) => { | ||
const storedToken = JSON.parse(tokenStore); | ||
if (storedToken.expires < (new Date())) { | ||
if (new Date(storedToken.expires) > (new Date())) { | ||
token = storedToken.token; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "@pnp/azidjsclient", | ||
"version": "3.14.0", | ||
"description": "pnp - provides an Azure Identity wrapper client for use with PnPjs", | ||
"main": "./index.js", | ||
"typings": "./index", | ||
"dependencies": { | ||
"@pnp/core": "3.14.0", | ||
"@pnp/queryable": "3.14.0", | ||
"@azure/identity": "3.1.4", | ||
"tslib": "2.4.1" | ||
}, | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/patrick-rodgers/" | ||
}, | ||
"type": "module", | ||
"engines": { | ||
"node": ">=14.15.1" | ||
}, | ||
"author": { | ||
"name": "Microsoft and other contributors" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pnp/pnpjs/issues" | ||
}, | ||
"homepage": "https://github.com/pnp/pnpjs", | ||
"repository": { | ||
"type": "git", | ||
"url": "git:github.com/pnp/pnpjs" | ||
} | ||
"name": "@pnp/azidjsclient", | ||
"version": "3.15.0-v3nightly.20230515", | ||
"description": "pnp - provides an Azure Identity wrapper client for use with PnPjs", | ||
"main": "./index.js", | ||
"typings": "./index", | ||
"dependencies": { | ||
"@pnp/core": "3.15.0-v3nightly.20230515", | ||
"@pnp/queryable": "3.15.0-v3nightly.20230515", | ||
"@azure/identity": "3.2.1", | ||
"tslib": "2.5.0" | ||
}, | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/patrick-rodgers/" | ||
}, | ||
"type": "module", | ||
"engines": { | ||
"node": ">=14.15.1" | ||
}, | ||
"author": { | ||
"name": "Microsoft and other contributors" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pnp/pnpjs/issues" | ||
}, | ||
"homepage": "https://github.com/pnp/pnpjs", | ||
"repository": { | ||
"type": "git", | ||
"url": "git:github.com/pnp/pnpjs" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8266
1
+ Added@azure/identity@3.2.1(transitive)
+ Added@pnp/core@3.15.0-v3nightly.20230515(transitive)
+ Added@pnp/queryable@3.15.0-v3nightly.20230515(transitive)
+ Addedtslib@2.5.0(transitive)
- Removed@azure/identity@3.1.4(transitive)
- Removed@pnp/core@3.14.0(transitive)
- Removed@pnp/queryable@3.14.0(transitive)
Updated@azure/identity@3.2.1
Updatedtslib@2.5.0