Skip to content
Snippets Groups Projects
Verified Commit 079ad11b authored by David Hoese's avatar David Hoese
Browse files

Fix wind direction handling NaN values

parent 734af097
Branches develop master
No related tags found
No related merge requests found
Pipeline #59138 passed
{
"ignore": [
"node_modules/*"
]
}
> 0.25%
not dead
\ No newline at end of file
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": "3.22"
}
]
]
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -5,32 +5,31 @@
"main": "tower/API.js",
"dependencies": {
"event-emitter": "^0.3.5",
"flux": "^3.1.3",
"html2canvas": "^1.0.0-rc.3",
"jquery": "^3.4.0",
"flux": "^4.0.4",
"html2canvas": "^1.4.1",
"jquery": "^3.7.1",
"jquery-timepicker": "^1.3.3",
"react": "^16.8.6",
"underscore": "^1.9.1"
"node": "^23.11.0",
"react": "^16.14.0",
"underscore": "^1.13.7"
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-es2015": "^6.24.1",
"jsdoc": "^3.6.3",
"@babel/core": "^7.26.10",
"@babel/preset-env": "^7.26.9",
"babel-loader": "^10.0.0",
"jsdoc": "^4.0.4",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.6.0",
"raw-loader": "^2.0.0",
"rimraf": "^2.6.3",
"npm-watch": "^0.13.0",
"raw-loader": "^4.0.2",
"rimraf": "^5.0.10",
"source-map-loader": "^0.2.4",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0"
"terser-webpack-plugin": "^5.3.14",
"webpack": "^5.99.6",
"webpack-cli": "^6.0.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"babel": "babel --ignore 'node_modules/*' --presets es2015 controller.js -o build/main.bundle.js",
"babel": "babel --ignore 'node_modules/*' --presets env controller.js -o build/main.bundle.js",
"start": "http-server",
"webpack": "webpack",
"watch": "npm-run-all -p watch:*",
......
......@@ -69,7 +69,9 @@ function getAccumMillimeterToInches(val) {
function cardinalWDir(degrees){
if (isNaN(degrees)) {
return "N/A";
}
return ['N','NNE','NE','ENE',
'E','ESE','SE','SSE',
'S','SSW','SW','WSW',
......
var path = require('path');
var webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require("terser-webpack-plugin");
var PROD = (process.env.NODE_ENV === 'production');
var DEV_PLUGINS = PROD ? [
new UglifyJSPlugin()
] : [];
module.exports = {
entry: './controller.js',
......@@ -22,7 +19,7 @@
{
loader: 'babel-loader',
options: {
presets: ['es2015'],
presets: ['@babel/preset-env'],
}
}
]
......@@ -37,6 +34,7 @@
},
devtool: 'source-map',
optimization: {
minimizer: DEV_PLUGINS
minimizer: [new TerserPlugin()],
minimize: true,
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment