crisp-api 10.0.9 → 10.0.10

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/CHANGELOG.md CHANGED
@@ -1,17 +1,29 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v10.0.10
5
+
6
+ ### Changes
7
+
8
+ * Allow any as return type to the Websocket .on() callback.
9
+
10
+ ## v10.0.9
11
+
12
+ ### Changes
13
+
14
+ * Export missing types.
15
+
4
16
  ## v10.0.8
5
17
 
6
18
  ### Changes
7
19
 
8
- * `nickname` is now optional on ConversationMeta
20
+ * `nickname` is now optional on ConversationMeta.
9
21
 
10
22
  ## v10.0.7
11
23
 
12
24
  ### Changes
13
25
 
14
- * Support types for `address`, `subject` and `origin` on ConversationMeta
26
+ * Support types for `address`, `subject` and `origin` on ConversationMeta.
15
27
 
16
28
  ## v10.0.6
17
29
 
package/dist/crisp.d.ts CHANGED
@@ -108,7 +108,7 @@ export declare class Crisp {
108
108
  /**
109
109
  * Binds RTM event
110
110
  */
111
- on(event: string, callback: (data: any) => void): Promise<unknown>;
111
+ on(event: string, callback: (data: any) => any): Promise<unknown>;
112
112
  /**
113
113
  * Receives a raw event and dispatches it to the listener (used for Web Hooks)
114
114
  */
package/dist/crisp.js CHANGED
@@ -45,7 +45,7 @@ const AVAILABLE_RTM_MODES = [
45
45
  "websockets",
46
46
  "webhooks"
47
47
  ];
48
- const VERSION = "10.0.9";
48
+ const VERSION = "10.0.10";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
package/lib/crisp.ts CHANGED
@@ -406,7 +406,7 @@ export class Crisp {
406
406
  * Binds RTM event
407
407
  */
408
408
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, no-unused-vars
409
- on(event: string, callback: (data: any) => void) {
409
+ on(event: string, callback: (data: any) => any) {
410
410
  // Ensure all input arguments are set
411
411
  if (typeof event !== "string") {
412
412
  throw new Error("[Crisp] on: parameter event should be a string");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "10.0.9",
4
+ "version": "10.0.10",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -49,7 +49,7 @@
49
49
  "typescript": "5.9.2",
50
50
  "eslint": "9.29.0",
51
51
  "eslint-plugin-crisp": "1.1.13",
52
- "eslint-plugin-jsdoc": "^54.1.0",
52
+ "eslint-plugin-jsdoc": "50.8.0",
53
53
  "globals": "15.15.0"
54
54
  },
55
55
  "dependencies": {