Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Simple rails engine that uses ajax to ping Chronic, giving users imediate feedback regarding the date they entered in a text field.
In your Gemfile
gem 'chronic_ping'
In your assets/javascript/application.js
//= require chronic_ping
In your form
= f.text_field :due_at, class: 'chronic_ping'
The following values are already set by default, but if you want to customize them, create a file called config/initializers/chronic_ping.rb
that should look something like this:
ChronicPing.configure do |config|
config.formats = {
default: '%B %d, %Y at %I:%M%p',
datetime: '%B %d, %Y at %I:%M%p',
date: '%B %d, %Y',
my_new_format: '...'
}
end
To use a custom predefined format just specify it in a data-format
attribute:
= f.text_field :born_on, class: 'chronic_ping', data: {format: 'date'}
Or you can put a format string directly into the data-format
attribute:
= f.text_field :born_on, class: 'chronic_ping', data: {format: '%m/%d/%Y'}
This project rocks and uses MIT-LICENSE.
FAQs
Unknown package
We found that chronic_ping 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.