Skip to content

Commit

Permalink
Removed request lib from mods (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Mar 19, 2024
1 parent b65cc19 commit 10ddb6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ function sandBox(script, name, verbose, debug, context) {
scriptName: name,
instance: adapter.instance,
verbose,
request: mods.request,
exports: {}, // Polyfill for the export object in TypeScript modules
require: function (md) {
if (mods[md]) {
Expand Down
3 changes: 0 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const mods = {
zlib: require('node:zlib'),
suncalc: require('suncalc2'),
axios: require('axios'),
request: require('./lib/request'), // deprecated
wake_on_lan: require('wake_on_lan'),
nodeSchedule: require('node-schedule')
};
Expand Down Expand Up @@ -669,8 +668,6 @@ function startAdapter(options) {
},

ready: () => {
mods.request.setLogger(adapter.log);

adapter.config.maxSetStatePerMinute = parseInt(adapter.config.maxSetStatePerMinute, 10) || 1000;
adapter.config.maxTriggersPerScript = parseInt(adapter.config.maxTriggersPerScript, 10) || 100;

Expand Down

0 comments on commit 10ddb6d

Please sign in to comment.