Skip to content

Commit

Permalink
Merge pull request #400 from gautamsi/es6-upgrade
Browse files Browse the repository at this point in the history
redo and fix PR #399
  • Loading branch information
gautamsi authored Mar 7, 2022
2 parents 378b7c4 + e63a0a6 commit 3d1e8eb
Show file tree
Hide file tree
Showing 98 changed files with 4,024 additions and 2,365 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"build": true,
"build": false,
"node_modules": true,
}
}
18 changes: 13 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@
// ${cwd}: the current working directory of the spawned process

{
"version": "0.1.0",
"version": "2.0.0",
"command": "npm",
"isShellCommand": true,
"args": [
"run"
],
"tasks": [
{
"taskName": "build",
"args": [],
"isBuildCommand": true
"label": "build",
"type": "shell",
"command": "npm",
"args": [
"run",
"build"
],
"problemMatcher": [],
"group": {
"_id": "build",
"isDefault": false
}
}
]
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ ews-javascript-api
==================
# CHANGELOG

# Whats new v0.11.0
* **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
* Security update: updated all dependency to latest version.

# Whats new v0.10.0
* new/fix: #324 Autodiscover is back again, improved and supports DNS fallback using Autodiscover SRV records

Expand Down
15 changes: 1 addition & 14 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
WinJS (https://github.com/winjs/winjs)

Copyright (c) Microsoft Corporation
All rights reserved.
MIT License


q (https://github.com/kriskowal/q)
Copyright 2009–2014 Kristopher Michael Kowal. All rights reserved.
MIT License


xmldom (https://github.com/jindw/xmldom)
@xmldom/xmldom (https://github.com/xmldom/xmldom)
selected MIT license (http://opensource.org/licenses/MIT)
[xmldom is licensed under MIT or LGPL]


moment/moment-timezone (http://momentjs.com, https://github.com/moment/)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ exch.GetUserAvailability(attendee, timeWindow, ews.AvailabilityData.FreeBusyAndS
# Use with React Native

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.
Add following lines to some place before requiring `ews-js-api-browser`. you need to use `xmldom` and `base-64` packages.
Add following lines to some place before requiring `ews-js-api-browser`. you need to use `@xmldom/xmldom` and `base-64` packages.
```js
if (!global.DOMParser) {
global.DOMParser = require('xmldom').DOMParser;
global.DOMParser = require('@xmldom/xmldom').DOMParser;
}
if (!global.atob || !global.btoa) {
global.atob = require('base-64').decode;
Expand Down
Loading

0 comments on commit 3d1e8eb

Please sign in to comment.