@tv2media/v-connection
Advanced tools
Comparing version 7.3.0 to 7.3.2
@@ -5,2 +5,14 @@ # Changelog | ||
### [7.3.2](https://github.com/tv2/v-connection/compare/v7.3.1...v7.3.2) (2023-11-16) | ||
### Bug Fixes | ||
- Upgraded xml2js to 0.6.2. ([3bed1cc](https://github.com/tv2/v-connection/commit/3bed1cc44bebc26ada543da1123782f6e3ac7910)) | ||
### [7.3.1](https://github.com/tv2/v-connection/compare/v7.3.0...v7.3.1) (2023-11-16) | ||
### Bug Fixes | ||
- treat "inexist" error as InexistentError ([dff8f55](https://github.com/tv2/v-connection/commit/dff8f556861e32ec63ba8affe3ea628d22331b67)) | ||
## [7.3.0](https://github.com/tv2/v-connection/compare/v7.2.1...v7.3.0) (2023-03-06) | ||
@@ -7,0 +19,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
exports.createHTTPContext = exports.HTTPRequestError = exports.HTTPServerError = exports.HTTPClientError = exports.uuidRe = void 0; | ||
const request = require("request-promise-native"); | ||
const got_1 = require("got"); | ||
exports.uuidRe = /[a-fA-f0-9]{8}-[a-fA-f0-9]{4}-[a-fA-f0-9]{4}-[a-fA-f0-9]{4}-[a-fA-f0-9]{12}/; | ||
@@ -71,5 +71,5 @@ class HTTPClientError extends Error { | ||
if (typeof path === 'string') { | ||
const response = await request({ | ||
const response = await (0, got_1.default)({ | ||
method: 'POST', | ||
uri: `${this.baseURL}/${path}`, | ||
url: `${this.baseURL}/${path}`, | ||
body, | ||
@@ -81,6 +81,6 @@ timeout: this.timeout, | ||
}); | ||
return { status: 200, response: response.toString() }; | ||
return { status: 200, response: response.body.toString() }; | ||
} | ||
else { | ||
const response = await request({ | ||
const response = await (0, got_1.default)({ | ||
method: 'POST', | ||
@@ -94,3 +94,3 @@ url: path.toString(), | ||
}); | ||
return { status: 200, response: response.toString() }; | ||
return { status: 200, response: response.body.toString() }; | ||
} | ||
@@ -135,5 +135,5 @@ } | ||
try { | ||
await request.get({ | ||
await (0, got_1.default)({ | ||
method: 'GET', | ||
uri: this.baseURL, | ||
url: this.baseURL, | ||
timeout: this.timeout, | ||
@@ -140,0 +140,0 @@ }); |
@@ -224,2 +224,3 @@ "use strict"; | ||
case 'inexistent': | ||
case 'inexist': | ||
error = new InexistentError(c, m.slice(endOfErrorName + 1), pending.sent); | ||
@@ -226,0 +227,0 @@ break; |
{ | ||
"name": "@tv2media/v-connection", | ||
"version": "7.3.0", | ||
"version": "7.3.2", | ||
"description": "Sofie TV Automation Vizrt Media Sequencer Engine connection library", | ||
@@ -117,7 +117,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"request": "^2.88.2", | ||
"request-promise-native": "^1.0.9", | ||
"got": "11.8.6", | ||
"uuid": "^8.3.2", | ||
"ws": "^7.4.6", | ||
"xml2js": "^0.4.23" | ||
"xml2js": "^0.6.2" | ||
}, | ||
@@ -130,4 +129,2 @@ "devDependencies": { | ||
"@types/node": "^12.19.15", | ||
"@types/request": "^2.48.5", | ||
"@types/request-promise-native": "^1.0.17", | ||
"@types/uuid": "^8.3.0", | ||
@@ -134,0 +131,0 @@ "@types/ws": "^7.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209831
4
25
2634
+ Addedgot@11.8.6
+ Added@sindresorhus/is@4.6.0(transitive)
+ Added@szmarczak/http-timer@4.0.6(transitive)
+ Added@types/cacheable-request@6.0.3(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Added@types/keyv@3.1.4(transitive)
+ Added@types/node@22.10.5(transitive)
+ Added@types/responselike@1.0.3(transitive)
+ Addedcacheable-lookup@5.0.4(transitive)
+ Addedcacheable-request@7.0.4(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedgot@11.8.6(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp2-wrapper@1.0.3(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlowercase-keys@2.0.0(transitive)
+ Addedmimic-response@1.0.13.1.0(transitive)
+ Addednormalize-url@6.1.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-cancelable@2.1.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@2.0.1(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxml2js@0.6.2(transitive)
- Removedrequest@^2.88.2
- Removedrequest-promise-native@^1.0.9
- Removedajv@6.12.6(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrequest-promise-core@1.1.4(transitive)
- Removedrequest-promise-native@1.0.9(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstealthy-require@1.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedxml2js@0.4.23(transitive)
Updatedxml2js@^0.6.2