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

@azure/msal-node-extensions

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-node-extensions - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5

15

CHANGELOG.json

@@ -5,2 +5,17 @@ {

{
"date": "Wed, 03 Mar 2021 22:13:23 GMT",
"tag": "@azure/msal-node-extensions_v1.0.0-alpha.5",
"version": "1.0.0-alpha.5",
"comments": {
"prerelease": [
{
"comment": "Fix npm audit warnings",
"author": "janutter@microsoft.com",
"commit": "751026cdaa24dd370c50ad714bf0b1d54c71fbde",
"package": "@azure/msal-node-extensions"
}
]
}
},
{
"date": "Wed, 14 Oct 2020 23:45:07 GMT",

@@ -7,0 +22,0 @@ "tag": "@azure/msal-node-extensions_v1.0.0-alpha.4",

10

changelog.md
# Change Log - @azure/msal-node-extensions
This log was last generated on Wed, 14 Oct 2020 23:45:07 GMT and should not be manually modified.
This log was last generated on Wed, 03 Mar 2021 22:13:23 GMT and should not be manually modified.
<!-- Start content -->
## 1.0.0-alpha.5
Wed, 03 Mar 2021 22:13:23 GMT
### Changes
- Fix npm audit warnings (janutter@microsoft.com)
## 1.0.0-alpha.4

@@ -8,0 +16,0 @@

2

dist/msal-node-extensions.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),r=require("process"),t=require("path"),n=require("@azure/msal-common"),o=require("keytar");const i=function(){function e(){}return e.prototype.then=function(r,t){const n=new e,o=this.s;if(o){const e=1&o?r:t;if(e){try{c(n,1,e(this.v))}catch(e){c(n,2,e)}return n}return this}return this.o=function(e){try{const o=e.v;1&e.s?c(n,1,r?r(o):o):t?c(n,1,t(o)):c(n,2,o)}catch(e){c(n,2,e)}},n},e}();function c(e,r,t){if(!e.s){if(t instanceof i){if(!t.s)return void(t.o=c.bind(null,e,r));1&r&&(r=t.s),t=t.v}if(t&&t.then)return void t.then(c.bind(null,e,r),c.bind(null,e,2));e.s=r,e.v=t;const n=e.o;n&&n(e)}}function s(e){return e instanceof i&&1&e.s}function u(e,r){try{var t=e()}catch(e){return r(e)}return t&&t.then?t.then(void 0,r):t}function a(e,r){try{var t=e()}catch(e){return r(!0,e)}return t&&t.then?t.then(r.bind(null,!1),r.bind(null,!0)):r(!1,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,r){return(f=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,r,t){return(m=h()?Reflect.construct:function(e,r,t){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(e,n));return t&&f(o,t.prototype),o}).apply(null,arguments)}function P(e){var r="function"==typeof Map?new Map:void 0;return(P=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return m(e,arguments,l(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f(t,e)})(e)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var v,g=function(e){var r,t;function n(r,t){var o;return o=e.call(this,t?r+": "+t:r)||this,Object.setPrototypeOf(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o),n.prototype),o.errorCode=r,o.errorMessage=t,o.name="PersistenceError",o}return t=e,(r=n).prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t,n.createFileSystemError=function(e,r){return new n(e,r)},n.createLibSecretError=function(e){return new n("GnomeKeyringError",e)},n.createKeychainPersistenceError=function(e){return new n("KeychainError",e)},n.createFilePersistenceWithDPAPIError=function(e){return new n("DPAPIEncryptedFileError",e)},n.createCrossPlatformLockError=function(e){return new n("CrossPlatformLockError",e)},n}(P(Error)),d=function(){function t(e,r,t){this.lockFilePath=e,this.retryNumber=t?t.retryNumber:500,this.retryDelay=t?t.retryDelay:100,this.logger=r}var n=t.prototype;return n.lock=function(){try{var t=function(e){if(n)return e;throw o.logger.error(r.pid+" was not able to acquire lock. Exceeded amount of retries set in the options"),g.createCrossPlatformLockError("Not able to acquire lock. Exceeded amount of retries set in options")},n=!1,o=this,a=0,l=function(e,r,t){for(var n;;){var o=e();if(s(o)&&(o=o.v),!o)return u;if(o.then){n=0;break}var u=t();if(u&&u.then){if(!s(u)){n=1;break}u=u.s}if(r){var a=r();if(a&&a.then&&!s(a)){n=2;break}}}var l=new i,f=c.bind(null,l,2);return(0===n?o.then(m):1===n?u.then(h):a.then(P)).then(void 0,f),l;function h(n){u=n;do{if(r&&(a=r())&&a.then&&!s(a))return void a.then(P).then(void 0,f);if(!(o=e())||s(o)&&!o.v)return void c(l,1,u);if(o.then)return void o.then(m).then(void 0,f);s(u=t())&&(u=u.v)}while(!u||!u.then);u.then(h).then(void 0,f)}function m(e){e?(u=t())&&u.then?u.then(h).then(void 0,f):h(u):c(l,1,u)}function P(){(o=e())?o.then?o.then(m).then(void 0,f):m(o):c(l,1,u)}}((function(){return!n&&a<o.retryNumber}),(function(){return a++}),(function(){return u((function(){return o.logger.info("Pid "+r.pid+" trying to acquire lock"),Promise.resolve(e.promises.open(o.lockFilePath,"wx+")).then((function(e){return o.lockFileHandle=e,o.logger.info("Pid "+r.pid+" acquired lock"),Promise.resolve(o.lockFileHandle.write(r.pid.toString())).then((function(){n=!0}))}))}),(function(e){return function(){if("EEXIST"==e.code||"EPERM"==e.code)return o.logger.info(e),Promise.resolve(o.sleep(o.retryDelay)).then((function(){}));throw o.logger.error(r.pid+" was not able to acquire lock. Ran into error: "+e.message),g.createCrossPlatformLockError(e.message)}()}))}));return Promise.resolve(l&&l.then?l.then(t):t(l))}catch(e){return Promise.reject(e)}},n.unlock=function(){try{var t=this;return Promise.resolve(u((function(){var r=function(){if(t.lockFileHandle)return Promise.resolve(e.promises.unlink(t.lockFilePath)).then((function(){return Promise.resolve(t.lockFileHandle.close()).then((function(){t.logger.info("lockfile deleted")}))}));t.logger.warning("lockfile handle does not exist, so lockfile could not be deleted")}();if(r&&r.then)return r.then((function(){}))}),(function(e){if("ENOENT"!=e.code)throw t.logger.error(r.pid+" was not able to release lock. Ran into error: "+e.message),g.createCrossPlatformLockError(e.message);t.logger.info("Tried to unlock but lockfile does not exist")})))}catch(e){return Promise.reject(e)}},n.sleep=function(e){return new Promise((function(r){setTimeout(r,e)}))},t}(),y=function(){function e(e,r){this.persistence=e,this.logger=e.getLogger(),this.lockFilePath=this.persistence.getFilePath()+".lockfile",this.crossPlatformLock=new d(this.lockFilePath,this.logger,r),this.lastSync=0,this.currentCache=null}var t=e.prototype;return t.beforeCacheAccess=function(e){try{var t=this;return t.logger.info("Executing before cache access"),Promise.resolve(t.persistence.reloadNecessary(t.lastSync)).then((function(n){var o=!1;function i(n){if(o)return n;var i=a((function(){return t.logger.info("Reload necessary. Last sync time: "+t.lastSync),Promise.resolve(t.crossPlatformLock.lock()).then((function(){return Promise.resolve(t.persistence.load()).then((function(r){t.currentCache=r,t.lastSync=(new Date).getTime(),e.tokenCache.deserialize(t.currentCache),t.logger.info("Last sync time updated to: "+t.lastSync)}))}))}),(function(n,o){function i(){if(n)throw o;return o}var c=function(){if(!e.cacheHasChanged)return Promise.resolve(t.crossPlatformLock.unlock()).then((function(){t.logger.info("Pid "+r.pid+" released lock")}));t.logger.info("Pid "+r.pid+" beforeCacheAccess did not release lock")}();return c&&c.then?c.then(i):i()}));return i&&i.then?i.then((function(){})):void 0}var c=function(){if(!n&&null!=t.currentCache){var r=function(){o=!0},i=function(){if(e.cacheHasChanged)return Promise.resolve(t.crossPlatformLock.lock()).then((function(){}))}();return i&&i.then?i.then(r):r()}}();return c&&c.then?c.then(i):i(c)}))}catch(e){return Promise.reject(e)}},t.afterCacheAccess=function(e){try{var t=this;return t.logger.info("Executing after cache access"),Promise.resolve(a((function(){var r=function(){if(e.cacheHasChanged)return t.logger.info("Msal in-memory cache has changed. Writing changes to persistence"),t.currentCache=e.tokenCache.serialize(),Promise.resolve(t.persistence.save(t.currentCache)).then((function(){}));t.logger.info("Msal in-memory cache has not changed. Did not write to persistence")}();if(r&&r.then)return r.then((function(){}))}),(function(e,n){return Promise.resolve(t.crossPlatformLock.unlock()).then((function(){if(t.logger.info("Pid "+r.pid+" afterCacheAccess released lock"),e)throw n;return n}))})))}catch(e){return Promise.reject(e)}},e}(),p=function(){function r(){}r.create=function(e,t){try{var o=new r;return o.filePath=e,o.logger=new n.Logger(t||r.createDefaultLoggerOptions()),Promise.resolve(o.createCacheFile()).then((function(){return o}))}catch(e){return Promise.reject(e)}};var o=r.prototype;return o.save=function(r){try{var t=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.writeFile(t.getFilePath(),r,"utf-8")).then((function(){}))}),(function(e){throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.saveBuffer=function(r){try{var t=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.writeFile(t.getFilePath(),r)).then((function(){}))}),(function(e){throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.load=function(){try{var r=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.readFile(r.getFilePath(),"utf-8"))}),(function(e){throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.loadBuffer=function(){try{var r=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.readFile(r.getFilePath()))}),(function(e){throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.delete=function(){try{var r=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.unlink(r.getFilePath())).then((function(){return!0}))}),(function(e){if("ENOENT"==e.code)return r.logger.warning("Cache file does not exist, so it could not be deleted"),!1;throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.getFilePath=function(){return this.filePath},o.reloadNecessary=function(e){try{return Promise.resolve(this.timeLastModified()).then((function(r){return e<r}))}catch(e){return Promise.reject(e)}},o.getLogger=function(){return this.logger},r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:n.LogLevel.Info}},o.timeLastModified=function(){try{var r=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.stat(r.filePath)).then((function(e){return e.mtime.getTime()}))}),(function(e){if("ENOENT"==e.code)return r.logger.verbose("Cache file does not exist"),0;throw g.createFileSystemError(e.code,e.message)})))}catch(e){return Promise.reject(e)}},o.createCacheFile=function(){try{var r=this;return Promise.resolve(r.createFileDirectory()).then((function(){return Promise.resolve(e.promises.open(r.filePath,"a")).then((function(e){return Promise.resolve(e.close()).then((function(){r.logger.info("File created at "+r.filePath)}))}))}))}catch(e){return Promise.reject(e)}},o.createFileDirectory=function(){try{var r=this;return Promise.resolve(u((function(){return Promise.resolve(e.promises.mkdir(t.dirname(r.filePath),{recursive:!0})).then((function(){}))}),(function(e){if("EEXIST"!=e.code)throw g.createFileSystemError(e.code,e.message);r.logger.info("Directory "+t.dirname(r.filePath)+" already exists")})))}catch(e){return Promise.reject(e)}},r}(),w=require("bindings")("dpapi"),b=function(){function e(e,r){this.scope=e,this.optionalEntropy=r?Buffer.from(r,"utf-8"):null}e.create=function(r,t,n,o){try{var i=new e(t,n);return Promise.resolve(p.create(r,o)).then((function(e){return i.filePersistence=e,i}))}catch(e){return Promise.reject(e)}};var r=e.prototype;return r.save=function(e){try{var r=this;return Promise.resolve(u((function(){var t=w.protectData(Buffer.from(e,"utf-8"),r.optionalEntropy,r.scope.toString());return Promise.resolve(r.filePersistence.saveBuffer(t)).then((function(){}))}),(function(e){throw g.createFilePersistenceWithDPAPIError(e.message)})))}catch(e){return Promise.reject(e)}},r.load=function(){try{var e=this;return Promise.resolve(u((function(){return Promise.resolve(e.filePersistence.loadBuffer()).then((function(r){return void 0!==r&&r&&0!==r.length?w.unprotectData(r,e.optionalEntropy,e.scope.toString()).toString():(e.filePersistence.getLogger().info("Encrypted contents loaded from file were null or empty"),null)}))}),(function(e){throw g.createFilePersistenceWithDPAPIError(e.message)})))}catch(e){return Promise.reject(e)}},r.delete=function(){try{return Promise.resolve(this.filePersistence.delete())}catch(e){return Promise.reject(e)}},r.reloadNecessary=function(e){try{return Promise.resolve(this.filePersistence.reloadNecessary(e))}catch(e){return Promise.reject(e)}},r.getFilePath=function(){return this.filePersistence.getFilePath()},r.getLogger=function(){return this.filePersistence.getLogger()},e}();(v=exports.DataProtectionScope||(exports.DataProtectionScope={})).CurrentUser="CurrentUser",v.LocalMachine="LocalMachine";var E=function(){function e(e,r){this.serviceName=e,this.accountName=r}e.create=function(r,t,n,o){try{var i=new e(t,n);return Promise.resolve(p.create(r,o)).then((function(e){return i.filePersistence=e,i}))}catch(e){return Promise.reject(e)}};var r=e.prototype;return r.save=function(e){try{var r=function(e){return t?e:Promise.resolve(n.filePersistence.save("{}")).then((function(){}))},t=!1,n=this,i=u((function(){return Promise.resolve(o.setPassword(n.serviceName,n.accountName,e)).then((function(){}))}),(function(e){throw g.createKeychainPersistenceError(e.message)}));return Promise.resolve(i&&i.then?i.then(r):r(i))}catch(e){return Promise.reject(e)}},r.load=function(){try{var e=this;return Promise.resolve(u((function(){return Promise.resolve(o.getPassword(e.serviceName,e.accountName))}),(function(e){throw g.createKeychainPersistenceError(e.message)})))}catch(e){return Promise.reject(e)}},r.delete=function(){try{var e=this;return Promise.resolve(u((function(){return Promise.resolve(e.filePersistence.delete()).then((function(){return Promise.resolve(o.deletePassword(e.serviceName,e.accountName))}))}),(function(e){throw g.createKeychainPersistenceError(e.message)})))}catch(e){return Promise.reject(e)}},r.reloadNecessary=function(e){try{return Promise.resolve(this.filePersistence.reloadNecessary(e))}catch(e){return Promise.reject(e)}},r.getFilePath=function(){return this.filePersistence.getFilePath()},r.getLogger=function(){return this.filePersistence.getLogger()},e}(),k=function(){function e(e,r){this.serviceName=e,this.accountName=r}e.create=function(r,t,n,o){try{var i=new e(t,n);return Promise.resolve(p.create(r,o)).then((function(e){return i.filePersistence=e,i}))}catch(e){return Promise.reject(e)}};var r=e.prototype;return r.save=function(e){try{var r=function(e){return t?e:Promise.resolve(n.filePersistence.save("{}")).then((function(){}))},t=!1,n=this,i=u((function(){return Promise.resolve(o.setPassword(n.serviceName,n.accountName,e)).then((function(){}))}),(function(e){throw g.createLibSecretError(e.message)}));return Promise.resolve(i&&i.then?i.then(r):r(i))}catch(e){return Promise.reject(e)}},r.load=function(){try{var e=this;return Promise.resolve(u((function(){return Promise.resolve(o.getPassword(e.serviceName,e.accountName))}),(function(e){throw g.createLibSecretError(e.message)})))}catch(e){return Promise.reject(e)}},r.delete=function(){try{var e=this;return Promise.resolve(u((function(){return Promise.resolve(e.filePersistence.delete()).then((function(){return Promise.resolve(o.deletePassword(e.serviceName,e.accountName))}))}),(function(e){throw g.createLibSecretError(e.message)})))}catch(e){return Promise.reject(e)}},r.reloadNecessary=function(e){try{return Promise.resolve(this.filePersistence.reloadNecessary(e))}catch(e){return Promise.reject(e)}},r.getFilePath=function(){return this.filePersistence.getFilePath()},r.getLogger=function(){return this.filePersistence.getLogger()},e}();exports.FilePersistence=p,exports.FilePersistenceWithDataProtection=b,exports.KeychainPersistence=E,exports.LibSecretPersistence=k,exports.PersistenceCachePlugin=y;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),t=require("process"),r=require("path"),n=require("@azure/msal-common"),o=require("keytar");function i(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){i(a,n,o,c,s,"next",e)}function s(e){i(a,n,o,c,s,"throw",e)}c(void 0)}))}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,r){return(f=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&s(o,r.prototype),o}).apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}var l,p,v=(function(e){var t=function(e){var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=Object.create((t&&t.prototype instanceof h?t:h).prototype),i=new b(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,i),o}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function h(){}function l(){}function p(){}var v={};v[o]=function(){return this};var d=Object.getPrototypeOf,g=d&&d(d(E([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function m(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(h).then((function(e){f.value=e,a(f)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return l.prototype=y.constructor=p,p.constructor=l,l.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},m(w.prototype),w.prototype[i]=function(){return this},e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),c(y,a,"Generator"),y[o]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,b.prototype={constructor:b,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}(p={exports:{}}),p.exports),d=function(e){var t,r;function n(t,r){var o;return o=e.call(this,r?t+": "+r:t)||this,Object.setPrototypeOf(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o),n.prototype),o.errorCode=t,o.errorMessage=r,o.name="PersistenceError",o}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.createFileSystemError=function(e,t){return new n(e,t)},n.createLibSecretError=function(e){return new n("GnomeKeyringError",e)},n.createKeychainPersistenceError=function(e){return new n("KeychainError",e)},n.createFilePersistenceWithDPAPIError=function(e){return new n("DPAPIEncryptedFileError",e)},n.createCrossPlatformLockError=function(e){return new n("CrossPlatformLockError",e)},n}(h(Error)),g=function(){function r(e,t,r){this.lockFilePath=e,this.retryNumber=r?r.retryNumber:500,this.retryDelay=r?r.retryDelay:100,this.logger=t}var n=r.prototype;return n.lock=function(){var r=a(v.mark((function r(){var n;return v.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=0;case 1:if(!(n<this.retryNumber)){r.next=26;break}return r.prev=2,this.logger.info("Pid "+t.pid+" trying to acquire lock"),r.next=6,e.promises.open(this.lockFilePath,"wx+");case 6:return this.lockFileHandle=r.sent,this.logger.info("Pid "+t.pid+" acquired lock"),r.next=10,this.lockFileHandle.write(t.pid.toString());case 10:return r.abrupt("return");case 13:if(r.prev=13,r.t0=r.catch(2),"EEXIST"!=r.t0.code&&"EPERM"!=r.t0.code){r.next=21;break}return this.logger.info(r.t0),r.next=19,this.sleep(this.retryDelay);case 19:r.next=23;break;case 21:throw this.logger.error(t.pid+" was not able to acquire lock. Ran into error: "+r.t0.message),d.createCrossPlatformLockError(r.t0.message);case 23:n++,r.next=1;break;case 26:throw this.logger.error(t.pid+" was not able to acquire lock. Exceeded amount of retries set in the options"),d.createCrossPlatformLockError("Not able to acquire lock. Exceeded amount of retries set in options");case 28:case"end":return r.stop()}}),r,this,[[2,13]])})));return function(){return r.apply(this,arguments)}}(),n.unlock=function(){var r=a(v.mark((function r(){return v.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!this.lockFileHandle){r.next=9;break}return r.next=4,e.promises.unlink(this.lockFilePath);case 4:return r.next=6,this.lockFileHandle.close();case 6:this.logger.info("lockfile deleted"),r.next=10;break;case 9:this.logger.warning("lockfile handle does not exist, so lockfile could not be deleted");case 10:r.next=20;break;case 12:if(r.prev=12,r.t0=r.catch(0),"ENOENT"!=r.t0.code){r.next=18;break}this.logger.info("Tried to unlock but lockfile does not exist"),r.next=20;break;case 18:throw this.logger.error(t.pid+" was not able to release lock. Ran into error: "+r.t0.message),d.createCrossPlatformLockError(r.t0.message);case 20:case"end":return r.stop()}}),r,this,[[0,12]])})));return function(){return r.apply(this,arguments)}}(),n.sleep=function(e){return new Promise((function(t){setTimeout(t,e)}))},r}(),y=function(){function e(e,t){this.persistence=e,this.logger=e.getLogger(),this.lockFilePath=this.persistence.getFilePath()+".lockfile",this.crossPlatformLock=new g(this.lockFilePath,this.logger,t),this.lastSync=0,this.currentCache=null}var r=e.prototype;return r.beforeCacheAccess=function(){var e=a(v.mark((function e(r){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logger.info("Executing before cache access"),e.next=3,this.persistence.reloadNecessary(this.lastSync);case 3:if(e.sent||null==this.currentCache){e.next=9;break}if(!r.cacheHasChanged){e.next=8;break}return e.next=8,this.crossPlatformLock.lock();case 8:return e.abrupt("return");case 9:return e.prev=9,this.logger.info("Reload necessary. Last sync time: "+this.lastSync),e.next=13,this.crossPlatformLock.lock();case 13:return e.next=15,this.persistence.load();case 15:this.currentCache=e.sent,this.lastSync=(new Date).getTime(),r.tokenCache.deserialize(this.currentCache),this.logger.info("Last sync time updated to: "+this.lastSync);case 19:if(e.prev=19,r.cacheHasChanged){e.next=26;break}return e.next=23,this.crossPlatformLock.unlock();case 23:this.logger.info("Pid "+t.pid+" released lock"),e.next=27;break;case 26:this.logger.info("Pid "+t.pid+" beforeCacheAccess did not release lock");case 27:return e.finish(19);case 28:case"end":return e.stop()}}),e,this,[[9,,19,28]])})));return function(t){return e.apply(this,arguments)}}(),r.afterCacheAccess=function(){var e=a(v.mark((function e(r){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.info("Executing after cache access"),e.prev=1,!r.cacheHasChanged){e.next=9;break}return this.logger.info("Msal in-memory cache has changed. Writing changes to persistence"),this.currentCache=r.tokenCache.serialize(),e.next=7,this.persistence.save(this.currentCache);case 7:e.next=10;break;case 9:this.logger.info("Msal in-memory cache has not changed. Did not write to persistence");case 10:return e.prev=10,e.next=13,this.crossPlatformLock.unlock();case 13:return this.logger.info("Pid "+t.pid+" afterCacheAccess released lock"),e.finish(10);case 15:case"end":return e.stop()}}),e,this,[[1,,10,15]])})));return function(t){return e.apply(this,arguments)}}(),e}(),m=function(){function t(){}t.create=function(){var e=a(v.mark((function e(r,o){var i;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=new t).filePath=r,i.logger=new n.Logger(o||t.createDefaultLoggerOptions()),e.next=5,i.createCacheFile();case 5:return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();var o=t.prototype;return o.save=function(){var t=a(v.mark((function t(r){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.writeFile(this.getFilePath(),r,"utf-8");case 3:t.next=8;break;case 5:throw t.prev=5,t.t0=t.catch(0),d.createFileSystemError(t.t0.code,t.t0.message);case 8:case"end":return t.stop()}}),t,this,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),o.saveBuffer=function(){var t=a(v.mark((function t(r){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.writeFile(this.getFilePath(),r);case 3:t.next=8;break;case 5:throw t.prev=5,t.t0=t.catch(0),d.createFileSystemError(t.t0.code,t.t0.message);case 8:case"end":return t.stop()}}),t,this,[[0,5]])})));return function(e){return t.apply(this,arguments)}}(),o.load=function(){var t=a(v.mark((function t(){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.readFile(this.getFilePath(),"utf-8");case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),d.createFileSystemError(t.t0.code,t.t0.message);case 9:case"end":return t.stop()}}),t,this,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),o.loadBuffer=function(){var t=a(v.mark((function t(){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.readFile(this.getFilePath());case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),d.createFileSystemError(t.t0.code,t.t0.message);case 9:case"end":return t.stop()}}),t,this,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),o.delete=function(){var t=a(v.mark((function t(){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.unlink(this.getFilePath());case 3:return t.abrupt("return",!0);case 6:if(t.prev=6,t.t0=t.catch(0),"ENOENT"!=t.t0.code){t.next=11;break}return this.logger.warning("Cache file does not exist, so it could not be deleted"),t.abrupt("return",!1);case 11:throw d.createFileSystemError(t.t0.code,t.t0.message);case 12:case"end":return t.stop()}}),t,this,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),o.getFilePath=function(){return this.filePath},o.reloadNecessary=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,this.timeLastModified();case 3:return e.t1=e.sent,e.abrupt("return",e.t0<e.t1);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),o.getLogger=function(){return this.logger},t.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:n.LogLevel.Info}},o.timeLastModified=function(){var t=a(v.mark((function t(){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.stat(this.filePath);case 3:return t.abrupt("return",t.sent.mtime.getTime());case 7:if(t.prev=7,t.t0=t.catch(0),"ENOENT"!=t.t0.code){t.next=12;break}return this.logger.verbose("Cache file does not exist"),t.abrupt("return",0);case 12:throw d.createFileSystemError(t.t0.code,t.t0.message);case 13:case"end":return t.stop()}}),t,this,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),o.createCacheFile=function(){var t=a(v.mark((function t(){var r;return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.createFileDirectory();case 2:return t.next=4,e.promises.open(this.filePath,"a");case 4:return r=t.sent,t.next=7,r.close();case 7:this.logger.info("File created at "+this.filePath);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),o.createFileDirectory=function(){var t=a(v.mark((function t(){return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.promises.mkdir(r.dirname(this.filePath),{recursive:!0});case 3:t.next=12;break;case 5:if(t.prev=5,t.t0=t.catch(0),"EEXIST"!=t.t0.code){t.next=11;break}this.logger.info("Directory "+r.dirname(this.filePath)+" already exists"),t.next=12;break;case 11:throw d.createFileSystemError(t.t0.code,t.t0.message);case 12:case"end":return t.stop()}}),t,this,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),t}(),w=require("bindings")("dpapi"),x=function(){function e(e,t){this.scope=e,this.optionalEntropy=t?Buffer.from(t,"utf-8"):null}e.create=function(){var t=a(v.mark((function t(r,n,o,i){var a;return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new e(n,o),t.next=3,m.create(r,i);case 3:return a.filePersistence=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}();var t=e.prototype;return t.save=function(){var e=a(v.mark((function e(t){var r;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=w.protectData(Buffer.from(t,"utf-8"),this.optionalEntropy,this.scope.toString()),e.next=4,this.filePersistence.saveBuffer(r);case 4:e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(0),d.createFilePersistenceWithDPAPIError(e.t0.message);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),t.load=function(){var e=a(v.mark((function e(){var t;return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.filePersistence.loadBuffer();case 3:if(void 0!==(t=e.sent)&&t&&0!==t.length){e.next=7;break}return this.filePersistence.getLogger().info("Encrypted contents loaded from file were null or empty"),e.abrupt("return",null);case 7:return e.abrupt("return",w.unprotectData(t,this.optionalEntropy,this.scope.toString()).toString());case 10:throw e.prev=10,e.t0=e.catch(0),d.createFilePersistenceWithDPAPIError(e.t0.message);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),t.delete=function(){var e=a(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.filePersistence.delete());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.reloadNecessary=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.filePersistence.reloadNecessary(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getFilePath=function(){return this.filePersistence.getFilePath()},t.getLogger=function(){return this.filePersistence.getLogger()},e}();(l=exports.DataProtectionScope||(exports.DataProtectionScope={})).CurrentUser="CurrentUser",l.LocalMachine="LocalMachine";var k=function(){function e(e,t){this.serviceName=e,this.accountName=t}e.create=function(){var t=a(v.mark((function t(r,n,o,i){var a;return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new e(n,o),t.next=3,m.create(r,i);case 3:return a.filePersistence=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}();var t=e.prototype;return t.save=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.setPassword(this.serviceName,this.accountName,t);case 3:e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),d.createKeychainPersistenceError(e.t0.message);case 8:return e.next=10,this.filePersistence.save("{}");case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),t.load=function(){var e=a(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getPassword(this.serviceName,this.accountName);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),d.createKeychainPersistenceError(e.t0.message);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),t.delete=function(){var e=a(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.filePersistence.delete();case 3:return e.next=5,o.deletePassword(this.serviceName,this.accountName);case 5:return e.abrupt("return",e.sent);case 8:throw e.prev=8,e.t0=e.catch(0),d.createKeychainPersistenceError(e.t0.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),t.reloadNecessary=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.filePersistence.reloadNecessary(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getFilePath=function(){return this.filePersistence.getFilePath()},t.getLogger=function(){return this.filePersistence.getLogger()},e}(),P=function(){function e(e,t){this.serviceName=e,this.accountName=t}e.create=function(){var t=a(v.mark((function t(r,n,o,i){var a;return v.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new e(n,o),t.next=3,m.create(r,i);case 3:return a.filePersistence=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n,o){return t.apply(this,arguments)}}();var t=e.prototype;return t.save=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.setPassword(this.serviceName,this.accountName,t);case 3:e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(0),d.createLibSecretError(e.t0.message);case 8:return e.next=10,this.filePersistence.save("{}");case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),t.load=function(){var e=a(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getPassword(this.serviceName,this.accountName);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),d.createLibSecretError(e.t0.message);case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),t.delete=function(){var e=a(v.mark((function e(){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.filePersistence.delete();case 3:return e.next=5,o.deletePassword(this.serviceName,this.accountName);case 5:return e.abrupt("return",e.sent);case 8:throw e.prev=8,e.t0=e.catch(0),d.createLibSecretError(e.t0.message);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),t.reloadNecessary=function(){var e=a(v.mark((function e(t){return v.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.filePersistence.reloadNecessary(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getFilePath=function(){return this.filePersistence.getFilePath()},t.getLogger=function(){return this.filePersistence.getLogger()},e}();exports.FilePersistence=m,exports.FilePersistenceWithDataProtection=x,exports.KeychainPersistence=k,exports.LibSecretPersistence=P,exports.PersistenceCachePlugin=y;
//# sourceMappingURL=msal-node-extensions.cjs.production.min.js.map
{
"name": "@azure/msal-node-extensions",
"version": "1.0.0-alpha.4",
"version": "1.0.0-alpha.5",
"license": "MIT",

@@ -40,5 +40,5 @@ "main": "dist/index.js",

"dependencies": {
"@azure/msal-common": "^1.7.2",
"bindings": "^1.5.0",
"@azure/msal-common": "^1.6.0",
"keytar": "6.0.1",
"keytar": "7.0.0",
"nan": "^2.13.2"

@@ -49,3 +49,3 @@ },

"node-gyp": "^7.0.0",
"tsdx": "^0.13.3",
"tsdx": "^0.14.1",
"tslib": "^2.0.0",

@@ -52,0 +52,0 @@ "typescript": "^3.9.3"

@@ -0,0 +0,0 @@ # Microsoft Authentication Extensions for Node

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ export { PersistenceCachePlugin } from "./persistence/PersistenceCachePlugin";

@@ -0,0 +0,0 @@ /*

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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