Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
onUpdateDependents(from, to) {
dependentUpdates.push(onUpdateDependents.bind(null, from, to));
}
});
},
migrate: true,
raw: true
});
if (!options.safe) {
await runAutoMigrations(migrateHelper);
}
let prettyOriginalSource;
const migratedSource = markoPrettyprint.prettyPrintAST(
ast,
prettyPrintOptions
);
try {
prettyOriginalSource = markoPrettyprint.prettyPrintSource(
source,
prettyPrintOptions
);
} catch (e) {
// prettyprinting is only used to check if the template changed
// if the original source fails to print for some reason, but the
// migration was successful, that's fine.
}
if (