Applied ms-rest-js fix for IE undefined xhr body
This commit is contained in:
Родитель
bc8f2d34e4
Коммит
6a14168ddd
|
@ -65,9 +65,6 @@ export class BrowserPolicy extends BaseRequestPolicy {
|
|||
// According to XHR standards, content-length should be fully controlled by browsers
|
||||
request.headers.remove(HeaderConstants.CONTENT_LENGTH);
|
||||
|
||||
// IE11 will parse undefined body into string "undefined", pass null to fix
|
||||
request.body = request.body || null;
|
||||
|
||||
return this._nextPolicy.sendRequest(request);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"integrity": "sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w==",
|
||||
"requires": {
|
||||
"@types/connect": "3.4.32",
|
||||
"@types/node": "9.6.27"
|
||||
"@types/node": "9.6.31"
|
||||
}
|
||||
},
|
||||
"@types/connect": {
|
||||
|
@ -18,7 +18,7 @@
|
|||
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.32.tgz",
|
||||
"integrity": "sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg==",
|
||||
"requires": {
|
||||
"@types/node": "9.6.27"
|
||||
"@types/node": "9.6.31"
|
||||
}
|
||||
},
|
||||
"@types/events": {
|
||||
|
@ -42,7 +42,7 @@
|
|||
"integrity": "sha512-lTeoCu5NxJU4OD9moCgm0ESZzweAx0YqsAcab6OB0EB3+As1OaHtKnaGJvcngQxYsi9UNv0abn4/DRavrRxt4w==",
|
||||
"requires": {
|
||||
"@types/events": "1.2.0",
|
||||
"@types/node": "9.6.27",
|
||||
"@types/node": "9.6.31",
|
||||
"@types/range-parser": "1.2.2"
|
||||
}
|
||||
},
|
||||
|
@ -51,7 +51,7 @@
|
|||
"resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz",
|
||||
"integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==",
|
||||
"requires": {
|
||||
"@types/node": "9.6.27"
|
||||
"@types/node": "9.6.31"
|
||||
}
|
||||
},
|
||||
"@types/mime": {
|
||||
|
@ -66,9 +66,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "9.6.27",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.27.tgz",
|
||||
"integrity": "sha512-fGWGG9Wypv6JZLIrnq9jXFX/FhQzgNccTlojez9hBbQ9UiBdxtc0ONMMe4/vnB2nDgOMDpPR/7HhenUB+Bw5yQ=="
|
||||
"version": "9.6.31",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.31.tgz",
|
||||
"integrity": "sha512-kIVlvUBizL51ALNMPbmcZoM7quHyB7J6fLRwQe22JsMp39nrVSHdBeVVS3fnQCK1orxI3O8LScmb8cuiihkAfA=="
|
||||
},
|
||||
"@types/range-parser": {
|
||||
"version": "1.2.2",
|
||||
|
@ -85,11 +85,11 @@
|
|||
}
|
||||
},
|
||||
"@types/uuid": {
|
||||
"version": "3.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.3.tgz",
|
||||
"integrity": "sha512-5fRLCYhLtDb3hMWqQyH10qtF+Ud2JnNCXTCZ+9ktNdCcgslcuXkDTkFcJNk++MT29yDntDnlF1+jD+uVGumsbw==",
|
||||
"version": "3.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.4.tgz",
|
||||
"integrity": "sha512-tPIgT0GUmdJQNSHxp0X2jnpQfBSTfGxUMc/2CXBU2mnyTFVYVa2ojpoQ74w0U2yn2vw3jnC640+77lkFFpdVDw==",
|
||||
"requires": {
|
||||
"@types/node": "9.6.27"
|
||||
"@types/node": "9.6.31"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/ast": {
|
||||
|
@ -490,7 +490,7 @@
|
|||
},
|
||||
"axios": {
|
||||
"version": "0.18.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
|
||||
"integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
|
||||
"requires": {
|
||||
"follow-redirects": "1.5.0",
|
||||
|
@ -3591,14 +3591,14 @@
|
|||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"ms-rest-js": {
|
||||
"version": "0.21.409",
|
||||
"resolved": "https://registry.npmjs.org/ms-rest-js/-/ms-rest-js-0.21.409.tgz",
|
||||
"integrity": "sha512-W5XdcY8/bwUSom7+lSTQZnbdPrZQ5K+i6KKkAKUQj2pkdO9wO25Ppmw5YgDdQeq0kWFDEcsK2jpc+tmyjZU2aQ==",
|
||||
"version": "0.21.410",
|
||||
"resolved": "https://registry.npmjs.org/ms-rest-js/-/ms-rest-js-0.21.410.tgz",
|
||||
"integrity": "sha512-6GNmtPcXN9+zQZULNsDqy4NHJNJbX8qbAbTZtwnyq70TMNeM0FigKuzY0di6Iy84DQwki8xB57B5W62BZqboqQ==",
|
||||
"requires": {
|
||||
"@types/express": "4.16.0",
|
||||
"@types/form-data": "2.2.1",
|
||||
"@types/node": "9.6.27",
|
||||
"@types/uuid": "3.4.3",
|
||||
"@types/node": "9.6.31",
|
||||
"@types/uuid": "3.4.4",
|
||||
"axios": "0.18.0",
|
||||
"form-data": "2.3.2",
|
||||
"tough-cookie": "2.4.3",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"types": "./typings/lib/index.d.ts",
|
||||
"dependencies": {
|
||||
"ms-rest-js": "0.21.409"
|
||||
"ms-rest-js": "0.21.410"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^5.2.5",
|
||||
|
|
Загрузка…
Ссылка в новой задаче