Socket
Socket
Sign inDemoInstall

svelte

Package Overview
Dependencies
Maintainers
3
Versions
736
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 5.0.0-next.103 to 5.0.0-next.104

2

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.0.0-next.103",
"version": "5.0.0-next.104",
"type": "module",

@@ -8,0 +8,0 @@ "types": "./types/index.d.ts",

@@ -28,2 +28,5 @@ export const EACH_ITEM_REACTIVE = 1;

/** List of elements that require raw contents and should not have SSR comments put in them */
export const RawTextElements = ['textarea', 'script', 'style', 'title'];
/** List of Element events that will be delegated */

@@ -30,0 +33,0 @@ export const DelegatedEvents = [

@@ -107,2 +107,5 @@ import { DEV } from 'esm-env';

// @ts-expect-error
var attributes = /** @type {Record<string, unknown>} **/ (element.__attributes ??= {});
for (key in next) {

@@ -144,2 +147,3 @@ var value = next[key];

} else if (value == null) {
attributes[key] = null;
element.removeAttribute(key);

@@ -146,0 +150,0 @@ } else if (key === 'style') {

@@ -6,2 +6,3 @@ import { is_promise, noop } from '../shared/utils.js';

DOMBooleanAttributes,
RawTextElements,
disallowed_paragraph_contents,

@@ -165,7 +166,7 @@ interactive_elements,

if (!VoidElements.has(tag)) {
if (tag !== 'textarea') {
if (!RawTextElements.includes(tag)) {
payload.out += BLOCK_OPEN;
}
children_fn();
if (tag !== 'textarea') {
if (!RawTextElements.includes(tag)) {
payload.out += BLOCK_CLOSE;

@@ -172,0 +173,0 @@ }

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

*/
export const VERSION = '5.0.0-next.103';
export const VERSION = '5.0.0-next.104';
export const PUBLIC_VERSION = '5';

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

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