Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix!: Use SHA-256 for the config file name #57

Merged
merged 3 commits into from
Nov 8, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ var exclusions = ['--help', '--completion_bash'];
// This number must be incremented whenever the generated cache file changes.
var CACHE_VERSION = 2;

var configfile =
'.v8flags-' +
CACHE_VERSION +
'-' +
process.versions.v8 +
'.' +
crypto.createHash('md5').update(user).digest('hex') +
'.json';
var configfile = '.v8flags-' + CACHE_VERSION + '-' + process.versions.v8 +
'.' + crypto.createHash('sha256').update(user).digest('hex') + '.json';

var failureMessage = [
'Unable to cache a config file for v8flags to your home directory',
Expand Down