Socket
Socket
Sign inDemoInstall

@rails/ujs

Package Overview
Dependencies
Maintainers
10
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rails/ujs - npm Package Compare versions

Comparing version 6.0.0-rc1 to 6.0.0-rc2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## Rails 6.0.0.rc2 (July 22, 2019) ##
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
*Younes SERRAJ*
## Rails 6.0.0.rc1 (April 24, 2019) ##

@@ -2,0 +9,0 @@

6

lib/assets/compiled/rails-ujs.js

@@ -648,3 +648,3 @@ /*

Rails.preventInsignificantClick = function(e) {
var data, insignificantMetaClick, link, metaClick, method, primaryMouseKey;
var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;
link = this;

@@ -655,4 +655,4 @@ method = (link.getAttribute('data-method') || 'GET').toUpperCase();

insignificantMetaClick = metaClick && method === 'GET' && !data;
primaryMouseKey = e.button === 0;
if (!primaryMouseKey || insignificantMetaClick) {
nonPrimaryMouseClick = (e.button != null) && e.button !== 0;
if (nonPrimaryMouseClick || insignificantMetaClick) {
return e.stopImmediatePropagation();

@@ -659,0 +659,0 @@ }

{
"name": "@rails/ujs",
"version": "6.0.0-rc1",
"version": "6.0.0-rc2",
"description": "Ruby on Rails unobtrusive scripting adapter",

@@ -5,0 +5,0 @@ "main": "lib/assets/compiled/rails-ujs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc