
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@sishuguojixuefu/iterator
Advanced tools
让前端分页需求更简单
$ yarn add @sishuguojixuefu/iterator
/**
* 异常记录
*/
static getExceptionRecordsList = async (params: {}, page, size) => {
const result: {
data: { id: string; studentGroupName: string; startTime: string; endTime: string; outTime: boolean }[]
total: number
} = await request.post('/course/exception-records', { ...params, page, size })
return result
}
this.Iterator = createAsyncIterator(getExceptionRecordsList, params, 10)
Iterator接口的实现须满足几个条件:
next()
方法;next()
方法执行后须返回一个对象,且对象须包含代表成员的 value
属性、表示遍历是否结束的 done
属性。FAQs
We found that @sishuguojixuefu/iterator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.