@idm-plugin/meteo2 0.7.1 → 0.7.2
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 +5 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1643,9 +1643,11 @@ class J0 {
|
|
|
1643
1643
|
for (let W = M[b][p][c].length; W < z[b][p][c].length; W++)
|
|
1644
1644
|
M[b][p][c].push(z[b][p][c][W]);
|
|
1645
1645
|
} else {
|
|
1646
|
-
const W = L(z[b][p].date)
|
|
1647
|
-
for (let
|
|
1648
|
-
|
|
1646
|
+
const W = L(z[b][p].date), A = L(M[b][p].date);
|
|
1647
|
+
for (let o = 0; o < z[b][p][c].length; o++) {
|
|
1648
|
+
const d = W.clone().add(o, "h").diff(A, "h");
|
|
1649
|
+
d < M[b][p][c].length ? M[b][p][c][d] === null && (M[b][p][c][d] = z[b][p][c][o]) : c === "time" ? M[b][p][c].push(d) : M[b][p][c].push(z[b][p][c][o]);
|
|
1650
|
+
}
|
|
1649
1651
|
}
|
|
1650
1652
|
} else if (p === "daily") {
|
|
1651
1653
|
for (const c in z[b][p])
|