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

solid-js

Package Overview
Dependencies
Maintainers
1
Versions
463
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-js - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

3

dist/dev.js

@@ -337,3 +337,3 @@ let taskIdCounter = 1,

}));
if (typeof p !== "object" || !("then" in p)) {
if (typeof p !== "object" || !(p && "then" in p)) {
loadEnd(pr, p);

@@ -522,2 +522,3 @@ return p;

}), undefined, true);
c.props = props;
c.observers = null;

@@ -524,0 +525,0 @@ c.observerSlots = null;

@@ -329,3 +329,3 @@ let taskIdCounter = 1,

}));
if (typeof p !== "object" || !("then" in p)) {
if (typeof p !== "object" || !(p && "then" in p)) {
loadEnd(pr, p);

@@ -332,0 +332,0 @@ return p;

{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "1.5.4",
"version": "1.5.5",
"author": "Ryan Carniato",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -259,6 +259,3 @@ import { requestCallback } from "./scheduler.js";

};
export declare type ResourceReturn<T, R = unknown> = [
Resource<T>,
ResourceActions<T | undefined, R>
];
export declare type ResourceReturn<T, R = unknown> = [Resource<T>, ResourceActions<T | undefined, R>];
export declare type InitializedResourceReturn<T, R = unknown> = [

@@ -451,2 +448,6 @@ InitializedResource<T>,

export declare function resumeEffects(e: Computation<any>[]): void;
export interface DevComponent<T> extends Memo<JSX.Element> {
props: T;
componentName: string;
}
export declare function devComponent<T>(Comp: (props: T) => JSX.Element, props: T): JSX.Element;

@@ -453,0 +454,0 @@ export declare function hashValue(v: any): string;

@@ -373,6 +373,6 @@ import { createMemo, createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createSignal, onCleanup, splitProps, $DEVCOMP } from 'solid-js';

props || (props = {});
if (!skipChildren && "children" in props) {
if (!skipChildren) {
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
}
props.ref && props.ref(node);
createRenderEffect(() => props.ref && props.ref(node));
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));

@@ -379,0 +379,0 @@ return prevProps;

@@ -526,3 +526,3 @@ import { sharedConfig, splitProps } from 'solid-js';

let result = `<${tag}${needsId ? ssrHydrationKey() : ""} `;
if (typeof props === "function") props = props();
if (props == null) props = {};else if (typeof props === "function") props = props();
const keys = Object.keys(props);

@@ -568,2 +568,9 @@ let classResolved;

if (!attr && t === "function") return escape(s(), attr);
if (!attr && Array.isArray(s)) {
let r = "";
for (let i = 0; i < s.length; i++) r += resolveSSRNode(escape(s[i], attr));
return {
t: r
};
}
if (attr && t === "boolean") return String(s);

@@ -570,0 +577,0 @@ return s;

@@ -370,6 +370,6 @@ import { createMemo, createRoot, createRenderEffect, sharedConfig, untrack, enableHydration, createSignal, onCleanup, splitProps } from 'solid-js';

props || (props = {});
if (!skipChildren && "children" in props) {
if (!skipChildren) {
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
}
props.ref && props.ref(node);
createRenderEffect(() => props.ref && props.ref(node));
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));

@@ -376,0 +376,0 @@ return prevProps;

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

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