{"action":"created","issue":{"url":"https://api.github.com/repos/Zooz/requestxn/issues/7","repository_url":"https://api.github.com/repos/Zooz/requestxn","labels_url":"https://api.github.com/repos/Zooz/requestxn/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Zooz/requestxn/issues/7/comments","events_url":"https://api.github.com/repos/Zooz/requestxn/issues/7/events","html_url":"https://github.com/Zooz/requestxn/issues/7","id":355225188,"node_id":"MDU6SXNzdWUzNTUyMjUxODg=","number":7,"title":"compatibility issue with request-promise: nested defaults are not supported.","user":{"login":"markstos","id":25829,"node_id":"MDQ6VXNlcjI1ODI5","avatar_url":"https://avatars1.githubusercontent.com/u/25829?v=4","gravatar_id":"","url":"https://api.github.com/users/markstos","html_url":"https://github.com/markstos","followers_url":"https://api.github.com/users/markstos/followers","following_url":"https://api.github.com/users/markstos/following{/other_user}","gists_url":"https://api.github.com/users/markstos/gists{/gist_id}","starred_url":"https://api.github.com/users/markstos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstos/subscriptions","organizations_url":"https://api.github.com/users/markstos/orgs","repos_url":"https://api.github.com/users/markstos/repos","events_url":"https://api.github.com/users/markstos/events{/privacy}","received_events_url":"https://api.github.com/users/markstos/received_events","type":"User","site_admin":false},"labels":[{"id":797336885,"node_id":"MDU6TGFiZWw3OTczMzY4ODU=","url":"https://api.github.com/repos/Zooz/requestxn/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-29T15:52:06Z","updated_at":"2019-01-03T10:40:51Z","closed_at":"2019-01-03T10:40:51Z","author_association":"CONTRIBUTOR","body":"This works with `request.promise`:\r\n\r\n```javascript\r\nvar rp = require('request-promise')\r\nvar r1 = rp.defaults({json:true})\r\nvar r2 = r2.defaults({ baseUrl: \"http://localhost\" })\r\n```\r\nBut not with `requestxn`:\r\n\r\n```\r\nvar rtxn = require('requestxn');\r\nvar rt1 = rtxn.defaults({json:true});\r\nvar rt2 = rt1.defaults({ baseUrl: \"http://localhost\" })\r\nTypeError: rt1.defaults is not a function\r\n```\r\n\r\nThe case of \"double defaults\" comes up with a module defines it's own defaults, but also allows you to pass in your own request object which may also have defaults. The `node-strava-v3` module works like this.\r\n\r\nIt would be a welcome addition of `requesttxn` matched the `request-promise` behavior here. \r\n\r\nThanks.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Zooz/requestxn/issues/comments/451108176","html_url":"https://github.com/Zooz/requestxn/issues/7#issuecomment-451108176","issue_url":"https://api.github.com/repos/Zooz/requestxn/issues/7","id":451108176,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTEwODE3Ng==","user":{"login":"kobik","id":1156327,"node_id":"MDQ6VXNlcjExNTYzMjc=","avatar_url":"https://avatars3.githubusercontent.com/u/1156327?v=4","gravatar_id":"","url":"https://api.github.com/users/kobik","html_url":"https://github.com/kobik","followers_url":"https://api.github.com/users/kobik/followers","following_url":"https://api.github.com/users/kobik/following{/other_user}","gists_url":"https://api.github.com/users/kobik/gists{/gist_id}","starred_url":"https://api.github.com/users/kobik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobik/subscriptions","organizations_url":"https://api.github.com/users/kobik/orgs","repos_url":"https://api.github.com/users/kobik/repos","events_url":"https://api.github.com/users/kobik/events{/privacy}","received_events_url":"https://api.github.com/users/kobik/received_events","type":"User","site_admin":false},"created_at":"2019-01-03T10:40:51Z","updated_at":"2019-01-03T10:40:51Z","author_association":"COLLABORATOR","body":"Fixed ab726b37f5ca8c1da88f485cee48e18216f0a777"}}
{"actor":{"display_login":"kobik"}}