Socket
Socket
Sign inDemoInstall

@vue/runtime-dom

Package Overview
Dependencies
Maintainers
2
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/runtime-dom - npm Package Compare versions

Comparing version 3.4.17 to 3.4.18

13

dist/runtime-dom.cjs.js
/**
* @vue/runtime-dom v3.4.17
* @vue/runtime-dom v3.4.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -380,3 +380,3 @@ * @license MIT

updated(el, { value, oldValue }, { transition }) {
if (!value === !oldValue)
if (!value === !oldValue && el.style.display === el[vShowOldKey])
return;

@@ -420,6 +420,8 @@ if (transition) {

const displayRE = /(^|;)\s*display\s*:/;
function patchStyle(el, prev, next) {
const style = el.style;
const isCssString = shared.isString(next);
const currentDisplay = style.display;
const isCssString = shared.isString(next);
let hasControlledDisplay = false;
if (next && !isCssString) {

@@ -434,2 +436,5 @@ if (prev && !shared.isString(prev)) {

for (const key in next) {
if (key === "display") {
hasControlledDisplay = true;
}
setStyle(style, key, next[key]);

@@ -445,2 +450,3 @@ }

style.cssText = next;
hasControlledDisplay = displayRE.test(next);
}

@@ -452,2 +458,3 @@ } else if (prev) {

if (vShowOldKey in el) {
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
style.display = currentDisplay;

@@ -454,0 +461,0 @@ }

/**
* @vue/runtime-dom v3.4.17
* @vue/runtime-dom v3.4.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -377,3 +377,3 @@ * @license MIT

updated(el, { value, oldValue }, { transition }) {
if (!value === !oldValue)
if (!value === !oldValue && el.style.display === el[vShowOldKey])
return;

@@ -414,6 +414,8 @@ if (transition) {

const displayRE = /(^|;)\s*display\s*:/;
function patchStyle(el, prev, next) {
const style = el.style;
const isCssString = shared.isString(next);
const currentDisplay = style.display;
const isCssString = shared.isString(next);
let hasControlledDisplay = false;
if (next && !isCssString) {

@@ -428,2 +430,5 @@ if (prev && !shared.isString(prev)) {

for (const key in next) {
if (key === "display") {
hasControlledDisplay = true;
}
setStyle(style, key, next[key]);

@@ -439,2 +444,3 @@ }

style.cssText = next;
hasControlledDisplay = displayRE.test(next);
}

@@ -446,2 +452,3 @@ } else if (prev) {

if (vShowOldKey in el) {
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
style.display = currentDisplay;

@@ -448,0 +455,0 @@ }

/**
* @vue/runtime-dom v3.4.17
* @vue/runtime-dom v3.4.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -377,3 +377,3 @@ * @license MIT

updated(el, { value, oldValue }, { transition }) {
if (!value === !oldValue)
if (!value === !oldValue && el.style.display === el[vShowOldKey])
return;

@@ -478,6 +478,8 @@ if (transition) {

const displayRE = /(^|;)\s*display\s*:/;
function patchStyle(el, prev, next) {
const style = el.style;
const isCssString = isString(next);
const currentDisplay = style.display;
const isCssString = isString(next);
let hasControlledDisplay = false;
if (next && !isCssString) {

@@ -492,2 +494,5 @@ if (prev && !isString(prev)) {

for (const key in next) {
if (key === "display") {
hasControlledDisplay = true;
}
setStyle(style, key, next[key]);

@@ -503,2 +508,3 @@ }

style.cssText = next;
hasControlledDisplay = displayRE.test(next);
}

@@ -510,2 +516,3 @@ } else if (prev) {

if (vShowOldKey in el) {
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
style.display = currentDisplay;

@@ -512,0 +519,0 @@ }

{
"name": "@vue/runtime-dom",
"version": "3.4.17",
"version": "3.4.18",
"description": "@vue/runtime-dom",

@@ -53,5 +53,5 @@ "main": "index.js",

"csstype": "^3.1.3",
"@vue/shared": "3.4.17",
"@vue/runtime-core": "3.4.17"
"@vue/shared": "3.4.18",
"@vue/runtime-core": "3.4.18"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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