{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/micro/issues/104","repository_url":"https://api.github.com/repos/zeit/micro","labels_url":"https://api.github.com/repos/zeit/micro/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/zeit/micro/issues/104/comments","events_url":"https://api.github.com/repos/zeit/micro/issues/104/events","html_url":"https://github.com/zeit/micro/pull/104","id":181870171,"number":104,"title":"Visualises requests when in development.","user":{"login":"rickharrison","id":22048,"avatar_url":"https://avatars.githubusercontent.com/u/22048?v=3","gravatar_id":"","url":"https://api.github.com/users/rickharrison","html_url":"https://github.com/rickharrison","followers_url":"https://api.github.com/users/rickharrison/followers","following_url":"https://api.github.com/users/rickharrison/following{/other_user}","gists_url":"https://api.github.com/users/rickharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/rickharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickharrison/subscriptions","organizations_url":"https://api.github.com/users/rickharrison/orgs","repos_url":"https://api.github.com/users/rickharrison/repos","events_url":"https://api.github.com/users/rickharrison/events{/privacy}","received_events_url":"https://api.github.com/users/rickharrison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-10-09T06:51:51Z","updated_at":"2017-01-08T19:14:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zeit/micro/pulls/104","html_url":"https://github.com/zeit/micro/pull/104","diff_url":"https://github.com/zeit/micro/pull/104.diff","patch_url":"https://github.com/zeit/micro/pull/104.patch"},"body":"I took a stab at visualising requests from #33. The one thing that is a little messy is parsing and displaying the json. I ended up keeping a reference to it on the request since you can only call `getRawBody` once per request.\n\nLet me know your thoughts!\n\n![screen shot 2016-10-08 at 11 51 34 pm](https://cloud.githubusercontent.com/assets/22048/19218565/2c6081ba-8db2-11e6-93df-9e256a8354fb.png)\n"},"comment":{"url":"https://api.github.com/repos/zeit/micro/issues/comments/271172007","html_url":"https://github.com/zeit/micro/pull/104#issuecomment-271172007","issue_url":"https://api.github.com/repos/zeit/micro/issues/104","id":271172007,"user":{"login":"rauchg","id":13041,"avatar_url":"https://avatars.githubusercontent.com/u/13041?v=3","gravatar_id":"","url":"https://api.github.com/users/rauchg","html_url":"https://github.com/rauchg","followers_url":"https://api.github.com/users/rauchg/followers","following_url":"https://api.github.com/users/rauchg/following{/other_user}","gists_url":"https://api.github.com/users/rauchg/gists{/gist_id}","starred_url":"https://api.github.com/users/rauchg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rauchg/subscriptions","organizations_url":"https://api.github.com/users/rauchg/orgs","repos_url":"https://api.github.com/users/rauchg/repos","events_url":"https://api.github.com/users/rauchg/events{/privacy}","received_events_url":"https://api.github.com/users/rauchg/received_events","type":"User","site_admin":false},"created_at":"2017-01-08T19:14:18Z","updated_at":"2017-01-08T19:14:18Z","body":"Also, I have a slightly different take on this now:\r\n\r\n```jsx\r\n{\r\n  \"dependencies\": {\r\n     \"micro\": \"latest\"\r\n  },\r\n  \"devDependencies\": {\r\n     \"micro-dev\": \"latest\"\r\n  }\r\n}\r\n```\r\n\r\n- `micro-dev` would have `micro` in `peerDependencies`, rather than include it. \r\n- It works with the exact same signature as `micro`, but…\r\n- We can add more options related to logging, for example whether to include headers, if you want to log only requests or only responses, etc.\r\n- We get rid of `NODE_ENV` sniffing. If you run `micro-dev`, it logs. \r\n- Works really nicely for `package.json`. `start` can run `micro`, `dev` can run `micro-dev`\r\n\r\nThis way, `micro` remains lean both in download time, LOC/maintainability & performance!"}}
{"actor":{"display_login":"rauchg"}}