{"action":"created","comment":{"url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/comments/26941294","id":26941294,"diff_hunk":"@@ -1,57 +1,46 @@\n-function gampee(ecData) {\n+var mappings = require(\"./lib/mappings\"),\n+\tvalidate = require(\"./lib/validate\"),\n+\tutils = require(\"./lib/utils\");\n \n-\tif (!ecData) {\n-\t\tthrow new TypeError();\n+function gampee(actionList, strict) {\n+\n+\tif (!actionList) {\n+\t\tthrow new TypeError(\"actionList is required\");\n \t}\n \n-\tif (!Array.isArray(ecData)) {\n-\t\tecData = [ecData];\n+\tif (!Array.isArray(actionList)) {\n+\t\tactionList = [actionList];\n \t}\n \n+\tvar validationCallback = strict ? utils.throwOnError : utils.consoleWarnOnError;","path":"index.js","position":20,"original_position":20,"commit_id":"4f5a0a02dc07264c6f06e4ab424d9867200ecf49","original_commit_id":"4f5a0a02dc07264c6f06e4ab424d9867200ecf49","user":{"login":"kestux","id":4324521,"avatar_url":"https://avatars.githubusercontent.com/u/4324521?v=3","gravatar_id":"","url":"https://api.github.com/users/kestux","html_url":"https://github.com/kestux","followers_url":"https://api.github.com/users/kestux/followers","following_url":"https://api.github.com/users/kestux/following{/other_user}","gists_url":"https://api.github.com/users/kestux/gists{/gist_id}","starred_url":"https://api.github.com/users/kestux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kestux/subscriptions","organizations_url":"https://api.github.com/users/kestux/orgs","repos_url":"https://api.github.com/users/kestux/repos","events_url":"https://api.github.com/users/kestux/events{/privacy}","received_events_url":"https://api.github.com/users/kestux/received_events","type":"User","site_admin":false},"body":"consider check check for `strict` inside lib?","created_at":"2015-03-23T14:35:02Z","updated_at":"2015-03-23T14:35:02Z","html_url":"https://github.com/insidewarehouse/gampee/pull/2#discussion_r26941294","pull_request_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/comments/26941294"},"html":{"href":"https://github.com/insidewarehouse/gampee/pull/2#discussion_r26941294"},"pull_request":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2","id":31727875,"html_url":"https://github.com/insidewarehouse/gampee/pull/2","diff_url":"https://github.com/insidewarehouse/gampee/pull/2.diff","patch_url":"https://github.com/insidewarehouse/gampee/pull/2.patch","issue_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/2","number":2,"state":"open","locked":false,"title":"V0.1","user":{"login":"dominykas","id":505619,"avatar_url":"https://avatars.githubusercontent.com/u/505619?v=3","gravatar_id":"","url":"https://api.github.com/users/dominykas","html_url":"https://github.com/dominykas","followers_url":"https://api.github.com/users/dominykas/followers","following_url":"https://api.github.com/users/dominykas/following{/other_user}","gists_url":"https://api.github.com/users/dominykas/gists{/gist_id}","starred_url":"https://api.github.com/users/dominykas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominykas/subscriptions","organizations_url":"https://api.github.com/users/dominykas/orgs","repos_url":"https://api.github.com/users/dominykas/repos","events_url":"https://api.github.com/users/dominykas/events{/privacy}","received_events_url":"https://api.github.com/users/dominykas/received_events","type":"User","site_admin":false},"body":"Validation implemented, tests completed, I think this is almost ready to be a V1 after we run it in production for a while","created_at":"2015-03-23T12:36:47Z","updated_at":"2015-03-23T14:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a36e91966153e43732f9de929dec6cc216864bf","assignee":{"login":"kestux","id":4324521,"avatar_url":"https://avatars.githubusercontent.com/u/4324521?v=3","gravatar_id":"","url":"https://api.github.com/users/kestux","html_url":"https://github.com/kestux","followers_url":"https://api.github.com/users/kestux/followers","following_url":"https://api.github.com/users/kestux/following{/other_user}","gists_url":"https://api.github.com/users/kestux/gists{/gist_id}","starred_url":"https://api.github.com/users/kestux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kestux/subscriptions","organizations_url":"https://api.github.com/users/kestux/orgs","repos_url":"https://api.github.com/users/kestux/repos","events_url":"https://api.github.com/users/kestux/events{/privacy}","received_events_url":"https://api.github.com/users/kestux/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2/commits","review_comments_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2/comments","review_comment_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/2/comments","statuses_url":"https://api.github.com/repos/insidewarehouse/gampee/statuses/4f5a0a02dc07264c6f06e4ab424d9867200ecf49","head":{"label":"insidewarehouse:v0.1","ref":"v0.1","sha":"4f5a0a02dc07264c6f06e4ab424d9867200ecf49","user":{"login":"insidewarehouse","id":1503454,"avatar_url":"https://avatars.githubusercontent.com/u/1503454?v=3","gravatar_id":"","url":"https://api.github.com/users/insidewarehouse","html_url":"https://github.com/insidewarehouse","followers_url":"https://api.github.com/users/insidewarehouse/followers","following_url":"https://api.github.com/users/insidewarehouse/following{/other_user}","gists_url":"https://api.github.com/users/insidewarehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/insidewarehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insidewarehouse/subscriptions","organizations_url":"https://api.github.com/users/insidewarehouse/orgs","repos_url":"https://api.github.com/users/insidewarehouse/repos","events_url":"https://api.github.com/users/insidewarehouse/events{/privacy}","received_events_url":"https://api.github.com/users/insidewarehouse/received_events","type":"Organization","site_admin":false},"repo":{"id":32525823,"name":"gampee","full_name":"insidewarehouse/gampee","owner":{"login":"insidewarehouse","id":1503454,"avatar_url":"https://avatars.githubusercontent.com/u/1503454?v=3","gravatar_id":"","url":"https://api.github.com/users/insidewarehouse","html_url":"https://github.com/insidewarehouse","followers_url":"https://api.github.com/users/insidewarehouse/followers","following_url":"https://api.github.com/users/insidewarehouse/following{/other_user}","gists_url":"https://api.github.com/users/insidewarehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/insidewarehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insidewarehouse/subscriptions","organizations_url":"https://api.github.com/users/insidewarehouse/orgs","repos_url":"https://api.github.com/users/insidewarehouse/repos","events_url":"https://api.github.com/users/insidewarehouse/events{/privacy}","received_events_url":"https://api.github.com/users/insidewarehouse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/insidewarehouse/gampee","description":"Node.js module to help out with Google Analytics Measurement Protocol Enhanced Ecommerce params","fork":false,"url":"https://api.github.com/repos/insidewarehouse/gampee","forks_url":"https://api.github.com/repos/insidewarehouse/gampee/forks","keys_url":"https://api.github.com/repos/insidewarehouse/gampee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/insidewarehouse/gampee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/insidewarehouse/gampee/teams","hooks_url":"https://api.github.com/repos/insidewarehouse/gampee/hooks","issue_events_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/events{/number}","events_url":"https://api.github.com/repos/insidewarehouse/gampee/events","assignees_url":"https://api.github.com/repos/insidewarehouse/gampee/assignees{/user}","branches_url":"https://api.github.com/repos/insidewarehouse/gampee/branches{/branch}","tags_url":"https://api.github.com/repos/insidewarehouse/gampee/tags","blobs_url":"https://api.github.com/repos/insidewarehouse/gampee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/insidewarehouse/gampee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/insidewarehouse/gampee/git/refs{/sha}","trees_url":"https://api.github.com/repos/insidewarehouse/gampee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/insidewarehouse/gampee/statuses/{sha}","languages_url":"https://api.github.com/repos/insidewarehouse/gampee/languages","stargazers_url":"https://api.github.com/repos/insidewarehouse/gampee/stargazers","contributors_url":"https://api.github.com/repos/insidewarehouse/gampee/contributors","subscribers_url":"https://api.github.com/repos/insidewarehouse/gampee/subscribers","subscription_url":"https://api.github.com/repos/insidewarehouse/gampee/subscription","commits_url":"https://api.github.com/repos/insidewarehouse/gampee/commits{/sha}","git_commits_url":"https://api.github.com/repos/insidewarehouse/gampee/git/commits{/sha}","comments_url":"https://api.github.com/repos/insidewarehouse/gampee/comments{/number}","issue_comment_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/comments{/number}","contents_url":"https://api.github.com/repos/insidewarehouse/gampee/contents/{+path}","compare_url":"https://api.github.com/repos/insidewarehouse/gampee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/insidewarehouse/gampee/merges","archive_url":"https://api.github.com/repos/insidewarehouse/gampee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/insidewarehouse/gampee/downloads","issues_url":"https://api.github.com/repos/insidewarehouse/gampee/issues{/number}","pulls_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls{/number}","milestones_url":"https://api.github.com/repos/insidewarehouse/gampee/milestones{/number}","notifications_url":"https://api.github.com/repos/insidewarehouse/gampee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/insidewarehouse/gampee/labels{/name}","releases_url":"https://api.github.com/repos/insidewarehouse/gampee/releases{/id}","created_at":"2015-03-19T14:20:12Z","updated_at":"2015-03-23T09:55:05Z","pushed_at":"2015-03-23T12:36:47Z","git_url":"git://github.com/insidewarehouse/gampee.git","ssh_url":"git@github.com:insidewarehouse/gampee.git","clone_url":"https://github.com/insidewarehouse/gampee.git","svn_url":"https://github.com/insidewarehouse/gampee","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"insidewarehouse:master","ref":"master","sha":"c470bd5ecdef4dee4c3025a17d7f0542663eee4e","user":{"login":"insidewarehouse","id":1503454,"avatar_url":"https://avatars.githubusercontent.com/u/1503454?v=3","gravatar_id":"","url":"https://api.github.com/users/insidewarehouse","html_url":"https://github.com/insidewarehouse","followers_url":"https://api.github.com/users/insidewarehouse/followers","following_url":"https://api.github.com/users/insidewarehouse/following{/other_user}","gists_url":"https://api.github.com/users/insidewarehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/insidewarehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insidewarehouse/subscriptions","organizations_url":"https://api.github.com/users/insidewarehouse/orgs","repos_url":"https://api.github.com/users/insidewarehouse/repos","events_url":"https://api.github.com/users/insidewarehouse/events{/privacy}","received_events_url":"https://api.github.com/users/insidewarehouse/received_events","type":"Organization","site_admin":false},"repo":{"id":32525823,"name":"gampee","full_name":"insidewarehouse/gampee","owner":{"login":"insidewarehouse","id":1503454,"avatar_url":"https://avatars.githubusercontent.com/u/1503454?v=3","gravatar_id":"","url":"https://api.github.com/users/insidewarehouse","html_url":"https://github.com/insidewarehouse","followers_url":"https://api.github.com/users/insidewarehouse/followers","following_url":"https://api.github.com/users/insidewarehouse/following{/other_user}","gists_url":"https://api.github.com/users/insidewarehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/insidewarehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insidewarehouse/subscriptions","organizations_url":"https://api.github.com/users/insidewarehouse/orgs","repos_url":"https://api.github.com/users/insidewarehouse/repos","events_url":"https://api.github.com/users/insidewarehouse/events{/privacy}","received_events_url":"https://api.github.com/users/insidewarehouse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/insidewarehouse/gampee","description":"Node.js module to help out with Google Analytics Measurement Protocol Enhanced Ecommerce params","fork":false,"url":"https://api.github.com/repos/insidewarehouse/gampee","forks_url":"https://api.github.com/repos/insidewarehouse/gampee/forks","keys_url":"https://api.github.com/repos/insidewarehouse/gampee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/insidewarehouse/gampee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/insidewarehouse/gampee/teams","hooks_url":"https://api.github.com/repos/insidewarehouse/gampee/hooks","issue_events_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/events{/number}","events_url":"https://api.github.com/repos/insidewarehouse/gampee/events","assignees_url":"https://api.github.com/repos/insidewarehouse/gampee/assignees{/user}","branches_url":"https://api.github.com/repos/insidewarehouse/gampee/branches{/branch}","tags_url":"https://api.github.com/repos/insidewarehouse/gampee/tags","blobs_url":"https://api.github.com/repos/insidewarehouse/gampee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/insidewarehouse/gampee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/insidewarehouse/gampee/git/refs{/sha}","trees_url":"https://api.github.com/repos/insidewarehouse/gampee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/insidewarehouse/gampee/statuses/{sha}","languages_url":"https://api.github.com/repos/insidewarehouse/gampee/languages","stargazers_url":"https://api.github.com/repos/insidewarehouse/gampee/stargazers","contributors_url":"https://api.github.com/repos/insidewarehouse/gampee/contributors","subscribers_url":"https://api.github.com/repos/insidewarehouse/gampee/subscribers","subscription_url":"https://api.github.com/repos/insidewarehouse/gampee/subscription","commits_url":"https://api.github.com/repos/insidewarehouse/gampee/commits{/sha}","git_commits_url":"https://api.github.com/repos/insidewarehouse/gampee/git/commits{/sha}","comments_url":"https://api.github.com/repos/insidewarehouse/gampee/comments{/number}","issue_comment_url":"https://api.github.com/repos/insidewarehouse/gampee/issues/comments{/number}","contents_url":"https://api.github.com/repos/insidewarehouse/gampee/contents/{+path}","compare_url":"https://api.github.com/repos/insidewarehouse/gampee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/insidewarehouse/gampee/merges","archive_url":"https://api.github.com/repos/insidewarehouse/gampee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/insidewarehouse/gampee/downloads","issues_url":"https://api.github.com/repos/insidewarehouse/gampee/issues{/number}","pulls_url":"https://api.github.com/repos/insidewarehouse/gampee/pulls{/number}","milestones_url":"https://api.github.com/repos/insidewarehouse/gampee/milestones{/number}","notifications_url":"https://api.github.com/repos/insidewarehouse/gampee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/insidewarehouse/gampee/labels{/name}","releases_url":"https://api.github.com/repos/insidewarehouse/gampee/releases{/id}","created_at":"2015-03-19T14:20:12Z","updated_at":"2015-03-23T09:55:05Z","pushed_at":"2015-03-23T12:36:47Z","git_url":"git://github.com/insidewarehouse/gampee.git","ssh_url":"git@github.com:insidewarehouse/gampee.git","clone_url":"https://github.com/insidewarehouse/gampee.git","svn_url":"https://github.com/insidewarehouse/gampee","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2"},"html":{"href":"https://github.com/insidewarehouse/gampee/pull/2"},"issue":{"href":"https://api.github.com/repos/insidewarehouse/gampee/issues/2"},"comments":{"href":"https://api.github.com/repos/insidewarehouse/gampee/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/insidewarehouse/gampee/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/insidewarehouse/gampee/statuses/4f5a0a02dc07264c6f06e4ab424d9867200ecf49"}}}}