{"action":"closed","issue":{"url":"https://api.github.com/repos/banzeh/cielo/issues/7","repository_url":"https://api.github.com/repos/banzeh/cielo","labels_url":"https://api.github.com/repos/banzeh/cielo/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/banzeh/cielo/issues/7/comments","events_url":"https://api.github.com/repos/banzeh/cielo/issues/7/events","html_url":"https://github.com/banzeh/cielo/issues/7","id":318160387,"number":7,"title":"Erro ao tentar usar com AWS Lambda","user":{"login":"pavini","id":202020,"avatar_url":"https://avatars0.githubusercontent.com/u/202020?v=4","gravatar_id":"","url":"https://api.github.com/users/pavini","html_url":"https://github.com/pavini","followers_url":"https://api.github.com/users/pavini/followers","following_url":"https://api.github.com/users/pavini/following{/other_user}","gists_url":"https://api.github.com/users/pavini/gists{/gist_id}","starred_url":"https://api.github.com/users/pavini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavini/subscriptions","organizations_url":"https://api.github.com/users/pavini/orgs","repos_url":"https://api.github.com/users/pavini/repos","events_url":"https://api.github.com/users/pavini/events{/privacy}","received_events_url":"https://api.github.com/users/pavini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-26T19:08:50Z","updated_at":"2018-05-03T12:39:24Z","closed_at":"2018-05-03T12:39:24Z","author_association":"NONE","body":"Estou tentando rodar no Lambda da AWS mas estou com um erro que não consegui resolver.\r\n\r\nO código que estou testando:\r\n```\r\nexports.handler = (event, context, callback) => {\r\n   \r\n   const paramsCielo = {\r\n        'MerchantId': 'e60c1e21cf8743d1bc1fbd760fe0aba4',\r\n        'MerchantKey': 'LVYLUTLJYYIXXRUQMXLIMYEDLRVCRWHNGYQFIVIG',\r\n        'sandbox': true,\r\n        'debug': false\r\n\t};\r\n\t\r\n\tvar cielo = require('cielo')(paramsCielo);\r\n   \r\n    callback(null, paramsCielo);\r\n};\r\n```\r\n\r\nO erro:\r\n\r\n```\r\nFunction Logs\r\n2018-04-26 19:05:04.910 /var/task/node_modules/cielo/cielo.js:183\r\n\t\t\tlet optionsCopy = {...options};\r\n\t\t\t                   ^^^\r\nSyntaxError: Unexpected token ...\r\n    at createScript (vm.js:56:10)\r\n    at Object.runInThisContext (vm.js:97:10)\r\n    at Module._compile (module.js:542:28)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at exports.handler (/var/task/cielo/index.js:10:30)\r\n```\r\n\r\nEsse erro é por conta de usar o AWS Lambda ou algo que tenho que alterar no pacote?\r\n\r\nAbcs"}}
{"actor":{"display_login":"banzeh"}}