@docsector/docsector-reader 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/docsector.js +1 -1
- package/package.json +1 -1
- package/src/quasar.factory.js +2 -2
package/bin/docsector.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docsector/docsector-reader",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
|
|
5
5
|
"productName": "Docsector Reader",
|
|
6
6
|
"author": "Rodrigo de Araujo Vieira",
|
package/src/quasar.factory.js
CHANGED
|
@@ -783,7 +783,7 @@ function bytesToBase64 (bytes) {
|
|
|
783
783
|
}
|
|
784
784
|
|
|
785
785
|
function bytesToBase64Url (bytes) {
|
|
786
|
-
return bytesToBase64(bytes).replace(
|
|
786
|
+
return bytesToBase64(bytes).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/g, '')
|
|
787
787
|
}
|
|
788
788
|
|
|
789
789
|
async function sha256 (input) {
|
|
@@ -841,7 +841,7 @@ async function importEd25519PrivateKey (privateJwk) {
|
|
|
841
841
|
async function signDirectoryResponse ({ authority, keyId, created, expires, privateKey }) {
|
|
842
842
|
const params = '("@authority";req);created=' + created + ';expires=' + expires + ';keyid="' + keyId + '";alg="ed25519";tag="http-message-signatures-directory"'
|
|
843
843
|
const signatureInput = WEB_BOT_AUTH_SIGNATURE_LABEL + '=' + params
|
|
844
|
-
const base = '"@authority";req: ' + authority + '
|
|
844
|
+
const base = '"@authority";req: ' + authority + '\\n"@signature-params": ' + params
|
|
845
845
|
const signature = await crypto.subtle.sign('Ed25519', privateKey, textEncoder.encode(base))
|
|
846
846
|
|
|
847
847
|
return {
|