@trippler/tr_lib 2.2.3 → 2.2.5
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.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as onNuiCallback } from './nuiCallback/onNuiCallback';
|
|
2
|
+
export { default as triggerNuiCallback } from './nuiCallback/triggerNuiCallback';
|
|
2
3
|
export { default as onPromise } from './promise/onPromise';
|
|
3
4
|
export { default as requestModel } from './request';
|
|
4
5
|
export * from './promise/triggerPromise';
|
package/client/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as onNuiCallback } from './nuiCallback/onNuiCallback';
|
|
2
|
+
export { default as triggerNuiCallback } from './nuiCallback/triggerNuiCallback';
|
|
2
3
|
export { default as onPromise } from './promise/onPromise';
|
|
3
4
|
export { default as requestModel } from './request';
|
|
4
5
|
export * from './promise/triggerPromise';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trippler/tr_lib",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
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",
|
|
@@ -16,9 +16,9 @@ export default (endpoint, Function) => {
|
|
|
16
16
|
if (typeof Function !== 'function')
|
|
17
17
|
return false;
|
|
18
18
|
promises.push(endpoint);
|
|
19
|
-
emitNet('__tr_promise_on_self_server_ts_backward_compatibility', source, endpoint);
|
|
20
19
|
onNet(`__tr_promise_on:${endpoint}`, (promiseId, ...parameters) => {
|
|
21
20
|
const clientSource = source;
|
|
21
|
+
emitNet('__tr_promise_on_self_server_ts_backward_compatibility', clientSource, endpoint);
|
|
22
22
|
try {
|
|
23
23
|
const result = Function(clientSource, ...parameters);
|
|
24
24
|
emitNet(`__tr_promise_on:${endpoint}`, source, promiseId, result);
|