{"action":"created","issue":{"url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/1","repository_url":"https://api.github.com/repos/GitbookIO/expect-firestore","labels_url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/1/comments","events_url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/1/events","html_url":"https://github.com/GitbookIO/expect-firestore/issues/1","id":302464986,"number":1,"title":"ReferenceError: regeneratorRuntime is not defined","user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-05T21:12:41Z","updated_at":"2018-03-05T23:16:09Z","closed_at":"2018-03-05T22:29:52Z","author_association":"NONE","body":"I work on Firebase and I wanted to add your awesome library to our `firebase/snippets-rules` github repository.  I am running into a strange error, hoping you can help (I'm not a JavaScript expert at all so excuse me if this is totally user error).\r\n\r\nI am trying out this library and decided to run a basic test:\r\n\r\n```typescript\r\nimport * as expectFirestore from 'expect-firestore';\r\n\r\nconst database = expectFirestore.Database({\r\n  credential: {},\r\n  data: {},\r\n  rules: ''\r\n});\r\n\r\n// Note: doesn't matter if this function is async or not, or if I await the promises or not\r\nasync function main() {\r\n  database.authorize();\r\n\r\n  // Test a get\r\n  database.canGet({ uid: 'some-user' }, 'users/userA');\r\n}\r\n\r\nmain();\r\n```\r\n\r\nWhen I run it, this errors:\r\n\r\n```\r\n$ ts-node test/index.ts\r\n\r\n/usr/local/google/home/samstern/Projects/firebase/snippets-rules/node_modules/expect-firestore/lib/global.js:37\r\n}();\r\n ^\r\nReferenceError: regeneratorRuntime is not defined\r\n```"},"comment":{"url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/comments/370602216","html_url":"https://github.com/GitbookIO/expect-firestore/issues/1#issuecomment-370602216","issue_url":"https://api.github.com/repos/GitbookIO/expect-firestore/issues/1","id":370602216,"user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars2.githubusercontent.com/u/8466666?v=4","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T23:16:09Z","updated_at":"2018-03-05T23:16:09Z","author_association":"NONE","body":"@SamyPesse now I get it, thanks!  I had to follow your advice and nuke my `node_modules`.  Apologies for the noise, I don't leave my Android bubble often enough."}}
{"actor":{"display_login":"samtstern"}}