lenix 1.7.13 → 1.7.15

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/client/index.ts CHANGED
@@ -13,3 +13,4 @@ export * from './nearest.ts'
13
13
  export * from './pool.ts'
14
14
  export * from './timer.ts'
15
15
  export * from './client.ts'
16
+ export * from '../shared/api'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.7.13",
3
+ "version": "1.7.15",
4
4
  "description": "Typed FiveM utilities for client, server, shared, and NUI scripts",
5
5
  "author": "Lenix",
6
6
  "license": "MIT",
package/server/index.ts CHANGED
@@ -4,4 +4,5 @@
4
4
  * FiveM server-side helpers.
5
5
  */
6
6
 
7
- export * from './server'
7
+ export * from './server'
8
+ export * from '../shared/api'
package/shared/index.ts CHANGED
@@ -4,6 +4,6 @@
4
4
  * Shared helpers that can be used from both client and server contexts.
5
5
  */
6
6
 
7
- export * from './api.ts'
8
7
  export * from './types.ts'
9
8
  export * from './repeat.ts'
9
+ export * from './pallete.ts'
@@ -0,0 +1,12 @@
1
+ const colorCodes = {
2
+ red: '1',
3
+ green: '2',
4
+ yellow: '3',
5
+ blue: '4',
6
+ cyan: '5',
7
+ pink: '6',
8
+ wine: '8',
9
+ navy: '9',
10
+ } as const
11
+
12
+ export const forma = (color: keyof typeof colorCodes, text: string) => `^${colorCodes[color]}${text}^7` as const