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

@microsoft/mgt-element

Package Overview
Dependencies
Maintainers
3
Versions
831
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 2.2.0-preview.58c29b0 to 2.2.0-preview.59932a5

14

dist/es6/utils/Cache.d.ts

@@ -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 @@ *

2

package.json
{
"name": "@microsoft/mgt-element",
"version": "2.2.0-preview.58c29b0",
"version": "2.2.0-preview.59932a5",
"description": "Microsoft Graph Toolkit base classes",

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

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

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