Skip to content

Commit 9f56d29

Browse files
authored
Merge pull request #64 from microsoftgraph/refresh
Updated dependencies
2 parents 2187ec5 + aeac6d9 commit 9f56d29

File tree

9 files changed

+125
-139
lines changed

9 files changed

+125
-139
lines changed

README.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,19 @@ If you just want the completed sample generated by following this lab, you can f
1414

1515
- [Completed project](demo)
1616

17-
## Contributors
18-
19-
| Roles | Author(s) |
20-
| -------------------------- | --------------------------------------------------------------------------------------------- |
21-
| Code / Tutorial / Support | Jason Johnston (Microsoft) [@jasonjoh](//github.com/jasonjoh) |
22-
| Slides | Jeremy Thake (Microsoft) [@jthake-msft](//github.com/jthake-msft) |
23-
| QA | Andrew Connell (Microsoft MVP, Voitanos) [@andrewconnell](//github.com/andrewconnell) |
24-
| QA | Julie Turner (Microsoft MVP, Sympraxis Consulting) [@juliemturner](//github.com/juliemturner) |
25-
2617
## Version history
2718

28-
| Version | Date | Comments |
29-
| ------- | ---------------- | ------------------------------------------------ |
30-
| 1.6 | March 19, 2020 | Refreshed tutorial |
31-
| 1.5 | June 18, 2019 | Updated readme to refreshed screencast recording |
32-
| 1.4 | May 24, 2019 | 2019Q4 content refresh |
33-
| 1.3 | May 17, 2019 | Updated AAD app registration steps |
34-
| 1.2 | March 10, 2019 | 2019Q3 content refresh |
35-
| 1.1 | February 8, 2019 | Added slides |
36-
| 1.0 | 2018 | Published |
19+
| Version | Date | Comments |
20+
| ------- | ----------------- | ------------------------------------------------ |
21+
| 1.8 | April 19, 2021 | Refreshed tutorial |
22+
| 1.7 | November 11, 2020 | Refreshed tutorial |
23+
| 1.6 | March 19, 2020 | Refreshed tutorial |
24+
| 1.5 | June 18, 2019 | Updated readme to refreshed screencast recording |
25+
| 1.4 | May 24, 2019 | 2019Q4 content refresh |
26+
| 1.3 | May 17, 2019 | Updated AAD app registration steps |
27+
| 1.2 | March 10, 2019 | 2019Q3 content refresh |
28+
| 1.1 | February 8, 2019 | Added slides |
29+
| 1.0 | 2018 | Published |
3730

3831
## Disclaimer
3932

demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To run the completed project in this folder, you need the following:
66

7-
- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 12.6.1. The steps in this guide may work with other versions, but that has not been tested.)
7+
- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 14.15.0. The steps in this guide may work with other versions, but that has not been tested.)
88
- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.
99

1010
If you don't have a Microsoft account, there are a couple of options to get a free account:

demo/graph-tutorial/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ app.set('view engine', 'hbs');
8989

9090
// <FormatDateSnippet>
9191
var hbs = require('hbs');
92-
var moment = require('moment');
92+
var parseISO = require('date-fns/parseISO');
93+
var formatDate = require('date-fns/format');
9394
// Helper to format date/time sent by Graph
94-
hbs.registerHelper('eventDateTime', function(dateTime){
95-
return moment(dateTime).format('M/D/YY h:mm A');
95+
hbs.registerHelper('eventDateTime', function(dateTime) {
96+
const date = parseISO(dateTime);
97+
return formatDate(date, 'M/d/yy h:mm a');
9698
});
9799
// </FormatDateSnippet>
98100

demo/graph-tutorial/package-lock.json

Lines changed: 73 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/graph-tutorial/package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@
66
"start": "node ./bin/www"
77
},
88
"dependencies": {
9-
"@azure/msal-node": "^1.0.0-beta.0",
10-
"@microsoft/microsoft-graph-client": "^2.1.1",
9+
"@azure/msal-node": "^1.0.2",
10+
"@microsoft/microsoft-graph-client": "^2.2.1",
1111
"connect-flash": "^0.1.1",
1212
"cookie-parser": "~1.4.4",
13-
"debug": "^4.2.0",
13+
"date-fns": "^2.21.1",
14+
"date-fns-tz": "^1.1.4",
15+
"debug": "^4.3.1",
1416
"dotenv": "^8.2.0",
1517
"express": "^4.17.1",
16-
"express-promise-router": "^4.0.1",
18+
"express-promise-router": "^4.1.0",
1719
"express-session": "^1.17.1",
18-
"express-validator": "^6.6.1",
19-
"hbs": "^4.1.1",
20+
"express-validator": "^6.10.0",
21+
"hbs": "^4.1.2",
2022
"http-errors": "^1.8.0",
2123
"isomorphic-fetch": "^3.0.0",
22-
"moment": "^2.29.1",
23-
"moment-timezone": "^0.5.31",
2424
"morgan": "^1.10.0",
25-
"uuid": "^8.3.1",
26-
"windows-iana": "^4.2.1"
25+
"windows-iana": "^5.0.1"
2726
}
2827
}

0 commit comments

Comments
 (0)