@trippler/tr_lib 2.10.2 → 2.10.3

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 CHANGED
@@ -23,11 +23,12 @@ https://docs.trippler.store/tr_lib
23
23
  [![GitHub](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/TripplerScripts/tr_lib)
24
24
 
25
25
  ## 🗺️ Roadmap
26
- - [ ] add modules that serverify and clientify (asServer asClient)
27
- - [ ] add client and server metadata communication module instead of heating events
28
- - [ ] add controlled commands
26
+ - [ ] add modules that serverify and clientify (asServer asClient)
27
+ - [ ] add client and server metadata communication module instead of heating events
28
+ - [ ] add controlled commands
29
29
  - [ ] fix keybinds indexes
30
30
  - [ ] ADD A DIRECT SAFE CONNECTION BETWEEN NUI AND THE SERVER
31
+ - [ ] a solution for the coords from the lua vectors
31
32
 
32
33
  ## 🧾License
33
34
  ![](https://img.shields.io/npm/l/%40trippler%2Ftr_lib)
@@ -1,12 +1,12 @@
1
1
  export default async (endpoint, parameters) => {
2
- const response = await fetch(`https://${GetParentResourceName()}/${endpoint}`, {
3
- method: 'POST',
4
- headers: {
5
- 'Content-Type': 'application/json; charset=UTF-8',
6
- },
7
- body: JSON.stringify(parameters || {}),
8
- });
9
2
  try {
3
+ const response = await fetch(`https://${GetParentResourceName()}/${endpoint}`, {
4
+ method: 'POST',
5
+ headers: {
6
+ 'Content-Type': 'application/json; charset=UTF-8',
7
+ },
8
+ body: JSON.stringify(parameters || {}),
9
+ });
10
10
  return await response.json();
11
11
  }
12
12
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trippler/tr_lib",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "A lightweight utility & helper library for FiveM developers. Designed to improve code reusability, consistency, and performance across and outcross Trippler resources.",
5
5
  "author": "Trippler",
6
6
  "license": "GPL-3.0",