@google/earthengine 0.1.341 → 0.1.342

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 CHANGED
@@ -432,6 +432,10 @@ Fileset(
432
432
  srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.341:public",
433
433
  destdir = "0.1.341",
434
434
  ),
435
+ FilesetEntry(
436
+ srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.342:public",
437
+ destdir = "0.1.342",
438
+ ),
435
439
  # NEXT RELEASE GOES HERE. DO NOT REMOVE OR CHANGE THIS LINE.
436
440
  ],
437
441
  )
package/.tmp/METADATA CHANGED
@@ -1,6 +1,6 @@
1
1
  # Format: google3/devtools/metadata/metadata.proto (go/google3metadata)
2
2
 
3
- name: "0.1.341"
3
+ name: "0.1.342"
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 "
@@ -12,10 +12,10 @@ third_party {
12
12
  type: GIT
13
13
  value: "https://github.com/google/earthengine-api.git"
14
14
  }
15
- version: "v0.1.341"
15
+ version: "v0.1.342"
16
16
  last_upgrade_date: {
17
17
  year: 2023
18
18
  month: 2
19
- day: 15
19
+ day: 22
20
20
  }
21
21
  }
package/build/browser.js CHANGED
@@ -17540,7 +17540,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
17540
17540
  ee.apiclient = {};
17541
17541
  var module$contents$ee$apiclient_apiclient = {};
17542
17542
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1ALPHA;
17543
- ee.apiclient.API_CLIENT_VERSION = "0.1.341";
17543
+ ee.apiclient.API_CLIENT_VERSION = "0.1.342";
17544
17544
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
17545
17545
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
17546
17546
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -17821,8 +17821,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
17821
17821
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
17822
17822
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
17823
17823
  method = method || "POST";
17824
- var headers = {"Content-Type":contentType,}, version = "0.1.341";
17825
- "0.1.341" === version && (version = "latest");
17824
+ var headers = {"Content-Type":contentType,}, version = "0.1.342";
17825
+ "0.1.342" === version && (version = "latest");
17826
17826
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
17827
17827
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
17828
17828
  if (null != authToken) {
@@ -451,7 +451,7 @@ Lc(q,g[m]))});return b?b(l):l};return this.callback?(hj(d,null,function(g,l){ret
451
451
  ij.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=kj();null!=d&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
452
452
  var lj=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"))}},fj=function(){var a=nj.replace(/\/api$/,"");return"window"in r&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},pj=function(a,b,c){var d=[];a&&(d=d.concat(oj));
453
453
  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 f=a[c++],g=t(f)?"o"+ya(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(e,g)||(e[g]=!0,a[b++]=f)}a.length=b;return d},vj=function(a,b,c){qj&&rj&&qj({client_id:String(rj),immediate:!0,scope:sj.join(" ")},function(d){if("immediate_failed"==d.error&&c)c();else if("window"in r)try{tj(function(){try{r.gapi.auth.setToken(d),uj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else uj(a,
454
- b,d)})},kj=function(){wj&&0<=Date.now()-wj&&xj();return yj},xj=function(){wj=yj=null},cj=function(a,b,c,d){null!=a?nj=a:zj||(nj="https://earthengine.googleapis.com/api");null!=b?Aj=b:zj||(Aj="https://earthengine.googleapis.com");void 0!==c&&(Bj=c);bj=null!=d?d:bj||"earthengine-legacy";zj=!0},hj=function(a,b,c,d,e,f){cj();var g=Cj,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.341";"0.1.341"===
454
+ b,d)})},kj=function(){wj&&0<=Date.now()-wj&&xj();return yj},xj=function(){wj=yj=null},cj=function(a,b,c,d){null!=a?nj=a:zj||(nj="https://earthengine.googleapis.com/api");null!=b?Aj=b:zj||(Aj="https://earthengine.googleapis.com");void 0!==c&&(Bj=c);bj=null!=d?d:bj||"earthengine-legacy";zj=!0},hj=function(a,b,c,d,e,f){cj();var g=Cj,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.342";"0.1.342"===
455
455
  m&&(m="latest");l["x-goog-api-client"]="ee-js/"+m;m=kj();if(null!=m)l.Authorization=m;else if(c&&qj&&rj)return vj(function(){Dj(g,function(){hj(a,b,c,d)})}),null;b=b?b.clone():new wd;null!=Ej&&b.add("key",Ej);g&&(l["X-Earth-Engine-Computation-Profiling"]="1");bj&&"earthengine-legacy"!==bj&&(l["X-Goog-User-Project"]=bj);b=Fj(b,a);null!=Bj&&(l["X-XSRF-Token"]=Bj);null!=Gj&&(l["X-Earth-Engine-App-ID-Token"]=Gj);m=e||null;var q=b?b.toString():"";"POST"===d&&void 0===e?m=q:/^[\s\xa0]*$/.test(q)||(a+=-1!=
456
456
  a.indexOf("?")?"&":"?",a+=q);e=a.startsWith("/")?nj+a:a;if(c)return Hj.push(Ij(e,c,d,m,l,f)),Jj.lf(),null;q=function(D,R){this.setRequestHeader&&this.setRequestHeader(R,D)};var v=0;for(f=null!=f?f:5;;){var B=Oi(Mi);B.open(d,e,!1);ub(l,q,B);B.send(m);if(429!=B.status||v>f)break;v++}return Kj(B.status,function(D){try{return B.getResponseHeader(D)}catch(R){return null}},B.responseText,g,void 0,e,d)},Ij=function(a,b,c,d,e,f){var g=0,l={url:a,method:c,content:d,headers:e},m=Cj,q=null!=f?f:10;l.callback=
457
457
  function(v){v=v.target;if(429==v.getStatus()&&g<q)return g++,setTimeout(function(){Hj.push(l);Jj.lf()},Math.min(12E4,1E3*Math.pow(2,g))),null;var B=Kj,D=v.getStatus(),R=u(v.getResponseHeader,v);try{var Z=v.s?v.s.responseText:""}catch(U){Hi(v.ia,"Can not get responseText: "+U.message),Z=""}return B(D,R,Z,m,b,a,c)};return l},Dj=function(a,b){var c=Cj;try{Cj=a,b.call(void 0)}finally{Cj=c}},Kj=function(a,b,c,d,e,f,g){var l=d?b("X-Earth-Engine-Computation-Profile"):"";l&&d&&d(l);var m=function(Z){try{var U=
@@ -17540,7 +17540,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
17540
17540
  ee.apiclient = {};
17541
17541
  var module$contents$ee$apiclient_apiclient = {};
17542
17542
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1ALPHA;
17543
- ee.apiclient.API_CLIENT_VERSION = "0.1.341";
17543
+ ee.apiclient.API_CLIENT_VERSION = "0.1.342";
17544
17544
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
17545
17545
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
17546
17546
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -17821,8 +17821,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
17821
17821
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
17822
17822
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
17823
17823
  method = method || "POST";
17824
- var headers = {"Content-Type":contentType,}, version = "0.1.341";
17825
- "0.1.341" === version && (version = "latest");
17824
+ var headers = {"Content-Type":contentType,}, version = "0.1.342";
17825
+ "0.1.342" === version && (version = "latest");
17826
17826
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
17827
17827
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
17828
17828
  if (null != authToken) {
@@ -17540,7 +17540,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
17540
17540
  ee.apiclient = {};
17541
17541
  var module$contents$ee$apiclient_apiclient = {};
17542
17542
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1ALPHA;
17543
- ee.apiclient.API_CLIENT_VERSION = "0.1.341";
17543
+ ee.apiclient.API_CLIENT_VERSION = "0.1.342";
17544
17544
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
17545
17545
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
17546
17546
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -17821,8 +17821,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
17821
17821
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
17822
17822
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
17823
17823
  method = method || "POST";
17824
- var headers = {"Content-Type":contentType,}, version = "0.1.341";
17825
- "0.1.341" === version && (version = "latest");
17824
+ var headers = {"Content-Type":contentType,}, version = "0.1.342";
17825
+ "0.1.342" === version && (version = "latest");
17826
17826
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
17827
17827
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
17828
17828
  if (null != authToken) {
package/build/main.js CHANGED
@@ -17542,7 +17542,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
17542
17542
  ee.apiclient = {};
17543
17543
  var module$contents$ee$apiclient_apiclient = {};
17544
17544
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1ALPHA;
17545
- ee.apiclient.API_CLIENT_VERSION = "0.1.341";
17545
+ ee.apiclient.API_CLIENT_VERSION = "0.1.342";
17546
17546
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
17547
17547
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
17548
17548
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -17823,8 +17823,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
17823
17823
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
17824
17824
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
17825
17825
  method = method || "POST";
17826
- var headers = {"Content-Type":contentType,}, version = "0.1.341";
17827
- "0.1.341" === version && (version = "latest");
17826
+ var headers = {"Content-Type":contentType,}, version = "0.1.342";
17827
+ "0.1.342" === version && (version = "latest");
17828
17828
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
17829
17829
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
17830
17830
  if (null != authToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/earthengine",
3
- "version": "0.1.341",
3
+ "version": "0.1.342",
4
4
  "description": "JavaScript client for Google Earth Engine API.",
5
5
  "author": "Google LLC",
6
6
  "license": "Apache-2.0",
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.341';
28
+ const API_CLIENT_VERSION = '0.1.342';
29
29
 
30
30
  exports.VERSION = apiVersion.VERSION;
31
31
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
package/src/geometry.js CHANGED
@@ -337,7 +337,7 @@ goog.inherits(ee.Geometry.Rectangle, ee.Geometry);
337
337
  * @param {number} south The southernmost enclosed latitude. If less than -90°
338
338
  * (south pole), will be treated as -90°.
339
339
  * @param {number} east The easternmost enclosed longitude.
340
- * @param {number} north The northernmost enclosed longitude. If greater than
340
+ * @param {number} north The northernmost enclosed latitude. If greater than
341
341
  * +90° (north pole), will be treated as +90°.
342
342
  * @constructor
343
343
  * @extends {ee.Geometry.Rectangle}