Skip to content

Commit 7211f0e

Browse files
Google Earth Engine Authorsbengalin
authored andcommitted
v0.1.379
PiperOrigin-RevId: 581060984
1 parent 16871ff commit 7211f0e

30 files changed

+15266
-15221
lines changed

javascript/build/ee_api_js.js

Lines changed: 648 additions & 646 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/build/ee_api_js_debug.js

Lines changed: 7214 additions & 7192 deletions
Large diffs are not rendered by default.

javascript/build/ee_api_js_npm.js

Lines changed: 7236 additions & 7214 deletions
Large diffs are not rendered by default.

javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google/earthengine",
3-
"version": "0.1.378",
3+
"version": "0.1.379",
44
"description": "JavaScript client for Google Earth Engine API.",
55
"author": "Google LLC",
66
"license": "Apache-2.0",

javascript/src/apiclient.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ goog.module.declareLegacyNamespace();
66

77
const GoogConst = goog.require('goog.string.Const');
88
const Throttle = goog.require('goog.async.Throttle');
9-
const TrustedResourceUrl = goog.require('goog.html.TrustedResourceUrl');
109
const Uri = goog.require('goog.Uri');
1110
const XhrIo = goog.require('goog.net.XhrIo');
1211
const XhrLike = goog.requireType('goog.net.XhrLike');
@@ -21,11 +20,12 @@ const jsloader = goog.require('goog.net.jsloader');
2120
const {MakeRequestParams, processParams} = goog.require('eeapiclient.request_params');
2221
const {NULL_VALUE, Serializable, SerializableCtor, deserialize, serialize} = goog.require('eeapiclient.domain_object');
2322
const {PromiseRequestService} = goog.require('eeapiclient.promise_request_service');
23+
const {trustedResourceUrl} = goog.require('safevalues');
2424

2525
/** @namespace */
2626
const apiclient = {};
2727

28-
const API_CLIENT_VERSION = '0.1.378';
28+
const API_CLIENT_VERSION = '0.1.379';
2929

3030
exports.VERSION = apiVersion.VERSION;
3131
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
@@ -1147,8 +1147,9 @@ apiclient.ensureAuthLibLoaded_ = function(callback) {
11471147
delete goog.global[callbackName];
11481148
done();
11491149
};
1150-
jsloader.safeLoad(TrustedResourceUrl.format(
1151-
apiclient.AUTH_LIBRARY_URL_, {'onload': callbackName}));
1150+
jsloader.safeLoad(
1151+
trustedResourceUrl`https://apis.google.com/js/client.js?onload=${
1152+
callbackName}`);
11521153
}
11531154
};
11541155

javascript/src/ee.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ ee.promote_ = function(arg, klass) {
378378
return new ee.Image(/** @type {Object} */ (arg));
379379
case 'Feature':
380380
if (arg instanceof ee.Collection) {
381-
// TODO(user): Decide whether we want to leave this in. It can be
382-
// quite dangerous on large collections.
381+
// This can be quite dangerous on large collections.
383382
return ee.ApiFunction._call(
384383
'Feature', ee.ApiFunction._call('Collection.geometry', arg));
385384
} else {

javascript/src/eeapiclient/api_client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// g3-format-clang
12
import {Serializable, serialize} from './domain_object';
23
import {GeneratedRequestParams} from './generated_types';
34
import {MultipartRequest} from './multipart_request';

javascript/src/eeapiclient/api_request_hook.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// g3-format-clang
12
import {GeneratedRequestParams} from './generated_types';
23

34
export interface ApiClientRequestHook {

javascript/src/eeapiclient/domain_object.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* g3-format-clang
23
* Utility map for ClassMetadata to describe how to create instances of child
34
* properties.
45
*/

javascript/src/eeapiclient/generated_types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// g3-format-clang
12
import {Serializable, SerializableCtor} from './domain_object';
23
import {MultipartRequest} from './multipart_request';
34

0 commit comments

Comments
 (0)