
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-autocomplete-saf
Advanced tools
a simple Autocomplete component for react and Material-ui , npm install react-autocomplete-saf
const arr=[
{
Name:"Doc",
id:0
},
{
Name:"Zip",
id:1
},
{
Name:"Other",
id:2
}
]
loadDocument(query){
return new Promise(resolve=>resolve(_.filter(arr,a=>a.Name.match(new RegExp(query,"i")))))
}
<AutoComplete
//to enable offline search
//searchLocal={"Name"}
default={arr[document].Name}
//to disable Textfield
// disable={true}
width={"250px"}
//Label
label="Document"
//unique property in Suggestions array
valueKey="id"
//Text format when an suggest get selected
valueText={(suggest) => (suggest) ? (suggest.Name) : ""}
//optional key
key={"Type"}
//cause of using {whithStyles} we cant call AutoComplete public methods so i did this onRef.
onRef={x => this.AutoComplete = x}
//render item
displayItem={(item) => <span>{item.Name} <i>{item.id}</i></span>}
//load array of docs (Promise) every onChange event
load={this.loadDocument}
//when an Item get clicked (chose)
//{suggestId} comes from suggestSelected[valueKey]
select={(suggestId) => {
this.setState({
document: suggestId
})
}}
/>
FAQs
react auto-complete component
The npm package react-autocomplete-saf receives a total of 0 weekly downloads. As such, react-autocomplete-saf popularity was classified as not popular.
We found that react-autocomplete-saf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.