@wvb/node
Webview bundle API for Node.js
Use @wvb/node in your project and browse its exported API.
Installation
Node.js version requirement: >= 18.
Add the package to your project's dependencies:
npm install @wvb/nodeClasses
Bundle
A complete bundle including metadata and file data.
BundleBuilder
Builder for creating bundle files.
BundleDescriptor
Bundle metadata including header and index information.
BundleProtocol
Protocol handler for serving files from bundle sources.
Cancellation
Header
Bundle header containing format metadata.
Index
Bundle index mapping file paths to their metadata.
Integrity
A digest over some bytes, serialized as <algorithm>:<base64> (e.g.
LoadedDescriptor
ProxyProtocol
Protocol handler that proxies requests to other servers.
Remote
HTTP client for getting updates and downloading bundles from a remote server.
Source
Updater
Functions
computeIntegrity
Computes the integrity of data with algorithm.
isWebviewBundleError
Whether value is an error thrown by this binding.
parseIntegrity
Parses a serialized integrity string (e.g.
readBundle
Reads a bundle from a file asynchronously.
readBundleFromBuffer
Reads a bundle from a buffer synchronously.
writeBundle
Writes a bundle to a file asynchronously.
writeBundleIntoBuffer
Writes a bundle to a buffer synchronously.
Interfaces
BundleBuilderOptions
Options for building a bundle.
BundleProtocolOptions
Options for the bundle protocol.
BundleSourceVersion
BundleUpdate
One bundle advertised by an update document.
ChecksumReadOptions
Checksum verification for the data section.
ChecksumWriteOptions
Checksum generation for a bundle section.
DataReadOptions
How entry data is read out of a bundle's data section.
HeaderReadOptions
How a bundle's header is read.
HeaderWriterOptions
Options for bundle header generation.
HttpOptions
HttpResponse
IndexEntry
Metadata for a single file in the bundle.
IndexReadOptions
How a bundle's index is read.
IndexWriterOptions
Options for bundle index generation.
ManifestBundleItem
ManifestBundleSet
ManifestData
ManifestPruneResult
ManifestRemoveData
ManifestRemoveResult
ManifestSetCurrentVersionResult
ManifestStageData
ManifestStageResult
ManifestVersionData
RemoteConfig
Options used to construct a Remote client.
RemoteGetUpdateOptions
Options for requesting the current update document.
RemoteOnDownloadData
Download progress data.
RemoteUpdateResponse
A validated update response returned by Remote::get_update.
SignatureKey
Configuration for signature verification.
SignatureKeyData
Public key configuration for signature verification.
SignatureVerifyKey
SourceConfig
SourceIntegrityOptions
SourceListItem
SourceOptions
Update
An atomically published set of bundle updates.
UpdaterDownloadOptions
UpdaterDownloadResult
UpdaterGetUpdateOptions
UpdaterInstallResult
UpdaterInstallTarget
UpdaterIntegrityOptions
UpdaterOptions
UpdaterRollbackResult
UpdaterRollbackTarget
UpdaterSignatureOptions
UpdateSignature
Signature metadata for an update response.
WebviewBundleError
Enumerations
Type Aliases
ErrorCode
The stable code every error thrown by this binding carries (WebviewBundleError.code).
HostnameSegment
Which hostname segment is used as the bundle name.
HttpMethod
IntegrityAlgorithm
Hash algorithm for bundle integrity verification.
IntegrityPolicy
Policy for enforcing integrity verification during bundle operations.
ManifestBundleItemStatus
ManifestRemoveResultKind
ManifestSetCurrentVersionResultKind
ManifestStageResultKind
SignatureAlgorithm
Digital signature algorithm for bundle verification.
SignatureKeyFormat
Format of the public key used for signature verification.
SourceIntegrityCheckMode
SourceKind
UpdaterDownloadResultKind
UpdaterInstallResultKind
UpdaterRollbackResultKind
UriBundleResolver
Options for resolving the bundle name from the request uri.
UriPathResolver
How the file path in the bundle is resolved from the request uri.