{"action":"created","issue":{"url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/5","labels_url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/5/comments","events_url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/5/events","html_url":"https://github.com/sunnylqm/react-native-storage/pull/5","id":118316299,"number":5,"title":"use promise for sync","user":{"login":"mrtone","id":1763168,"avatar_url":"https://avatars.githubusercontent.com/u/1763168?v=3","gravatar_id":"","url":"https://api.github.com/users/mrtone","html_url":"https://github.com/mrtone","followers_url":"https://api.github.com/users/mrtone/followers","following_url":"https://api.github.com/users/mrtone/following{/other_user}","gists_url":"https://api.github.com/users/mrtone/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtone/subscriptions","organizations_url":"https://api.github.com/users/mrtone/orgs","repos_url":"https://api.github.com/users/mrtone/repos","events_url":"https://api.github.com/users/mrtone/events{/privacy}","received_events_url":"https://api.github.com/users/mrtone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-23T03:56:47Z","updated_at":"2015-11-28T11:16:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunnylqm/react-native-storage/pulls/5","html_url":"https://github.com/sunnylqm/react-native-storage/pull/5","diff_url":"https://github.com/sunnylqm/react-native-storage/pull/5.diff","patch_url":"https://github.com/sunnylqm/react-native-storage/pull/5.patch"},"body":"添加：sync支持promise对象\r\n```javascript\r\nsync: {\r\n    user: () =>  fetch('//xxx.com/json')   // or new Promise()\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/comments/160277833","html_url":"https://github.com/sunnylqm/react-native-storage/pull/5#issuecomment-160277833","issue_url":"https://api.github.com/repos/sunnylqm/react-native-storage/issues/5","id":160277833,"user":{"login":"sunnylqm","id":615282,"avatar_url":"https://avatars.githubusercontent.com/u/615282?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnylqm","html_url":"https://github.com/sunnylqm","followers_url":"https://api.github.com/users/sunnylqm/followers","following_url":"https://api.github.com/users/sunnylqm/following{/other_user}","gists_url":"https://api.github.com/users/sunnylqm/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnylqm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnylqm/subscriptions","organizations_url":"https://api.github.com/users/sunnylqm/orgs","repos_url":"https://api.github.com/users/sunnylqm/repos","events_url":"https://api.github.com/users/sunnylqm/events{/privacy}","received_events_url":"https://api.github.com/users/sunnylqm/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T11:16:41Z","updated_at":"2015-11-28T11:16:41Z","body":"https://github.com/sunnylqm/react-native-storage/blob/master/__tests__/batch-and-sync-test.js#L314  这一行测试的是调用sync时的参数应该是数组形式，并非返回值，返回值在之上三行已经测试过了"}}