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

24
node_modules/nanoid/non-secure/generate.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
/**
* Generate URL-friendly unique ID. This method use non-secure predictable
* random generator with bigger collision probability.
*
* @param {string} alphabet Symbols to be used in ID.
* @param {number} [size=21] The number of symbols in ID.
*
* @return {string} Random string.
*
* @example
* const nanoid = require('nanoid/non-secure')
* model.id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqL"
*
* @name nonSecure
* @function
*/
module.exports = function (alphabet, size) {
size = size || 21
var id = ''
while (size--) {
id += alphabet[Math.random() * alphabet.length | 0]
}
return id
}

25
node_modules/nanoid/non-secure/index.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
var url = 'bjectSymhasOwnProp-0123456789ABCDEFGHIJKLMNQRTUVWXYZ_dfgiklquvxz'
/**
* Generate URL-friendly unique ID. This method use non-secure predictable
* random generator with bigger collision probability.
*
* @param {number} [size=21] The number of symbols in ID.
*
* @return {string} Random string.
*
* @example
* const nanoid = require('nanoid/non-secure')
* model.id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqL"
*
* @name nonSecure
* @function
*/
module.exports = function (size) {
size = size || 21
var id = ''
while (size--) {
id += url[Math.random() * 64 | 0]
}
return id
}