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

@pnp/adaljsclient

Package Overview
Dependencies
Maintainers
9
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/adaljsclient - npm Package Compare versions

Comparing version 2.0.1-3 to 2.0.2-0

commonjs/adalclient.cjs

28

adalclient.js

@@ -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"
}
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