@cocreate/uuid
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -0,1 +1,8 @@ | ||
## [1.3.7](https://github.com/CoCreate-app/CoCreate-uuid/compare/v1.3.6...v1.3.7) (2023-04-13) | ||
### Bug Fixes | ||
* replaced substr with substring ([f9cbd0d](https://github.com/CoCreate-app/CoCreate-uuid/commit/f9cbd0de7a139d73dcf0a3cf4fbbbe5a0b594684)) | ||
## [1.3.6](https://github.com/CoCreate-app/CoCreate-uuid/compare/v1.3.5...v1.3.6) (2023-04-11) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/uuid", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "A simple uuid component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,3 +48,3 @@ // export function randomId() { | ||
if (length <= pattern.length) { | ||
pattern = pattern.substr(0, length); | ||
pattern = pattern.substring(0, length); | ||
} else { | ||
@@ -61,3 +61,3 @@ let add_len = length - pattern.length; | ||
group_n = add_len - group_n * sub_pattern.length; | ||
pattern += sub_pattern.substr(0, group_n); | ||
pattern += sub_pattern.substring(0, group_n); | ||
} | ||
@@ -64,0 +64,0 @@ |
74004