Last change
on this file since fa375fe 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 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.MAGIC_VALUE = exports.MAGIC_KEY = exports.SHA = void 0;
|
---|
7 |
|
---|
8 | var _crypto = require("crypto");
|
---|
9 |
|
---|
10 | var _semver = require("semver");
|
---|
11 |
|
---|
12 | var _package = require("../package.json");
|
---|
13 |
|
---|
14 | // function to use for creating hashes
|
---|
15 | const SHA = 'sha1'; // name of coverage data magic key
|
---|
16 |
|
---|
17 | exports.SHA = SHA;
|
---|
18 | const MAGIC_KEY = '_coverageSchema'; // name of coverage data magic value
|
---|
19 |
|
---|
20 | exports.MAGIC_KEY = MAGIC_KEY;
|
---|
21 | const MAGIC_VALUE = (0, _crypto.createHash)(SHA).update(_package.name + '@' + (0, _semver.major)(_package.version)).digest('hex');
|
---|
22 | exports.MAGIC_VALUE = MAGIC_VALUE; |
---|
Note:
See
TracBrowser
for help on using the repository browser.