{"action":"created","issue":{"url":"https://api.github.com/repos/Foliotek/Croppie/issues/470","repository_url":"https://api.github.com/repos/Foliotek/Croppie","labels_url":"https://api.github.com/repos/Foliotek/Croppie/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/Foliotek/Croppie/issues/470/comments","events_url":"https://api.github.com/repos/Foliotek/Croppie/issues/470/events","html_url":"https://github.com/Foliotek/Croppie/issues/470","id":295826691,"number":470,"title":"Changes to the Croppie constructor using npm and Webpack","user":{"login":"oystehei","id":2178922,"avatar_url":"https://avatars0.githubusercontent.com/u/2178922?v=4","gravatar_id":"","url":"https://api.github.com/users/oystehei","html_url":"https://github.com/oystehei","followers_url":"https://api.github.com/users/oystehei/followers","following_url":"https://api.github.com/users/oystehei/following{/other_user}","gists_url":"https://api.github.com/users/oystehei/gists{/gist_id}","starred_url":"https://api.github.com/users/oystehei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oystehei/subscriptions","organizations_url":"https://api.github.com/users/oystehei/orgs","repos_url":"https://api.github.com/users/oystehei/repos","events_url":"https://api.github.com/users/oystehei/events{/privacy}","received_events_url":"https://api.github.com/users/oystehei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-09T10:41:13Z","updated_at":"2018-04-13T19:08:10Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nIn previous versions it was possible to create a new Croppie instance using:\r\n```\r\nimport Croppie from 'croppie';\r\nvar croppie = new Croppie(ref, opts);\r\n```\r\n\r\n## Actual Behavior\r\nFollowing the latest update this is no longer possible, you need to use the following syntax for it to work:\r\n```\r\nimport Croppie from 'croppie';\r\nvar croppie = new Croppie.Croppie(ref, opts);\r\n```\r\n\r\nIs this an intended change in how the library is supposed to be used with npm, or is there something wrong? \r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1. install the npm package\r\n  1. import Croppie and try to create a new instance\r\n\r\n\r\n## Specifications\r\n  - Browser: The problem is not browser specific\r\n  - Version: Croppie 2.6.1\r\n"},"comment":{"url":"https://api.github.com/repos/Foliotek/Croppie/issues/comments/381233598","html_url":"https://github.com/Foliotek/Croppie/issues/470#issuecomment-381233598","issue_url":"https://api.github.com/repos/Foliotek/Croppie/issues/470","id":381233598,"user":{"login":"sarunint","id":3850197,"avatar_url":"https://avatars1.githubusercontent.com/u/3850197?v=4","gravatar_id":"","url":"https://api.github.com/users/sarunint","html_url":"https://github.com/sarunint","followers_url":"https://api.github.com/users/sarunint/followers","following_url":"https://api.github.com/users/sarunint/following{/other_user}","gists_url":"https://api.github.com/users/sarunint/gists{/gist_id}","starred_url":"https://api.github.com/users/sarunint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarunint/subscriptions","organizations_url":"https://api.github.com/users/sarunint/orgs","repos_url":"https://api.github.com/users/sarunint/repos","events_url":"https://api.github.com/users/sarunint/events{/privacy}","received_events_url":"https://api.github.com/users/sarunint/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T19:08:10Z","updated_at":"2018-04-13T19:08:10Z","author_association":"CONTRIBUTOR","body":"Update:\r\n\r\nI've been spending today trying to convert Croppie to more modern Javascript. (I mean ES2015.)\r\n\r\nI'm expecting it to be done tomorrow."}}
{"actor":{"display_login":"sarunint"}}