New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/mgt-element

Package Overview
Dependencies
Maintainers
2
Versions
836
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/mgt-element - npm Package Compare versions

Comparing version

to
2.2.0-next.file.e5db5e4

9

dist/es6/components/baseComponent.js

@@ -224,8 +224,11 @@ /**

const provider = Providers.globalProvider;
if (provider.state == ProviderState.SignedOut) {
if (!provider) {
return Promise.resolve();
}
if (provider.state === ProviderState.SignedOut) {
// Signed out, clear the component state
this.clearState();
return Promise.resolve();
return;
}
else if (provider.state == ProviderState.Loading) {
else if (provider.state === ProviderState.Loading) {
// The provider state is indeterminate. Do nothing.

@@ -232,0 +235,0 @@ return Promise.resolve();

@@ -70,2 +70,16 @@ /**

response: CacheOptions;
/**
* Cache options for files store
*
* @type {CacheOptions}
* @memberof CacheConfig
*/
files: CacheOptions;
/**
* Cache options for fileLists store
*
* @type {CacheOptions}
* @memberof CacheConfig
*/
fileLists: CacheOptions;
}

@@ -72,0 +86,0 @@ /**

@@ -114,2 +114,10 @@ /**

isEnabled: true
},
files: {
invalidationPeriod: null,
isEnabled: true
},
fileLists: {
invalidationPeriod: null,
isEnabled: true
}

@@ -116,0 +124,0 @@ };

@@ -46,2 +46,15 @@ /**

static create<T>(graph: IGraph, request: GraphRequest, version?: string): Promise<GraphPageIterator<T>>;
/**
* Creates a new GraphPageIterator from existing value
*
* @static
* @template T - the type of entities expected from this request
* @param {IGraph} graph - the graph instance to use for making requests
* @param value - the existing value
* @param nextLink - optional nextLink to use to get the next page
* from the graph parameter
* @returns a GraphPageIterator
* @memberof GraphPageIterator
*/
static createFromValue<T>(graph: IGraph, value: any, nextLink?: any): GraphPageIterator<T>;
private _graph;

@@ -48,0 +61,0 @@ private _nextLink;

@@ -71,2 +71,23 @@ /**

/**
* Creates a new GraphPageIterator from existing value
*
* @static
* @template T - the type of entities expected from this request
* @param {IGraph} graph - the graph instance to use for making requests
* @param value - the existing value
* @param nextLink - optional nextLink to use to get the next page
* from the graph parameter
* @returns a GraphPageIterator
* @memberof GraphPageIterator
*/
static createFromValue(graph, value, nextLink) {
let iterator = new GraphPageIterator();
// create iterator from values
iterator._graph = graph;
iterator._value = value;
iterator._nextLink = nextLink ? nextLink : null;
iterator._version = graph.version;
return iterator || null;
}
/**
* Gets the next page for this request

@@ -73,0 +94,0 @@ *

{
"name": "@microsoft/mgt-element",
"version": "2.2.0-next.file.e40e43b",
"version": "2.2.0-next.file.e5db5e4",
"description": "Microsoft Graph Toolkit base classes",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit",

@@ -231,7 +231,11 @@ /**

if (provider.state == ProviderState.SignedOut) {
if (!provider) {
return Promise.resolve();
}
if (provider.state === ProviderState.SignedOut) {
// Signed out, clear the component state
this.clearState();
return Promise.resolve();
} else if (provider.state == ProviderState.Loading) {
return;
} else if (provider.state === ProviderState.Loading) {
// The provider state is indeterminate. Do nothing.

@@ -238,0 +242,0 @@ return Promise.resolve();

@@ -77,2 +77,17 @@ /**

response: CacheOptions;
/**
* Cache options for files store
*
* @type {CacheOptions}
* @memberof CacheConfig
*/
files: CacheOptions;
/**
* Cache options for fileLists store
*
* @type {CacheOptions}
* @memberof CacheConfig
*/
fileLists: CacheOptions;
}

@@ -170,2 +185,10 @@

isEnabled: true
},
files: {
invalidationPeriod: null,
isEnabled: true
},
fileLists: {
invalidationPeriod: null,
isEnabled: true
}

@@ -172,0 +195,0 @@ };

@@ -67,2 +67,26 @@ /**

/**
* Creates a new GraphPageIterator from existing value
*
* @static
* @template T - the type of entities expected from this request
* @param {IGraph} graph - the graph instance to use for making requests
* @param value - the existing value
* @param nextLink - optional nextLink to use to get the next page
* from the graph parameter
* @returns a GraphPageIterator
* @memberof GraphPageIterator
*/
public static createFromValue<T>(graph: IGraph, value, nextLink?) {
let iterator = new GraphPageIterator<T>();
// create iterator from values
iterator._graph = graph;
iterator._value = value;
iterator._nextLink = nextLink ? nextLink : null;
iterator._version = graph.version;
return iterator || null;
}
private _graph: IGraph;

@@ -69,0 +93,0 @@ private _nextLink: string;

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

Sorry, the diff of this file is not supported yet