LiosK / uuidv7

A JavaScript implementation of UUID version 7
Apache License 2.0
177 stars 3 forks source link

how to access the UUID class? #9

Closed barbalex closed 9 months ago

barbalex commented 9 months ago

I thought it might be possible to use https://liosk.github.io/uuidv7/classes/UUID.html#getVersion to know if a value is a uuid v7.

Is that so ad if true, how do I access UUID?

It does not seem te be exported as using:

import { UUID } from '@kripod/uuidv7'

give me this error:

getLastIdFromUrl.ts:2 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@kripod_uuidv7.js?v=674f4bc2' does not provide an export named 'UUID'

I am a bit surprised to get this error seeing https://github.com/LiosK/uuidv7/blob/v0.6.3/src/index.ts#L12C1-L12C8 though.

LiosK commented 9 months ago

You are loading a different library. This repo is for uuidv7, not for @kripod/uuidv7.

barbalex commented 9 months ago

yep, my bad sorry for bugging you

LiosK commented 9 months ago

No problem.