IntegrityPolicy

Policy for enforcing integrity verification during bundle operations.

Policy for enforcing integrity verification during bundle operations.

Controls when integrity hashes are required and how missing hashes are handled.

View source ↗

Type

type IntegrityPolicy = 'strict' | 'optional' | 'none';

Examples

import { Updater } from '@wvb/node';

// Require integrity for all bundles
const updater = new Updater(source, remote, {
  integrityPolicy: 'strict',
});

// Optional integrity (warn if missing)
const updater2 = new Updater(source, remote, {
  integrityPolicy: 'optional',
});

On this page