wherdr 0.0.0-stage → 1.3.0
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/01adBkx4.js +1 -0
- package/.output/public/_nuxt/AgentView.DE2GDt4O.css +1 -0
- package/.output/public/_nuxt/BB3uOVbO.js +93 -0
- package/.output/public/_nuxt/BDNMzG2s.js +1 -0
- package/.output/public/_nuxt/BJsf0WRn.js +2 -0
- package/.output/public/_nuxt/Bd17z0YL.js +2 -0
- package/.output/public/_nuxt/BpQH8Ho1.js +1 -0
- package/.output/public/_nuxt/Bta8at9w.js +6 -0
- package/.output/public/_nuxt/C3BWhslt.js +1 -0
- package/.output/public/_nuxt/C3P2P5Mv.js +1 -0
- package/.output/public/_nuxt/CWwyK2XK.js +2 -0
- package/.output/public/_nuxt/CXG-cOdh.js +1 -0
- package/.output/public/_nuxt/Cc2bsOcu.js +83 -0
- package/.output/public/_nuxt/Ci8N4mWR.js +1 -0
- package/.output/public/_nuxt/DKmoLFfn.js +30 -0
- package/.output/public/_nuxt/DLLQgP0d.js +1 -0
- package/.output/public/_nuxt/DcCZr0Ya.js +17 -0
- package/.output/public/_nuxt/DsD2R-37.js +23 -0
- package/.output/public/_nuxt/OAXEskzA.js +65 -0
- package/.output/public/_nuxt/SiL1FJ5s.js +3 -0
- package/.output/public/_nuxt/archivo-latin-ext-wght-normal.C4zznr8T.woff2 +0 -0
- package/.output/public/_nuxt/archivo-latin-wght-normal.E0tuGl4L.woff2 +0 -0
- package/.output/public/_nuxt/archivo-vietnamese-wght-normal.XAtsl5Q_.woff2 +0 -0
- package/.output/public/_nuxt/bLP7Jj-b.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/ff11fc8b-1e70-4261-a76e-a52155efb196.json +1 -0
- package/.output/public/_nuxt/entry.SHBiCXBL.css +2 -0
- package/.output/public/_nuxt/error-404.Bb87HomL.css +1 -0
- package/.output/public/_nuxt/error-500.Bwd7zAaE.css +1 -0
- package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-awesome.DQ3_iAfa.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-codicons.CtEsfSAf.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-devicons.ZMSFX1sW.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-extension.Dai_ky39.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-1.BdvqkCqW.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-2.C_flbBWO.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-3.8xz7iX-Y.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-4.CO_PudDR.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-octicons.Hl4VEx8m.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-powerline.B_kAMxXr.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-symbols.C1LsPKmg.woff2 +0 -0
- package/.output/public/_nuxt/yzABg5xl.js +1 -0
- package/.output/public/manifest-en.webmanifest +18 -0
- package/.output/public/manifest.webmanifest +18 -0
- package/.output/public/sw.js +99 -0
- package/.output/server/chunks/_/awake.mjs +170 -0
- package/.output/server/chunks/_/branding.mjs +28 -0
- package/.output/server/chunks/_/changes.mjs +199 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/machineOrder.mjs +40 -0
- package/.output/server/chunks/_/onboarding.mjs +26 -0
- package/.output/server/chunks/_/phone.mjs +343 -0
- package/.output/server/chunks/_/plugins.mjs +248 -0
- package/.output/server/chunks/_/projectBoard.mjs +275 -0
- package/.output/server/chunks/_/projectsActions.mjs +143 -0
- package/.output/server/chunks/_/projectsPlugin.mjs +56 -0
- package/.output/server/chunks/_/restart.mjs +459 -0
- package/.output/server/chunks/_/reveal.mjs +137 -0
- package/.output/server/chunks/_/worktrees.mjs +74 -0
- package/.output/server/chunks/_/ws.mjs +57 -0
- package/.output/server/chunks/nitro/nitro.mjs +20841 -0
- package/.output/server/chunks/raw/apple-touch-icon.mjs +7 -0
- package/.output/server/chunks/raw/build-nerd-font.mjs +7 -0
- package/.output/server/chunks/raw/build-terminal-font.mjs +7 -0
- package/.output/server/chunks/raw/check-leaks.mjs +5 -0
- package/.output/server/chunks/raw/dev.wherdr.open.mjs +7 -0
- package/.output/server/chunks/raw/docker-entrypoint.mjs +7 -0
- package/.output/server/chunks/raw/favicon-32.mjs +7 -0
- package/.output/server/chunks/raw/favicon.mjs +7 -0
- package/.output/server/chunks/raw/herdr-plugin.mjs +7 -0
- package/.output/server/chunks/raw/icon-192.mjs +7 -0
- package/.output/server/chunks/raw/icon-512-maskable.mjs +7 -0
- package/.output/server/chunks/raw/icon-512.mjs +7 -0
- package/.output/server/chunks/raw/icon-maskable.mjs +7 -0
- package/.output/server/chunks/raw/icon.mjs +7 -0
- package/.output/server/chunks/raw/install-claude-statusline.mjs +7 -0
- package/.output/server/chunks/raw/install-host-open.mjs +7 -0
- package/.output/server/chunks/raw/pack-output.mjs +5 -0
- package/.output/server/chunks/raw/reveal.mjs +7 -0
- package/.output/server/chunks/raw/wherdr-open.mjs +7 -0
- package/.output/server/chunks/routes/api/_..._.mjs +31 -0
- package/.output/server/chunks/routes/api/agents.post.mjs +31 -0
- package/.output/server/chunks/routes/api/ask-tab.post.mjs +50 -0
- package/.output/server/chunks/routes/api/attach.post.mjs +36 -0
- package/.output/server/chunks/routes/api/auth/disable.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/lock.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/login/options.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/max-session.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/register/options.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs +34 -0
- package/.output/server/chunks/routes/api/changes.get.mjs +39 -0
- package/.output/server/chunks/routes/api/chat/image.get.mjs +41 -0
- package/.output/server/chunks/routes/api/chat.get.mjs +94 -0
- package/.output/server/chunks/routes/api/choose.post.mjs +136 -0
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +36 -0
- package/.output/server/chunks/routes/api/close/status.get.mjs +37 -0
- package/.output/server/chunks/routes/api/close.post.mjs +38 -0
- package/.output/server/chunks/routes/api/codex-update.post.mjs +42 -0
- package/.output/server/chunks/routes/api/commands.get.mjs +43 -0
- package/.output/server/chunks/routes/api/config.get.mjs +87 -0
- package/.output/server/chunks/routes/api/dirs.get.mjs +34 -0
- package/.output/server/chunks/routes/api/dismiss.post.mjs +34 -0
- package/.output/server/chunks/routes/api/effort.post.mjs +37 -0
- package/.output/server/chunks/routes/api/efforts.get.mjs +38 -0
- package/.output/server/chunks/routes/api/file.post.mjs +35 -0
- package/.output/server/chunks/routes/api/gitroot.get.mjs +38 -0
- package/.output/server/chunks/routes/api/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/input.post.mjs +44 -0
- package/.output/server/chunks/routes/api/interrupt.post.mjs +49 -0
- package/.output/server/chunks/routes/api/isgit.get.mjs +38 -0
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +40 -0
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +41 -0
- package/.output/server/chunks/routes/api/machine/order.get.mjs +32 -0
- package/.output/server/chunks/routes/api/machine/order.post.mjs +37 -0
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +40 -0
- package/.output/server/chunks/routes/api/menu.post.mjs +77 -0
- package/.output/server/chunks/routes/api/model.post.mjs +37 -0
- package/.output/server/chunks/routes/api/models.get.mjs +36 -0
- package/.output/server/chunks/routes/api/nav.post.mjs +59 -0
- package/.output/server/chunks/routes/api/onboarding.get.mjs +32 -0
- package/.output/server/chunks/routes/api/onboarding.post.mjs +35 -0
- package/.output/server/chunks/routes/api/phone.get.mjs +39 -0
- package/.output/server/chunks/routes/api/phone.post.mjs +39 -0
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +37 -0
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +34 -0
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +36 -0
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +38 -0
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +38 -0
- package/.output/server/chunks/routes/api/plugins/thread-limits.get.mjs +31 -0
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +41 -0
- package/.output/server/chunks/routes/api/project/report.get.mjs +37 -0
- package/.output/server/chunks/routes/api/prompt.post.mjs +88 -0
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +50 -0
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +52 -0
- package/.output/server/chunks/routes/api/push/test.post.mjs +33 -0
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +35 -0
- package/.output/server/chunks/routes/api/quotas.get.mjs +31 -0
- package/.output/server/chunks/routes/api/rename.post.mjs +37 -0
- package/.output/server/chunks/routes/api/requeue.post.mjs +35 -0
- package/.output/server/chunks/routes/api/restart.get.mjs +39 -0
- package/.output/server/chunks/routes/api/restart.post.mjs +40 -0
- package/.output/server/chunks/routes/api/reveal.post.mjs +32 -0
- package/.output/server/chunks/routes/api/screen-key.post.mjs +42 -0
- package/.output/server/chunks/routes/api/screen.get.mjs +77 -0
- package/.output/server/chunks/routes/api/search.get.mjs +77 -0
- package/.output/server/chunks/routes/api/seen.post.mjs +34 -0
- package/.output/server/chunks/routes/api/sessions.get.mjs +34 -0
- package/.output/server/chunks/routes/api/sessions.post.mjs +34 -0
- package/.output/server/chunks/routes/api/space.post.mjs +259 -0
- package/.output/server/chunks/routes/api/state.get.mjs +31 -0
- package/.output/server/chunks/routes/api/unqueue.post.mjs +36 -0
- package/.output/server/chunks/routes/api/update.get.mjs +79 -0
- package/.output/server/chunks/routes/api/upload.post.mjs +34 -0
- package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +35 -0
- package/.output/server/chunks/routes/api/worktrees.get.mjs +32 -0
- package/.output/server/chunks/routes/favicon.ico.get.mjs +32 -0
- package/.output/server/chunks/routes/icons/_name_.get.mjs +32 -0
- package/.output/server/chunks/routes/renderer.mjs +359 -0
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +40 -0
- package/.output/server/chunks/routes/ws/_..._.mjs +33 -0
- package/.output/server/chunks/routes/ws/events.mjs +58 -0
- package/.output/server/chunks/routes/ws/mirror.mjs +157 -0
- package/.output/server/chunks/routes/ws/term.mjs +57 -0
- package/.output/server/chunks/virtual/_raw-helpers.mjs +12 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/index.mjs +27 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14616 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@hexagon/base64/package.json +73 -0
- package/.output/server/node_modules/@hexagon/base64/src/base64.js +190 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor.js +440 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor_internal.js +111 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/index.js +1 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/package.json +3 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/package.json +25 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/attestation.js +34 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/index.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/key_description.js +512 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/nonstandard.js +103 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-android/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/counter_signature.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/index.js +8 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/message_digest.js +8 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/signing_time.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/certificate_choices.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/content_info.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/encapsulated_content_info.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/encrypted_content_info.js +56 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/enveloped_data.js +60 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/index.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/issuer_and_serial_number.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/kek_recipient_info.js +53 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/key_agree_recipient_info.js +167 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/key_trans_recipient_info.js +51 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/object_identifiers.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/originator_info.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/other_key_attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/password_recipient_info.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/recipient_info.js +75 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/recipient_infos.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/revocation_info_choice.js +54 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signed_data.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signer_identifier.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signer_info.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/types.js +51 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/package.json +65 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/attributes.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/certification_request.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/certification_request_info.js +34 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/package.json +65 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/algorithms.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_parameters.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_private_key.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_signature_value.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/object_identifiers.js +26 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/rfc3279.js +95 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/algorithms.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_parameters.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_private_key.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_signature_value.js +21 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/object_identifiers.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/rfc3279.js +90 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/package.json +66 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/attribute.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/authenticated_safe.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/cert_bag.js +26 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/crl_bag.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/key_bag.js +12 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/pkcs8_shrouded_key_bag.js +12 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/secret_bag.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/types.js +11 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/index.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/mac_data.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/object_identifiers.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/pfx.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/safe_bag.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/package.json +67 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/encrypted_private_key_info.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/index.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/private_key_info.js +54 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/package.json +63 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/build/cjs/index.js +301 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/package.json +67 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/algorithms.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/object_identifiers.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/other_prime_info.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsaes_oaep.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pkcs1_v1_5.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pss.js +53 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_private_key.js +79 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_public_key.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/object_identifiers.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/other_prime_info.js +42 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/index.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js +49 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js +75 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js +21 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/convert.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/converters.js +148 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/decorators.js +52 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/enums.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/errors/index.js +4 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/errors/schema_validation.js +7 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/helper.js +44 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/index.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/objects.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/parser.js +313 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/schema.js +165 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/serializer.js +150 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/storage.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/bit_string.js +71 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/index.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/octet_string.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/convert.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/converters.js +143 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/decorators.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/enums.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js +1 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/helper.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/objects.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/parser.js +308 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/schema.js +160 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/serializer.js +145 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/storage.js +2 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js +66 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/index.js +2 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/package.json +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/algorithm_identifier.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/certificate.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/certificate_list.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extension.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_information_access.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_key_identifier.js +48 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/basic_constraints.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_issuer.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_policies.js +136 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_delta_indicator.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_distribution_points.js +132 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_freshest.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_issuing_distribution_point.js +68 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_number.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_reason.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/entrust_version_info.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/extended_key_usage.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/index.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/inhibit_any_policy.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/invalidity_date.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/issuer_alternative_name.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/key_usage.js +56 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/name_constraints.js +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_constraints.js +33 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_mappings.js +35 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/private_key_usage_period.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_alternative_name.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_directory_attributes.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_info_access.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_key_identifier.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/general_name.js +132 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/general_names.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/index.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/ip_converter.js +177 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/name.js +110 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/object_identifiers.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/subject_public_key_info.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/tbs_cert_list.js +83 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/tbs_certificate.js +78 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/time.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/types.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/validity.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/attribute.js +18 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/certificate.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extension.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js +129 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js +11 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js +127 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js +52 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js +69 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/general_name.js +127 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/general_names.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/index.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js +173 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/name.js +106 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js +78 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/time.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/types.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/validity.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_clear_attrs.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_controls.js +44 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_issuer.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_validity_period.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_spec.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate_info.js +67 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/class_list.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/clearance.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/holder.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/ietf_attr_syntax.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/index.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/issuer_serial.js +30 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_digest_info.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_identifiers.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/proxy_info.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/role_syntax.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/security_category.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/svce_auth_info.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/target.js +79 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/v2_form.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/package.json +64 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/buffer-source.js +115 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/concat.js +41 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/equal.js +17 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/index.js +31 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/sequence.js +161 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/convert.js +74 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/defaults.js +72 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/index.js +18 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/registry.js +188 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/base64.js +48 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/base64url.js +26 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/binary.js +26 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/hex.js +229 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/index.js +10 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/utf16.js +24 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/utf8.js +13 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/index.js +10 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js +37 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/convert.js +72 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/functions.js +23 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/index.js +11 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/package.json +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/pem/index.js +14 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/pem/pem.js +140 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/buffer-source.js +101 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/concat.js +37 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/equal.js +14 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/index.js +4 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/sequence.js +150 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/convert.js +71 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/defaults.js +68 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/index.js +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/registry.js +185 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/base64.js +40 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/base64url.js +19 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/binary.js +20 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/hex.js +220 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/index.js +6 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/utf16.js +19 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/utf8.js +8 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/index.js +6 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/buffer-source-converter.js +33 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/convert.js +68 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/functions.js +18 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/index.js +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/pem/index.js +1 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/pem/pem.js +129 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/utils/package.json +111 -0
- package/.output/server/node_modules/@peculiar/x509/build/x509.cjs.js +3445 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/x509/package.json +94 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/authentication/generateAuthenticationOptions.js +41 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/authentication/verifyAuthenticationResponse.js +171 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertCOSEtoPKCS.js +21 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertCertBufferToPEM.js +31 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertPEMToBytes.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertX509PublicKeyToCOSE.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/cose.js +90 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeAttestationObject.js +16 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeAuthenticatorExtensions.js +34 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeClientDataJSON.js +16 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeCredentialPublicKey.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/fetch.js +14 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/generateChallenge.js +24 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/generateUserID.js +20 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/getCertificateInfo.js +77 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/index.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/isCertRevoked.js +96 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/index.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoBase64URL.js +72 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCBOR.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/digest.js +14 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getRandomValues.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getWebCrypto.js +49 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/importKey.js +8 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/index.js +7 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.js +20 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +19 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/unwrapEC2Signature.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verify.js +32 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyEC2.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyOKP.js +51 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyRSA.js +91 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoUint8Array.js +79 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/logging.js +19 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/mapJWSAlgToCOSEAlg.js +31 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/mapX509SignatureAlgToCOSEAlg.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/matchExpectedRPID.js +41 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/parseAuthenticatorData.js +106 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/parseBackupFlags.js +25 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/toHash.js +12 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/validateCertificatePath.js +134 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/validateExtFIDOGenCEAAGUID.js +34 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/verifySignature.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/index.js +8 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/mdsTypes.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/parseJWT.js +12 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyAttestationWithMetadata.js +159 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyJWT.js +42 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyMDSBlob.js +59 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/package.json +3 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/generateRegistrationOptions.js +181 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/constants.js +137 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parseCertInfo.js +58 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parsePubArea.js +94 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/verifyAttestationTPM.js +331 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidKey.js +120 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidSafetyNet.js +113 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationApple.js +58 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationFIDOU2F.js +48 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationPacked.js +113 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifyRegistrationResponse.js +213 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-key.js +171 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-safetynet.js +32 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/apple.js +25 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/mds.js +74 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/metadataService.js +268 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/settingsService.js +74 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/types/index.js +1 -0
- package/.output/server/node_modules/@simplewebauthn/server/package.json +65 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
- package/.output/server/node_modules/agent-base/dist/index.js +178 -0
- package/.output/server/node_modules/agent-base/package.json +46 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/api.js +57 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/buffer.js +153 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/index.js +8 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/node.js +638 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/reporter.js +123 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/constants/der.js +58 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/constants/index.js +21 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/der.js +335 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/index.js +6 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/pem.js +51 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/der.js +295 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/index.js +6 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/pem.js +23 -0
- package/.output/server/node_modules/asn1.js/lib/asn1.js +11 -0
- package/.output/server/node_modules/asn1.js/package.json +36 -0
- package/.output/server/node_modules/asn1js/build/index.js +3266 -0
- package/.output/server/node_modules/asn1js/package.json +86 -0
- package/.output/server/node_modules/bn.js/lib/bn.js +3463 -0
- package/.output/server/node_modules/bn.js/package.json +36 -0
- package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
- package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +279 -0
- package/.output/server/node_modules/devalue/src/stringify.js +433 -0
- package/.output/server/node_modules/devalue/src/uneval.js +698 -0
- package/.output/server/node_modules/devalue/src/utils.js +190 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +54 -0
- package/.output/server/node_modules/http_ece/ece.js +528 -0
- package/.output/server/node_modules/http_ece/package.json +29 -0
- package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
- package/.output/server/node_modules/inherits/inherits.js +9 -0
- package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
- package/.output/server/node_modules/inherits/package.json +29 -0
- package/.output/server/node_modules/jwa/index.js +266 -0
- package/.output/server/node_modules/jwa/package.json +37 -0
- package/.output/server/node_modules/jws/index.js +22 -0
- package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
- package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
- package/.output/server/node_modules/jws/lib/tostring.js +10 -0
- package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
- package/.output/server/node_modules/jws/package.json +34 -0
- package/.output/server/node_modules/minimalistic-assert/index.js +11 -0
- package/.output/server/node_modules/minimalistic-assert/package.json +19 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +194 -0
- package/.output/server/node_modules/nostics/package.json +126 -0
- package/.output/server/node_modules/pvtsutils/build/index.js +399 -0
- package/.output/server/node_modules/pvtsutils/package.json +76 -0
- package/.output/server/node_modules/pvutils/build/utils.js +361 -0
- package/.output/server/node_modules/pvutils/package.json +63 -0
- package/.output/server/node_modules/qrcode-terminal/package.json +47 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js +22 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js +38 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js +7 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js +10 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js +44 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js +6 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js +66 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js +298 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js +272 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/index.js +462 -0
- package/.output/server/node_modules/reflect-metadata/Reflect.js +1415 -0
- package/.output/server/node_modules/reflect-metadata/package.json +68 -0
- package/.output/server/node_modules/safe-buffer/index.js +65 -0
- package/.output/server/node_modules/safe-buffer/package.json +51 -0
- package/.output/server/node_modules/safer-buffer/package.json +34 -0
- package/.output/server/node_modules/safer-buffer/safer.js +77 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/supports-color/index.js +202 -0
- package/.output/server/node_modules/supports-color/package.json +64 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/auto-injectable.js +46 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/index.js +20 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-all-with-transform.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-all.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-with-transform.js +10 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/injectable.js +21 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/registry.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/scoped.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/singleton.js +11 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/dependency-container.js +341 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/error-helpers.js +19 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/index.js +8 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/instance-caching-factory.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/instance-per-container-caching-factory.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/predicate-aware-class-factory.js +19 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/index.js +15 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/interceptors.js +17 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/lazy-helpers.js +54 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/class-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/factory-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/index.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/injection-token.js +24 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/provider.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/token-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/value-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/reflection-helpers.js +27 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/registry-base.js +39 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/registry.js +6 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/resolution-context.js +8 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/disposable.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/index.js +4 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/lifecycle.js +10 -0
- package/.output/server/node_modules/tsyringe/node_modules/tslib/package.json +37 -0
- package/.output/server/node_modules/tsyringe/node_modules/tslib/tslib.js +284 -0
- package/.output/server/node_modules/tsyringe/package.json +63 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +746 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.-hZVKou0.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bjbp1C8D.mjs +224 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C5Bksi2B.mjs +49 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C_7zwq8E.mjs +11 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Dssd7L5I.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.oZ7pkTV1.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +436 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +687 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
- package/.output/server/node_modules/web-push/package.json +55 -0
- package/.output/server/node_modules/web-push/src/encryption-helper.js +62 -0
- package/.output/server/node_modules/web-push/src/index.js +21 -0
- package/.output/server/node_modules/web-push/src/urlsafe-base64-helper.js +13 -0
- package/.output/server/node_modules/web-push/src/vapid-helper.js +255 -0
- package/.output/server/node_modules/web-push/src/web-push-constants.js +17 -0
- package/.output/server/node_modules/web-push/src/web-push-error.js +16 -0
- package/.output/server/node_modules/web-push/src/web-push-lib.js +413 -0
- package/.output/server/package.json +67 -0
- package/LICENSE +21 -0
- package/README.md +963 -2
- package/bin/lib/commands.mjs +432 -0
- package/bin/lib/core.mjs +150 -0
- package/bin/lib/panel.mjs +208 -0
- package/bin/lib/runtime.mjs +74 -0
- package/bin/lib/service.mjs +133 -0
- package/bin/lib/tailnet.d.mts +32 -0
- package/bin/lib/tailnet.mjs +185 -0
- package/bin/wherdr.mjs +23 -0
- package/package.json +75 -4
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { decodeLength, encodeLength, MAJOR_TYPE_ARRAY, MAJOR_TYPE_BYTE_STRING, MAJOR_TYPE_MAP, MAJOR_TYPE_NEGATIVE_INTEGER, MAJOR_TYPE_SIMPLE_OR_FLOAT, MAJOR_TYPE_TAG, MAJOR_TYPE_TEXT_STRING, MAJOR_TYPE_UNSIGNED_INTEGER, } from "./cbor_internal.js";
|
|
2
|
+
/**
|
|
3
|
+
* A value which is wrapped with a CBOR Tag.
|
|
4
|
+
* Several tags are registered with defined meanings like 0 for a date string.
|
|
5
|
+
* These meanings are **not interpreted** when decoded or encoded.
|
|
6
|
+
*
|
|
7
|
+
* This class is an immutable record.
|
|
8
|
+
* If the tag number or value needs to change, then construct a new tag
|
|
9
|
+
*/
|
|
10
|
+
export class CBORTag {
|
|
11
|
+
/**
|
|
12
|
+
* Wrap a value with a tag number.
|
|
13
|
+
* When encoded, this tag will be attached to the value.
|
|
14
|
+
*
|
|
15
|
+
* @param tag Tag number
|
|
16
|
+
* @param value Wrapped value
|
|
17
|
+
*/
|
|
18
|
+
constructor(tag, value) {
|
|
19
|
+
Object.defineProperty(this, "tagId", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(this, "tagValue", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: void 0
|
|
30
|
+
});
|
|
31
|
+
this.tagId = tag;
|
|
32
|
+
this.tagValue = value;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Read the tag number
|
|
36
|
+
*/
|
|
37
|
+
get tag() {
|
|
38
|
+
return this.tagId;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Read the value
|
|
42
|
+
*/
|
|
43
|
+
get value() {
|
|
44
|
+
return this.tagValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function decodeUnsignedInteger(data, argument, index) {
|
|
48
|
+
return decodeLength(data, argument, index);
|
|
49
|
+
}
|
|
50
|
+
function decodeNegativeInteger(data, argument, index) {
|
|
51
|
+
const [value, length] = decodeUnsignedInteger(data, argument, index);
|
|
52
|
+
return [-value - 1, length];
|
|
53
|
+
}
|
|
54
|
+
function decodeByteString(data, argument, index) {
|
|
55
|
+
const [lengthValue, lengthConsumed] = decodeLength(data, argument, index);
|
|
56
|
+
const dataStartIndex = index + lengthConsumed;
|
|
57
|
+
return [
|
|
58
|
+
new Uint8Array(data.buffer.slice(dataStartIndex, dataStartIndex + lengthValue)),
|
|
59
|
+
lengthConsumed + lengthValue,
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
const TEXT_DECODER = new TextDecoder();
|
|
63
|
+
function decodeString(data, argument, index) {
|
|
64
|
+
const [value, length] = decodeByteString(data, argument, index);
|
|
65
|
+
return [TEXT_DECODER.decode(value), length];
|
|
66
|
+
}
|
|
67
|
+
function decodeArray(data, argument, index) {
|
|
68
|
+
if (argument === 0) {
|
|
69
|
+
return [[], 1];
|
|
70
|
+
}
|
|
71
|
+
const [length, lengthConsumed] = decodeLength(data, argument, index);
|
|
72
|
+
let consumedLength = lengthConsumed;
|
|
73
|
+
const value = [];
|
|
74
|
+
for (let i = 0; i < length; i++) {
|
|
75
|
+
const remainingDataLength = data.byteLength - index - consumedLength;
|
|
76
|
+
if (remainingDataLength <= 0) {
|
|
77
|
+
throw new Error("array is not supported or well formed");
|
|
78
|
+
}
|
|
79
|
+
const [decodedValue, consumed] = decodeNext(data, index + consumedLength);
|
|
80
|
+
value.push(decodedValue);
|
|
81
|
+
consumedLength += consumed;
|
|
82
|
+
}
|
|
83
|
+
return [value, consumedLength];
|
|
84
|
+
}
|
|
85
|
+
const MAP_ERROR = "Map is not supported or well formed";
|
|
86
|
+
function decodeMap(data, argument, index) {
|
|
87
|
+
if (argument === 0) {
|
|
88
|
+
return [new Map(), 1];
|
|
89
|
+
}
|
|
90
|
+
const [length, lengthConsumed] = decodeLength(data, argument, index);
|
|
91
|
+
let consumedLength = lengthConsumed;
|
|
92
|
+
const result = new Map();
|
|
93
|
+
for (let i = 0; i < length; i++) {
|
|
94
|
+
let remainingDataLength = data.byteLength - index - consumedLength;
|
|
95
|
+
if (remainingDataLength <= 0) {
|
|
96
|
+
throw new Error(MAP_ERROR);
|
|
97
|
+
}
|
|
98
|
+
// Load key
|
|
99
|
+
const [key, keyConsumed] = decodeNext(data, index + consumedLength);
|
|
100
|
+
consumedLength += keyConsumed;
|
|
101
|
+
remainingDataLength -= keyConsumed;
|
|
102
|
+
// Check that there's enough to have a value
|
|
103
|
+
if (remainingDataLength <= 0) {
|
|
104
|
+
throw new Error(MAP_ERROR);
|
|
105
|
+
}
|
|
106
|
+
// Technically CBOR maps can have any type as the key, and so can JS Maps
|
|
107
|
+
// However, JS Maps can only reference such keys as references which would
|
|
108
|
+
// require key iteration and pattern matching.
|
|
109
|
+
// For simplicity, since such keys are not in use with WebAuthn, this
|
|
110
|
+
// capability is not implemented and the types are restricted to strings
|
|
111
|
+
// and numbers.
|
|
112
|
+
if (typeof key !== "string" && typeof key !== "number") {
|
|
113
|
+
throw new Error(MAP_ERROR);
|
|
114
|
+
}
|
|
115
|
+
// CBOR Maps are not well formed if there are duplicate keys
|
|
116
|
+
if (result.has(key)) {
|
|
117
|
+
throw new Error(MAP_ERROR);
|
|
118
|
+
}
|
|
119
|
+
// Load value
|
|
120
|
+
const [value, valueConsumed] = decodeNext(data, index + consumedLength);
|
|
121
|
+
consumedLength += valueConsumed;
|
|
122
|
+
result.set(key, value);
|
|
123
|
+
}
|
|
124
|
+
return [result, consumedLength];
|
|
125
|
+
}
|
|
126
|
+
function decodeFloat16(data, index) {
|
|
127
|
+
if (index + 3 > data.byteLength) {
|
|
128
|
+
throw new Error("CBOR stream ended before end of Float 16");
|
|
129
|
+
}
|
|
130
|
+
// Skip the first byte
|
|
131
|
+
const result = data.getUint16(index + 1, false);
|
|
132
|
+
// A minimal selection of supported values
|
|
133
|
+
if (result == 0x7c00) {
|
|
134
|
+
return [Infinity, 3];
|
|
135
|
+
}
|
|
136
|
+
else if (result == 0x7e00) {
|
|
137
|
+
return [NaN, 3];
|
|
138
|
+
}
|
|
139
|
+
else if (result == 0xfc00) {
|
|
140
|
+
return [-Infinity, 3];
|
|
141
|
+
}
|
|
142
|
+
throw new Error("Float16 data is unsupported");
|
|
143
|
+
}
|
|
144
|
+
function decodeFloat32(data, index) {
|
|
145
|
+
if (index + 5 > data.byteLength) {
|
|
146
|
+
throw new Error("CBOR stream ended before end of Float 32");
|
|
147
|
+
}
|
|
148
|
+
// Skip the first byte
|
|
149
|
+
const result = data.getFloat32(index + 1, false);
|
|
150
|
+
// First byte + 4 byte float
|
|
151
|
+
return [result, 5];
|
|
152
|
+
}
|
|
153
|
+
function decodeFloat64(data, index) {
|
|
154
|
+
if (index + 9 > data.byteLength) {
|
|
155
|
+
throw new Error("CBOR stream ended before end of Float 64");
|
|
156
|
+
}
|
|
157
|
+
// Skip the first byte
|
|
158
|
+
const result = data.getFloat64(index + 1, false);
|
|
159
|
+
// First byte + 8 byte float
|
|
160
|
+
return [result, 9];
|
|
161
|
+
}
|
|
162
|
+
function decodeTag(data, argument, index) {
|
|
163
|
+
const [tag, tagBytes] = decodeLength(data, argument, index);
|
|
164
|
+
const [value, valueBytes] = decodeNext(data, index + tagBytes);
|
|
165
|
+
return [new CBORTag(tag, value), tagBytes + valueBytes];
|
|
166
|
+
}
|
|
167
|
+
function decodeNext(data, index) {
|
|
168
|
+
if (index >= data.byteLength) {
|
|
169
|
+
throw new Error("CBOR stream ended before tag value");
|
|
170
|
+
}
|
|
171
|
+
const byte = data.getUint8(index);
|
|
172
|
+
const majorType = byte >> 5;
|
|
173
|
+
const argument = byte & 0x1f;
|
|
174
|
+
switch (majorType) {
|
|
175
|
+
case MAJOR_TYPE_UNSIGNED_INTEGER: {
|
|
176
|
+
return decodeUnsignedInteger(data, argument, index);
|
|
177
|
+
}
|
|
178
|
+
case MAJOR_TYPE_NEGATIVE_INTEGER: {
|
|
179
|
+
return decodeNegativeInteger(data, argument, index);
|
|
180
|
+
}
|
|
181
|
+
case MAJOR_TYPE_BYTE_STRING: {
|
|
182
|
+
return decodeByteString(data, argument, index);
|
|
183
|
+
}
|
|
184
|
+
case MAJOR_TYPE_TEXT_STRING: {
|
|
185
|
+
return decodeString(data, argument, index);
|
|
186
|
+
}
|
|
187
|
+
case MAJOR_TYPE_ARRAY: {
|
|
188
|
+
return decodeArray(data, argument, index);
|
|
189
|
+
}
|
|
190
|
+
case MAJOR_TYPE_MAP: {
|
|
191
|
+
return decodeMap(data, argument, index);
|
|
192
|
+
}
|
|
193
|
+
case MAJOR_TYPE_TAG: {
|
|
194
|
+
return decodeTag(data, argument, index);
|
|
195
|
+
}
|
|
196
|
+
case MAJOR_TYPE_SIMPLE_OR_FLOAT: {
|
|
197
|
+
switch (argument) {
|
|
198
|
+
case 20:
|
|
199
|
+
return [false, 1];
|
|
200
|
+
case 21:
|
|
201
|
+
return [true, 1];
|
|
202
|
+
case 22:
|
|
203
|
+
return [null, 1];
|
|
204
|
+
case 23:
|
|
205
|
+
return [undefined, 1];
|
|
206
|
+
// 24: Simple value (value 32..255 in following byte)
|
|
207
|
+
case 25: // IEEE 754 Half-Precision Float (16 bits follow)
|
|
208
|
+
return decodeFloat16(data, index);
|
|
209
|
+
case 26: // IEEE 754 Single-Precision Float (32 bits follow)
|
|
210
|
+
return decodeFloat32(data, index);
|
|
211
|
+
case 27: // IEEE 754 Double-Precision Float (64 bits follow)
|
|
212
|
+
return decodeFloat64(data, index);
|
|
213
|
+
// 28-30: Reserved, not well-formed in the present document
|
|
214
|
+
// 31: "break" stop code for indefinite-length items
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
throw new Error(`Unsupported or not well formed at ${index}`);
|
|
219
|
+
}
|
|
220
|
+
function encodeSimple(data) {
|
|
221
|
+
if (data === true) {
|
|
222
|
+
return 0xf5;
|
|
223
|
+
}
|
|
224
|
+
else if (data === false) {
|
|
225
|
+
return 0xf4;
|
|
226
|
+
}
|
|
227
|
+
else if (data === null) {
|
|
228
|
+
return 0xf6;
|
|
229
|
+
}
|
|
230
|
+
// Else undefined
|
|
231
|
+
return 0xf7;
|
|
232
|
+
}
|
|
233
|
+
function encodeFloat(data) {
|
|
234
|
+
if (Math.fround(data) == data || !Number.isFinite(data) || Number.isNaN(data)) {
|
|
235
|
+
// Float32
|
|
236
|
+
const output = new Uint8Array(5);
|
|
237
|
+
output[0] = 0xfa;
|
|
238
|
+
const view = new DataView(output.buffer);
|
|
239
|
+
view.setFloat32(1, data, false);
|
|
240
|
+
return output;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
// Float64
|
|
244
|
+
const output = new Uint8Array(9);
|
|
245
|
+
output[0] = 0xfb;
|
|
246
|
+
const view = new DataView(output.buffer);
|
|
247
|
+
view.setFloat64(1, data, false);
|
|
248
|
+
return output;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function encodeNumber(data) {
|
|
252
|
+
if (typeof data == "number") {
|
|
253
|
+
if (Number.isSafeInteger(data)) {
|
|
254
|
+
// Encode integer
|
|
255
|
+
if (data < 0) {
|
|
256
|
+
return encodeLength(MAJOR_TYPE_NEGATIVE_INTEGER, Math.abs(data));
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return encodeLength(MAJOR_TYPE_UNSIGNED_INTEGER, data);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return [encodeFloat(data)];
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
if (data < 0n) {
|
|
266
|
+
return encodeLength(MAJOR_TYPE_NEGATIVE_INTEGER, data * -1n);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
return encodeLength(MAJOR_TYPE_UNSIGNED_INTEGER, data);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const ENCODER = new TextEncoder();
|
|
274
|
+
function encodeString(data, output) {
|
|
275
|
+
output.push(...encodeLength(MAJOR_TYPE_TEXT_STRING, data.length));
|
|
276
|
+
output.push(ENCODER.encode(data));
|
|
277
|
+
}
|
|
278
|
+
function encodeBytes(data, output) {
|
|
279
|
+
output.push(...encodeLength(MAJOR_TYPE_BYTE_STRING, data.length));
|
|
280
|
+
output.push(data);
|
|
281
|
+
}
|
|
282
|
+
function encodeArray(data, output) {
|
|
283
|
+
output.push(...encodeLength(MAJOR_TYPE_ARRAY, data.length));
|
|
284
|
+
for (const element of data) {
|
|
285
|
+
encodePartialCBOR(element, output);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
function encodeMap(data, output) {
|
|
289
|
+
output.push(new Uint8Array(encodeLength(MAJOR_TYPE_MAP, data.size)));
|
|
290
|
+
for (const [key, value] of data.entries()) {
|
|
291
|
+
encodePartialCBOR(key, output);
|
|
292
|
+
encodePartialCBOR(value, output);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
function encodeTag(tag, output) {
|
|
296
|
+
output.push(...encodeLength(MAJOR_TYPE_TAG, tag.tag));
|
|
297
|
+
encodePartialCBOR(tag.value, output);
|
|
298
|
+
}
|
|
299
|
+
function encodePartialCBOR(data, output) {
|
|
300
|
+
if (typeof data == "boolean" || data === null || data == undefined) {
|
|
301
|
+
output.push(encodeSimple(data));
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (typeof data == "number" || typeof data == "bigint") {
|
|
305
|
+
output.push(...encodeNumber(data));
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (typeof data == "string") {
|
|
309
|
+
encodeString(data, output);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (data instanceof Uint8Array) {
|
|
313
|
+
encodeBytes(data, output);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (Array.isArray(data)) {
|
|
317
|
+
encodeArray(data, output);
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
if (data instanceof Map) {
|
|
321
|
+
encodeMap(data, output);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
if (data instanceof CBORTag) {
|
|
325
|
+
encodeTag(data, output);
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
throw new Error("Not implemented");
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Like {decodeCBOR}, but the length of the data is unknown and there is likely
|
|
332
|
+
* more -- possibly unrelated non-CBOR -- data afterwards.
|
|
333
|
+
*
|
|
334
|
+
* Examples:
|
|
335
|
+
*
|
|
336
|
+
* ```ts
|
|
337
|
+
* import {decodePartialCBOR} from './cbor.ts'
|
|
338
|
+
* decodePartialCBOR(new Uint8Array([1, 2, 245, 3, 4]), 2)
|
|
339
|
+
* // returns [true, 1]
|
|
340
|
+
* // It did not decode the leading [1, 2] or trailing [3, 4]
|
|
341
|
+
* ```
|
|
342
|
+
*
|
|
343
|
+
* @param data a data stream to read data from
|
|
344
|
+
* @param index where to start reading in the data stream
|
|
345
|
+
* @returns a tuple of the value followed by bytes read.
|
|
346
|
+
* @throws {Error}
|
|
347
|
+
* When the data stream ends early or the CBOR data is not well formed
|
|
348
|
+
*/
|
|
349
|
+
export function decodePartialCBOR(data, index) {
|
|
350
|
+
if (data.byteLength === 0 || data.byteLength <= index || index < 0) {
|
|
351
|
+
throw new Error("No data");
|
|
352
|
+
}
|
|
353
|
+
if (data instanceof Uint8Array) {
|
|
354
|
+
return decodeNext(new DataView(data.buffer), index);
|
|
355
|
+
}
|
|
356
|
+
else if (data instanceof ArrayBuffer) {
|
|
357
|
+
return decodeNext(new DataView(data), index);
|
|
358
|
+
}
|
|
359
|
+
// otherwise, it is a data view
|
|
360
|
+
return decodeNext(data, index);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Decode CBOR data from a binary stream
|
|
364
|
+
*
|
|
365
|
+
* The entire data stream from [0, length) will be consumed.
|
|
366
|
+
* If you require a partial decoding, see {decodePartialCBOR}.
|
|
367
|
+
*
|
|
368
|
+
* Examples:
|
|
369
|
+
*
|
|
370
|
+
* ```ts
|
|
371
|
+
* import {decodeCBOR, CBORTag, CBORType} from './cbor.ts'
|
|
372
|
+
* decodeCBOR(new Uint8Array([162, 99, 107, 101, 121, 101, 118, 97, 108, 117, 101, 1, 109, 97, 110, 111, 116, 104, 101, 114, 32, 118, 97, 108, 117, 101]));
|
|
373
|
+
* // returns new Map<string | number, CBORType>([
|
|
374
|
+
* // ["key", "value"],
|
|
375
|
+
* // [1, "another value"]
|
|
376
|
+
* // ]);
|
|
377
|
+
*
|
|
378
|
+
* const taggedItem = new Uint8Array([217, 4, 210, 101, 104, 101, 108, 108, 111]);
|
|
379
|
+
* decodeCBOR(new DataView(taggedItem.buffer))
|
|
380
|
+
* // returns new CBORTag(1234, "hello")
|
|
381
|
+
* ```
|
|
382
|
+
*
|
|
383
|
+
* @param data a data stream, multiple types are supported
|
|
384
|
+
* @returns
|
|
385
|
+
*/
|
|
386
|
+
export function decodeCBOR(data) {
|
|
387
|
+
const [value, length] = decodePartialCBOR(data, 0);
|
|
388
|
+
if (length !== data.byteLength) {
|
|
389
|
+
throw new Error(`Data was decoded, but the whole stream was not processed ${length} != ${data.byteLength}`);
|
|
390
|
+
}
|
|
391
|
+
return value;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Encode a supported structure to a CBOR byte string.
|
|
395
|
+
*
|
|
396
|
+
* Example:
|
|
397
|
+
*
|
|
398
|
+
* ```ts
|
|
399
|
+
* import {encodeCBOR, CBORType, CBORTag} from './cbor.ts'
|
|
400
|
+
* encodeCBOR(new Map<string | number, CBORType>([
|
|
401
|
+
* ["key", "value"],
|
|
402
|
+
* [1, "another value"]
|
|
403
|
+
* ]));
|
|
404
|
+
* // returns new Uint8Array([162, 99, 107, 101, 121, 101, 118, 97, 108, 117, 101, 1, 109, 97, 110, 111, 116, 104, 101, 114, 32 118, 97, 108, 117, 101])
|
|
405
|
+
*
|
|
406
|
+
* encodeCBOR(new CBORTag(1234, "hello"))
|
|
407
|
+
* // returns new UInt8Array([217, 4, 210, 101, 104, 101, 108, 108, 111])
|
|
408
|
+
* ```
|
|
409
|
+
*
|
|
410
|
+
* @param data Data to encode
|
|
411
|
+
* @returns A byte string as a Uint8Array
|
|
412
|
+
* @throws Error
|
|
413
|
+
* if unsupported data is found during encoding
|
|
414
|
+
*/
|
|
415
|
+
export function encodeCBOR(data) {
|
|
416
|
+
const results = [];
|
|
417
|
+
encodePartialCBOR(data, results);
|
|
418
|
+
let length = 0;
|
|
419
|
+
for (const result of results) {
|
|
420
|
+
if (typeof result == "number") {
|
|
421
|
+
length += 1;
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
length += result.length;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
const output = new Uint8Array(length);
|
|
428
|
+
let index = 0;
|
|
429
|
+
for (const result of results) {
|
|
430
|
+
if (typeof result == "number") {
|
|
431
|
+
output[index] = result;
|
|
432
|
+
index += 1;
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
output.set(result, index);
|
|
436
|
+
index += result.length;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return output;
|
|
440
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export function decodeLength(data, argument, index) {
|
|
2
|
+
if (argument < 24) {
|
|
3
|
+
return [argument, 1];
|
|
4
|
+
}
|
|
5
|
+
const remainingDataLength = data.byteLength - index - 1;
|
|
6
|
+
const view = new DataView(data.buffer, index + 1);
|
|
7
|
+
let output;
|
|
8
|
+
let bytes = 0;
|
|
9
|
+
switch (argument) {
|
|
10
|
+
case 24: {
|
|
11
|
+
if (remainingDataLength > 0) {
|
|
12
|
+
output = view.getUint8(0);
|
|
13
|
+
bytes = 2;
|
|
14
|
+
}
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
case 25: {
|
|
18
|
+
if (remainingDataLength > 1) {
|
|
19
|
+
output = view.getUint16(0, false);
|
|
20
|
+
bytes = 3;
|
|
21
|
+
}
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
case 26: {
|
|
25
|
+
if (remainingDataLength > 3) {
|
|
26
|
+
output = view.getUint32(0, false);
|
|
27
|
+
bytes = 5;
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
case 27: {
|
|
32
|
+
if (remainingDataLength > 7) {
|
|
33
|
+
const bigOutput = view.getBigUint64(0, false);
|
|
34
|
+
// Bound it to [24, MAX_SAFE_INTEGER], where it is safe
|
|
35
|
+
// to encode as a javascript number
|
|
36
|
+
if (bigOutput >= 24n && bigOutput <= Number.MAX_SAFE_INTEGER) {
|
|
37
|
+
return [Number(bigOutput), 9];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (output && output >= 24) {
|
|
44
|
+
return [output, bytes];
|
|
45
|
+
}
|
|
46
|
+
throw new Error("Length not supported or not well formed");
|
|
47
|
+
}
|
|
48
|
+
export const MAJOR_TYPE_UNSIGNED_INTEGER = 0;
|
|
49
|
+
export const MAJOR_TYPE_NEGATIVE_INTEGER = 1;
|
|
50
|
+
export const MAJOR_TYPE_BYTE_STRING = 2;
|
|
51
|
+
export const MAJOR_TYPE_TEXT_STRING = 3;
|
|
52
|
+
export const MAJOR_TYPE_ARRAY = 4;
|
|
53
|
+
export const MAJOR_TYPE_MAP = 5;
|
|
54
|
+
export const MAJOR_TYPE_TAG = 6;
|
|
55
|
+
export const MAJOR_TYPE_SIMPLE_OR_FLOAT = 7;
|
|
56
|
+
export function encodeLength(major, argument) {
|
|
57
|
+
const majorEncoded = major << 5;
|
|
58
|
+
if (argument < 0) {
|
|
59
|
+
throw new Error("CBOR Data Item argument must not be negative");
|
|
60
|
+
}
|
|
61
|
+
// Convert to bigint first.
|
|
62
|
+
// Encode integers around and above 32 bits in big endian / network byte order
|
|
63
|
+
// is unreliable in javascript.
|
|
64
|
+
// https://tc39.es/ecma262/#sec-bitwise-shift-operators
|
|
65
|
+
// Bit shifting operations result in 32 bit signed numbers
|
|
66
|
+
let bigintArgument;
|
|
67
|
+
if (typeof argument == "number") {
|
|
68
|
+
if (!Number.isInteger(argument)) {
|
|
69
|
+
throw new Error("CBOR Data Item argument must be an integer");
|
|
70
|
+
}
|
|
71
|
+
bigintArgument = BigInt(argument);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
bigintArgument = argument;
|
|
75
|
+
}
|
|
76
|
+
// Negative 0 is not a thing
|
|
77
|
+
if (major == MAJOR_TYPE_NEGATIVE_INTEGER) {
|
|
78
|
+
if (bigintArgument == 0n) {
|
|
79
|
+
throw new Error("CBOR Data Item argument cannot be zero when negative");
|
|
80
|
+
}
|
|
81
|
+
bigintArgument = bigintArgument - 1n;
|
|
82
|
+
}
|
|
83
|
+
if (bigintArgument > 18446744073709551615n) {
|
|
84
|
+
throw new Error("CBOR number out of range");
|
|
85
|
+
}
|
|
86
|
+
// Encode into 64 bits and extract the tail
|
|
87
|
+
const buffer = new Uint8Array(8);
|
|
88
|
+
const view = new DataView(buffer.buffer);
|
|
89
|
+
view.setBigUint64(0, bigintArgument, false);
|
|
90
|
+
if (bigintArgument <= 23) {
|
|
91
|
+
return [majorEncoded | buffer[7]];
|
|
92
|
+
}
|
|
93
|
+
else if (bigintArgument <= 255) {
|
|
94
|
+
return [majorEncoded | 24, buffer[7]];
|
|
95
|
+
}
|
|
96
|
+
else if (bigintArgument <= 65535) {
|
|
97
|
+
return [majorEncoded | 25, ...buffer.slice(6)];
|
|
98
|
+
}
|
|
99
|
+
else if (bigintArgument <= 4294967295) {
|
|
100
|
+
return [
|
|
101
|
+
majorEncoded | 26,
|
|
102
|
+
...buffer.slice(4),
|
|
103
|
+
];
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
return [
|
|
107
|
+
majorEncoded | 27,
|
|
108
|
+
...buffer,
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CBORTag, decodeCBOR, decodePartialCBOR, encodeCBOR, } from "./cbor/cbor.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@levischuck/tiny-cbor",
|
|
3
|
+
"version": "0.2.11",
|
|
4
|
+
"description": "Tiny CBOR library",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/levischuck/tiny-cbor.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/levischuck/tiny-cbor/issues"
|
|
12
|
+
},
|
|
13
|
+
"main": "./script/index.js",
|
|
14
|
+
"module": "./esm/index.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./esm/index.js",
|
|
18
|
+
"require": "./script/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^20.9.0"
|
|
23
|
+
},
|
|
24
|
+
"_generatedBy": "dnt@0.40.0"
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
|
|
3
|
+
export class AttestationPackageInfo {
|
|
4
|
+
packageName;
|
|
5
|
+
version;
|
|
6
|
+
constructor(params = {}) {
|
|
7
|
+
Object.assign(this, params);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
__decorate([
|
|
11
|
+
AsnProp({ type: AsnPropTypes.OctetString })
|
|
12
|
+
], AttestationPackageInfo.prototype, "packageName", void 0);
|
|
13
|
+
__decorate([
|
|
14
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
15
|
+
], AttestationPackageInfo.prototype, "version", void 0);
|
|
16
|
+
export class AttestationApplicationId {
|
|
17
|
+
packageInfos;
|
|
18
|
+
signatureDigests;
|
|
19
|
+
constructor(params = {}) {
|
|
20
|
+
Object.assign(this, params);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
AsnProp({
|
|
25
|
+
type: AttestationPackageInfo,
|
|
26
|
+
repeated: "set",
|
|
27
|
+
})
|
|
28
|
+
], AttestationApplicationId.prototype, "packageInfos", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
AsnProp({
|
|
31
|
+
type: AsnPropTypes.OctetString,
|
|
32
|
+
repeated: "set",
|
|
33
|
+
})
|
|
34
|
+
], AttestationApplicationId.prototype, "signatureDigests", void 0);
|