crisp-api 6.3.0 → 6.3.1

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,6 +1,16 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v6.3.1
5
+
6
+ ### Breaking Changes
7
+
8
+ * Support for NodeJS 8 has been removed. The minimum version is now NodeJS 10.
9
+
10
+ ### Changes
11
+
12
+ * Upgraded dependencies (closes [#30](https://github.com/crisp-im/node-crisp-api/issues/30).
13
+
4
14
  ## v6.3.0
5
15
 
6
16
  ### New Features
package/lib/crisp.js CHANGED
@@ -667,10 +667,10 @@ Crisp.prototype = {
667
667
  */
668
668
  _request : function(resource, method, query, body, resolve, reject) {
669
669
  var requestParameters = {
670
- json : true,
671
- timeout : Crisp.DEFAULT_REQUEST_TIMEOUT,
670
+ responseType : "json",
671
+ timeout : Crisp.DEFAULT_REQUEST_TIMEOUT,
672
672
 
673
- headers : {
673
+ headers : {
674
674
  "User-Agent" : this._useragent,
675
675
  "X-Crisp-Tier" : this._tier
676
676
  }
@@ -688,7 +688,7 @@ Crisp.prototype = {
688
688
 
689
689
  // Add query?
690
690
  if (query) {
691
- requestParameters.query = query;
691
+ requestParameters.searchParams = query;
692
692
  }
693
693
 
694
694
  // Proceed request
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": "6.3.0",
4
+ "version": "6.3.1",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -25,7 +25,7 @@
25
25
  "main": "./lib/crisp",
26
26
  "types": "./types/crisp.d.ts",
27
27
  "engines": {
28
- "node": ">= 8.0.0"
28
+ "node": ">= 10.19.0"
29
29
  },
30
30
  "scripts": {
31
31
  "test": "check-build",
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "socket.io-client": "4.4.1",
40
- "fbemitter": "3.0.0",
41
- "got": "9.6.0"
40
+ "fbemitter": "git+https://github.com/crisp-dev/emitter.git#695f60594bdca0c876e5c232de57702ab3151b6f",
41
+ "got": "11.8.5"
42
42
  },
43
43
  "keywords": [
44
44
  "crisp",