1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-14 06:54:10 +02:00

Revert "Update releases/v1 with changes from master (#67)" (#68)

This reverts commit bdd6409dc1.
This commit is contained in:
Konrad Pabjan 2020-03-09 10:51:55 +01:00 committed by GitHub
parent bdd6409dc1
commit 948e5343c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
187 changed files with 15033 additions and 6120 deletions

25
node_modules/uuid/lib/md5.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
var crypto = require('crypto');
function md5(bytes) {
if (typeof Buffer.from === 'function') {
// Modern Buffer API
if (Array.isArray(bytes)) {
bytes = Buffer.from(bytes);
} else if (typeof bytes === 'string') {
bytes = Buffer.from(bytes, 'utf8');
}
} else {
// Pre-v4 Buffer API
if (Array.isArray(bytes)) {
bytes = new Buffer(bytes);
} else if (typeof bytes === 'string') {
bytes = new Buffer(bytes, 'utf8');
}
}
return crypto.createHash('md5').update(bytes).digest();
}
module.exports = md5;