Skip to content

Commit 12c8509

Browse files
author
Max Presman
committed
lib, src
1 parent d3acb2d commit 12c8509

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

lib/core/components/uuid.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/uuid.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/components/uuid.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
import uuidGenerator from 'lil-uuid';
3+
4+
export default {
5+
createUUID() {
6+
if (uuidGenerator.uuid) {
7+
return uuidGenerator.uuid();
8+
} else {
9+
return uuidGenerator();
10+
}
11+
}
12+
};

0 commit comments

Comments
 (0)