source: trip-planner-front/node_modules/istanbul-lib-instrument/dist/constants.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 642 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.MAGIC_VALUE = exports.MAGIC_KEY = exports.SHA = void 0;
7
8var _crypto = require("crypto");
9
10var _semver = require("semver");
11
12var _package = require("../package.json");
13
14// function to use for creating hashes
15const SHA = 'sha1'; // name of coverage data magic key
16
17exports.SHA = SHA;
18const MAGIC_KEY = '_coverageSchema'; // name of coverage data magic value
19
20exports.MAGIC_KEY = MAGIC_KEY;
21const MAGIC_VALUE = (0, _crypto.createHash)(SHA).update(_package.name + '@' + (0, _semver.major)(_package.version)).digest('hex');
22exports.MAGIC_VALUE = MAGIC_VALUE;
Note: See TracBrowser for help on using the repository browser.