UpdaterOptions
Configuration options for the updater.
Configuration options for the updater.
Properties
Prop
Type
Methods
Prop
Type
Examples
const updater = new Updater(source, remote, {
channel: 'stable',
integrityPolicy: 'strict',
signatureVerifier: {
algorithm: 'ed25519',
key: {
format: 'spkiPem',
data: publicKeyPem,
},
},
});// Custom verification functions
const updater = new Updater(source, remote, {
integrityChecker: async (data, integrity) => {
// Custom integrity verification
return true;
},
signatureVerifier: async (data, signature) => {
// Custom signature verification
return true;
},
});