Skip to content

Commit

Permalink
Fix punycode warning
Browse files Browse the repository at this point in the history
#303 Fix punycode warning. Used fix recommended in mathiasbynens/punycode.js#137
  • Loading branch information
dacarson committed Dec 4, 2024
1 parent bcab5aa commit 0a6c1e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,4 @@
## 3.3.6
* The fix in 3.3.4 for tile naming in Home app was not supported with HomeBridge. Add setting of Name property back for HomeBridge compatibility.
* Fix issue with threshold triggers and WeatherUnderground. In 3.3.4, WeatherUnderground API call was modified and incorrectly return values in km, and km/h.
* Fix punycode deprication warning.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* jshint esversion: 6,node: true,-W041: false */
"use strict";

const moduleAlias = require('module-alias');
moduleAlias.addAlias('punycode', 'punycode/');

const weatherunderground = require("./apis/weatherunderground").WundergroundAPI,
openweathermap = require("./apis/openweathermap").OpenWeatherMapAPI,
weewx = require("./apis/weewx").WeewxAPI,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
"underscore": "^1.13.6",
"request": "^2.88.2",
"weather-formulas": "^1",
"node-persist": "^2.1.0"
"node-persist": "^2.1.0",
"module-alias": "^2.2.3"
},
"funding": {
"type": "buymeacoffee",
Expand Down

0 comments on commit 0a6c1e2

Please sign in to comment.