@opengeoweb/taf 4.15.1 → 4.17.0
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/index.esm.js +9 -2
- package/index.umd.js +9 -2
- package/package.json +9 -9
package/index.esm.js
CHANGED
|
@@ -1592,13 +1592,16 @@ var validateWindInterSection = function validateWindInterSection(speed, gust, di
|
|
|
1592
1592
|
if (direction === 'VRB' && (speed === 'P99' || parseInt(speed, 10) > 2)) {
|
|
1593
1593
|
// Only allow VRB for speeds smaller than 3 or in combination with gusts and showers (SH, TS, SQ)
|
|
1594
1594
|
var allowedWeatherPhenom = ['SH', 'TS', 'SQ'];
|
|
1595
|
+
|
|
1595
1596
|
if (gust === '' || !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1596
1597
|
return weather1Value.includes(allowedPhenom);
|
|
1597
1598
|
}) && !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1598
1599
|
return weather2Value.includes(allowedPhenom);
|
|
1599
1600
|
}) && !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1600
1601
|
return weather3Value.includes(allowedPhenom);
|
|
1601
|
-
}))
|
|
1602
|
+
})) {
|
|
1603
|
+
return invalidWindVRBWindDirectionMessage;
|
|
1604
|
+
}
|
|
1602
1605
|
} // Validate gust
|
|
1603
1606
|
|
|
1604
1607
|
|
|
@@ -4829,7 +4832,11 @@ var sortTafsOnIssueDate = function sortTafsOnIssueDate() {
|
|
|
4829
4832
|
return _toConsumableArray(tafList).sort(function (_ref3, _ref4) {
|
|
4830
4833
|
var tafA = _ref3.taf;
|
|
4831
4834
|
var tafB = _ref4.taf;
|
|
4832
|
-
|
|
4835
|
+
|
|
4836
|
+
if (tafA.issueDate < tafB.issueDate || tafA.issueDate && !tafB.issueDate) {
|
|
4837
|
+
return 1;
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4833
4840
|
return -1;
|
|
4834
4841
|
});
|
|
4835
4842
|
};
|
package/index.umd.js
CHANGED
|
@@ -1590,13 +1590,16 @@
|
|
|
1590
1590
|
if (direction === 'VRB' && (speed === 'P99' || parseInt(speed, 10) > 2)) {
|
|
1591
1591
|
// Only allow VRB for speeds smaller than 3 or in combination with gusts and showers (SH, TS, SQ)
|
|
1592
1592
|
var allowedWeatherPhenom = ['SH', 'TS', 'SQ'];
|
|
1593
|
+
|
|
1593
1594
|
if (gust === '' || !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1594
1595
|
return weather1Value.includes(allowedPhenom);
|
|
1595
1596
|
}) && !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1596
1597
|
return weather2Value.includes(allowedPhenom);
|
|
1597
1598
|
}) && !allowedWeatherPhenom.some(function (allowedPhenom) {
|
|
1598
1599
|
return weather3Value.includes(allowedPhenom);
|
|
1599
|
-
}))
|
|
1600
|
+
})) {
|
|
1601
|
+
return invalidWindVRBWindDirectionMessage;
|
|
1602
|
+
}
|
|
1600
1603
|
} // Validate gust
|
|
1601
1604
|
|
|
1602
1605
|
|
|
@@ -4843,7 +4846,11 @@
|
|
|
4843
4846
|
return __spreadArray([], __read(tafList)).sort(function (_a, _b) {
|
|
4844
4847
|
var tafA = _a.taf;
|
|
4845
4848
|
var tafB = _b.taf;
|
|
4846
|
-
|
|
4849
|
+
|
|
4850
|
+
if (tafA.issueDate < tafB.issueDate || tafA.issueDate && !tafB.issueDate) {
|
|
4851
|
+
return 1;
|
|
4852
|
+
}
|
|
4853
|
+
|
|
4847
4854
|
return -1;
|
|
4848
4855
|
});
|
|
4849
4856
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/api": "4.
|
|
15
|
+
"@opengeoweb/api": "4.17.0",
|
|
16
16
|
"react": "^18.2.0",
|
|
17
17
|
"axios": "^0.25.0",
|
|
18
|
-
"@opengeoweb/shared": "4.
|
|
18
|
+
"@opengeoweb/shared": "4.17.0",
|
|
19
19
|
"@mui/material": "^5.10.8",
|
|
20
|
-
"@opengeoweb/theme": "4.
|
|
20
|
+
"@opengeoweb/theme": "4.17.0",
|
|
21
21
|
"react-draggable": "^4.4.5",
|
|
22
22
|
"re-resizable": "^6.9.0",
|
|
23
23
|
"@redux-eggs/core": "^2.2.0",
|
|
24
24
|
"react-redux": "^8.0.4",
|
|
25
25
|
"lodash": "^4.17.20",
|
|
26
26
|
"date-fns": "^2.29.3",
|
|
27
|
-
"@opengeoweb/core": "4.
|
|
27
|
+
"@opengeoweb/core": "4.17.0",
|
|
28
28
|
"moment": "^2.29.0",
|
|
29
|
-
"@opengeoweb/webmap": "4.
|
|
29
|
+
"@opengeoweb/webmap": "4.17.0",
|
|
30
30
|
"throttle-debounce": "^3.0.1",
|
|
31
31
|
"proj4": "^2.6.2",
|
|
32
32
|
"react-intl": "^5.17.5",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"sortablejs": "^1.15.0",
|
|
35
35
|
"immer": "^9.0.15",
|
|
36
36
|
"react-window": "^1.8.7",
|
|
37
|
-
"@opengeoweb/form-fields": "4.
|
|
37
|
+
"@opengeoweb/form-fields": "4.17.0",
|
|
38
38
|
"react-hook-form": "^7.41.5",
|
|
39
39
|
"moment-timezone": "^0.5.31",
|
|
40
40
|
"@mui/x-date-pickers": "^5.0.4",
|
|
41
41
|
"@reduxjs/toolkit": "^1.8.3",
|
|
42
42
|
"lodash.clonedeep": "^4.5.0",
|
|
43
43
|
"@turf/turf": "^5.1.6",
|
|
44
|
+
"react-router-dom": "^6.4.2",
|
|
44
45
|
"@mui/system": "^5.10.8",
|
|
45
46
|
"redux-saga": "^1.2.1",
|
|
46
47
|
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
47
48
|
"@redux-eggs/saga-extension": "^2.2.0",
|
|
48
49
|
"react-dom": "^18.2.0",
|
|
49
|
-
"@opengeoweb/authentication": "4.
|
|
50
|
-
"react-router-dom": "^6.4.2",
|
|
50
|
+
"@opengeoweb/authentication": "4.17.0",
|
|
51
51
|
"query-string": "^6.13.7",
|
|
52
52
|
"@emotion/react": "^11.10.4"
|
|
53
53
|
}
|