Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@qn-pandora/app-sdk
Advanced tools
@qn-pandora/app-sdk
对 Pandora 平台搜索相关 API 进行封装
import { SearchManager } from '@qn-pandora/app-sdk'
const searchCondition = {
queryString: 'repo="testjwzfr"',
time: {
start: 0,
end: 1589770122581,
},
}
const option = {
task: {
event: true,
summary: true,
timeline: true,
result: true,
},
}
const searchManager = new SearchManager({
searchCondition: searchCondition,
option: option,
})
searchManager.on('done', (data) => {
console.log('data', data)
})
searchManager.search()
import { SearchManager } from '@qn-pandora/app-sdk'
const searchCondition = {
queryString: 'repo="testjwzfr"',
time: {
start: 0,
end: 1589770122581,
},
}
const option = {
task: {
event: true,
summary: true,
timeline: true,
result: true,
},
}
const searchManager = new SearchManager({
option: option,
})
searchManager.on('done', (data) => {
console.log('data', data)
})
searchManager.search(searchCondition)
import { SearchManager } from '@qn-pandora/app-sdk'
const searchCondition = {
queryString: 'repo="testjwzfr"',
time: {
start: 0,
end: 1589770122581,
},
}
const option = {
task: {
event: true,
summary: true,
timeline: true,
result: true,
},
}
const searchManager = new SearchManager({
option: option,
})
const jobId = await searchManager.search(searchCondition)
searchManager.on('done', (data) => {
const event = searchMangeer.getEvent(jobId)
console.log('event', event)
})
可通过 on 函数注册监听事件回调函数
对 Pandora 平台登录相关 API 进行封装
import { LoginManager, LoginType } from '@qn-pandora/app-sdk'
const loginManager = new LoginManager(LoginType.Pandora)
loginManager.login({
username: 'admin',
password: 'admin',
})
import { LoginManager, LoginType } from '@qn-pandora/app-sdk'
const loginManager = new LoginManager(LoginType.SSO)
loginManager.login({
token:
'MjNGNDEweHdnQ2pOWVpuNFpINkkzUVJQZ0I0MnBab2RNTGt6UGcya0h0aUFpVVNGOjcxNzdmNjRhN2RmZDdjN2UxMGQ1MmRiNmQxYmZkNGU0NjJlNzU3NDdhNjU1NGMyNzJlMzMwODgyNzFiY2IzODMyZGJiZTA1YTM4OWI3NDIyOTgxODkwZGYzYjMxYWI2NTk2OTY0MmI1NDZjMjMxZDRiZjNlZGE3YWMyYjc4MzFj',
})
方法返回都为 Promise
FAQs
Pandora APP 核心渲染逻辑 SDK
The npm package @qn-pandora/app-sdk receives a total of 24 weekly downloads. As such, @qn-pandora/app-sdk popularity was classified as not popular.
We found that @qn-pandora/app-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.