{"action":"opened","issue":{"url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/88","repository_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets","labels_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/88/comments","events_url":"https://api.github.com/repos/dowjones/gulp-bundle-assets/issues/88/events","html_url":"https://github.com/dowjones/gulp-bundle-assets/issues/88","id":156363553,"number":88,"title":"TypeError: Object.keys called on non-object","user":{"login":"bmvakili","id":606935,"avatar_url":"https://avatars.githubusercontent.com/u/606935?v=3","gravatar_id":"","url":"https://api.github.com/users/bmvakili","html_url":"https://github.com/bmvakili","followers_url":"https://api.github.com/users/bmvakili/followers","following_url":"https://api.github.com/users/bmvakili/following{/other_user}","gists_url":"https://api.github.com/users/bmvakili/gists{/gist_id}","starred_url":"https://api.github.com/users/bmvakili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmvakili/subscriptions","organizations_url":"https://api.github.com/users/bmvakili/orgs","repos_url":"https://api.github.com/users/bmvakili/repos","events_url":"https://api.github.com/users/bmvakili/events{/privacy}","received_events_url":"https://api.github.com/users/bmvakili/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-23T20:48:51Z","updated_at":"2016-05-23T20:48:51Z","closed_at":null,"body":"Hello, with new release, getting error:\r\n\r\n```\r\n/opt/my_project/node_modules/gulp-bundle-assets/lib/results/index.js:54\r\n            _.each(Object.keys(result.contents[key]).sort(), function(typeKey)\r\n                          ^\r\nTypeError: Object.keys called on non-object\r\n  at Function.keys (native)\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/lib/results/index.js:54:27\r\n  at arrayEach (/opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:1314:13)\r\n  at Function.<anonymous> (/opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:3355:13)\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/lib/results/index.js:51:13\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:3106:15\r\n  at baseForOwn (/opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:2053:14)\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:3076:18\r\n  at Function.<anonymous> (/opt/my_project/node_modules/gulp-bundle-assets/node_modules/lodash/index.js:3356:13)\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/lib/results/index.js:48:11\r\n  at /opt/my_project/node_modules/gulp-bundle-assets/node_modules/mkdirp/index.js:48:26\r\n  at Object.oncomplete (fs.js:107:15)\r\n```\r\n\r\nThis is result of a simple `gulp build`\r\n\r\nThe said line was recently changed here:\r\nhttps://github.com/dowjones/gulp-bundle-assets/commit/30afbc87ec3855d38ad4a80dede5d54423dd3701#diff-cc30f4d57e32ddd61eb96d387c60c412R53\r\n\r\nAs workaround, I've wrapped in a try-catch:\r\n\r\n```\r\ntry {\r\n            _.each(Object.keys(result.contents[key]).sort(), function(typeKey) {\r\n              sortedBundleTypes[typeKey] = result.contents[key][typeKey];\r\n            });\r\n} catch (err) {}\r\n```\r\n\r\n"}}
{"actor":{"display_login":"bmvakili"}}