fvtt-lib-wrapper icon indicating copy to clipboard operation
fvtt-lib-wrapper copied to clipboard

Library for Foundry VTT which provides module developers with a simple way to modify core Foundry VTT code, while reducing the likelihood of conflict with other modules.

Results 10 fvtt-lib-wrapper issues
Sort by recently updated
recently updated
newest added

Inspired by some modules like [Mess](https://github.com/Moerill/Mess) which patch methods [using a regex](https://github.com/Moerill/Mess/blob/master/src/scripts/modify-templates.js#L6-L62), I have been wondering about standardising an API to do this officially supported by libWrapper, and that attempts...

enhancement

Right now, libWrapper does not support wrapping constructors. Some investigation should be done as to whether this is actually feasible, and if so we should implement this. Something like [patchwork.js](https://github.com/jamesallardice/patchwork.js)...

enhancement

LibWrapper should detect that the user has passed unknown paramets (e.g. unknown `options`), and warn the user that a given module might not be fully compatible with the current version...

enhancement

Because generator functions are synctactic sugar around a `Generator` factory, trying to wrap a generator the naive way will trigger a libWrapper exception: ````js game.generatorFn = function*(...args) { yield args[0];...

enhancement

Right now, libWrapper only has global toggles to disable all notifications related to detected conflicts. Sometimes, conflicts are expected and known by a module dev or the user, and they...

enhancement

As it stands, modules are unable to signal a desired prioritization other than "WRAPPER", "MIXED", and "OVERRIDE". A suggestion that has come my way is to add optional `before` and...

enhancement

The module should be updated to use Manifest+ https://foundryvtt.wiki/en/development/manifest-plus This includes having `"library": true`, to get libWrapper to load before non-library code in 0.8.x.

enhancement

It might be useful for modules to be able to query the current priorities, or request a list of modules that is higher/lower priority than them. Unsure how to handle...

enhancement

Currently, the test suite uses `tape` but does not measure code coverage. We could potentially switch to [node-tap](https://www.npmjs.com/package/tap) which has native coverage support, although it seems it depends on `nyc`...

enhancement

⚠ Do not open a support ticket using this form unless you are a **package developer**. We also do not provide support for packages that promote or otherwise endorse piracy....

question