diff --git a/package-lock.json b/package-lock.json index 52a0dff4..e908a5e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2234,9 +2234,9 @@ } }, "confusing-browser-globals": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.7.tgz", - "integrity": "sha512-cgHI1azax5ATrZ8rJ+ODDML9Fvu67PimB6aNxBrc/QwSaDaM9eTfIEUHx3bBLJJ82ioSb+/5zfsMCCEJax3ByQ==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz", + "integrity": "sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw==", "dev": true }, "connect-history-api-fallback": { @@ -3079,12 +3079,12 @@ } }, "eslint-config-airbnb-base": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz", - "integrity": "sha512-1mg/7eoB4AUeB0X1c/ho4vb2gYkNH8Trr/EgCT/aGmKhhG+F6vF5s8+iRBlWAzFIAphxIdp3YfEKgEl0f9Xg+w==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.0.0.tgz", + "integrity": "sha512-2IDHobw97upExLmsebhtfoD3NAKhV4H0CJWP3Uprd/uk+cHuWYOczPVxQ8PxLFUAw7o3Th1RAU8u1DoUpr+cMA==", "dev": true, "requires": { - "confusing-browser-globals": "^1.0.5", + "confusing-browser-globals": "^1.0.7", "object.assign": "^4.1.0", "object.entries": "^1.1.0" } diff --git a/package.json b/package.json index 58fdbd83..2a18fa2b 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "clean-webpack-plugin": "^2.0.1", "cross-env": "^6.0.3", "eslint": "^5.16.0", - "eslint-config-airbnb-base": "^13.2.0", + "eslint-config-airbnb-base": "^14.0.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-react": "^7.14.3", "html-webpack-plugin": "^3.2.0", diff --git a/src/socket-daemon.v2.js b/src/socket-daemon.v2.js index e5a6690d..cb1b9756 100644 --- a/src/socket-daemon.v2.js +++ b/src/socket-daemon.v2.js @@ -39,11 +39,11 @@ export default class SocketDaemonV2 { }).then(res => res.json() .then((json) => { if (!res.ok) { - const error = Object.assign({}, json, { + const error = { + ...json, status: res.status, statusText: res.statusText, - }); - + }; return Promise.reject(error); } return json;