This is a weird issue, but - if I instantiate Styliner (i.e., var Styliner = require('styliner')) in a Sails project, Sails no longer implements where queries correctly.
I attempted to use Styliner as the inliner for a large and relatively mature API, and it caused this problem, whether instantiated at the top of a module or within a function call. I don't relish attempting to replicate it, but I can do some edit-and-test debugging to try to narrow down precisely where the problem is happening, if there's interest.
In any case, we'll be dropping Styliner in favor of something that doesn't cause wildly unexpected behavior in completely unrelated places.
This is a weird issue, but - if I instantiate Styliner (i.e.,
var Styliner = require('styliner')
) in a Sails project, Sails no longer implementswhere
queries correctly.I attempted to use Styliner as the inliner for a large and relatively mature API, and it caused this problem, whether instantiated at the top of a module or within a function call. I don't relish attempting to replicate it, but I can do some edit-and-test debugging to try to narrow down precisely where the problem is happening, if there's interest.
In any case, we'll be dropping Styliner in favor of something that doesn't cause wildly unexpected behavior in completely unrelated places.