chore: update dependencies (#38)
This commit is contained in:
1 parent
1dfbed57f6
commit
8e9de219f8
362 files changed
+28892
-3980
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
import validate from './validate.js';
|
||||
|
||||
function version(uuid) {
|
||||
if (!validate(uuid)) {
|
||||
throw TypeError('Invalid UUID');
|
||||
}
|
||||
|
||||
return parseInt(uuid.substr(14, 1), 16);
|
||||
}
|
||||
|
||||
export default version;
|
||||
Reference in new issue
Block a user