UNPKG
@hclsoftware/secagent
Version:
latest (1.13.0)
1.13.0
1.11.1
1.10.2
1.10.1
1.9.2
1.9.1
1.8.2
1.8.1
1.7.0
1.5.0
1.4.0
1.3.0
1.2.1
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
IAST agent
@hclsoftware/secagent
/
node_modules
/
uuid
/
dist
/
esm-node
/
version.js
11 lines
(8 loc)
•
200 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
validate
from
'./validate.js'
;
function
version
(
uuid
) {
if
(!
validate
(uuid)) {
throw
TypeError
(
'Invalid UUID'
); }
return
parseInt
(uuid.
slice
(
14
,
15
),
16
); }
export
default
version;