Skip to content

Commit 3d1e8eb

Browse files
authored
Merge pull request #400 from gautamsi/es6-upgrade
redo and fix PR #399
2 parents 378b7c4 + e63a0a6 commit 3d1e8eb

File tree

98 files changed

+4024
-2365
lines changed

Some content is hidden

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

98 files changed

+4024
-2365
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"files.exclude": {
66
"**/.git": true,
77
"**/.DS_Store": true,
8-
"build": true,
8+
"build": false,
99
"node_modules": true,
1010
}
1111
}

.vscode/tasks.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@
77
// ${cwd}: the current working directory of the spawned process
88

99
{
10-
"version": "0.1.0",
10+
"version": "2.0.0",
1111
"command": "npm",
12-
"isShellCommand": true,
1312
"args": [
1413
"run"
1514
],
1615
"tasks": [
1716
{
18-
"taskName": "build",
19-
"args": [],
20-
"isBuildCommand": true
17+
"label": "build",
18+
"type": "shell",
19+
"command": "npm",
20+
"args": [
21+
"run",
22+
"build"
23+
],
24+
"problemMatcher": [],
25+
"group": {
26+
"_id": "build",
27+
"isDefault": false
28+
}
2129
}
2230
]
2331
}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ ews-javascript-api
33
==================
44
# CHANGELOG
55

6+
# Whats new v0.11.0
7+
* **BREAKING** dependencies upgraded to latest version of commonjs module (still avoiding pure esm modules). The code is now compiled to es6 target, must use nodejs version >= 10
8+
* Security update: updated all dependency to latest version.
9+
610
# Whats new v0.10.0
711
* new/fix: #324 Autodiscover is back again, improved and supports DNS fallback using Autodiscover SRV records
812

COPYRIGHT

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
WinJS (https://github.com/winjs/winjs)
2-
3-
Copyright (c) Microsoft Corporation
4-
All rights reserved.
5-
MIT License
6-
7-
8-
q (https://github.com/kriskowal/q)
9-
Copyright 2009–2014 Kristopher Michael Kowal. All rights reserved.
10-
MIT License
11-
12-
13-
xmldom (https://github.com/jindw/xmldom)
1+
@xmldom/xmldom (https://github.com/xmldom/xmldom)
142
selected MIT license (http://opensource.org/licenses/MIT)
15-
[xmldom is licensed under MIT or LGPL]
163

174

185
moment/moment-timezone (http://momentjs.com, https://github.com/moment/)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ exch.GetUserAvailability(attendee, timeWindow, ews.AvailabilityData.FreeBusyAndS
180180
# Use with React Native
181181

182182
there is some issues with how react native exposes native browser methods, here are changes needs to be done to us `ews-js-api-browser` with react native.
183-
Add following lines to some place before requiring `ews-js-api-browser`. you need to use `xmldom` and `base-64` packages.
183+
Add following lines to some place before requiring `ews-js-api-browser`. you need to use `@xmldom/xmldom` and `base-64` packages.
184184
```js
185185
if (!global.DOMParser) {
186-
global.DOMParser = require('xmldom').DOMParser;
186+
global.DOMParser = require('@xmldom/xmldom').DOMParser;
187187
}
188188
if (!global.atob || !global.btoa) {
189189
global.atob = require('base-64').decode;

0 commit comments

Comments
 (0)