Roughing out the demo app

This commit is contained in:
Nate Taylor
2019-10-23 07:41:03 -05:00
parent 5bc58a2d40
commit 94be06d3c4
2841 changed files with 274065 additions and 2 deletions

27
node_modules/nanoid/async/random.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
var crypto = require('crypto')
if (crypto.randomFill) {
module.exports = function (bytes) {
return new Promise(function (resolve, reject) {
crypto.randomFill(Buffer.allocUnsafe(bytes), function (err, buf) {
if (err) {
reject(err)
} else {
resolve(buf)
}
})
})
}
} else {
module.exports = function (bytes) {
return new Promise(function (resolve, reject) {
crypto.randomBytes(bytes, function (err, buf) {
if (err) {
reject(err)
} else {
resolve(buf)
}
})
})
}
}