UNPKG
spacylabs-rhino
Version:
latest (5.1.11)
5.1.11
5.1.10
5.1.9
5.1.8
5.1.7
5.1.6
5.1.5
5.1.1
github.com/rhinofi/client-js
spacylabs-rhino
/
src
/
lib
/
validators
/
cid.js
8 lines
(6 loc)
•
140 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
DVFError
=
require
(
'../dvf/DVFError'
)
module
.
exports
=
(
dvf, cid
) =>
{
if
(!cid) {
throw
new
DVFError
(
'ERR_INVALID_CID'
) } }