fable-uuid
Advanced tools
Comparing version 3.0.6 to 3.0.7
{ | ||
"name": "fable-uuid", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "A simple UUID Generator.", | ||
@@ -5,0 +5,0 @@ "main": "source/Fable-UUID.js", |
@@ -8,3 +8,3 @@ /** | ||
if ((typeof(window) === 'object') && !window.hasOwnProperty('FableUUID')) | ||
if ((typeof(window) === 'object') && !('FableUUID' in window)) | ||
{ | ||
@@ -11,0 +11,0 @@ window.FableUUID = libNPMModuleWrapper; |
@@ -19,8 +19,8 @@ /** | ||
// Note this allows UUIDs of various lengths (including very short ones) although guaranteed uniqueness goes downhill fast. | ||
this._UUIDModeRandom = (typeof(pSettings) === 'object') && (pSettings.hasOwnProperty('UUIDModeRandom')) ? (pSettings.UUIDModeRandom == true) : false; | ||
this._UUIDModeRandom = (typeof(pSettings) === 'object') && ('UUIDModeRandom' in pSettings) ? (pSettings.UUIDModeRandom == true) : false; | ||
// These two properties are only useful if we are in Random mode. Otherwise it generates a v4 spec | ||
// Length for "Random UUID Mode" is set -- if not set it to 8 | ||
this._UUIDLength = (typeof(pSettings) === 'object') && (pSettings.hasOwnProperty('UUIDLength')) ? (pSettings.UUIDLength + 0) : 8; | ||
this._UUIDLength = (typeof(pSettings) === 'object') && ('UUIDLength' in pSettings) ? (pSettings.UUIDLength + 0) : 8; | ||
// Dictionary for "Random UUID Mode" | ||
this._UUIDRandomDictionary = (typeof(pSettings) === 'object') && (pSettings.hasOwnProperty('UUIDDictionary')) ? (pSettings.UUIDDictionary + 0) : '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | ||
this._UUIDRandomDictionary = (typeof(pSettings) === 'object') && ('UUIDDictionary' in pSettings) ? (pSettings.UUIDDictionary + 0) : '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | ||
@@ -27,0 +27,0 @@ this.randomByteGenerator = new libRandomByteGenerator(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20483