Closed epoberezkin closed 9 years ago
Ok, I'll add this in the next release.
great, thanks
Should be there, can you test it and let me know if it works for you? How important is the order of the matches? (because right now matches are sorted to ensure consistency)
Works beautifully, I replaced :) Thank you! https://github.com/epoberezkin/ajv/commit/73b21e0383cc4efd20567b28e27992685e5b2748
Because maps are not ordered and it would be good to retain the order of files returned by glob. At the moment I either have to convert the hash to array (with no guarantee of having the same order) or to provide a custom function.
Instead of hash it would return the array of objects with properties, for example, "name" and "module".