@tnid/core 0.0.4 → 0.0.6
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.
- package/README.md +2 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/index.d.ts +1 -1
- package/script/index.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -94,6 +94,7 @@ import {
|
|
|
94
94
|
TnidValue, // Branded string type
|
|
95
95
|
TnidVariant, // "v0" | "v1" | "v2" | "v3"
|
|
96
96
|
UuidLike, // UUID string operations (type + namespace)
|
|
97
|
+
ValidateName, // Compile-time name validation (for library authors)
|
|
97
98
|
} from "@tnid/core";
|
|
98
99
|
```
|
|
99
100
|
|
|
@@ -284,7 +285,7 @@ await db.query("INSERT INTO users (id) VALUES ($1)", [uuid]);
|
|
|
284
285
|
|
|
285
286
|
## Related Packages
|
|
286
287
|
|
|
287
|
-
- **@tnid/encryption** -
|
|
288
|
+
- **@tnid/encryption** - Encrypt V0 TNIDs to V1 to hide timestamp information
|
|
288
289
|
|
|
289
290
|
## License
|
|
290
291
|
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, } from "./types.js";
|
|
1
|
+
export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, ValidateName, } from "./types.js";
|
|
2
2
|
export { DynamicTnid } from "./dynamic.js";
|
|
3
3
|
export { UuidLike } from "./uuidlike.js";
|
|
4
4
|
export { Tnid } from "./factory.js";
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
package/script/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, } from "./types.js";
|
|
1
|
+
export type { TnidValue, TnidVariant, Case, NamedTnid, TnidType, ValidateName, } from "./types.js";
|
|
2
2
|
export { DynamicTnid } from "./dynamic.js";
|
|
3
3
|
export { UuidLike } from "./uuidlike.js";
|
|
4
4
|
export { Tnid } from "./factory.js";
|
package/script/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
|