Skip to content

Commit 322d919

Browse files
Merge branch 'dev' into patch-1
2 parents e04a97f + c5b565d commit 322d919

Some content is hidden

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

45 files changed

+1959
-375
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
language: node_js
22
node_js:
33
- "node"
4-
- "6"
5-
- "6.1"
6-
- "6.9"
7-
- "7.2"
8-
- "5"
9-
- "4"
4+
- "lts/*"
5+
- "10.15.1"
6+
- "10.0.0"
7+
- "9.11.2"
8+
- "9.0.0"
9+
- "8.15.0"
10+
- "8.0.0"
11+
- "7.10.1"
12+
- "7.0.0"
13+
- "6.16.0"
14+
- "6.0.0"

.vscode/launch.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Run node samples",
10+
"name": "Run Node samples",
1111
"program": "${workspaceRoot}/samples/node/main.js",
1212
"cwd": "${workspaceRoot}",
1313
"outFiles": [],
@@ -16,9 +16,9 @@
1616
{
1717
"type": "node",
1818
"request": "launch",
19-
"name": "Run core tests",
19+
"name": "Run Content tests",
2020
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
21-
"args": ["${workspaceRoot}/lib/spec/core/*.js"],
21+
"args": ["${workspaceRoot}/lib/spec/content/*.js"],
2222
"cwd": "${workspaceRoot}",
2323
"preLaunchTask": "Run Compile",
2424
"outFiles": [],
@@ -27,9 +27,9 @@
2727
{
2828
"type": "node",
2929
"request": "launch",
30-
"name": "Run workload tests",
30+
"name": "Run Core tests",
3131
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
32-
"args": ["${workspaceRoot}/spec/development/workload/*.js"],
32+
"args": ["${workspaceRoot}/lib/spec/core/*.js"],
3333
"cwd": "${workspaceRoot}",
3434
"preLaunchTask": "Run Compile",
3535
"outFiles": [],
@@ -38,7 +38,7 @@
3838
{
3939
"type": "node",
4040
"request": "launch",
41-
"name": "Run middleware tests",
41+
"name": "Run Middleware tests",
4242
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
4343
"args": ["${workspaceRoot}/lib/spec/middleware/*.js"],
4444
"cwd": "${workspaceRoot}",
@@ -49,9 +49,20 @@
4949
{
5050
"type": "node",
5151
"request": "launch",
52-
"name": "Run Content tests",
52+
"name": "Run Tasks tests",
5353
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
54-
"args": ["${workspaceRoot}/lib/spec/content/*.js"],
54+
"args": ["${workspaceRoot}/lib/spec/tasks/*.js"],
55+
"cwd": "${workspaceRoot}",
56+
"preLaunchTask": "Run Compile",
57+
"outFiles": [],
58+
"internalConsoleOptions": "openOnSessionStart"
59+
},
60+
{
61+
"type": "node",
62+
"request": "launch",
63+
"name": "Run Workload tests",
64+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
65+
"args": ["${workspaceRoot}/spec/development/workload/*.js"],
5566
"cwd": "${workspaceRoot}",
5667
"preLaunchTask": "Run Compile",
5768
"outFiles": [],

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,18 @@ import `@microsoft/microsoft-graph-client` into your module.
2222
import { Client } from "@microsoft/microsoft-graph-client";
2323
```
2424

25-
In case your environment have support for or have polyfill for [Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) [[support](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#Browser_compatibility)] and [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) [[support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility)], import `./node_modules/@microsoft/microsoft-graph-client/lib/src/core/index` into your module which doesn't have polyfills for these.
26-
27-
```typescript
28-
import { Client } from "./node_modules/@microsoft/microsoft-graph-client/lib/src/core/index";
29-
```
30-
3125
### Via Script Tag
3226

33-
Include `lib/graph-js-sdk-core.js` in your page.
27+
Include `lib/graph-js-sdk-web.js` in your page.
3428

3529
```HTML
36-
<script type="text/javascript" src="graph-js-sdk-core.js"></script>
30+
<script type="text/javascript" src="graph-js-sdk-web.js"></script>
3731
```
3832

39-
In case your browser doesn't have support for [Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) [[support](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API#Browser_compatibility)] and [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) [[support](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#Browser_compatibility)], you can polyfill them and include as above or you can use `lib/graph-js-sdk-web.js` which includes polyfills.
33+
Incase if your application ships with [es6-promise](https://www.npmjs.com/package/es6-promise) and [isomorphic-fetch](https://www.npmjs.com/package/isomorphic-fetch) just use `lib/graph-js-sdk-core.js`
4034

4135
```HTML
42-
<script type="text/javascript" src="graph-js-sdk-web.js"></script>
36+
<script type="text/javascript" src="graph-js-sdk-core.js"></script>
4337
```
4438

4539
## Getting started

docs/tasks/PageIterator.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ async function customSize() {
4747
pageIterator.iterate();
4848

4949
// Resuming will do start from where it left off and iterate for next 1000 entities.
50-
// Resume is likely to be called in any user interaction requiring to load more data.
51-
pageIterator.resume();
50+
// Check and resume is likely to be called in any user interaction requiring to load more data.
51+
if (!pageIterator.isComplete()) {
52+
pageIterator.resume();
53+
}
5254
} catch (e) {
5355
throw e;
5456
}

0 commit comments

Comments
 (0)