@gudhub/core 1.1.82 → 1.1.84

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.
@@ -922,8 +922,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
922
922
  data_type: 'conversations',
923
923
  name: 'Conversations',
924
924
  icon: 'timeline',
925
- js: 'https://gudhub.com/modules/conversation/dist/main.js',
926
- css: 'https://gudhub.com/modules/conversation/dist/style.css',
925
+ js: 'https://gudhub.com/modules/conversation/dist/main.js?t=1',
926
+ css: 'https://gudhub.com/modules/conversation/dist/style.css?t=1',
927
927
  type: 'gh_element',
928
928
  technology: 'class'
929
929
  },
@@ -940,8 +940,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
940
940
  data_type: 'study_schedule',
941
941
  name: 'Study Schedule',
942
942
  icon: 'timeline',
943
- js: 'https://gudhub.com/modules/Study-Schedule/dist/main.js',
944
- css: 'https://gudhub.com/modules/Study-Schedule/dist/style.css',
943
+ js: 'https://gudhub.com/modules/Study-Schedule/dist/main.js?t=1',
944
+ css: 'https://gudhub.com/modules/Study-Schedule/dist/style.css?t=1',
945
945
  type: 'gh_element',
946
946
  technology: 'class'
947
947
  },
@@ -217,4 +217,14 @@ export class Utils {
217
217
  sortItems(items, options) {
218
218
  return sortItems(items, options);
219
219
  }
220
+
221
+ debounce(func, delay) {
222
+ let timeoutId;
223
+ return function (...args) {
224
+ clearTimeout(timeoutId);
225
+ timeoutId = setTimeout(() => {
226
+ func.apply(this, args);
227
+ }, delay);
228
+ };
229
+ }
220
230
  }
package/GUDHUB/config.js CHANGED
@@ -3,6 +3,7 @@ export const server_url = "https://gudhub.com/GudHub_Test";
3
3
  //export const server_url = "https://integration.gudhub.com/GudHub_Test";
4
4
  //export const server_url = "http://localhost:9000";
5
5
  export const wss_url = "wss://gudhub.com/GudHub/ws/app/";
6
+ export const node_server_url = "https://gudhub.com/api/services/prod"
6
7
  export const async_modules_path = 'build/latest/async_modules_node/';
7
8
  export const automation_modules_path = 'build/latest/automation_modules/'
8
9
  export const file_server_url = 'https://gudhub.com'
package/GUDHUB/gudhub.js CHANGED
@@ -2,7 +2,7 @@ import { GudHubHttpsService } from "./gudhub-https-service.js";
2
2
  import { PipeService } from "./PipeService/PipeService.js";
3
3
  import { Storage } from "./Storage/Storage.js";
4
4
  import { WebSocketApi } from "./WebSocket/WebSocket.js";
5
- import { wss_url, server_url, async_modules_path, file_server_url, automation_modules_path } from "./config.js";
5
+ import { wss_url, server_url, async_modules_path, file_server_url, automation_modules_path, node_server_url } from "./config.js";
6
6
  import { Utils } from "./Utils/Utils.js";
7
7
  import { Auth } from "./Auth/Auth.js";
8
8
  import { GHConstructor } from "./GHConstructor/ghconstructor.js";
@@ -25,6 +25,7 @@ export class GudHub {
25
25
  options = {
26
26
  server_url,
27
27
  wss_url,
28
+ node_server_url,
28
29
  initWebsocket: false,
29
30
  activateSW: false,
30
31
  swLink: "",
@@ -33,6 +34,7 @@ export class GudHub {
33
34
  automation_modules_path
34
35
  }
35
36
  ) {
37
+ this.config = options;
36
38
  this.ghconstructor = new GHConstructor(this);
37
39
  this.interpritate = new Interpritate(this);
38
40
  this.pipeService = new PipeService();
@@ -150,6 +152,11 @@ export class GudHub {
150
152
  );
151
153
  }
152
154
 
155
+ //============ DEBOUNCE ========//
156
+ debounce(func, delay) {
157
+ return this.util.debounce(func, delay);
158
+ }
159
+
153
160
  //************************* WEBSOCKETS EMITTER ****************************//
154
161
 
155
162
  emitToUser(user_id, data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/core",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {