Use const lib = require('../methods/lib')(); for fresh imports

This commit is contained in:
HaveAGitGat 2021-12-31 16:22:15 +00:00
parent 7bfa40b1f9
commit 3042b35800
87 changed files with 87 additions and 87 deletions

View file

@ -1,4 +1,4 @@
const lib = require('../methods/library');
const lib = require('../methods/lib')();
const details = () => ({
id: 'Tdarr_Plugin_a9he_New_file_size_check',

View file

@ -1,4 +1,4 @@
const lib = require('../methods/library');
const lib = require('../methods/lib')();
const details = () => ({
id: 'Tdarr_Plugin_f001_Filter_Example',

View file

@ -1,4 +1,4 @@
const lib = require('../methods/library');
const lib = require('../methods/lib')();
const details = () => ({
id: 'Tdarr_Plugin_f002_Filter_Example',

View file

@ -5,7 +5,7 @@
/* eslint import/no-extraneous-dependencies: 0 */ // --> OFF
/* eslint no-console: 0 */ // --> OFF
const lib = require('../methods/library');
const lib = require('../methods/lib')();
// List any npm dependencies which the plugin needs, they will be auto installed when the plugin runs:
module.exports.dependencies = [

View file

@ -5,7 +5,7 @@
/* eslint import/no-extraneous-dependencies: 0 */ // --> OFF
/* eslint no-console: 0 */ // --> OFF
const lib = require('../methods/library');
const lib = require('../methods/lib')();
// List any npm dependencies which the plugin needs, they will be auto installed when the plugin runs:
module.exports.dependencies = [
'import-fresh',