{"action":"created","comment":{"url":"https://api.github.com/repos/systemjs/builder/pulls/comments/25072688","id":25072688,"diff_hunk":"@@ -14,14 +14,25 @@ var builder = require('./lib/builder');\n \n var path = require('path');\n \n-/* Very basic, null-friendly, shallow clone for object attributes only */\n-function clone(obj) {\n-  obj = obj || {};\n-  var copy = {};\n-  for (var key in obj) {\n-    copy[key] = obj[key];\n-  }\n-  return copy;\n+function processOpts(opts_, outFile) {\n+  var keys = [\n+    'config',\n+    'lowResSourceMaps',\n+    'minify',\n+    'normalize',\n+    'outFile',\n+    'runtime',\n+    'sourceMaps',\n+    'sourceMapContents'\n+  ];\n+  var opts = {};\n+  keys.forEach(function(key) {\n+    opts[key] = opts_ && opts_[key];\n+  });","path":"index.js","position":26,"original_position":26,"commit_id":"12b213348c8c78f79c2c4c3d53601039da5832d0","original_commit_id":"12b213348c8c78f79c2c4c3d53601039da5832d0","user":{"login":"crisptrutski","id":881351,"avatar_url":"https://avatars.githubusercontent.com/u/881351?v=3","gravatar_id":"","url":"https://api.github.com/users/crisptrutski","html_url":"https://github.com/crisptrutski","followers_url":"https://api.github.com/users/crisptrutski/followers","following_url":"https://api.github.com/users/crisptrutski/following{/other_user}","gists_url":"https://api.github.com/users/crisptrutski/gists{/gist_id}","starred_url":"https://api.github.com/users/crisptrutski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisptrutski/subscriptions","organizations_url":"https://api.github.com/users/crisptrutski/orgs","repos_url":"https://api.github.com/users/crisptrutski/repos","events_url":"https://api.github.com/users/crisptrutski/events{/privacy}","received_events_url":"https://api.github.com/users/crisptrutski/received_events","type":"User","site_admin":false},"body":"Current behaviour has every default or falsey. Assume your example was just to demonstrate, and you're not wanting to enforce new defaults?","created_at":"2015-02-20T14:35:43Z","updated_at":"2015-02-20T14:35:43Z","html_url":"https://github.com/systemjs/builder/pull/82#discussion_r25072688","pull_request_url":"https://api.github.com/repos/systemjs/builder/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/systemjs/builder/pulls/comments/25072688"},"html":{"href":"https://github.com/systemjs/builder/pull/82#discussion_r25072688"},"pull_request":{"href":"https://api.github.com/repos/systemjs/builder/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/systemjs/builder/pulls/82","id":29559340,"html_url":"https://github.com/systemjs/builder/pull/82","diff_url":"https://github.com/systemjs/builder/pull/82.diff","patch_url":"https://github.com/systemjs/builder/pull/82.patch","issue_url":"https://api.github.com/repos/systemjs/builder/issues/82","number":82,"state":"open","locked":false,"title":"Support inline source maps","user":{"login":"crisptrutski","id":881351,"avatar_url":"https://avatars.githubusercontent.com/u/881351?v=3","gravatar_id":"","url":"https://api.github.com/users/crisptrutski","html_url":"https://github.com/crisptrutski","followers_url":"https://api.github.com/users/crisptrutski/followers","following_url":"https://api.github.com/users/crisptrutski/following{/other_user}","gists_url":"https://api.github.com/users/crisptrutski/gists{/gist_id}","starred_url":"https://api.github.com/users/crisptrutski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisptrutski/subscriptions","organizations_url":"https://api.github.com/users/crisptrutski/orgs","repos_url":"https://api.github.com/users/crisptrutski/repos","events_url":"https://api.github.com/users/crisptrutski/events{/privacy}","received_events_url":"https://api.github.com/users/crisptrutski/received_events","type":"User","site_admin":false},"body":"Closes #74 ","created_at":"2015-02-18T20:19:35Z","updated_at":"2015-02-20T14:35:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b569d50cfb27ad004c08f0bc321b3536ff1ac52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/systemjs/builder/pulls/82/commits","review_comments_url":"https://api.github.com/repos/systemjs/builder/pulls/82/comments","review_comment_url":"https://api.github.com/repos/systemjs/builder/pulls/comments/{number}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/82/comments","statuses_url":"https://api.github.com/repos/systemjs/builder/statuses/12b213348c8c78f79c2c4c3d53601039da5832d0","head":{"label":"inline-source-maps","ref":"inline-source-maps","sha":"12b213348c8c78f79c2c4c3d53601039da5832d0","user":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"repo":{"id":19843509,"name":"builder","full_name":"systemjs/builder","owner":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemjs/builder","description":"SystemJS build tool","fork":false,"url":"https://api.github.com/repos/systemjs/builder","forks_url":"https://api.github.com/repos/systemjs/builder/forks","keys_url":"https://api.github.com/repos/systemjs/builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemjs/builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemjs/builder/teams","hooks_url":"https://api.github.com/repos/systemjs/builder/hooks","issue_events_url":"https://api.github.com/repos/systemjs/builder/issues/events{/number}","events_url":"https://api.github.com/repos/systemjs/builder/events","assignees_url":"https://api.github.com/repos/systemjs/builder/assignees{/user}","branches_url":"https://api.github.com/repos/systemjs/builder/branches{/branch}","tags_url":"https://api.github.com/repos/systemjs/builder/tags","blobs_url":"https://api.github.com/repos/systemjs/builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemjs/builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemjs/builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemjs/builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemjs/builder/statuses/{sha}","languages_url":"https://api.github.com/repos/systemjs/builder/languages","stargazers_url":"https://api.github.com/repos/systemjs/builder/stargazers","contributors_url":"https://api.github.com/repos/systemjs/builder/contributors","subscribers_url":"https://api.github.com/repos/systemjs/builder/subscribers","subscription_url":"https://api.github.com/repos/systemjs/builder/subscription","commits_url":"https://api.github.com/repos/systemjs/builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemjs/builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemjs/builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemjs/builder/issues/comments/{number}","contents_url":"https://api.github.com/repos/systemjs/builder/contents/{+path}","compare_url":"https://api.github.com/repos/systemjs/builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemjs/builder/merges","archive_url":"https://api.github.com/repos/systemjs/builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemjs/builder/downloads","issues_url":"https://api.github.com/repos/systemjs/builder/issues{/number}","pulls_url":"https://api.github.com/repos/systemjs/builder/pulls{/number}","milestones_url":"https://api.github.com/repos/systemjs/builder/milestones{/number}","notifications_url":"https://api.github.com/repos/systemjs/builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemjs/builder/labels{/name}","releases_url":"https://api.github.com/repos/systemjs/builder/releases{/id}","created_at":"2014-05-16T03:26:53Z","updated_at":"2015-02-20T12:27:04Z","pushed_at":"2015-02-20T14:21:17Z","git_url":"git://github.com/systemjs/builder.git","ssh_url":"git@github.com:systemjs/builder.git","clone_url":"https://github.com/systemjs/builder.git","svn_url":"https://github.com/systemjs/builder","homepage":null,"size":1423,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":14,"forks":11,"open_issues":14,"watchers":46,"default_branch":"master"}},"base":{"label":"master","ref":"master","sha":"f4ef86a62b89d2c7e039b8503d40144412310116","user":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"repo":{"id":19843509,"name":"builder","full_name":"systemjs/builder","owner":{"login":"systemjs","id":6577368,"avatar_url":"https://avatars.githubusercontent.com/u/6577368?v=3","gravatar_id":"","url":"https://api.github.com/users/systemjs","html_url":"https://github.com/systemjs","followers_url":"https://api.github.com/users/systemjs/followers","following_url":"https://api.github.com/users/systemjs/following{/other_user}","gists_url":"https://api.github.com/users/systemjs/gists{/gist_id}","starred_url":"https://api.github.com/users/systemjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemjs/subscriptions","organizations_url":"https://api.github.com/users/systemjs/orgs","repos_url":"https://api.github.com/users/systemjs/repos","events_url":"https://api.github.com/users/systemjs/events{/privacy}","received_events_url":"https://api.github.com/users/systemjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemjs/builder","description":"SystemJS build tool","fork":false,"url":"https://api.github.com/repos/systemjs/builder","forks_url":"https://api.github.com/repos/systemjs/builder/forks","keys_url":"https://api.github.com/repos/systemjs/builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemjs/builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemjs/builder/teams","hooks_url":"https://api.github.com/repos/systemjs/builder/hooks","issue_events_url":"https://api.github.com/repos/systemjs/builder/issues/events{/number}","events_url":"https://api.github.com/repos/systemjs/builder/events","assignees_url":"https://api.github.com/repos/systemjs/builder/assignees{/user}","branches_url":"https://api.github.com/repos/systemjs/builder/branches{/branch}","tags_url":"https://api.github.com/repos/systemjs/builder/tags","blobs_url":"https://api.github.com/repos/systemjs/builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemjs/builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemjs/builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemjs/builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemjs/builder/statuses/{sha}","languages_url":"https://api.github.com/repos/systemjs/builder/languages","stargazers_url":"https://api.github.com/repos/systemjs/builder/stargazers","contributors_url":"https://api.github.com/repos/systemjs/builder/contributors","subscribers_url":"https://api.github.com/repos/systemjs/builder/subscribers","subscription_url":"https://api.github.com/repos/systemjs/builder/subscription","commits_url":"https://api.github.com/repos/systemjs/builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemjs/builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemjs/builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemjs/builder/issues/comments/{number}","contents_url":"https://api.github.com/repos/systemjs/builder/contents/{+path}","compare_url":"https://api.github.com/repos/systemjs/builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemjs/builder/merges","archive_url":"https://api.github.com/repos/systemjs/builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemjs/builder/downloads","issues_url":"https://api.github.com/repos/systemjs/builder/issues{/number}","pulls_url":"https://api.github.com/repos/systemjs/builder/pulls{/number}","milestones_url":"https://api.github.com/repos/systemjs/builder/milestones{/number}","notifications_url":"https://api.github.com/repos/systemjs/builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemjs/builder/labels{/name}","releases_url":"https://api.github.com/repos/systemjs/builder/releases{/id}","created_at":"2014-05-16T03:26:53Z","updated_at":"2015-02-20T12:27:04Z","pushed_at":"2015-02-20T14:21:17Z","git_url":"git://github.com/systemjs/builder.git","ssh_url":"git@github.com:systemjs/builder.git","clone_url":"https://github.com/systemjs/builder.git","svn_url":"https://github.com/systemjs/builder","homepage":null,"size":1423,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":14,"forks":11,"open_issues":14,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemjs/builder/pulls/82"},"html":{"href":"https://github.com/systemjs/builder/pull/82"},"issue":{"href":"https://api.github.com/repos/systemjs/builder/issues/82"},"comments":{"href":"https://api.github.com/repos/systemjs/builder/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/systemjs/builder/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/systemjs/builder/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/systemjs/builder/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/systemjs/builder/statuses/12b213348c8c78f79c2c4c3d53601039da5832d0"}}}}