@docsector/docsector-reader 1.2.2 → 1.2.4

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 CHANGED
@@ -23,7 +23,7 @@ const packageRoot = resolve(__dirname, '..')
23
23
  const args = process.argv.slice(2)
24
24
  const command = args[0]
25
25
 
26
- const VERSION = '1.2.2'
26
+ const VERSION = '1.2.4'
27
27
 
28
28
  const HELP = `
29
29
  Docsector Reader v${VERSION}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
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",
@@ -783,7 +783,7 @@ function bytesToBase64 (bytes) {
783
783
  }
784
784
 
785
785
  function bytesToBase64Url (bytes) {
786
- return bytesToBase64(bytes).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/g, '')
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 + '\n"@signature-params": ' + params
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 {
@@ -894,7 +894,7 @@ async function handleWebBotAuthDirectory (request, env, pathname) {
894
894
  privateKey
895
895
  })
896
896
 
897
- const body = JSON.stringify(jwks, null, 2) + '\n'
897
+ const body = JSON.stringify(jwks, null, 2) + '\\n'
898
898
  const headers = new Headers({
899
899
  'Content-Type': 'application/http-message-signatures-directory+json',
900
900
  'Cache-Control': 'public, max-age=60',