可以通过访问amazon-cognito-identity-js的GitHub仓库来查看最近的变更日志。
例如,可以使用以下代码示例中的方式访问仓库:
const fetch = require('node-fetch');
fetch('https://api.github.com/repos/aws-amplify/amplify-js/commits?sha=master&path=packages/amazon-cognito-identity-js', {headers: {accept: 'application/vnd.github.v3+json'}})
.then(res => res.json())
.then(data => {
console.log(data[0].commit.committer.date);
console.log(data[0].commit.message);
})
.catch(err => console.error(err));
此代码使用node-fetch库来访问仓库中的commits endpoint,以获取最近一次提交的日期和消息。如果要获取更多提交的信息,只需更改path参数即可。
当然,还可以直接访问GitHub仓库中的changelog文件,例如:https://github.com/aws-amplify/amplify-js/blob/master/packages/amazon-cognito-identity-js/CHANGELOG.md。
上一篇:amazon-cognito-identity-js报错NotAuthorizedException,用户名或密码不正确。
下一篇:Amazon-cognito-identity-js无法使用正确的用户名和密码进行身份验证,错误提示为“NotAuthorizedException。