This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
608 B
19 lines
608 B
'use strict'; |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
value: true |
|
}); |
|
exports.MAGIC_VALUE = exports.MAGIC_KEY = exports.SHA = undefined; |
|
|
|
var _semver = require('semver'); |
|
|
|
var _package = require('../package.json'); |
|
|
|
var _crypto = require('crypto'); |
|
|
|
// function to use for creating hashes |
|
var SHA = exports.SHA = 'sha1'; |
|
// name of coverage data magic key |
|
var MAGIC_KEY = exports.MAGIC_KEY = '_coverageSchema'; |
|
// name of coverage data magic value |
|
var MAGIC_VALUE = exports.MAGIC_VALUE = (0, _crypto.createHash)(SHA).update(_package.name + '@' + (0, _semver.major)(_package.version)).digest('hex'); |