UNPKG

386 BJavaScriptView Raw
1const { createHash } = require('crypto');
2const { name } = require('../package.json');
3// TODO: increment this version if there are schema changes
4// that are not backwards compatible:
5const VERSION = '4';
6
7const SHA = 'sha1';
8module.exports = {
9 SHA,
10 MAGIC_KEY: '_coverageSchema',
11 MAGIC_VALUE: createHash(SHA)
12 .update(name + '@' + VERSION)
13 .digest('hex')
14};