Commit b43030a8 authored by Vanja Retkovac's avatar Vanja Retkovac
Browse files

Change function definition

Fix test specification
parent ebef3cf1
export const uuidv4 = () =>
module.exports = function () {
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
// eslint-disable-next-line no-mixed-operators
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
)
\ No newline at end of file
)
}
{
"name": "@smartfactory/uuid",
"version": "1.0.1",
"version": "1.0.2",
"description": "This package provides helper functions for creating UUIDs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"No test specified\""
},
"repository": {
"type": "git",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment