r2-streamer-js
Advanced tools
# Next | ||
Git diff: | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.39...develop | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.40...develop | ||
@@ -9,2 +9,20 @@ Changes: | ||
# 1.0.40 | ||
> Build environment: NodeJS `16.13.1`, NPM `8.3.0` | ||
Changes: | ||
* NPM package updates | ||
* safeguard against callbacks that do not capture async / await thrown errors (exceptions do not automatically transit up the call chain) avoids UnhandledPromiseRejectionWarning | ||
Git revision info: | ||
* https://unpkg.com/r2-streamer-js@1.0.40/dist/gitrev.json | ||
* https://github.com/edrlab/r2-streamer-js-dist/blob/v1.0.40/dist/gitrev.json | ||
Git commit history: | ||
* https://github.com/readium/r2-streamer-js/commits/v1.0.40 | ||
Git diff: | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.39...v1.0.40 | ||
# 1.0.39 | ||
@@ -11,0 +29,0 @@ |
@@ -192,3 +192,20 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", function (res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var successError_1; | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4, success(res)]; | ||
case 1: | ||
_a.sent(); | ||
return [3, 3]; | ||
case 2: | ||
successError_1 = _a.sent(); | ||
failure(successError_1); | ||
return [2]; | ||
case 3: return [2]; | ||
} | ||
}); | ||
}); }) | ||
.on("error", failure); | ||
@@ -195,0 +212,0 @@ return [3, 7]; |
@@ -243,3 +243,20 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", function (res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var successError_1; | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4, success(res)]; | ||
case 1: | ||
_a.sent(); | ||
return [3, 3]; | ||
case 2: | ||
successError_1 = _a.sent(); | ||
failure(successError_1); | ||
return [2]; | ||
case 3: return [2]; | ||
} | ||
}); | ||
}); }) | ||
.on("error", failure); | ||
@@ -246,0 +263,0 @@ return [3, 7]; |
@@ -314,3 +314,20 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", function (res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var successError_1; | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4, success(res)]; | ||
case 1: | ||
_a.sent(); | ||
return [3, 3]; | ||
case 2: | ||
successError_1 = _a.sent(); | ||
failure(successError_1); | ||
return [2]; | ||
case 3: return [2]; | ||
} | ||
}); | ||
}); }) | ||
.on("error", failure); | ||
@@ -357,3 +374,3 @@ return [3, 7]; | ||
routerOPDS_auth.get("/:" + request_ext_1._urlEncoded + "(*)", function (req, res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var reqparams, base64Payload, refreshToken, isSecureHttp, rootUrl, encrypted, decrypteds, decryptStream, buff1, buff2, decrypted, nPaddingBytes, size, decryptedStr, decryptedJson_1, authUrl, targetUrl_1, failure_1, success, headers, needsStreamingResponse, response, err_3, err_4; | ||
var reqparams, base64Payload, refreshToken, isSecureHttp, rootUrl, encrypted, decrypteds, decryptStream, buff1, buff2, decrypted, nPaddingBytes, size, decryptedStr, decryptedJson_1, authUrl, targetUrl_1, failure_1, success_1, headers, needsStreamingResponse, response, err_3, err_4; | ||
var _this = this; | ||
@@ -407,3 +424,3 @@ return (0, tslib_1.__generator)(this, function (_a) { | ||
}; | ||
success = function (response) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
success_1 = function (response) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var responseData, err_5, responseStr, responseJson, targetUrl_, refreshTokenUrl; | ||
@@ -469,3 +486,20 @@ return (0, tslib_1.__generator)(this, function (_a) { | ||
}) | ||
.on("response", success) | ||
.on("response", function (res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var successError_2; | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4, success_1(res)]; | ||
case 1: | ||
_a.sent(); | ||
return [3, 3]; | ||
case 2: | ||
successError_2 = _a.sent(); | ||
failure_1(successError_2); | ||
return [2]; | ||
case 3: return [2]; | ||
} | ||
}); | ||
}); }) | ||
.on("error", failure_1); | ||
@@ -492,3 +526,3 @@ return [3, 8]; | ||
return [2]; | ||
case 6: return [4, success(response)]; | ||
case 6: return [4, success_1(response)]; | ||
case 7: | ||
@@ -495,0 +529,0 @@ _a.sent(); |
@@ -270,3 +270,20 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", function (res) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () { | ||
var successError_1; | ||
return (0, tslib_1.__generator)(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 2, , 3]); | ||
return [4, success(res)]; | ||
case 1: | ||
_a.sent(); | ||
return [3, 3]; | ||
case 2: | ||
successError_1 = _a.sent(); | ||
failure(successError_1); | ||
return [2]; | ||
case 3: return [2]; | ||
} | ||
}); | ||
}); }) | ||
.on("error", failure); | ||
@@ -273,0 +290,0 @@ return [3, 7]; |
@@ -197,3 +197,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -200,0 +208,0 @@ } |
@@ -228,3 +228,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -231,0 +239,0 @@ } |
@@ -429,3 +429,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -567,3 +575,11 @@ } | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -570,0 +586,0 @@ } |
@@ -279,3 +279,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -282,0 +290,0 @@ } |
@@ -197,3 +197,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -200,0 +208,0 @@ } |
@@ -228,3 +228,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -231,0 +239,0 @@ } |
@@ -429,3 +429,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -567,3 +575,11 @@ } | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -570,0 +586,0 @@ } |
@@ -279,3 +279,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", (res) => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
try { | ||
yield success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
})) | ||
.on("error", failure); | ||
@@ -282,0 +290,0 @@ } |
@@ -196,3 +196,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", async (res) => { | ||
try { | ||
await success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
}) | ||
.on("error", failure); | ||
@@ -199,0 +207,0 @@ } |
@@ -227,3 +227,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", async (res) => { | ||
try { | ||
await success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
}) | ||
.on("error", failure); | ||
@@ -230,0 +238,0 @@ } |
@@ -428,3 +428,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", async (res) => { | ||
try { | ||
await success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
}) | ||
.on("error", failure); | ||
@@ -566,3 +574,11 @@ } | ||
}) | ||
.on("response", success) | ||
.on("response", async (res) => { | ||
try { | ||
await success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
}) | ||
.on("error", failure); | ||
@@ -569,0 +585,0 @@ } |
@@ -278,3 +278,11 @@ "use strict"; | ||
}) | ||
.on("response", success) | ||
.on("response", async (res) => { | ||
try { | ||
await success(res); | ||
} | ||
catch (successError) { | ||
failure(successError); | ||
return; | ||
} | ||
}) | ||
.on("error", failure); | ||
@@ -281,0 +289,0 @@ } |
{ | ||
"node": "16.13.1", | ||
"npm": "8.3.0", | ||
"short": "c58b858", | ||
"long": "c58b858822aa31b4102d8cd0322160c93d7ff66b", | ||
"short": "41e0074", | ||
"long": "41e00743fa3b8329f2c76d5d51feca3d4615185d", | ||
"branch": "develop", | ||
"date": "2022-01-09T09:15:10.000Z", | ||
"urlHistory": "https://github.com/readium/r2-streamer-js/commits/c58b858822aa31b4102d8cd0322160c93d7ff66b", | ||
"urlDiff": "https://github.com/readium/r2-streamer-js/compare/c58b858822aa31b4102d8cd0322160c93d7ff66b...develop" | ||
"date": "2022-01-11T16:26:22.000Z", | ||
"urlHistory": "https://github.com/readium/r2-streamer-js/commits/41e00743fa3b8329f2c76d5d51feca3d4615185d", | ||
"urlDiff": "https://github.com/readium/r2-streamer-js/compare/41e00743fa3b8329f2c76d5d51feca3d4615185d...develop" | ||
} |
{ | ||
"name": "r2-streamer-js", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "Readium 2 'streamer' for NodeJS (TypeScript)", | ||
@@ -61,9 +61,9 @@ "keywords": [ | ||
"morgan": "^1.10.0", | ||
"r2-lcp-js": "^1.0.34", | ||
"r2-lcp-js": "^1.0.35", | ||
"r2-opds-js": "^1.0.39", | ||
"r2-shared-js": "^1.0.55", | ||
"r2-utils-js": "^1.0.30", | ||
"r2-utils-js": "^1.0.31", | ||
"request": "^2.88.2", | ||
"request-promise-native": "^1.0.9", | ||
"selfsigned": "^1.10.11", | ||
"selfsigned": "^2.0.0", | ||
"ta-json-x": "^2.5.3", | ||
@@ -87,4 +87,4 @@ "terser": "^5.10.0", | ||
"@types/xmldom": "^0.1.31", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@typescript-eslint/parser": "^5.9.0", | ||
"@typescript-eslint/eslint-plugin": "^5.9.1", | ||
"@typescript-eslint/parser": "^5.9.1", | ||
"browserify": "^17.0.0", | ||
@@ -91,0 +91,0 @@ "cpy-cli": "^3.1.1", |
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
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
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
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
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
Sorry, the diff of this file is not supported yet
2150777
0.83%14963
1.4%