{"action":"created","issue":{"url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/12","repository_url":"https://api.github.com/repos/rstiller/inspector-metrics","labels_url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/12/comments","events_url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/12/events","html_url":"https://github.com/rstiller/inspector-metrics/issues/12","id":384908100,"node_id":"MDU6SXNzdWUzODQ5MDgxMDA=","number":12,"title":"Use peer dependencies in \"plugins\"","user":{"login":"doubret","id":8885703,"node_id":"MDQ6VXNlcjg4ODU3MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/8885703?v=4","gravatar_id":"","url":"https://api.github.com/users/doubret","html_url":"https://github.com/doubret","followers_url":"https://api.github.com/users/doubret/followers","following_url":"https://api.github.com/users/doubret/following{/other_user}","gists_url":"https://api.github.com/users/doubret/gists{/gist_id}","starred_url":"https://api.github.com/users/doubret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doubret/subscriptions","organizations_url":"https://api.github.com/users/doubret/orgs","repos_url":"https://api.github.com/users/doubret/repos","events_url":"https://api.github.com/users/doubret/events{/privacy}","received_events_url":"https://api.github.com/users/doubret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T17:33:02Z","updated_at":"2018-11-28T06:42:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"inspector-influx, inspector-elasticsearch, etc... and inspector-vm should declare inspector-metrics as peer dependencies.\r\n\r\nnot doing causes a lot of troubles when trying to use `instanceof` in the code (this is the cas in inspector-elasticsearch for example).\r\n\r\nas there are multiple inspector-metrics modules loaded by node, `instanceof` is \"confused\" and doesn't match the types as expected."},"comment":{"url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/comments/442337683","html_url":"https://github.com/rstiller/inspector-metrics/issues/12#issuecomment-442337683","issue_url":"https://api.github.com/repos/rstiller/inspector-metrics/issues/12","id":442337683,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjMzNzY4Mw==","user":{"login":"rstiller","id":1257853,"node_id":"MDQ6VXNlcjEyNTc4NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1257853?v=4","gravatar_id":"","url":"https://api.github.com/users/rstiller","html_url":"https://github.com/rstiller","followers_url":"https://api.github.com/users/rstiller/followers","following_url":"https://api.github.com/users/rstiller/following{/other_user}","gists_url":"https://api.github.com/users/rstiller/gists{/gist_id}","starred_url":"https://api.github.com/users/rstiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstiller/subscriptions","organizations_url":"https://api.github.com/users/rstiller/orgs","repos_url":"https://api.github.com/users/rstiller/repos","events_url":"https://api.github.com/users/rstiller/events{/privacy}","received_events_url":"https://api.github.com/users/rstiller/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T06:42:55Z","updated_at":"2018-11-28T06:42:55Z","author_association":"OWNER","body":"I'll update the repositories accordingly. Unfortunately I can't merge your pull requests for this topic. Both of them use different package names. I'll publish new versions this afternoon. Sorry for the delay and thanks for pointing out the issue."}}
{"actor":{"display_login":"rstiller"}}