Socket
Socket
Sign inDemoInstall

svelte

Package Overview
Dependencies
Maintainers
3
Versions
724
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

6

package.json
{
"name": "svelte",
"version": "4.2.1",
"version": "4.2.2",
"description": "Cybernetically enhanced web apps",

@@ -105,3 +105,3 @@ "type": "module",

"locate-character": "^3.0.0",
"magic-string": "^0.30.0",
"magic-string": "^0.30.4",
"periscopic": "^3.1.0"

@@ -123,3 +123,3 @@ },

"happy-dom": "^9.20.3",
"jsdom": "^21.1.2",
"jsdom": "22.0.0",
"kleur": "^4.1.5",

@@ -126,0 +126,0 @@ "rollup": "^3.26.2",

@@ -53,3 +53,3 @@ import { nodes_match } from '../../utils/nodes_match.js';

node.operator === '=' &&
nodes_match(node.left, node.right) &&
nodes_match(node.left, node.right, ['trailingComments','leadingComments']) &&
tail.length === 0

@@ -56,0 +56,0 @@ ) {

@@ -106,4 +106,4 @@ import fix_attribute_casing from './fix_attribute_casing.js';

}
if (this.parent.node.namespace == namespaces.foreign) {
// leave attribute case alone for elements in the "foreign" namespace
if (this.parent.node.namespace == namespaces.foreign || this.parent.node.name.includes('-')) {
// leave attribute case alone for elements in the "foreign" namespace and for custom elements
this.name = this.node.name;

@@ -110,0 +110,0 @@ this.metadata = this.get_metadata();

@@ -1,2 +0,2 @@

export function nodes_match(a, b) {
export function nodes_match(a, b, ignoreKeys=[]) {
if (!!a !== !!b) return false;

@@ -11,4 +11,4 @@ if (Array.isArray(a) !== Array.isArray(b)) return false;

const a_keys = Object.keys(a).sort();
const b_keys = Object.keys(b).sort();
const a_keys = Object.keys(a).sort().filter(key => !ignoreKeys.includes(key));
const b_keys = Object.keys(b).sort().filter(key => !ignoreKeys.includes(key));

@@ -15,0 +15,0 @@ if (a_keys.length !== b_keys.length) return false;

@@ -53,3 +53,3 @@ /**

* ```
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
*

@@ -56,0 +56,0 @@ * You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.

@@ -483,3 +483,6 @@ import { contenteditable_truthy_values, has_prop } from './utils.js';

export function set_custom_element_data(node, prop, value) {
if (prop in node) {
const lower = prop.toLowerCase(); // for backwards compatibility with existing behavior we do lowercase first
if (lower in node) {
node[lower] = typeof node[lower] === 'boolean' && value === '' ? true : value;
} else if (prop in node) {
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;

@@ -486,0 +489,0 @@ } else {

@@ -9,3 +9,3 @@ // generated during release, do not modify

*/
export const VERSION = '4.2.1';
export const VERSION = '4.2.2';
export const PUBLIC_VERSION = '4';

@@ -1351,3 +1351,3 @@ declare module 'svelte' {

* ```
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
*

@@ -1354,0 +1354,0 @@ * You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.

Sorry, the diff of this file is not supported yet

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