From 10ddb6d883b6be3173f6741ab042f9366fb2a768 Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Tue, 19 Mar 2024 20:06:44 +0100 Subject: [PATCH] Removed request lib from mods (deprecated) --- lib/sandbox.js | 1 - main.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/sandbox.js b/lib/sandbox.js index 3962e2e97..7e06a0c49 100644 --- a/lib/sandbox.js +++ b/lib/sandbox.js @@ -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]) { diff --git a/main.js b/main.js index 99d4e8dac..fd13c1c4f 100644 --- a/main.js +++ b/main.js @@ -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') }; @@ -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;