@idm-plugin/meteo2 1.0.0 → 1.0.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 +801 -778
- package/dist/index.umd.cjs +2 -2
- package/dist/openmeteo/src/index.d.ts +5 -1
- package/dist/openmeteo/src/index.test.d.ts +1 -0
- package/dist/read/src/index.test.d.ts +1 -0
- package/dist/tropicals/src/index.test.d.ts +1 -0
- package/dist/worldtides/src/index.test.d.ts +1 -0
- package/package.json +6 -5
|
@@ -69,9 +69,12 @@ export declare class MeteoHelper2 {
|
|
|
69
69
|
* 大气数据
|
|
70
70
|
* @param params
|
|
71
71
|
* @param callback
|
|
72
|
+
* @param seasonal 是否季节预报, 季节预报不调整时间区间
|
|
73
|
+
* @param climate 是否气候预报, 气候预报不调整时间区间
|
|
74
|
+
* @param historical 是否历史数据, 历史数据不调整时间区间
|
|
72
75
|
* @param options
|
|
73
76
|
*/
|
|
74
|
-
weatherForecast(params: any, callback: Function | undefined, options?: OMOptions): Promise<any[]>;
|
|
77
|
+
weatherForecast(params: any, callback: Function | undefined, seasonal: boolean, climate: boolean, historical: boolean, options?: OMOptions): Promise<any[]>;
|
|
75
78
|
/**
|
|
76
79
|
* 尝试调用天气接口, 并解析数据
|
|
77
80
|
* @param url
|
|
@@ -110,6 +113,7 @@ export declare class MeteoHelper2 {
|
|
|
110
113
|
* 检查时间区间, 并调整为合理范围(不超时90天)
|
|
111
114
|
* @param startDate
|
|
112
115
|
* @param endDate
|
|
116
|
+
* @param adjustable 是否季节预报, 季节预报不调整时间区间
|
|
113
117
|
* @param options
|
|
114
118
|
* @private
|
|
115
119
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idm-plugin/meteo2",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "idm plugin for meteo2(open meteo)",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [
|
|
@@ -39,12 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@idm-plugin/geo2": "^1.4.7",
|
|
42
|
-
"@idm-plugin/meteo": "^0.7.
|
|
43
|
-
"@idm-plugin/tag": "^0.2.3"
|
|
42
|
+
"@idm-plugin/meteo": "^0.7.2",
|
|
43
|
+
"@idm-plugin/tag": "^0.2.3",
|
|
44
|
+
"openmeteo": "^1.2.3"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@idm-plugin/geo2": "^1.4.7",
|
|
47
|
-
"@idm-plugin/meteo": "^0.7.
|
|
48
|
+
"@idm-plugin/meteo": "^0.7.2",
|
|
48
49
|
"@idm-plugin/tag": "^0.2.3",
|
|
49
50
|
"@types/jest": "^25.2.2",
|
|
50
51
|
"@types/node": "^18.14.2",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"tsconfig-paths": "^3.12.0",
|
|
71
72
|
"typescript": "^4.9.3",
|
|
72
73
|
"vite": "^4.1.0",
|
|
73
|
-
"vite-plugin-dts": "^
|
|
74
|
+
"vite-plugin-dts": "^4.5.4",
|
|
74
75
|
"vite-plugin-static-copy": "^0.17.0"
|
|
75
76
|
},
|
|
76
77
|
"lint-staged": {
|