Skip to content

Commit 55d64ef

Browse files
Middleware complete code with unit tests
Breaking changes proposed: 1. AuthProvider should be an instance of AuthenticationProvider 2. Removing unnecessary public methods like buildFullURL, parsePath 3. Removed Callback support for requests 4. Options that is been passed to Client.init is changed 5. Removed redundant support for OData query params (without $ support) 6. Changed access specifier for large file upload task members to protected 7. Renamed common.ts to Common.ts Other Changes proposed: 1. Refactored unit test cases 2. Added License information in each file
1 parent bed02c8 commit 55d64ef

File tree

161 files changed

+6755
-3385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+6755
-3385
lines changed

lib/graph-js-sdk-core.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/graph-js-sdk-web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/CustomHTTPHandler.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
import { Middleware } from "../src/IMiddleware";
8+
import { Context } from "../src/IContext";
9+
export declare class CustomHTTPHandler implements Middleware {
10+
execute(context: Context): Promise<void>;
11+
}

lib/spec/CustomHTTPHandler.js

+57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/CustomHTTPHandler.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
import { AuthenticationProvider } from "../src/IAuthenticationProvider";
8+
export declare class DummyAuthenticationProvider implements AuthenticationProvider {
9+
getAccessToken(): Promise<any>;
10+
}

lib/spec/DummyAuthenticationProvider.js

+59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/DummyAuthenticationProvider.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/GraphRequestUtil.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
export {};

lib/spec/core/GraphRequestUtil.js

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/GraphRequestUtil.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/HTTPClientFactory.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
export {};

lib/spec/core/HTTPClientFactory.js

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/HTTPClientFactory.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/Range.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* -------------------------------------------------------------------------------------------
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4+
* See License in the project root for license information.
5+
* -------------------------------------------------------------------------------------------
6+
*/
7+
export {};

lib/spec/core/Range.js

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spec/core/Range.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)