@microsoft/mgt-electron-provider
Advanced tools
Comparing version 4.0.1-next.electron-provider.669ff52 to 4.0.1-next.electron-provider.74fa189
@@ -20,2 +20,3 @@ "use strict"; | ||
const msal_node_1 = require("@azure/msal-node"); | ||
const mgt_element_1 = require("@microsoft/mgt-element"); | ||
const electron_1 = require("electron"); | ||
@@ -64,4 +65,6 @@ const CustomFileProtocol_1 = require("./CustomFileProtocol"); | ||
set approvedScopes(value) { | ||
this._approvedScopes = value; | ||
this.mainWindow.webContents.send('mgtApprovedScopes', value); | ||
if (!(0, mgt_element_1.arraysAreEqual)(value, this._approvedScopes)) { | ||
this._approvedScopes = value; | ||
this.mainWindow.webContents.send('approvedScopes', value); | ||
} | ||
} | ||
@@ -68,0 +71,0 @@ /** |
{ | ||
"name": "@microsoft/mgt-electron-provider", | ||
"version": "4.0.1-next.electron-provider.669ff52", | ||
"version": "4.0.1-next.electron-provider.74fa189", | ||
"description": "The Microsoft Graph Toolkit Electron Provider", | ||
@@ -46,7 +46,7 @@ "keywords": [ | ||
"@azure/msal-node": "^1.0.3", | ||
"@microsoft/mgt-element": "4.0.1-next.electron-provider.669ff52", | ||
"@microsoft/mgt-element": "4.0.1-next.electron-provider.74fa189", | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
}, | ||
"peerDependencies": { | ||
"electron": ">22.3.25 <29.0.0" | ||
"electron": ">=11.0.2 <29.0.0" | ||
}, | ||
@@ -58,6 +58,3 @@ "devDependencies": { | ||
"directory": "dist" | ||
}, | ||
"resolutions": { | ||
"responselike": "2.0.0" | ||
} | ||
} |
@@ -21,3 +21,3 @@ /** | ||
import { AuthenticationProviderOptions } from '@microsoft/microsoft-graph-client'; | ||
import { GraphEndpoint } from '@microsoft/mgt-element'; | ||
import { arraysAreEqual, GraphEndpoint } from '@microsoft/mgt-element'; | ||
import { BrowserWindow, ipcMain } from 'electron'; | ||
@@ -205,4 +205,6 @@ import { CustomFileProtocolListener } from './CustomFileProtocol'; | ||
protected set approvedScopes(value: string[]) { | ||
this._approvedScopes = value; | ||
this.mainWindow.webContents.send('mgtApprovedScopes', value); | ||
if (!arraysAreEqual(value, this._approvedScopes)) { | ||
this._approvedScopes = value; | ||
this.mainWindow.webContents.send('approvedScopes', value); | ||
} | ||
} | ||
@@ -209,0 +211,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
128181
2202
+ Added@microsoft/mgt-element@4.0.1-next.electron-provider.74fa189(transitive)
- Removed@microsoft/mgt-element@4.0.1-next.electron-provider.669ff52(transitive)
Updated@microsoft/mgt-element@4.0.1-next.electron-provider.74fa189