lavamoat
Version:
`lavamoat` is a NodeJS runtime where modules are defined in [SES][SesGithub] Compartments. It aims to reduce the risk of malicious code in the app dependency graph, known as "software supply chain attacks".
21 lines (17 loc) • 539 B
JavaScript
const { getDefaultPaths } = require('lavamoat-core')
const defaultPaths = getDefaultPaths('node')
/** @type {import('lavamoat-core').LavaMoatOpts} */
const defaults = {
scuttleGlobalThis: {},
scuttleGlobalThisExceptions: [],
writeAutoPolicy: false,
writeAutoPolicyDebug: false,
writeAutoPolicyAndRun: false,
policyPath: defaultPaths.primary,
policyDebugPath: defaultPaths.debug,
policyOverridePath: defaultPaths.override,
projectRoot: process.cwd(),
debugMode: false,
statsMode: false,
}
module.exports = defaults