Skip to content

Plugin system bug #1977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
URVL opened this issue Mar 14, 2025 · 0 comments
Open

Plugin system bug #1977

URVL opened this issue Mar 14, 2025 · 0 comments
Labels

Comments

@URVL
Copy link

URVL commented Mar 14, 2025

Impress and Node.js versions

current

Platform

No response

Describe the bug

There is this example of using the plugin: https://github.com/metarhia/Example/blob/master/application/api/geo.1.js

In the plugin source code we see that the plugin returns a function that returns a function. https://github.com/metarhia/metasql/blob/master/lib/plugins/crud.js

However, in the plugin loader, only the first function is called.

const plugin = exports(unit);

this does not allow to load the plugin normally and add the necessary endpoints to the API namespace.
And also the endpoints that should be generated by the plugin in this implementation are not given through api/system/introspect

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response

@URVL URVL added the bug label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant