@pnp/adaljsclient
Advanced tools
Comparing version 2.0.1-3 to 2.0.2-0
@@ -1,7 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var common_1 = require("@pnp/common"); | ||
import { __awaiter, __extends, __generator } from "tslib"; | ||
import { BearerTokenFetchClient, isUrlAbsolute, SPFxAdalClient, getADALResource } from "@pnp/common"; | ||
// @ts-ignore | ||
var adal = require("adal-angular/dist/adal.min.js"); | ||
import * as adal from "adal-angular/dist/adal.min.js"; | ||
/** | ||
@@ -11,3 +9,3 @@ * Azure AD Client for use in the browser | ||
var AdalClient = /** @class */ (function (_super) { | ||
tslib_1.__extends(AdalClient, _super); | ||
__extends(AdalClient, _super); | ||
/** | ||
@@ -36,3 +34,3 @@ * Creates a new instance of AdalClient | ||
AdalClient.fromSPFxContext = function (spfxContext) { | ||
return new common_1.SPFxAdalClient(spfxContext); | ||
return new SPFxAdalClient(spfxContext); | ||
}; | ||
@@ -46,11 +44,11 @@ /** | ||
AdalClient.prototype.fetch = function (url, options) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var token; | ||
return tslib_1.__generator(this, function (_a) { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!common_1.isUrlAbsolute(url)) { | ||
if (!isUrlAbsolute(url)) { | ||
throw Error("You must supply absolute urls to AdalClient.fetch."); | ||
} | ||
return [4 /*yield*/, this.getToken(common_1.getADALResource(url))]; | ||
return [4 /*yield*/, this.getToken(getADALResource(url))]; | ||
case 1: | ||
@@ -70,5 +68,5 @@ token = _a.sent(); | ||
AdalClient.prototype.getToken = function (resource) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var token; | ||
return tslib_1.__generator(this, function (_a) { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
@@ -166,4 +164,4 @@ case 0: return [4 /*yield*/, this.ensureAuthContext()]; | ||
return AdalClient; | ||
}(common_1.BearerTokenFetchClient)); | ||
exports.AdalClient = AdalClient; | ||
}(BearerTokenFetchClient)); | ||
export { AdalClient }; | ||
//# sourceMappingURL=adalclient.js.map |
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./adalclient"), exports); | ||
export * from "./adalclient"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnp/adaljsclient", | ||
"version": "2.0.1-3", | ||
"version": "2.0.2-0", | ||
"description": "pnp - provides an ADAL client for use with PnPjs", | ||
@@ -10,3 +10,3 @@ "main": "./index.js", | ||
"tslib": "1.10.0", | ||
"@pnp/common": "2.0.1-3" | ||
"@pnp/common": "2.0.2-0" | ||
}, | ||
@@ -28,3 +28,7 @@ "devDependencies": { | ||
}, | ||
"module": "./module/index.js" | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://github.com/sponsors/patrick-rodgers/" | ||
}, | ||
"type": "module" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
21200
Yes
1
+ Added@pnp/common@2.0.2-0(transitive)
- Removed@pnp/common@2.0.1-3(transitive)
Updated@pnp/common@2.0.2-0