@idm-plugin/meteo2 0.3.8 → 0.3.9
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 +1 -2
- package/dist/index.umd.cjs +1 -1
- package/dist/openmeteo/src/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1544,8 +1544,7 @@ class C0 {
|
|
|
1544
1544
|
const o = n();
|
|
1545
1545
|
this.debug && Z.info("[%s] fetch marine api (%j) cost: %d ms", b.requestId, M.url, o.diff(p, "ms"));
|
|
1546
1546
|
const Y = await this.mergeMarineData(O);
|
|
1547
|
-
|
|
1548
|
-
return [Y.at(-1)];
|
|
1547
|
+
return ["gfswave", "ncep_gfswave025"].includes(b.marineModels) ? [Y.at(-1)] : Y;
|
|
1549
1548
|
} catch (p) {
|
|
1550
1549
|
return Z.warn("[%s] marine forecast failed: %s, with %j", b.requestId, p, M), [];
|
|
1551
1550
|
}
|