Comparing version
const { MapAPI } = require('./lib/mapAPI.cjs.js'); | ||
const { MultiplayerAPI } = require('./lib/multiplayerAPI.cjs.js'); | ||
const { GeoAPI } = require('./lib/geoAPI.cjs.js'); | ||
const { WeatherAPI } = require('./lib/weatherAPI.cjs.js'); | ||
module.exports = { | ||
MapAPI, | ||
MultiplayerAPI | ||
MultiplayerAPI, | ||
GeoAPI, | ||
WeatherAPI, | ||
}; |
const aircraftCodes = { | ||
"1": { | ||
"name": "Piper Cub" | ||
}, | ||
"2": { | ||
"name": "Cessna 172" | ||
}, | ||
"3": { | ||
"name": "Alphajet PAF" | ||
}, | ||
"4": { | ||
"name": "Boeing 737-700" | ||
}, | ||
"5": { | ||
"name": "Embraer Phenom 100" | ||
}, | ||
"6": { | ||
"name": "de Havilland DHC6 Twin Otter" | ||
}, | ||
"7": { | ||
"name": " F-16 Fighting Falcon" | ||
}, | ||
"8": { | ||
"name": "Pitts Special S1" | ||
}, | ||
"9": { | ||
"name": "Eurocopter EC135" | ||
}, | ||
"10": { | ||
"name": "Airbus A380" | ||
}, | ||
"11": { | ||
"name": "Alisport Silent 2 Electro" | ||
}, | ||
"12": { | ||
"name": "Pilatus PC-7 Mk-I" | ||
}, | ||
"13": { | ||
"name": "de Havilland Canada DHC-2 Beaver" | ||
}, | ||
"14": { | ||
"name": "Colomban MC-15 Cri-cri" | ||
}, | ||
"15": { | ||
"name": "Lockheed P-38 Lightning F-5B" | ||
}, | ||
"16": { | ||
"name": "Douglas DC-3" | ||
}, | ||
"18": { | ||
"name": "Sukhoi Su-35" | ||
}, | ||
"20": { | ||
"name": "Concorde" | ||
}, | ||
"21": { | ||
"name": "Zlin Z-50" | ||
}, | ||
"22": { | ||
"name": "Cessna 152" | ||
}, | ||
"23": { | ||
"name": "Piper PA-28 161 Warrior II Aerobility" | ||
}, | ||
"24": { | ||
"name": "Airbus A350" | ||
}, | ||
"25": { | ||
"name": "Boeing 777-300ER" | ||
}, | ||
"26": { | ||
"name": "Antonov An-140" | ||
}, | ||
"27": { | ||
"name": "Boeing F/A-18F Super Hornet" | ||
}, | ||
"28": { | ||
"name": "Beechcraft Baron B55" | ||
}, | ||
"31": { | ||
"name": "Potez 25" | ||
}, | ||
"40": { | ||
"name": "Evektor Sportstar" | ||
}, | ||
"41": { | ||
"name": "szd-48-3 Jantar" | ||
}, | ||
"50": { | ||
"name": "Paraglider" | ||
}, | ||
"51": { | ||
"name": "Major Tom (hot air balloon)" | ||
}, | ||
"52": { | ||
"name": "Hughes 269a/TH-55 Osage" | ||
}, | ||
"53": { | ||
"name": "Goat Airchair" | ||
}, | ||
"102": { | ||
"name": "Citroen 2CV" | ||
}, | ||
"103": { | ||
"name": "Wingsuit" | ||
}, | ||
"235": { | ||
"name": "Boeing 787-8" | ||
}, | ||
"236": { | ||
"name": "Embraer E190" | ||
}, | ||
"237": { | ||
"name": "Boeing 767-300ER" | ||
}, | ||
"238": { | ||
"name": "Boeing 757-200" | ||
}, | ||
"239": { | ||
"name": "Airbus A350-900" | ||
}, | ||
"240": { | ||
"name": "Boeing 777-300ER" | ||
}, | ||
"242": { | ||
"name": "Airbus A321neo" | ||
}, | ||
"244": { | ||
"name": "Airbus A330-300" | ||
}, | ||
"247": { | ||
"name": "Bombardier Dash 8 Q400" | ||
}, | ||
"252": { | ||
"name": "Boeing 747-8 Freighter" | ||
}, | ||
"1000": { | ||
"name": "Unkown" | ||
}, | ||
"1001": { | ||
"name": "Boeing 73x" | ||
}, | ||
"1002": { | ||
"name": "Boeing 74x" | ||
}, | ||
"1003": { | ||
"name": "Boeing 75x" | ||
}, | ||
"1004": { | ||
"name": "Boeing 76x" | ||
}, | ||
"1005": { | ||
"name": "Boeing 77x" | ||
}, | ||
"1006": { | ||
"name": "Boeing 78x" | ||
}, | ||
"1007": { | ||
"name": "Airbus A31x" | ||
}, | ||
"1008": { | ||
"name": "Airbus A32x" | ||
}, | ||
"1009": { | ||
"name": "Airbus A33x" | ||
}, | ||
"1010": { | ||
"name": "Airbus A34x" | ||
}, | ||
"1011": { | ||
"name": "Airbus A35x" | ||
}, | ||
"1012": { | ||
"name": "Airbus A380" | ||
}, | ||
"1013": { | ||
"name": "ATR42" | ||
}, | ||
"1014": { | ||
"name": "BAE146" | ||
}, | ||
"1015": { | ||
"name": "CRJ 700" | ||
}, | ||
"1016": { | ||
"name": "CRJ 900" | ||
}, | ||
"1017": { | ||
"name": "Embraer 170" | ||
}, | ||
"1018": { | ||
"name": "Embraer 190" | ||
}, | ||
"1019": { | ||
"name": "Piper PA-28" | ||
}, | ||
"1020": { | ||
"name": "Dash 8" | ||
}, | ||
"1021": { | ||
"name": "Cessna Citation" | ||
}, | ||
"1022": { | ||
"name": "Cessna" | ||
}, | ||
"1023": { | ||
"name": "MD11" | ||
}, | ||
"1024": { | ||
"name": "Mirage 2000" | ||
}, | ||
"1025": { | ||
"name": "Helicopter" | ||
}, | ||
"1026": { | ||
"name": "Cirrus SR22" | ||
}, | ||
"1027": { | ||
"name": "Ground Vehicle" | ||
}, | ||
"1069": { | ||
"name": "Cirrus SR22 GTS Turbo" | ||
}, | ||
"2000": { | ||
"name": "Retro 172" | ||
}, | ||
"2003": { | ||
"name": "Boeing 737-800" | ||
}, | ||
"2004": { | ||
"name": "CRJ-900" | ||
}, | ||
"2153": { | ||
"name": "Airbus A340-600" | ||
}, | ||
"2310": { | ||
"name": "A-10C Thunderbolt II" | ||
}, | ||
"2364": { | ||
"name": "Lockheed SR-71A Blackbird" | ||
}, | ||
"2386": { | ||
"name": "Boeing 787-9 Dreamliner" | ||
}, | ||
"2395": { | ||
"name": "BAe 146-300/Avro RJ100" | ||
}, | ||
"2418": { | ||
"name": "ATR 72-600 (HOP!)" | ||
}, | ||
"2420": { | ||
"name": "ATR 72-600 (Silver)" | ||
}, | ||
"2426": { | ||
"name": "ATR 72-600 (UTair)" | ||
}, | ||
"2461": { | ||
"name": "Cirrus Vision Jet/SF50 G2" | ||
}, | ||
"2556": { | ||
"name": "Northrop Grumman B-2 Spirit" | ||
}, | ||
"2581": { | ||
"name": "F-14B Tomcat " | ||
}, | ||
"2700": { | ||
"name": "Embraer ERJ-195AR (Breeze)" | ||
}, | ||
"2706": { | ||
"name": "Bombardier CRJ 200" | ||
}, | ||
"2726": { | ||
"name": "Scaled 339 \"SpaceShipTwo\"" | ||
}, | ||
"2750": { | ||
"name": "Caproni Stipa" | ||
}, | ||
"2752": { | ||
"name": "Scaled 348 \"WhiteKnightTwo\"" | ||
}, | ||
"2769": { | ||
"name": "Boeing 737 Max 8 (TUI)" | ||
}, | ||
"2772": { | ||
"name": "Boeing 737 Max 8 (SpiceJet)" | ||
}, | ||
"2786": { | ||
"name": "Grumman JF2-5 Duck" | ||
}, | ||
"2788": { | ||
"name": "Antonov An-225 Mriya" | ||
}, | ||
"2806": { | ||
"name": "Sikorsky S-97 Raider" | ||
}, | ||
"2808": { | ||
"name": "Supermarine Spitfire Mk XIV" | ||
}, | ||
"2840": { | ||
"name": "Bell UH-1H Iroquois" | ||
}, | ||
"2843": { | ||
"name": "Airbus A220-300 (Air Tanzania)" | ||
}, | ||
"2844": { | ||
"name": "Falcon 9" | ||
}, | ||
"2852": { | ||
"name": "Cameron R-650 Rozière Balloon" | ||
}, | ||
"2856": { | ||
"name": "Airbus a330-200" | ||
}, | ||
"2857": { | ||
"name": "F-22 Raptor" | ||
}, | ||
"2864": { | ||
"name": "AgustaWestland AW609" | ||
}, | ||
"2865": { | ||
"name": "Airbus a320neo(Air India)" | ||
}, | ||
"2870": { | ||
"name": "Airbus a320neo (Flynas)" | ||
}, | ||
"2871": { | ||
"name": "Airbus a320neo (Iberia)" | ||
}, | ||
"2878": { | ||
"name": "Airbus A319 (Air China)" | ||
}, | ||
"2879": { | ||
"name": "Airbus A319 (Finnair) " | ||
}, | ||
"2892": { | ||
"name": "SAAB 340" | ||
}, | ||
"2899": { | ||
"name": "Airbus A220-300 (Swiss)" | ||
}, | ||
"2943": { | ||
"name": "Embraer EMB120 Brasillia " | ||
}, | ||
"2948": { | ||
"name": "(JAaMDG) North American XB-70 Valkyrie" | ||
}, | ||
"2951": { | ||
"name": "Airbus a340-300" | ||
}, | ||
"2953": { | ||
"name": "Starship SN5 (Temporary)" | ||
}, | ||
"2968": { | ||
"name": "Windward Performance Perlan II" | ||
}, | ||
"2973": { | ||
"name": "Airbus A350-1000 XWB" | ||
}, | ||
"2976": { | ||
"name": "Pilatus PC12" | ||
}, | ||
"2988": { | ||
"name": "(TBSG, GeoAD) North American X-15" | ||
}, | ||
"2989": { | ||
"name": "MQ9B Reaper" | ||
}, | ||
"3011": { | ||
"name": "Boeing 737 Max 8 (Norwegian)" | ||
}, | ||
"3036": { | ||
"name": "Embraer E195-E2" | ||
}, | ||
"3049": { | ||
"name": "Lockheed Martin P-791 (LMH-1)" | ||
}, | ||
"3054": { | ||
"name": "Boeing 737-800 [Spice9]" | ||
}, | ||
"3109": { | ||
"name": "Pilatus PC24" | ||
}, | ||
"3140": { | ||
"name": "Airbus A319 (United)" | ||
}, | ||
"3179": { | ||
"name": "Boeing 787-10 Dreamliner (British Airways)" | ||
}, | ||
"3180": { | ||
"name": "Boeing 787-10 Dreamliner (Etihad)" | ||
}, | ||
"3211": { | ||
"name": "UTVA75" | ||
}, | ||
"3289": { | ||
"name": "Dornier 228-200" | ||
}, | ||
"3292": { | ||
"name": "Boeing p8I Neptune" | ||
}, | ||
"3307": { | ||
"name": "Bombardier CRJ-700" | ||
}, | ||
"3341": { | ||
"name": "Embraer ERJ-170" | ||
}, | ||
"3436": { | ||
"name": "Dornier do228-100 (Coast Gaurd)" | ||
}, | ||
"3460": { | ||
"name": "Grumman E-2C Hawkeye" | ||
}, | ||
"3534": { | ||
"name": "airbus a320-214(Easyjet)" | ||
}, | ||
"3575": { | ||
"name": " Boeing 787-9[Spice9]" | ||
}, | ||
"3591": { | ||
"name": "F-15C Eagle" | ||
}, | ||
"3617": { | ||
"name": "Dassault Mirage 2000-5" | ||
}, | ||
"4017": { | ||
"name": "Embraer ERJ145LR (by Spice 9) &" | ||
}, | ||
"4090": { | ||
"name": "Robinson R-44" | ||
}, | ||
"4140": { | ||
"name": "Boeing 737-200" | ||
}, | ||
"4197": { | ||
"name": "Robinson R22" | ||
}, | ||
"4251": { | ||
"name": "Chance Vought F4U-1D Corsair" | ||
}, | ||
"4341": { | ||
"name": "Spirit of St louis" | ||
}, | ||
"4390": { | ||
"name": "Piper PA-28 Floatplane" | ||
}, | ||
"4398": { | ||
"name": "Britten-Norman BN-2 Islander (Loganair)" | ||
}, | ||
"4401": { | ||
"name": "Britten-Norman BN-2 Islander (St. Barth Commuter)" | ||
}, | ||
"4402": { | ||
"name": "Boeing 777 Freighter" | ||
}, | ||
"4409": { | ||
"name": "Zenith Stol CH701" | ||
}, | ||
"4596": { | ||
"name": "Vans RV6" | ||
}, | ||
"4631": { | ||
"name": "Airbus A330-900neo (Virgin Atlantic)" | ||
}, | ||
"4646": { | ||
"name": "Airbus a321neo (spice9)" | ||
}, | ||
"4743": { | ||
"name": "Boeing 757-300" | ||
}, | ||
"4745": { | ||
"name": "Boeing 757-300wl" | ||
}, | ||
"4764": { | ||
"name": "Boeing 767-400" | ||
}, | ||
"4949": { | ||
"name": "Goodyear Blimp" | ||
}, | ||
"5038": { | ||
"name": "Lockheed L-1011-1" | ||
}, | ||
"5061": { | ||
"name": "Sonex-B Kit (Jabiru 3300)" | ||
}, | ||
"5073": { | ||
"name": "Bombardier Learjet 45 XR" | ||
}, | ||
"5086": { | ||
"name": "Airbus a321-211 " | ||
}, | ||
"5156": { | ||
"name": "Airbus a318-112 by Luca &" | ||
}, | ||
"5193": { | ||
"name": "Boeing 747-8i" | ||
}, | ||
"5203": { | ||
"name": "Boeing 737-600 by Luca &" | ||
}, | ||
"5229": { | ||
"name": "F-35B Lightning II" | ||
} | ||
} | ||
module.exports = { aircraftCodes }; | ||
1: "Piper Cub", | ||
2: "Cessna 172", | ||
3: "Alphajet PAF", | ||
4: "Boeing 737-700", | ||
5: "Embraer Phenom 100", | ||
6: "de Havilland DHC6 Twin Otter", | ||
7: " F-16 Fighting Falcon", | ||
8: "Pitts Special S1", | ||
9: "Eurocopter EC135", | ||
10: "Airbus A380", | ||
11: "Alisport Silent 2 Electro", | ||
12: "Pilatus PC-7 Mk-I", | ||
13: "de Havilland Canada DHC-2 Beaver", | ||
14: "Colomban MC-15 Cri-cri", | ||
15: "Lockheed P-38 Lightning F-5B", | ||
16: "Douglas DC-3", | ||
18: "Sukhoi Su-35", | ||
20: "Concorde", | ||
21: "Zlin Z-50", | ||
22: "Cessna 152", | ||
23: "Piper PA-28 161 Warrior II Aerobility", | ||
24: "Airbus A350", | ||
25: "Boeing 777-300ER", | ||
26: "Antonov An-140", | ||
27: "Boeing F/A-18F Super Hornet", | ||
28: "Beechcraft Baron B55", | ||
31: "Potez 25", | ||
40: "Evektor Sportstar", | ||
41: "szd-48-3 Jantar", | ||
50: "Paraglider", | ||
51: "Major Tom (hot air balloon)", | ||
52: "Hughes 269a/TH-55 Osage", | ||
53: "Goat Airchair", | ||
102: "Citroen 2CV", | ||
103: "Wingsuit", | ||
235: "Boeing 787-8", | ||
236: "Embraer E190", | ||
237: "Boeing 767-300ER", | ||
238: "Boeing 757-200", | ||
239: "Airbus A350-900", | ||
240: "Boeing 777-300ER", | ||
242: "Airbus A321neo", | ||
244: "Airbus A330-300", | ||
247: "Bombardier Dash 8 Q400", | ||
252: "Boeing 747-8 Freighter", | ||
1000: "Unkown", | ||
1001: "Boeing 73x", | ||
1002: "Boeing 74x", | ||
1003: "Boeing 75x", | ||
1004: "Boeing 76x", | ||
1005: "Boeing 77x", | ||
1006: "Boeing 78x", | ||
1007: "Airbus A31x", | ||
1008: "Airbus A32x", | ||
1009: "Airbus A33x", | ||
1010: "Airbus A34x", | ||
1011: "Airbus A35x", | ||
1012: "Airbus A380", | ||
1013: "ATR42", | ||
1014: "BAE146", | ||
1015: "CRJ 700", | ||
1016: "CRJ 900", | ||
1017: "Embraer 170", | ||
1018: "Embraer 190", | ||
1019: "Piper PA-28", | ||
1020: "Dash 8", | ||
1021: "Cessna Citation", | ||
1022: "Cessna", | ||
1023: "MD11", | ||
1024: "Mirage 2000", | ||
1025: "Helicopter", | ||
1026: "Cirrus SR22", | ||
1027: "Ground Vehicle", | ||
1069: "Cirrus SR22 GTS Turbo", | ||
2000: "Retro 172", | ||
2003: "Boeing 737-800", | ||
2004: "CRJ-900", | ||
2153: "Airbus A340-600", | ||
2310: "A-10C Thunderbolt II", | ||
2364: "Lockheed SR-71A Blackbird", | ||
2386: "Boeing 787-9 Dreamliner", | ||
2395: "BAe 146-300/Avro RJ100", | ||
2418: "ATR 72-600 (HOP!)", | ||
2420: "ATR 72-600 (Silver)", | ||
2426: "ATR 72-600 (UTair)", | ||
2461: "Cirrus Vision Jet/SF50 G2", | ||
2556: "Northrop Grumman B-2 Spirit", | ||
2581: "F-14B Tomcat ", | ||
2700: "Embraer ERJ-195AR (Breeze)", | ||
2706: "Bombardier CRJ 200", | ||
2726: 'Scaled 339 "SpaceShipTwo"', | ||
2750: "Caproni Stipa", | ||
2752: 'Scaled 348 "WhiteKnightTwo"', | ||
2769: "Boeing 737 Max 8 (TUI)", | ||
2772: "Boeing 737 Max 8 (SpiceJet)", | ||
2786: "Grumman JF2-5 Duck", | ||
2788: "Antonov An-225 Mriya", | ||
2806: "Sikorsky S-97 Raider", | ||
2808: "Supermarine Spitfire Mk XIV", | ||
2840: "Bell UH-1H Iroquois", | ||
2843: "Airbus A220-300 (Air Tanzania)", | ||
2844: "Falcon 9", | ||
2852: "Cameron R-650 Rozière Balloon", | ||
2856: "Airbus a330-200", | ||
2857: "F-22 Raptor", | ||
2864: "AgustaWestland AW609", | ||
2865: "Airbus a320neo(Air India)", | ||
2870: "Airbus a320neo (Flynas)", | ||
2871: "Airbus a320neo (Iberia)", | ||
2878: "Airbus A319 (Air China)", | ||
2879: "Airbus A319 (Finnair) ", | ||
2892: "SAAB 340", | ||
2899: "Airbus A220-300 (Swiss)", | ||
2943: "Embraer EMB120 Brasillia ", | ||
2948: "(JAaMDG) North American XB-70 Valkyrie", | ||
2951: "Airbus a340-300", | ||
2953: "Starship SN5 (Temporary)", | ||
2968: "Windward Performance Perlan II", | ||
2973: "Airbus A350-1000 XWB", | ||
2976: "Pilatus PC12", | ||
2988: "(TBSG, GeoAD) North American X-15", | ||
2989: "MQ9B Reaper", | ||
3011: "Boeing 737 Max 8 (Norwegian)", | ||
3036: "Embraer E195-E2", | ||
3049: "Lockheed Martin P-791 (LMH-1)", | ||
3054: "Boeing 737-800 [Spice9]", | ||
3109: "Pilatus PC24", | ||
3140: "Airbus A319 (United)", | ||
3179: "Boeing 787-10 Dreamliner (British Airways)", | ||
3180: "Boeing 787-10 Dreamliner (Etihad)", | ||
3211: "UTVA75", | ||
3289: "Dornier 228-200", | ||
3292: "Boeing p8I Neptune", | ||
3307: "Bombardier CRJ-700", | ||
3341: "Embraer ERJ-170", | ||
3436: "Dornier do228-100 (Coast Gaurd)", | ||
3460: "Grumman E-2C Hawkeye", | ||
3534: "airbus a320-214(Easyjet)", | ||
3575: " Boeing 787-9[Spice9]", | ||
3591: "F-15C Eagle", | ||
3617: "Dassault Mirage 2000-5", | ||
4017: "Embraer ERJ145LR (by Spice 9) &", | ||
4090: "Robinson R-44", | ||
4140: "Boeing 737-200", | ||
4197: "Robinson R22", | ||
4251: "Chance Vought F4U-1D Corsair", | ||
4341: "Spirit of St louis", | ||
4390: "Piper PA-28 Floatplane", | ||
4398: "Britten-Norman BN-2 Islander (Loganair)", | ||
4401: "Britten-Norman BN-2 Islander (St. Barth Commuter)", | ||
4402: "Boeing 777 Freighter", | ||
4409: "Zenith Stol CH701", | ||
4596: "Vans RV6", | ||
4631: "Airbus A330-900neo (Virgin Atlantic)", | ||
4646: "Airbus a321neo (spice9)", | ||
4743: "Boeing 757-300", | ||
4745: "Boeing 757-300wl", | ||
4764: "Boeing 767-400", | ||
4949: "Goodyear Blimp", | ||
5038: "Lockheed L-1011-1", | ||
5061: "Sonex-B Kit (Jabiru 3300)", | ||
5073: "Bombardier Learjet 45 XR", | ||
5086: "Airbus a321-211 ", | ||
5156: "Airbus a318-112 by Luca &", | ||
5193: "Boeing 747-8i", | ||
5203: "Boeing 737-600 by Luca &", | ||
5229: "F-35B Lightning II", | ||
}; | ||
module.exports = aircraftCodes; |
@@ -10,13 +10,6 @@ const aircraftCodes = require("./data/aircraftCodes.cjs.js"); | ||
const id = userobj["ac"]; | ||
try { | ||
this.aircraft = { | ||
type: aircraftCodes[id], | ||
id, | ||
}; | ||
} catch (_) { | ||
this.aircraft = { | ||
type: "Unknown", | ||
id, | ||
}; | ||
} | ||
this.aircraft = { | ||
type: aircraftCodes[id] ?? "Unknown", | ||
id, | ||
}; | ||
} | ||
@@ -38,18 +31,19 @@ } | ||
})).json() | ||
, userList = []; | ||
if (foos == !1) { | ||
, userList = [] | ||
, type = typeof foos; | ||
if (type != 'boolean' && type != 'undefined') throw new TypeError('"foos" attribute must be boolean or undefined'); | ||
if (foos === !1) { | ||
for (const u of response.users) { | ||
if (!u) continue; | ||
if (u.cs == "Foo" || u.cs == "") continue; | ||
userList.push(new Player(u)); | ||
} | ||
} else if (foos == !0) { | ||
} else if (foos === !0) { | ||
for (const u of response.users) { | ||
if (!u) continue; | ||
if (u.cs != "Foo") continue; | ||
userList.push(new Player(u)); | ||
} | ||
} else if (foos == null) { | ||
for (const u of response.users) userList.push(new Player(u)); | ||
} else { | ||
throw new TypeError('"foos" attribute must be boolean or null'); | ||
} else if (foos === undefined) { | ||
for (const u of response.users) u != null && userList.push(new Player(u)); | ||
} | ||
@@ -67,11 +61,9 @@ if (this._utilizeResponseList === true) this._responseList.push(userList); | ||
; | ||
returnResponseList (reset) { | ||
if (typeof reset != 'boolean') throw new TypeError('"reset" parameter must be a boolean'); | ||
let before; | ||
return reset ? (before = this._responseList, this._responseList = [], before) : this._responseList; | ||
} | ||
; | ||
disableResponseList () { this._utilizeResponseList = !1 }; | ||
enableResponseList () { this._utilizeResponseList = !0 }; | ||
toggleResponseList () { this._utilizeResponseList = !this._utilizeResponseList }; | ||
responseList = { | ||
getList: () => { return this._responseList }, | ||
reset: () => { this._responseList = [] }, | ||
disable: () => { this._utilizeResponseList = !1 }, | ||
enable: () => { this._utilizeResponseList = !0 }, | ||
toggle: () => { this._utilizeResponseList = !this._utilizeResponseList }, | ||
}; | ||
} | ||
@@ -78,0 +70,0 @@ |
@@ -94,6 +94,7 @@ class MultiplayerAPI { | ||
/** | ||
* @param {number[]} coords | ||
* @param {number[]|undefined} coords | ||
*/ | ||
set coords(coords) { | ||
if (!coords || !Array.isArray(coords)) throw new TypeError('"coords" parameter must be an Array'); | ||
coords(coords) { | ||
if (coords === undefined) return this._coords; | ||
if (!Array.isArray(coords)) throw new TypeError('"coords" parameter must be an Array'); | ||
if (coords.length != 6) throw new TypeError('"coords" must be an array with 6 elements'); | ||
@@ -100,0 +101,0 @@ this._coords = coords; |
{ | ||
"name": "js-geofs", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "An abstraction layer for the GeoFS API (credit to iL0g1c).", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
14
55.56%1
-50%157
Infinity%30429
-10.02%783
-42.72%2
100%