From 077dfb91056123535305dd10735c88983288fa4f Mon Sep 17 00:00:00 2001 From: Yulian Kuncheff Date: Mon, 29 Jul 2024 15:39:39 -0700 Subject: [PATCH] Fix more naming areas --- example/example.dart | 2 +- lib/v5.dart | 2 +- lib/validation.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/example.dart b/example/example.dart index 0dfa2c3..df197f3 100644 --- a/example/example.dart +++ b/example/example.dart @@ -24,7 +24,7 @@ void main() { // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1' // Generate a v5 (namespace-name-sha1-based) id - var v5 = uuid.v5(Namespace.URL.value, 'www.google.com'); + var v5 = uuid.v5(Namespace.url.value, 'www.google.com'); // -> 'c74a196f-f19d-5ea9-bffd-a2742432fc9c' // Generate a v6 (time-based) id diff --git a/lib/v5.dart b/lib/v5.dart index f83ca8e..c61cf57 100644 --- a/lib/v5.dart +++ b/lib/v5.dart @@ -41,7 +41,7 @@ class UuidV5 { // If useRandom is true, generate UUIDv4, else use NIL var blankNS = useRandom ? UuidV4(goptions: goptions).generate(options: options?.v4options) - : Namespace.NIL.value; + : Namespace.nil.value; // Use provided namespace, or use whatever is decided by options. namespace = (namespace != null) ? namespace : blankNS; diff --git a/lib/validation.dart b/lib/validation.dart index e042bdc..c0ff0dd 100644 --- a/lib/validation.dart +++ b/lib/validation.dart @@ -16,7 +16,7 @@ class UuidValidation { fromString = UuidParsing.unparse(fromByteList); } // UUID of all 0s is ok. - if (fromString == Namespace.NIL.value) { + if (fromString == Namespace.nil.value) { return true; }