
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:
These features are achieved by adding certain "data" attributes to your HTML markup. In Rails, they are added by the framework's template helpers.
Full documentation is on the wiki, including the list of published Ajax events.
If you don't use HTML5, adding "data" attributes to your HTML4 or XHTML pages might make them fail W3C markup validation. However, this shouldn't create any issues for web browsers or other user agents.
For automated installation in Rails, use the "jquery-rails" gem. Place this in your Gemfile:
gem 'jquery-rails', '~> 2.1'
And run:
$ bundle install
This next step depends on your version of Rails.
a. For Rails 3.1, add these lines to the top of your app/assets/javascripts/application.js file:
//= require jquery
//= require jquery_ujs
b. For Rails 3.0, run this command:
Be sure to get rid of the rails.js file if it exists, and instead use the new jquery_ujs.js file that gets copied to the public directory. Choose to overwrite jquery_ujs.js if prompted.
$ rails generate jquery:install
c. For Rails 2.x and for manual installation follow this wiki .
Follow this wiki to run tests .
FAQs
Unobtrusive scripting adapter for jQuery
The npm package jquery-ujs receives a total of 133,271 weekly downloads. As such, jquery-ujs popularity was classified as popular.
We found that jquery-ujs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.