r2-streamer-js
Advanced tools
Comparing version 1.0.34 to 1.0.35
# Next | ||
Git diff: | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.34...develop | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.35...develop | ||
@@ -9,2 +9,19 @@ Changes: | ||
# 1.0.35 | ||
> Build environment: NodeJS `14.17.5`, NPM `6.14.14` | ||
Changes: | ||
* NPM package updates | ||
Git revision info: | ||
* https://unpkg.com/r2-streamer-js@1.0.35/dist/gitrev.json | ||
* https://github.com/edrlab/r2-streamer-js-dist/blob/v1.0.35/dist/gitrev.json | ||
Git commit history: | ||
* https://github.com/readium/r2-streamer-js/commits/v1.0.35 | ||
Git diff: | ||
* https://github.com/readium/r2-streamer-js/compare/v1.0.34...v1.0.35 | ||
# 1.0.34 | ||
@@ -11,0 +28,0 @@ |
@@ -55,16 +55,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverLCPLSD_show_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>LCP / LSD examiner</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -71,0 +71,0 @@ res.status(200).send(html); |
@@ -28,16 +28,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v1_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -44,0 +44,0 @@ res.status(200).send(html); |
@@ -67,16 +67,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -303,3 +303,3 @@ res.status(200).send(html); | ||
</form> | ||
${imageUrl ? `<img src="${imageUrl}" />` : ``} | ||
${imageUrl ? `<img src="${imageUrl}" />` : ""} | ||
<script type="text/javascript"> | ||
@@ -401,3 +401,3 @@ // document.addEventListener("DOMContentLoaded", (event) => { | ||
` : | ||
`window.alert("no auth link!");`} | ||
"window.alert(\"no auth link!\");"} | ||
} | ||
@@ -404,0 +404,0 @@ </script>`; |
@@ -57,16 +57,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_convert_v1_to_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS 1 -> 2 converter</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -73,0 +73,0 @@ res.status(200).send(html); |
@@ -18,16 +18,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverRemotePub_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>Publication URL</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -34,0 +34,0 @@ res.status(200).send(html); |
@@ -55,16 +55,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverLCPLSD_show_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>LCP / LSD examiner</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -71,0 +71,0 @@ res.status(200).send(html); |
@@ -28,16 +28,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v1_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -44,0 +44,0 @@ res.status(200).send(html); |
@@ -67,16 +67,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -303,3 +303,3 @@ res.status(200).send(html); | ||
</form> | ||
${imageUrl ? `<img src="${imageUrl}" />` : ``} | ||
${imageUrl ? `<img src="${imageUrl}" />` : ""} | ||
<script type="text/javascript"> | ||
@@ -401,3 +401,3 @@ // document.addEventListener("DOMContentLoaded", (event) => { | ||
` : | ||
`window.alert("no auth link!");`} | ||
"window.alert(\"no auth link!\");"} | ||
} | ||
@@ -404,0 +404,0 @@ </script>`; |
@@ -57,16 +57,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_convert_v1_to_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS 1 -> 2 converter</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -73,0 +73,0 @@ res.status(200).send(html); |
@@ -18,16 +18,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverRemotePub_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>Publication URL</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -34,0 +34,0 @@ res.status(200).send(html); |
@@ -54,16 +54,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverLCPLSD_show_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>LCP / LSD examiner</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -70,0 +70,0 @@ res.status(200).send(html); |
@@ -27,16 +27,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v1_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -43,0 +43,0 @@ res.status(200).send(html); |
@@ -66,16 +66,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_browse_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS feed browser</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -302,3 +302,3 @@ res.status(200).send(html); | ||
</form> | ||
${imageUrl ? `<img src="${imageUrl}" />` : ``} | ||
${imageUrl ? `<img src="${imageUrl}" />` : ""} | ||
<script type="text/javascript"> | ||
@@ -400,3 +400,3 @@ // document.addEventListener("DOMContentLoaded", (event) => { | ||
` : | ||
`window.alert("no auth link!");`} | ||
"window.alert(\"no auth link!\");"} | ||
} | ||
@@ -403,0 +403,0 @@ </script>`; |
@@ -56,16 +56,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverOPDS_convert_v1_to_v2_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>OPDS 1 -> 2 converter</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -72,0 +72,0 @@ res.status(200).send(html); |
@@ -18,16 +18,16 @@ "use strict"; | ||
let html = "<html><head>"; | ||
html += `<script type="text/javascript">function encodeURIComponent_RFC3986(str) { ` + | ||
`return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { ` + | ||
`return "%" + c.charCodeAt(0).toString(16); }); }` + | ||
`function go(evt) {` + | ||
`if (evt) { evt.preventDefault(); } var url = ` + | ||
`location.origin +` + | ||
html += "<script type=\"text/javascript\">function encodeURIComponent_RFC3986(str) { " + | ||
"return encodeURIComponent(str).replace(/[!'()*]/g, (c) => { " + | ||
"return \"%\" + c.charCodeAt(0).toString(16); }); }" + | ||
"function go(evt) {" + | ||
"if (evt) { evt.preventDefault(); } var url = " + | ||
"location.origin +" + | ||
` '${exports.serverRemotePub_PATH}/' +` + | ||
` encodeURIComponent_RFC3986(document.getElementById("url").value);` + | ||
`location.href = url;}</script>`; | ||
" encodeURIComponent_RFC3986(document.getElementById(\"url\").value);" + | ||
"location.href = url;}</script>"; | ||
html += "</head>"; | ||
html += "<body><h1>Publication URL</h1>"; | ||
html += `<form onsubmit="go();return false;">` + | ||
`<input type="text" name="url" id="url" size="80">` + | ||
`<input type="submit" value="Go!"></form>`; | ||
html += "<form onsubmit=\"go();return false;\">" + | ||
"<input type=\"text\" name=\"url\" id=\"url\" size=\"80\">" + | ||
"<input type=\"submit\" value=\"Go!\"></form>"; | ||
html += "</body></html>"; | ||
@@ -34,0 +34,0 @@ res.status(200).send(html); |
{ | ||
"node": "14.16.1", | ||
"npm": "6.14.13", | ||
"short": "7324254", | ||
"long": "73242541b4c6b7d4b65b3afd87551f53b7c3c51c", | ||
"node": "14.17.5", | ||
"npm": "6.14.14", | ||
"short": "096ae99", | ||
"long": "096ae99d3f7a570d3d1ee1092f2f794379bbc2bb", | ||
"branch": "develop", | ||
"date": "2021-05-12T12:34:30.000Z", | ||
"urlHistory": "https://github.com/readium/r2-streamer-js/commits/73242541b4c6b7d4b65b3afd87551f53b7c3c51c", | ||
"urlDiff": "https://github.com/readium/r2-streamer-js/compare/73242541b4c6b7d4b65b3afd87551f53b7c3c51c...develop" | ||
"date": "2021-08-26T10:02:27.000Z", | ||
"urlHistory": "https://github.com/readium/r2-streamer-js/commits/096ae99d3f7a570d3d1ee1092f2f794379bbc2bb", | ||
"urlDiff": "https://github.com/readium/r2-streamer-js/compare/096ae99d3f7a570d3d1ee1092f2f794379bbc2bb...develop" | ||
} |
{ | ||
"name": "r2-streamer-js", | ||
"version": "1.0.34", | ||
"version": "1.0.35", | ||
"description": "Readium 2 'streamer' for NodeJS (TypeScript)", | ||
@@ -49,18 +49,18 @@ "keywords": [ | ||
"dependencies": { | ||
"ajv": "^8.3.0", | ||
"ajv-formats": "^2.1.0", | ||
"ajv": "^8.6.2", | ||
"ajv-formats": "^2.1.1", | ||
"css2json": "^1.1.1", | ||
"debug": "^4.3.1", | ||
"debug": "^4.3.2", | ||
"dot-prop": "^6.0.1", | ||
"express": "^4.17.1", | ||
"filehound": "^1.17.4", | ||
"js-beautify": "^1.13.13", | ||
"js-beautify": "^1.14.0", | ||
"json-markup": "^1.1.3", | ||
"mime-types": "^2.1.30", | ||
"mime-types": "^2.1.32", | ||
"moment": "^2.29.1", | ||
"morgan": "^1.10.0", | ||
"r2-lcp-js": "^1.0.30", | ||
"r2-opds-js": "^1.0.34", | ||
"r2-shared-js": "^1.0.51", | ||
"r2-utils-js": "^1.0.25", | ||
"r2-lcp-js": "^1.0.31", | ||
"r2-opds-js": "^1.0.36", | ||
"r2-shared-js": "^1.0.52", | ||
"r2-utils-js": "^1.0.26", | ||
"request": "^2.88.2", | ||
@@ -70,5 +70,5 @@ "request-promise-native": "^1.0.9", | ||
"ta-json-x": "^2.5.3", | ||
"terser": "^5.7.0", | ||
"terser": "^5.7.2", | ||
"tmp": "^0.2.1", | ||
"tslib": "^2.2.0", | ||
"tslib": "^2.3.1", | ||
"uuid": "^8.3.2", | ||
@@ -78,13 +78,15 @@ "xmldom": "^0.6.0" | ||
"devDependencies": { | ||
"@types/debug": "^4.1.5", | ||
"@types/express": "^4.17.11", | ||
"@types/js-beautify": "^1.13.1", | ||
"@types/mime-types": "^2.1.0", | ||
"@types/morgan": "^1.9.2", | ||
"@types/node": "^12.20.12", | ||
"@types/request": "^2.48.5", | ||
"@types/request-promise-native": "^1.0.17", | ||
"@types/tmp": "^0.2.0", | ||
"@types/uuid": "^8.3.0", | ||
"@types/xmldom": "^0.1.30", | ||
"@types/debug": "^4.1.7", | ||
"@types/express": "^4.17.13", | ||
"@types/js-beautify": "^1.13.2", | ||
"@types/mime-types": "^2.1.1", | ||
"@types/morgan": "^1.9.3", | ||
"@types/node": "^14.17.12", | ||
"@types/request": "^2.48.7", | ||
"@types/request-promise-native": "^1.0.18", | ||
"@types/tmp": "^0.2.1", | ||
"@types/uuid": "^8.3.1", | ||
"@types/xmldom": "^0.1.31", | ||
"@typescript-eslint/eslint-plugin": "^4.29.3", | ||
"@typescript-eslint/parser": "^4.29.3", | ||
"browserify": "^17.0.0", | ||
@@ -95,2 +97,6 @@ "cpy-cli": "^3.1.1", | ||
"eclint": "^2.8.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.1", | ||
"eslint-plugin-unused-imports": "^1.1.4", | ||
"exorcist": "^2.0.0", | ||
@@ -100,7 +106,6 @@ "git-rev-sync": "^3.0.1", | ||
"mkdirp": "^1.0.4", | ||
"prettier": "^2.3.2", | ||
"rimraf": "^3.0.2", | ||
"sorcery": "^0.10.0", | ||
"tslint": "^5.20.1", | ||
"tslint-language-service": "^0.9.9", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -141,5 +146,3 @@ "main": "dist/es6-es2015/src/index.js", | ||
"lint:all": "eclint check \"**/*\" \"!**/*.node\" \"!.git/**/*\" \"!node_modules*/**/*\" \"!dist/**/*\" \"!misc/**/*\" \"!misc/json-schema/**/*\" \"!now/**/*\" \"!.vscode/**/*\" \"!.history/**/*\" \"!**/.DS_Store\" \"!**/*.epub\" \"!**/*.cbz\" \"!**/*.jpg\" \"!**/*.jpeg\" \"!**/*.png\" \"!**/*.log\"", | ||
"lint:typescript": "tslint -c \"./tslint.json\" \"./src/**/*.ts\" \"./test/**/*.ts\"", | ||
"lint:typescript:full": "tslint --project \"./tsconfig.json\" -c \"./tslint.json\" \"./src/**/*.ts\" \"./test/**/*.ts\"", | ||
"lintfix": "sed -i \"\" \"s/let normalizedPath = path\\\\.normalize(documentPath);/let normalizedPath = path.normalize(documentPath).toLowerCase();/g\" ./node_modules/tslint-language-service/out/src/index.js", | ||
"lint:typescript:full": "eslint \"src/**/*.ts\"", | ||
"pretranspile:typescript": "npm run clean", | ||
@@ -146,0 +149,0 @@ "transpile:typescript": "tsc --pretty -p \"./tsconfig.json\"", |
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
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
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
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
2107344
30
Updatedajv@^8.6.2
Updatedajv-formats@^2.1.1
Updateddebug@^4.3.2
Updatedjs-beautify@^1.14.0
Updatedmime-types@^2.1.32
Updatedr2-lcp-js@^1.0.31
Updatedr2-opds-js@^1.0.36
Updatedr2-shared-js@^1.0.52
Updatedr2-utils-js@^1.0.26
Updatedterser@^5.7.2
Updatedtslib@^2.3.1