Skip to content

Commit

Permalink
missing new operator added
Browse files Browse the repository at this point in the history
  • Loading branch information
bytenik committed Feb 23, 2021
1 parent fcbab01 commit b9a313f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -62,7 +62,7 @@ function generateUUID(uuid, v = 1) {
);
} else {
const uuid = uuidv(null, Buffer.alloc(16));
return apply(Binary(uuid, Binary.SUBTYPE_UUID));
return apply(new Binary(uuid, Binary.SUBTYPE_UUID));
}
}

Expand Down

0 comments on commit b9a313f

Please sign in to comment.