diff --git a/package-lock.json b/package-lock.json index 9379175..7e3ca4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,9 @@ "name": "dicomweb-client", "version": "0.8.4", "license": "MIT", + "dependencies": { + "xhr2": "^0.2.1" + }, "devDependencies": { "@babel/core": "^7.1.0", "@babel/preset-env": "^7.1.0", @@ -5422,6 +5425,14 @@ "async-limiter": "~1.0.0" } }, + "node_modules/xhr2": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.2.1.tgz", + "integrity": "sha512-sID0rrVCqkVNUn8t6xuv9+6FViXjUVXq8H5rWOH2rz9fDNQEd4g0EA2XlcEdJXRz5BMEn4O1pJFdT+z4YHhoWw==", + "engines": { + "node": ">= 6" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -9666,6 +9677,11 @@ "async-limiter": "~1.0.0" } }, + "xhr2": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.2.1.tgz", + "integrity": "sha512-sID0rrVCqkVNUn8t6xuv9+6FViXjUVXq8H5rWOH2rz9fDNQEd4g0EA2XlcEdJXRz5BMEn4O1pJFdT+z4YHhoWw==" + }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 0a2da4a..d6cf1f3 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,8 @@ "rollup": "^0.63.2", "rollup-plugin-babel": "^4.0.3", "typescript": "^4.8.4" + }, + "dependencies": { + "xhr2": "^0.2.1" } } diff --git a/src/api.js b/src/api.js index a409229..9e3e0bc 100644 --- a/src/api.js +++ b/src/api.js @@ -1,3 +1,5 @@ +import XMLHttpRequest from 'xhr2'; + import { multipartEncode, multipartDecode } from './message.js'; function isObject(obj) {