comprodls-sdk 2.31.0 → 2.31.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.
@@ -55,7 +55,8 @@ function pushX() {
55
55
  **********************************/
56
56
 
57
57
  function _connect(pubnubCW, options) {
58
- if (!options.userid) {
58
+ var bpubnubV7 = true; // If pubnub v7 or higher in package.json, set it true
59
+ if (bpubnubV7 && !options.userid) {
59
60
  var err = {};
60
61
  err.message = err.description = 'Mandatory parameter userid not found in request options.';
61
62
  err = new DLSError(helpers.errors.ERROR_TYPES.PUSHX_ERROR, err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "comprodls-sdk",
3
3
  "description": "comproDLS SDK for JavaScript",
4
- "version": "2.31.0",
4
+ "version": "2.31.3",
5
5
  "author": {
6
6
  "name": "Compro Technologies Private Limited",
7
7
  "url": "http://www.comprotechnologies.com/"
package/test.js DELETED
@@ -1,33 +0,0 @@
1
- var comprodls = require('./lib/comprodls')
2
-
3
- var authOptions = {
4
- "access_token": "97fe7f89-6883-4294-9c3e-5da969e8795e",
5
- "expires_in": 604800,
6
- "refresh_token": "c002d2710236789e3f36d0b8670a07b684f44b4a43e9c4a322260c11390d37826a889053c876df0dc3ae49f4702fd014c36cd83654ec3729fa95a0be72ec36f16bf297d7003ed2d3b7ceab74dd70cadbcf9794db1e50b0b3bff0daa0078590e7e271532f9b8faab3",
7
- };
8
- var options = {
9
- token: authOptions
10
- }
11
- options.orgid = "dev1";
12
-
13
- var params = {
14
- "classid": "62c341b0-8441-47a9-b2b6-1b9651460c62",
15
- // "body": {"audit": true}
16
- }
17
-
18
- var temp = comprodls.init('DEVELOPMENT','GLOBAL', options);
19
- temp.Auth('compro').deleteClass(params)
20
- .then((result)=>{
21
- console.log(result);
22
-
23
- })
24
- .catch((err)=>{
25
- console.log(err);
26
- })
27
- // console.log(result);
28
- //d4-d7
29
-
30
- // ,
31
- // DEVELOPMENT: {
32
- // AUTH: 'http://localhost:5000'
33
- // }