@google/earthengine 1.6.15 → 1.7.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/build/browser.js +255 -238
- package/build/ee_api_js.js +20 -20
- package/build/ee_api_js_debug.js +233 -215
- package/build/ee_api_js_npm.js +255 -238
- package/build/main.js +255 -238
- package/package.json +1 -1
- package/src/apiclient.js +8 -3
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues.index');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '1.
|
|
27
|
+
const API_CLIENT_VERSION = '1.7.1';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
|
@@ -677,10 +677,15 @@ apiclient.setAppIdToken = function(token) {
|
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* Sets the user agent for API requests.
|
|
680
|
-
* @param {string} userAgent The user agent string
|
|
680
|
+
* @param {string} userAgent The user agent. This will be converted to a string
|
|
681
|
+
* and sanitized.
|
|
681
682
|
*/
|
|
682
683
|
apiclient.setUserAgent = function(userAgent) {
|
|
683
|
-
|
|
684
|
+
if (userAgent == null) {
|
|
685
|
+
apiclient.userAgent_ = null;
|
|
686
|
+
} else {
|
|
687
|
+
apiclient.userAgent_ = String(userAgent).replace(/[\r\n]/g, '');
|
|
688
|
+
}
|
|
684
689
|
};
|
|
685
690
|
|
|
686
691
|
|