Sign in
apache
/
nifi-fds
/
gh-pages
/
.
/
node_modules
/
sockjs
/
node_modules
/
uuid
/
dist
/
esm-browser
/
version.js
blob: 77530e9cb0e355adb6747e5912ecac98848eb7a9 [
file
] [
log
] [
blame
]
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
;