utm-params icon indicating copy to clipboard operation
utm-params copied to clipboard

Component-querystring integration breaks on node.js/server-side usage

Open kylehotchkiss opened this issue 7 years ago • 1 comments

https://github.com/component/querystring/issues/15

The component-querystring package has a quirk that breaks the utm-params package in node.js due to how they use the browser param in package.json. Is it possible to remove this dependency in favor of Node.js built-in querystring parser?

kylehotchkiss avatar Apr 24 '18 20:04 kylehotchkiss

My fix for this is to add this to package.json for whatever project is using utm-params:

"postinstall": "sed -i '' '7s/.*/var type = require(\"component-type\");/' node_modules/component-querystring/index.js"

kylehotchkiss avatar Jun 21 '18 19:06 kylehotchkiss