Skip to content

Commit 460f2a8

Browse files
author
InIn Devops
committed
6.0.1
1 parent ae9b700 commit 460f2a8

47 files changed

Lines changed: 112 additions & 427 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.0.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.0.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.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.0.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.0.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.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.0.0` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.0/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `6.0.1` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/6.0.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.0.0",
3+
"version": "6.0.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: 10 additions & 13 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.0.0
20+
* @version 6.0.1
2121
*/
2222

2323
/**
@@ -89,7 +89,7 @@
8989
exports.prototype.setPersistSettings = function setPersistSettings(doPersist, prefix) {
9090
this.persistSettings = doPersist;
9191
this.settingsPrefix = prefix ? prefix.replace(/\W+/g, '_') : 'purecloud';
92-
console.log(`this.settingsPrefix=${this.settingsPrefix}`);
92+
this._debugTrace(`this.settingsPrefix=${this.settingsPrefix}`);
9393
};
9494

9595
/**
@@ -102,16 +102,16 @@
102102

103103
// Ensure we can access local storage
104104
if (!exports.hasLocalStorage) {
105-
console.log('Warning: Cannot access local storage. Settings will not be saved.');
105+
this._debugTrace('Warning: Cannot access local storage. Settings will not be saved.');
106106
return;
107107
}
108108

109109
// Save settings
110110
if (this.authentications['PureCloud Auth'].accessToken) {
111111
localStorage.setItem(`${this.settingsPrefix}_access_token`, this.authentications['PureCloud Auth'].accessToken);
112-
console.log('Access token saved to local storage');
112+
this._debugTrace('Access token saved to local storage');
113113
} else {
114-
console.log('Access token cleared');
114+
this._debugTrace('Access token cleared');
115115
localStorage.removeItem(`${this.settingsPrefix}_access_token`);
116116
}
117117
} catch (e) {
@@ -128,14 +128,14 @@
128128

129129
// Ensure we can access local storage
130130
if (!exports.hasLocalStorage) {
131-
console.log('Warning: Cannot access local storage. Settings will not be loaded.');
131+
this._debugTrace('Warning: Cannot access local storage. Settings will not be loaded.');
132132
return;
133133
}
134134

135135
var token = localStorage.getItem(`${this.settingsPrefix}_access_token`);
136136
if (token) {
137137
this.setAccessToken(token);
138-
console.log('Access token retrieved from local storage');
138+
this._debugTrace('Access token retrieved from local storage');
139139
}
140140
};
141141

@@ -187,7 +187,7 @@
187187
};
188188

189189
var url = self._buildAuthUrl('oauth/authorize', query);
190-
console.log(`Implicit grant: redirecting to ${url} for authorization...`);
190+
self._debugTrace(`Implicit grant: redirecting to ${url} for authorization...`);
191191
window.location.replace(url);
192192
});
193193
});
@@ -210,7 +210,6 @@
210210
return;
211211
}
212212

213-
console.log('Requesting token');
214213
// Build token request
215214
var request = superagent('POST', `https://login.${self.environment}/oauth/token`);
216215
request.set('Authorization', `Basic ${authHeader}`);
@@ -219,12 +218,10 @@
219218
// Execute request
220219
request.end(function(error, response) {
221220
if (error) {
222-
console.log('Error authenticating!');
223-
console.log(error);
224221
reject(error);
225222
} else {
226223
self.setAccessToken(response.body['access_token']);
227-
console.log(`Access token expires in ${response.body['expires_in']} seconds`);
224+
self._debugTrace(`Access token expires in ${response.body['expires_in']} seconds`);
228225
resolve();
229226
}
230227
});
@@ -644,7 +641,7 @@
644641

645642
// set header parameters
646643
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
647-
request.set({ 'purecloud-sdk': '6.0.0' });
644+
request.set({ 'purecloud-sdk': '6.0.1' });
648645

649646
// set request timeout
650647
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.0.0
21+
* @version 6.0.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.0.0
21+
* @version 6.0.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.0.0
21+
* @version 6.0.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.0.0
21+
* @version 6.0.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.0.0
21+
* @version 6.0.1
2222
*/
2323

2424
/**

0 commit comments

Comments
 (0)