XrmDefinitelyTyped
XrmDefinitelyTyped copied to clipboard
Make xrmquery javascript exportable in nodejs
Is your feature request related to a problem? Please describe. I want to use xrmquery code in node tests, but there is no way to extract namespaces from it without patching it.
Describe the solution you'd like I patched it with this code, but there might be a more sophisticated way:
if (module && module.exports) {
module.exports.XrmQuery = XrmQuery;
module.exports.XQW = XQW;
module.exports.Filter = Filter;
}
Describe alternatives you've considered Alternative is to patch it or pass through bundler, which takes a toll on how fast the tests are executed.