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/sha1.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
var crypto = require('crypto');
function sha1(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('sha1').update(bytes).digest();
}
module.exports = sha1;