Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/element

Package Overview
Dependencies
Maintainers
25
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/element - npm Package Compare versions

Comparing version 4.12.0 to 4.13.0

3

build-module/serialize.js

@@ -31,3 +31,4 @@ /**

*/
import { kebabCase, isPlainObject } from 'lodash';
import isPlainObject from 'is-plain-obj';
import { paramCase as kebabCase } from 'change-case';
/**

@@ -34,0 +35,0 @@ * WordPress dependencies

@@ -16,4 +16,6 @@ "use strict";

var _lodash = require("lodash");
var _isPlainObj = _interopRequireDefault(require("is-plain-obj"));
var _changeCase = require("change-case");
var _escapeHtml = require("@wordpress/escape-html");

@@ -245,3 +247,3 @@

} else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
return (0, _lodash.kebabCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
return (0, _changeCase.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
} else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {

@@ -272,6 +274,6 @@ return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];

if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
return '-' + (0, _lodash.kebabCase)(property);
return '-' + (0, _changeCase.paramCase)(property);
}
return (0, _lodash.kebabCase)(property);
return (0, _changeCase.paramCase)(property);
}

@@ -546,3 +548,3 @@ /**

// Only generate from object, e.g. tolerate string value.
if (!(0, _lodash.isPlainObject)(style)) {
if (!(0, _isPlainObj.default)(style)) {
return style;

@@ -549,0 +551,0 @@ }

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 4.13.0 (2022-08-10)
## 4.12.0 (2022-07-27)

@@ -7,0 +9,0 @@

{
"name": "@wordpress/element",
"version": "4.12.0",
"version": "4.13.0",
"description": "Element React module for WordPress.",

@@ -34,4 +34,5 @@ "author": "The WordPress Contributors",

"@types/react-dom": "^17.0.11",
"@wordpress/escape-html": "^2.14.0",
"lodash": "^4.17.21",
"@wordpress/escape-html": "^2.15.0",
"change-case": "^4.1.2",
"is-plain-obj": "^4.1.0",
"react": "^17.0.2",

@@ -43,3 +44,3 @@ "react-dom": "^17.0.2"

},
"gitHead": "0315dbc240cb2aa146d7c1bafd251f004b88300e"
"gitHead": "08358f53b627a15148c3a3e433cdf58cf8714aa4"
}

@@ -31,3 +31,4 @@ /**

*/
import { kebabCase, isPlainObject } from 'lodash';
import isPlainObject from 'is-plain-obj';
import { paramCase as kebabCase } from 'change-case';

@@ -34,0 +35,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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