You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constructor(obj){Object.assign(this,obj);this._id=String(obj._id);Object.defineProperty(this,"logger",{value: logger.create(`plugins/${this.uuid}`),configurable: false,enumerable: false,writable: false});try{letfile=path.resolve(process.cwd(),"plugins",this.uuid,"package.json");letcontent=fs.readFileSync(file);letjson=JSON.parse(content);Object.defineProperty(this,"package",{value: json,configurable: false,enumerable: false,writable: false,});}catch(err){if(err.code==="ENOENT"){this.logger.warn(err,`package.json for plugin "${this.name}" not found. It may work not properly or breaks something!`);}else{this.logger.warn(err);}}}
Similar to a "node" field in
package.json
.If the backend version does not match then number/semver expression, the plugin is not be loaded.
This all could be done in the
.init
function in plugins. Defined here:backend/components/plugins/class.plugin.js
Lines 42 to 79 in d1edd64
The text was updated successfully, but these errors were encountered: