mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-11-28 18:28:04 -08:00
update eslint and adjust code for best practices
This commit is contained in:
43 files changed
+2608
-660
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// async https wrapper
|
||||
import https from 'https';
|
||||
import https from 'node:https';
|
||||
|
||||
const get = (url) => new Promise((resolve, reject) => {
|
||||
const getHttps = (url) => new Promise((resolve, reject) => {
|
||||
const headers = {};
|
||||
headers['user-agent'] = '(WeatherStar 4000+ data generator, ws4000@netbymatt.com)';
|
||||
|
||||
@@ -22,4 +22,4 @@ const get = (url) => new Promise((resolve, reject) => {
|
||||
});
|
||||
});
|
||||
|
||||
export default get;
|
||||
export default getHttps;
|
||||
Reference in new issue
Block a user