Closed rgwozdz closed 2 months ago
Latest commit: 05de23ec8a89970ada86931f192b2d9298d789b2
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
File Path | Statements | Branches | Functions | Lines |
---|---|---|---|---|
packages/core/src/data-provider/index.js | 100 vs 100 | 100 vs 100 | 100 vs 100 | 100 vs 100 |
Provider registration allows for the
before
andafter
options; these are functions that can be used to transform the incoming request before it arrives at thegetData
method or transform the geojson after it is passed out of thegetData
method. When originally implemented these methods had to use callback form and they were invalid unless they had two (before function ) and three (after function) arguments. Callback was the last argument for each of course. However, we now allow the use ofasync
and as a result it would be valid if the before function had one arg, and the after had two. This PR removes argument length validation from these function as it doesn't seem worth the complexity.