@idm-plugin/meteo2 0.1.2 → 0.1.3

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/dist/index.js CHANGED
@@ -447,7 +447,7 @@ var M0 = { exports: {} };
447
447
  function g(M) {
448
448
  return (M || "").toLowerCase().replace(/\//g, "_");
449
449
  }
450
- function w(M) {
450
+ function J(M) {
451
451
  var O, A, c, X;
452
452
  for (typeof M == "string" && (M = [M]), O = 0; O < M.length; O++)
453
453
  c = M[O].split("|"), A = c[0], X = g(A), p[X] = M[O], d[X] = A, b0(X, c[2].split(" "));
@@ -496,12 +496,12 @@ var M0 = { exports: {} };
496
496
  }) : A;
497
497
  }
498
498
  function d0(M) {
499
- w(M.zones), $(M.links), q0(M.countries), f.dataVersion = M.version;
499
+ J(M.zones), $(M.links), q0(M.countries), f.dataVersion = M.version;
500
500
  }
501
501
  function _(M) {
502
502
  return _.didShowError || (_.didShowError = !0, D("moment.tz.zoneExists('" + M + "') has been deprecated in favor of !moment.tz.zone('" + M + "')")), !!m(M);
503
503
  }
504
- function J(M) {
504
+ function w(M) {
505
505
  var O = M._f === "X" || M._f === "x";
506
506
  return !!(M._a && M._tzm === void 0 && !O);
507
507
  }
@@ -510,13 +510,13 @@ var M0 = { exports: {} };
510
510
  }
511
511
  function f(M) {
512
512
  var O = Array.prototype.slice.call(arguments, 0, -1), A = arguments[arguments.length - 1], c = z.utc.apply(null, O), X;
513
- return !z.isMoment(M) && J(c) && (X = m(A)) && c.add(X.parse(c), "minutes"), c.tz(A), c;
513
+ return !z.isMoment(M) && w(c) && (X = m(A)) && c.add(X.parse(c), "minutes"), c.tz(A), c;
514
514
  }
515
- f.version = b, f.dataVersion = "", f._zones = p, f._links = o, f._names = d, f._countries = q, f.add = w, f.link = $, f.load = d0, f.zone = m, f.zoneExists = _, f.guess = A0, f.names = c0, f.Zone = u, f.unpack = E, f.unpackBase60 = U, f.needsOffset = J, f.moveInvalidForward = !0, f.moveAmbiguousForward = !1, f.countries = W0, f.zonesForCountry = Y0;
515
+ f.version = b, f.dataVersion = "", f._zones = p, f._links = o, f._names = d, f._countries = q, f.add = J, f.link = $, f.load = d0, f.zone = m, f.zoneExists = _, f.guess = A0, f.names = c0, f.Zone = u, f.unpack = E, f.unpackBase60 = U, f.needsOffset = w, f.moveInvalidForward = !0, f.moveAmbiguousForward = !1, f.countries = W0, f.zonesForCountry = Y0;
516
516
  var P = z.fn;
517
517
  z.tz = f, z.defaultZone = null, z.updateOffset = function(M, O) {
518
518
  var A = z.defaultZone, c;
519
- if (M._z === void 0 && (A && J(M) && !M._isUTC && M.isValid() && (M._d = z.utc(M._a)._d, M.utc().add(A.parse(M), "minutes")), M._z = A), M._z)
519
+ if (M._z === void 0 && (A && w(M) && !M._isUTC && M.isValid() && (M._d = z.utc(M._a)._d, M.utc().add(A.parse(M), "minutes")), M._z = A), M._z)
520
520
  if (c = M._z.utcOffset(M), Math.abs(c) < 16 && (c = c / 60), M.utcOffset !== void 0) {
521
521
  var X = M._z;
522
522
  M.utcOffset(-c, O), M._z = X;
@@ -1468,8 +1468,8 @@ class P0 {
1468
1468
  delete z.apikey;
1469
1469
  const q = n();
1470
1470
  return this.debug && G.info("[%s] fetch weather api (%s) cost: %d ms", b.requestId, z.url, q.diff(p, "ms")), this.parseWeatherData(o, z, b);
1471
- } catch {
1472
- return G.warn("[%s] weather forecast failed: %j", b.requestId, { params: z, options: b }), [];
1471
+ } catch (p) {
1472
+ return G.warn("[%s] weather forecast failed: %s, with %j", b.requestId, p, z), [];
1473
1473
  }
1474
1474
  }
1475
1475
  /**
@@ -1494,8 +1494,8 @@ class P0 {
1494
1494
  delete z.apikey;
1495
1495
  const q = n();
1496
1496
  return this.debug && G.info("[%s] fetch marine api (%s) cost: %d ms", b.requestId, z.url, q.diff(p, "ms")), this.parseWeatherData(o, z, b);
1497
- } catch {
1498
- return G.warn("[%s] marine forecast failed: %j", b.requestId, { params: z, options: b }), [];
1497
+ } catch (p) {
1498
+ return G.warn("[%s] marine forecast failed: %s, with %j", b.requestId, p, z), [];
1499
1499
  }
1500
1500
  }
1501
1501
  /**