Skip to content

Commit a587cac

Browse files
author
InIn Devops
committed
6.1.1
1 parent a1f5360 commit a587cac

47 files changed

Lines changed: 110 additions & 181 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `6.1.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.1.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.1/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).

build/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `6.1.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.1.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.1/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).

build/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `6.1.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.1.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.1.1/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "purecloud-platform-client-v2",
3-
"version": "6.1.0",
3+
"version": "6.1.1",
44
"description": "A JavaScript library to interface with the PureCloud Platform API",
55
"license": "MIT",
66
"main": "src/purecloud-platform-client-v2/index.js",

build/src/purecloud-platform-client-v2/ApiClient.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* @module purecloud-platform-client-v2/ApiClient
20-
* @version 6.1.0
20+
* @version 6.1.1
2121
*/
2222

2323
/**
@@ -251,7 +251,7 @@
251251
resolve();
252252
})
253253
.catch(function(error) {
254-
self.setAccessToken(undefined);
254+
self.setAccessToken();
255255
reject(error);
256256
});
257257
});
@@ -339,7 +339,7 @@
339339
*/
340340
exports.prototype.logout = function() {
341341
if(exports.hasLocalStorage) {
342-
this.setAccessToken(null);
342+
this.setAccessToken();
343343
}
344344

345345
var query = {
@@ -377,7 +377,7 @@
377377
* @returns {String} The string representation of <code>param</code>.
378378
*/
379379
exports.prototype.paramToString = function(param) {
380-
if (param === undefined || param === null) {
380+
if (!param) {
381381
return '';
382382
}
383383
if (param instanceof Date) {
@@ -423,7 +423,7 @@
423423
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
424424
*/
425425
exports.prototype.isJsonMime = function(contentType) {
426-
return Boolean(contentType !== null && contentType.match(/^application\/json(;.*)?$/i));
426+
return Boolean(contentType && contentType.match(/^application\/json(;.*)?$/i));
427427
};
428428

429429
/**
@@ -481,7 +481,7 @@
481481
exports.prototype.normalizeParams = function(params) {
482482
var newParams = {};
483483
for (var key in params) {
484-
if (params.hasOwnProperty(key) && params[key] !== undefined && params[key] !== null) {
484+
if (params.hasOwnProperty(key) && params[key]) {
485485
var value = params[key];
486486
if (this.isFileParam(value) || Array.isArray(value)) {
487487
newParams[key] = value;
@@ -534,9 +534,8 @@
534534
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
535535
*/
536536
exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
537-
if (param === null) {
538-
return null;
539-
}
537+
if (!param) return;
538+
540539
switch (collectionFormat) {
541540
case 'csv':
542541
return param.map(this.paramToString).join(',');
@@ -641,7 +640,7 @@
641640

642641
// set header parameters
643642
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
644-
request.set({ 'purecloud-sdk': '6.1.0' });
643+
request.set({ 'purecloud-sdk': '6.1.1' });
645644

646645
// set request timeout
647646
request.timeout(this.timeout);

build/src/purecloud-platform-client-v2/api/AlertingApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Alerting service.
2020
* @module purecloud-platform-client-v2/api/AlertingApi
21-
* @version 6.1.0
21+
* @version 6.1.1
2222
*/
2323

2424
/**

build/src/purecloud-platform-client-v2/api/AnalyticsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Analytics service.
2020
* @module purecloud-platform-client-v2/api/AnalyticsApi
21-
* @version 6.1.0
21+
* @version 6.1.1
2222
*/
2323

2424
/**

build/src/purecloud-platform-client-v2/api/ArchitectApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Architect service.
2020
* @module purecloud-platform-client-v2/api/ArchitectApi
21-
* @version 6.1.0
21+
* @version 6.1.1
2222
*/
2323

2424
/**

build/src/purecloud-platform-client-v2/api/AttributesApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Attributes service.
2020
* @module purecloud-platform-client-v2/api/AttributesApi
21-
* @version 6.1.0
21+
* @version 6.1.1
2222
*/
2323

2424
/**

build/src/purecloud-platform-client-v2/api/AuthorizationApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Authorization service.
2020
* @module purecloud-platform-client-v2/api/AuthorizationApi
21-
* @version 6.1.0
21+
* @version 6.1.1
2222
*/
2323

2424
/**

0 commit comments

Comments
 (0)