mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Update lib (#227)
* Update library.js * update imports * update defaults
This commit is contained in:
parent
680916a6db
commit
2ba3df1977
87 changed files with 601 additions and 612 deletions
|
|
@ -5,7 +5,7 @@
|
|||
/* eslint import/no-extraneous-dependencies: 0 */ // --> OFF
|
||||
/* eslint no-console: 0 */ // --> OFF
|
||||
|
||||
const loadDefaultValues = require('../methods/loadDefaultValues');
|
||||
const lib = require('../methods/library');
|
||||
// List any npm dependencies which the plugin needs, they will be auto installed when the plugin runs:
|
||||
module.exports.dependencies = [
|
||||
'import-fresh',
|
||||
|
|
@ -72,7 +72,7 @@ const details = () => ({
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
||||
inputs = loadDefaultValues(inputs, details);
|
||||
inputs = lib.loadDefaultValues(inputs, details);
|
||||
// Only 'require' dependencies within this function or other functions. Do not require in the top scope.
|
||||
const importFresh = require('import-fresh');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue