@bbodek/utils 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ export declare const UUID_BYTE_LENGTH = 16;
2
+ export declare const UUID_VERSION_BYTE_INDEX = 6;
3
+ export declare const UUID_VARIANT_BYTE_INDEX = 8;
4
+ export declare const UUID_VERSION_MASK = 15;
5
+ export declare const UUID_VERSION_4 = 64;
6
+ export declare const UUID_VARIANT_MASK = 63;
7
+ export declare const UUID_VARIANT_RFC4122 = 128;
8
+ export declare const HEX_RADIX = 16;
9
+ export declare const HEX_DIGITS_PER_BYTE = 2;
10
+ export declare const UUID_SECTION_OFFSETS: readonly [readonly [0, 8], readonly [8, 12], readonly [12, 16], readonly [16, 20], readonly [20, 32]];
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/getUUID/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,eAAO,MAAM,iBAAiB,KAAO,CAAC;AAEtC,eAAO,MAAM,cAAc,KAAO,CAAC;AAEnC,eAAO,MAAM,iBAAiB,KAAO,CAAC;AAEtC,eAAO,MAAM,oBAAoB,MAAO,CAAC;AAEzC,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,eAAO,MAAM,oBAAoB,uGAMvB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const getUUID: () => `${string}-${string}-${string}-${string}-${string}`;
1
+ import { UUID } from './types';
2
+ export declare const getUUID: () => UUID;
2
3
  //# sourceMappingURL=getUUID.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUUID.d.ts","sourceRoot":"","sources":["../../src/getUUID/getUUID.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,2DAAiC,CAAC"}
1
+ {"version":3,"file":"getUUID.d.ts","sourceRoot":"","sources":["../../src/getUUID/getUUID.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,eAAO,MAAM,OAAO,QAAO,IAmB1B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './getUUID';
2
+ export * from './types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getUUID/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getUUID/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type UUID = ReturnType<Crypto['randomUUID']>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/getUUID/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC"}