@google/earthengine 0.1.366 → 0.1.367
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/.tmp/BUILD +2 -2
- package/.tmp/METADATA +3 -3
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +7 -5
- package/build/ee_api_js.js +1 -1
- package/build/ee_api_js_debug.js +7 -5
- package/build/ee_api_js_npm.js +7 -5
- package/build/main.js +7 -5
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +4 -2
- package/src/serializer.js +15 -0
package/.tmp/BUILD
CHANGED
|
@@ -642,8 +642,8 @@ Fileset(
|
|
|
642
642
|
destdir = "0.1.363",
|
|
643
643
|
),
|
|
644
644
|
FilesetEntry(
|
|
645
|
-
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.
|
|
646
|
-
destdir = "0.1.
|
|
645
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.367:public",
|
|
646
|
+
destdir = "0.1.367",
|
|
647
647
|
),
|
|
648
648
|
# NEXT RELEASE GOES HERE. DO NOT REMOVE OR CHANGE THIS LINE.
|
|
649
649
|
],
|
package/.tmp/METADATA
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Format: google3/devtools/metadata/metadata.proto (go/google3metadata)
|
|
2
2
|
|
|
3
|
-
name: "0.1.
|
|
3
|
+
name: "0.1.367"
|
|
4
4
|
description:
|
|
5
5
|
"Google Earth Engine is a cloud-based platform for planetary-scale "
|
|
6
6
|
"environmental data analysis. The Earth Engine JavaScript API allows "
|
|
@@ -8,7 +8,7 @@ description:
|
|
|
8
8
|
"applications."
|
|
9
9
|
|
|
10
10
|
third_party {
|
|
11
|
-
version: "v0.1.
|
|
11
|
+
version: "v0.1.367"
|
|
12
12
|
last_upgrade_date: {
|
|
13
13
|
year: 2023
|
|
14
14
|
month: 8
|
|
@@ -17,7 +17,7 @@ third_party {
|
|
|
17
17
|
identifier {
|
|
18
18
|
type: "Git"
|
|
19
19
|
value: "https://github.com/google/earthengine-api.git"
|
|
20
|
-
version: "v0.1.
|
|
20
|
+
version: "v0.1.367"
|
|
21
21
|
primary_source: true
|
|
22
22
|
}
|
|
23
23
|
}
|
package/.tmp/VERSION_BUILD
CHANGED
|
@@ -9,7 +9,7 @@ load("//tools/build_defs/license:license.bzl", "license")
|
|
|
9
9
|
load("//tools/build_defs/build_test:build_test.bzl", "build_test")
|
|
10
10
|
|
|
11
11
|
package(
|
|
12
|
-
default_applicable_licenses = ["//third_party/hosted_libraries/libs/earthengine/0.1.
|
|
12
|
+
default_applicable_licenses = ["//third_party/hosted_libraries/libs/earthengine/0.1.367:license"],
|
|
13
13
|
default_visibility = [
|
|
14
14
|
"//third_party/hosted_libraries/libs/earthengine:__pkg__",
|
|
15
15
|
],
|
|
@@ -17,7 +17,7 @@ package(
|
|
|
17
17
|
|
|
18
18
|
license(
|
|
19
19
|
name = "license",
|
|
20
|
-
package_name = "0.1.
|
|
20
|
+
package_name = "0.1.367",
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
licenses(["notice"])
|
package/build/browser.js
CHANGED
|
@@ -17372,7 +17372,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17372
17372
|
ee.apiclient = {};
|
|
17373
17373
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17374
17374
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17375
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17375
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.367";
|
|
17376
17376
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17377
17377
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17378
17378
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17653,8 +17653,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17653
17653
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17654
17654
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17655
17655
|
method = method || "POST";
|
|
17656
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17657
|
-
"0.1.
|
|
17656
|
+
var headers = {"Content-Type":contentType}, version = "0.1.367";
|
|
17657
|
+
"0.1.367" === version && (version = "latest");
|
|
17658
17658
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17659
17659
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17660
17660
|
if (null != authToken) {
|
|
@@ -18838,7 +18838,9 @@ ee.Serializer.encodeCloudApi = function(obj) {
|
|
|
18838
18838
|
};
|
|
18839
18839
|
goog.exportSymbol("ee.Serializer.encodeCloudApi", ee.Serializer.encodeCloudApi);
|
|
18840
18840
|
ee.Serializer.encodeCloudApiExpression = function(obj, unboundName) {
|
|
18841
|
-
|
|
18841
|
+
return ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, unboundName);
|
|
18842
|
+
};
|
|
18843
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer = function(serializer, obj, unboundName) {
|
|
18842
18844
|
serializer.unboundName = unboundName;
|
|
18843
18845
|
return serializer.encodeForCloudApi_(obj);
|
|
18844
18846
|
};
|
|
@@ -19422,7 +19424,7 @@ ee.data.listFeatures = function(asset, params, opt_callback) {
|
|
|
19422
19424
|
};
|
|
19423
19425
|
goog.exportSymbol("ee.data.listFeatures", ee.data.listFeatures);
|
|
19424
19426
|
ee.data.computeValue = function(obj, opt_callback) {
|
|
19425
|
-
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.
|
|
19427
|
+
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, void 0))}, workloadTag = ee.data.getWorkloadTag();
|
|
19426
19428
|
workloadTag && (request.workloadTag = workloadTag);
|
|
19427
19429
|
var call = new module$contents$ee$apiclient_Call(opt_callback);
|
|
19428
19430
|
return call.handle(call.value().compute(call.projectsPath(), new module$exports$eeapiclient$ee_api_client.ComputeValueRequest(request)).then(function(x) {
|
package/build/ee_api_js.js
CHANGED
|
@@ -440,7 +440,7 @@ Tc(q,f[m]))});return b?b(l):l};return this.callback?(tj(d,null,function(f,l){ret
|
|
|
440
440
|
uj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=wj();null!=d&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
441
441
|
var xj=function(a,b,c){a=n(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(3>b.length)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},qj=function(){var a=yj.replace(/\/api$/,"");return"window"in r&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},Aj=function(a,b,c){var d=[];a&&(d=d.concat(zj));
|
|
442
442
|
b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var g=a[c++],f=t(g)?"o"+ya(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},Gj=function(a,b,c){Bj&&Cj&&Bj({client_id:String(Cj),immediate:!0,scope:Dj.join(" ")},function(d){if("immediate_failed"==d.error&&c)c();else if("window"in r)try{Ej(function(){try{r.gapi.auth.setToken(d),Fj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else Fj(a,
|
|
443
|
-
b,d)})},wj=function(){Hj&&0<=Date.now()-Hj&&Ij();return Jj},Ij=function(){Hj=Jj=null},nj=function(a,b,c,d){null!=a?yj=a:Kj||(yj="https://earthengine.googleapis.com/api");null!=b?Lj=b:Kj||(Lj="https://earthengine.googleapis.com");void 0!==c&&(Mj=c);mj=null!=d?d:mj||"earthengine-legacy";Kj=!0},tj=function(a,b,c,d,e,g){nj();var f=Nj,l="application/x-www-form-urlencoded";e&&(l="application/json",d&&d.startsWith("multipart")&&(l=d,d="POST"));d=d||"POST";l={"Content-Type":l};var m="0.1.
|
|
443
|
+
b,d)})},wj=function(){Hj&&0<=Date.now()-Hj&&Ij();return Jj},Ij=function(){Hj=Jj=null},nj=function(a,b,c,d){null!=a?yj=a:Kj||(yj="https://earthengine.googleapis.com/api");null!=b?Lj=b:Kj||(Lj="https://earthengine.googleapis.com");void 0!==c&&(Mj=c);mj=null!=d?d:mj||"earthengine-legacy";Kj=!0},tj=function(a,b,c,d,e,g){nj();var f=Nj,l="application/x-www-form-urlencoded";e&&(l="application/json",d&&d.startsWith("multipart")&&(l=d,d="POST"));d=d||"POST";l={"Content-Type":l};var m="0.1.367";"0.1.367"===
|
|
444
444
|
m&&(m="latest");l["x-goog-api-client"]="ee-js/"+m;m=wj();if(null!=m)l.Authorization=m;else if(c&&Bj&&Cj)return Gj(function(){Oj(f,function(){tj(a,b,c,d)})}),null;b=b?b.clone():new Jd;null!=Pj&&b.add("key",Pj);f&&(l["X-Earth-Engine-Computation-Profiling"]="1");mj&&"earthengine-legacy"!==mj&&(l["X-Goog-User-Project"]=mj);b=Qj(b,a);null!=Mj&&(l["X-XSRF-Token"]=Mj);null!=Rj&&(l["X-Earth-Engine-App-ID-Token"]=Rj);m=e||null;var q=b?b.toString():"";"POST"===d&&void 0===e?m=q:/^[\s\xa0]*$/.test(q)||(a+=-1!=
|
|
445
445
|
a.indexOf("?")?"&":"?",a+=q);e=a.startsWith("/")?yj+a:a;if(c)return Sj.push(Tj(e,c,d,m,l,g)),Uj.hf(),null;q=function(D,Q){this.setRequestHeader&&this.setRequestHeader(Q,D)};var v=0;for(g=null!=g?g:5;;){var B=Zi(Xi);B.open(d,e,!1);Cb(l,q,B);B.send(m);if(429!=B.status||v>g)break;v++}return Vj(B.status,function(D){try{return B.getResponseHeader(D)}catch(Q){return null}},B.responseText,f,void 0,e,d)},Tj=function(a,b,c,d,e,g){var f=0,l={url:a,method:c,content:d,headers:e},m=Nj,q=null!=g?g:10;l.callback=
|
|
446
446
|
function(v){v=v.target;if(429==v.getStatus()&&f<q)return f++,setTimeout(function(){Sj.push(l);Uj.hf()},Math.min(12E4,1E3*Math.pow(2,f))),null;var B=Vj,D=v.getStatus(),Q=u(v.getResponseHeader,v);try{var Y=v.o?v.o.responseText:""}catch(T){Si(v.aa,"Can not get responseText: "+T.message),Y=""}return B(D,Q,Y,m,b,a,c)};return l},Oj=function(a,b){var c=Nj;try{Nj=a,b.call(void 0)}finally{Nj=c}},Vj=function(a,b,c,d,e,g,f){var l=d?b("X-Earth-Engine-Computation-Profile"):"";l&&d&&d(l);var m=function(Y){try{var T=
|
package/build/ee_api_js_debug.js
CHANGED
|
@@ -17372,7 +17372,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17372
17372
|
ee.apiclient = {};
|
|
17373
17373
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17374
17374
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17375
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17375
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.367";
|
|
17376
17376
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17377
17377
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17378
17378
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17653,8 +17653,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17653
17653
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17654
17654
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17655
17655
|
method = method || "POST";
|
|
17656
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17657
|
-
"0.1.
|
|
17656
|
+
var headers = {"Content-Type":contentType}, version = "0.1.367";
|
|
17657
|
+
"0.1.367" === version && (version = "latest");
|
|
17658
17658
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17659
17659
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17660
17660
|
if (null != authToken) {
|
|
@@ -18838,7 +18838,9 @@ ee.Serializer.encodeCloudApi = function(obj) {
|
|
|
18838
18838
|
};
|
|
18839
18839
|
goog.exportSymbol("ee.Serializer.encodeCloudApi", ee.Serializer.encodeCloudApi);
|
|
18840
18840
|
ee.Serializer.encodeCloudApiExpression = function(obj, unboundName) {
|
|
18841
|
-
|
|
18841
|
+
return ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, unboundName);
|
|
18842
|
+
};
|
|
18843
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer = function(serializer, obj, unboundName) {
|
|
18842
18844
|
serializer.unboundName = unboundName;
|
|
18843
18845
|
return serializer.encodeForCloudApi_(obj);
|
|
18844
18846
|
};
|
|
@@ -19422,7 +19424,7 @@ ee.data.listFeatures = function(asset, params, opt_callback) {
|
|
|
19422
19424
|
};
|
|
19423
19425
|
goog.exportSymbol("ee.data.listFeatures", ee.data.listFeatures);
|
|
19424
19426
|
ee.data.computeValue = function(obj, opt_callback) {
|
|
19425
|
-
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.
|
|
19427
|
+
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, void 0))}, workloadTag = ee.data.getWorkloadTag();
|
|
19426
19428
|
workloadTag && (request.workloadTag = workloadTag);
|
|
19427
19429
|
var call = new module$contents$ee$apiclient_Call(opt_callback);
|
|
19428
19430
|
return call.handle(call.value().compute(call.projectsPath(), new module$exports$eeapiclient$ee_api_client.ComputeValueRequest(request)).then(function(x) {
|
package/build/ee_api_js_npm.js
CHANGED
|
@@ -17372,7 +17372,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17372
17372
|
ee.apiclient = {};
|
|
17373
17373
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17374
17374
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17375
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17375
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.367";
|
|
17376
17376
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17377
17377
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17378
17378
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17653,8 +17653,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17653
17653
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17654
17654
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17655
17655
|
method = method || "POST";
|
|
17656
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17657
|
-
"0.1.
|
|
17656
|
+
var headers = {"Content-Type":contentType}, version = "0.1.367";
|
|
17657
|
+
"0.1.367" === version && (version = "latest");
|
|
17658
17658
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17659
17659
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17660
17660
|
if (null != authToken) {
|
|
@@ -18838,7 +18838,9 @@ ee.Serializer.encodeCloudApi = function(obj) {
|
|
|
18838
18838
|
};
|
|
18839
18839
|
goog.exportSymbol("ee.Serializer.encodeCloudApi", ee.Serializer.encodeCloudApi);
|
|
18840
18840
|
ee.Serializer.encodeCloudApiExpression = function(obj, unboundName) {
|
|
18841
|
-
|
|
18841
|
+
return ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, unboundName);
|
|
18842
|
+
};
|
|
18843
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer = function(serializer, obj, unboundName) {
|
|
18842
18844
|
serializer.unboundName = unboundName;
|
|
18843
18845
|
return serializer.encodeForCloudApi_(obj);
|
|
18844
18846
|
};
|
|
@@ -19422,7 +19424,7 @@ ee.data.listFeatures = function(asset, params, opt_callback) {
|
|
|
19422
19424
|
};
|
|
19423
19425
|
goog.exportSymbol("ee.data.listFeatures", ee.data.listFeatures);
|
|
19424
19426
|
ee.data.computeValue = function(obj, opt_callback) {
|
|
19425
|
-
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.
|
|
19427
|
+
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, void 0))}, workloadTag = ee.data.getWorkloadTag();
|
|
19426
19428
|
workloadTag && (request.workloadTag = workloadTag);
|
|
19427
19429
|
var call = new module$contents$ee$apiclient_Call(opt_callback);
|
|
19428
19430
|
return call.handle(call.value().compute(call.projectsPath(), new module$exports$eeapiclient$ee_api_client.ComputeValueRequest(request)).then(function(x) {
|
package/build/main.js
CHANGED
|
@@ -17374,7 +17374,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17374
17374
|
ee.apiclient = {};
|
|
17375
17375
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17376
17376
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17377
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17377
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.367";
|
|
17378
17378
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17379
17379
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17380
17380
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17655,8 +17655,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17655
17655
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17656
17656
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17657
17657
|
method = method || "POST";
|
|
17658
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17659
|
-
"0.1.
|
|
17658
|
+
var headers = {"Content-Type":contentType}, version = "0.1.367";
|
|
17659
|
+
"0.1.367" === version && (version = "latest");
|
|
17660
17660
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17661
17661
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17662
17662
|
if (null != authToken) {
|
|
@@ -18840,7 +18840,9 @@ ee.Serializer.encodeCloudApi = function(obj) {
|
|
|
18840
18840
|
};
|
|
18841
18841
|
goog.exportSymbol("ee.Serializer.encodeCloudApi", ee.Serializer.encodeCloudApi);
|
|
18842
18842
|
ee.Serializer.encodeCloudApiExpression = function(obj, unboundName) {
|
|
18843
|
-
|
|
18843
|
+
return ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, unboundName);
|
|
18844
|
+
};
|
|
18845
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer = function(serializer, obj, unboundName) {
|
|
18844
18846
|
serializer.unboundName = unboundName;
|
|
18845
18847
|
return serializer.encodeForCloudApi_(obj);
|
|
18846
18848
|
};
|
|
@@ -19424,7 +19426,7 @@ ee.data.listFeatures = function(asset, params, opt_callback) {
|
|
|
19424
19426
|
};
|
|
19425
19427
|
goog.exportSymbol("ee.data.listFeatures", ee.data.listFeatures);
|
|
19426
19428
|
ee.data.computeValue = function(obj, opt_callback) {
|
|
19427
|
-
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.
|
|
19429
|
+
var request = {expression:ee.data.expressionAugmenter_(ee.Serializer.encodeCloudApiExpressionWithSerializer(new ee.Serializer(!0), obj, void 0))}, workloadTag = ee.data.getWorkloadTag();
|
|
19428
19430
|
workloadTag && (request.workloadTag = workloadTag);
|
|
19429
19431
|
var call = new module$contents$ee$apiclient_Call(opt_callback);
|
|
19430
19432
|
return call.handle(call.value().compute(call.projectsPath(), new module$exports$eeapiclient$ee_api_client.ComputeValueRequest(request)).then(function(x) {
|
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -25,7 +25,7 @@ const {PromiseRequestService} = goog.require('eeapiclient.promise_request_servic
|
|
|
25
25
|
/** @namespace */
|
|
26
26
|
const apiclient = {};
|
|
27
27
|
|
|
28
|
-
const API_CLIENT_VERSION = '0.1.
|
|
28
|
+
const API_CLIENT_VERSION = '0.1.367';
|
|
29
29
|
|
|
30
30
|
exports.VERSION = apiVersion.VERSION;
|
|
31
31
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
package/src/data.js
CHANGED
|
@@ -555,8 +555,10 @@ ee.data.listFeatures = function(asset, params, opt_callback) {
|
|
|
555
555
|
* @export
|
|
556
556
|
*/
|
|
557
557
|
ee.data.computeValue = function(obj, opt_callback) {
|
|
558
|
-
const
|
|
559
|
-
|
|
558
|
+
const serializer = new ee.Serializer(true);
|
|
559
|
+
const expression = ee.data.expressionAugmenter_(
|
|
560
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer(
|
|
561
|
+
serializer, obj, /* unboundName= */ undefined));
|
|
560
562
|
const request = {expression};
|
|
561
563
|
const workloadTag = ee.data.getWorkloadTag();
|
|
562
564
|
if (workloadTag) {
|
package/src/serializer.js
CHANGED
|
@@ -303,6 +303,21 @@ ee.Serializer.encodeCloudApi = function(obj) {
|
|
|
303
303
|
ee.Serializer.encodeCloudApiExpression = function(
|
|
304
304
|
obj, unboundName = undefined) {
|
|
305
305
|
const serializer = new ee.Serializer(true);
|
|
306
|
+
return ee.Serializer.encodeCloudApiExpressionWithSerializer(
|
|
307
|
+
serializer, obj, unboundName);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Serializes an object into an Expression for Cloud API calls with a
|
|
313
|
+
* Serializer.
|
|
314
|
+
* @param {!ee.Serializer} serializer The Serializer.
|
|
315
|
+
* @param {*} obj The object to Serialize.
|
|
316
|
+
* @param {string=} unboundName Name for unbound variables in computed objects.
|
|
317
|
+
* @return {!ee.api.Expression} The encoded object.
|
|
318
|
+
*/
|
|
319
|
+
ee.Serializer.encodeCloudApiExpressionWithSerializer = function(
|
|
320
|
+
serializer, obj, unboundName = undefined) {
|
|
306
321
|
serializer.unboundName = unboundName;
|
|
307
322
|
return serializer.encodeForCloudApi_(obj);
|
|
308
323
|
};
|