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.6.2 to 1.6.3

h/jsx-dev-runtime/package.json

51

dist/dev.js

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

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

@@ -345,3 +345,3 @@ }

}, false);
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e)));
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
}

@@ -580,3 +580,5 @@ Object.defineProperties(read, {

const children = createMemo(fn);
const memo = createMemo(() => resolveChildren(children()));
const memo = createMemo(() => resolveChildren(children()), undefined, {
name: "children"
}) ;
memo.toArray = () => {

@@ -1145,3 +1147,5 @@ const c = memo();

if (indexes) {
const [s, set] = createSignal(j);
const [s, set] = createSignal(j, {
name: "index"
}) ;
indexes[j] = set;

@@ -1208,3 +1212,5 @@ return mapFn(newItems[j], s);

disposers[i] = disposer;
const [s, set] = createSignal(newItems[i]);
const [s, set] = createSignal(newItems[i], {
name: "value"
}) ;
signals[i] = set;

@@ -1388,3 +1394,5 @@ return mapFn(s, i);

};
return createMemo(mapArray(() => props.each, props.children, fallback ? fallback : undefined));
return createMemo(mapArray(() => props.each, props.children, fallback || undefined), undefined, {
name: "value"
}) ;
}

@@ -1395,3 +1403,5 @@ function Index(props) {

};
return createMemo(indexArray(() => props.each, props.children, fallback ? fallback : undefined));
return createMemo(indexArray(() => props.each, props.children, fallback || undefined), undefined, {
name: "value"
}) ;
}

@@ -1402,4 +1412,5 @@ function Show(props) {

const condition = createMemo(() => props.when, undefined, {
equals: (a, b) => strictEqual ? a === b : !a === !b
});
equals: (a, b) => strictEqual ? a === b : !a === !b,
name: "condition"
} );
return createMemo(() => {

@@ -1414,3 +1425,5 @@ const c = condition();

return props.fallback;
});
}, undefined, {
name: "value"
} );
}

@@ -1420,2 +1433,3 @@ function Switch(props) {

let keyed = false;
const equals = (a, b) => a[0] === b[0] && (strictEqual ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
const conditions = children(() => props.children),

@@ -1434,4 +1448,5 @@ evalConditions = createMemo(() => {

}, undefined, {
equals: (a, b) => a[0] === b[0] && (strictEqual ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2]
});
equals,
name: "eval conditions"
} );
return createMemo(() => {

@@ -1444,3 +1459,5 @@ const [index, when, cond] = evalConditions();

return fn ? untrack(() => c(when)) : c;
});
}, undefined, {
name: "value"
} );
}

@@ -1458,3 +1475,5 @@ function Match(props) {

if (sharedConfig.context && sharedConfig.load && (v = sharedConfig.load(sharedConfig.context.id + sharedConfig.context.count))) err = v[0];
const [errored, setErrored] = createSignal(err);
const [errored, setErrored] = createSignal(err, {
name: "errored"
} );
Errors || (Errors = new Set());

@@ -1474,3 +1493,5 @@ Errors.add(setErrored);

return props.children;
});
}, undefined, {
name: "value"
} );
}

@@ -1477,0 +1498,0 @@

@@ -290,3 +290,17 @@ const equalFn = (a, b) => a === b;

if (typeof source === "function") source = source();
if (source) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
if (source) {
const descriptors = Object.getOwnPropertyDescriptors(source);
for (const key in descriptors) {
if (key in target) continue;
Object.defineProperty(target, key, {
enumerable: true,
get() {
for (let i = sources.length - 1; i >= 0; i--) {
const v = (sources[i] || {})[key];
if (v !== undefined) return v;
}
}
});
}
}
}

@@ -293,0 +307,0 @@ return target;

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

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

@@ -337,3 +337,3 @@ }

}, false);
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e)));
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
}

@@ -1297,3 +1297,3 @@ Object.defineProperties(read, {

};
return createMemo(mapArray(() => props.each, props.children, fallback ? fallback : undefined));
return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
}

@@ -1304,3 +1304,3 @@ function Index(props) {

};
return createMemo(indexArray(() => props.each, props.children, fallback ? fallback : undefined));
return createMemo(indexArray(() => props.each, props.children, fallback || undefined));
}

@@ -1322,3 +1322,3 @@ function Show(props) {

return props.fallback;
});
}, undefined, undefined);
}

@@ -1328,2 +1328,3 @@ function Switch(props) {

let keyed = false;
const equals = (a, b) => a[0] === b[0] && (strictEqual ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
const conditions = children(() => props.children),

@@ -1342,3 +1343,3 @@ evalConditions = createMemo(() => {

}, undefined, {
equals: (a, b) => a[0] === b[0] && (strictEqual ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2]
equals
});

@@ -1352,3 +1353,3 @@ return createMemo(() => {

return fn ? untrack(() => c(when)) : c;
});
}, undefined, undefined);
}

@@ -1366,3 +1367,3 @@ function Match(props) {

if (sharedConfig.context && sharedConfig.load && (v = sharedConfig.load(sharedConfig.context.id + sharedConfig.context.count))) err = v[0];
const [errored, setErrored] = createSignal(err);
const [errored, setErrored] = createSignal(err, undefined);
Errors || (Errors = new Set());

@@ -1381,3 +1382,3 @@ Errors.add(setErrored);

return props.children;
});
}, undefined, undefined);
}

@@ -1384,0 +1385,0 @@

@@ -9,2 +9,4 @@ import { spread, assign, insert, createComponent, dynamicProperty, SVGElements } from 'solid-js/web';

multiExpression = false;
while (Array.isArray(args[0])) args = args[0];
if (args[0][$ELEMENT]) args.unshift(h.Fragment);
typeof args[0] === "string" && detectMultiExpression(args);

@@ -88,2 +90,3 @@ const ret = () => {

}
h.Fragment = props => props.children;
return h;

@@ -90,0 +93,0 @@ }

@@ -15,4 +15,7 @@ declare type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;

(...args: any[]): () => ExpandableNode | ExpandableNode[];
Fragment: (props: {
children: (() => ExpandableNode) | (() => ExpandableNode)[];
}) => ExpandableNode[];
};
export declare function createHyperScript(r: Runtime): HyperScript;
export {};
{
"name": "solid-js",
"description": "A declarative JavaScript library for building user interfaces.",
"version": "1.6.2",
"version": "1.6.3",
"author": "Ryan Carniato",

@@ -36,2 +36,3 @@ "license": "MIT",

"h/jsx-runtime/package.json",
"h/jsx-dev-runtime/package.json",
"html/dist",

@@ -101,2 +102,6 @@ "html/types",

},
"./jsx-dev-runtime": {
"types": "./types/jsx.d.ts",
"default": "./dist/solid.js"
},
"./store": {

@@ -231,2 +236,9 @@ "worker": {

},
"./h/jsx-dev-runtime": {
"import": {
"types": "./h/jsx-runtime/types/index.d.ts",
"default": "./h/jsx-runtime/dist/jsx.js"
},
"require": "./h/jsx-runtime/dist/jsx.cjs"
},
"./h/dist/*": "./h/dist/*",

@@ -233,0 +245,0 @@ "./html": {

@@ -5,3 +5,3 @@ import type { JSX } from "../jsx.js";

* A general `Component` has no implicit `children` prop. If desired, you can
* specify one as in `Component<{name: String, children: JSX.Element>}`.
* specify one as in `Component<{name: String, children: JSX.Element}>`.
*/

@@ -8,0 +8,0 @@ export declare type Component<P = {}> = (props: P) => JSX.Element;

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

}
while (node !== null) {
while (node) {
const handler = node[key];

@@ -366,3 +366,3 @@ if (handler && !node.disabled) {

}
node = node.host && node.host !== node && node.host instanceof Node ? node.host : node.parentNode;
node = node._$host || node.parentNode || node.host;
}

@@ -559,3 +559,3 @@ }

}) : container;
Object.defineProperty(container, "host", {
Object.defineProperty(container, "_$host", {
get() {

@@ -562,0 +562,0 @@ return marker.parentNode;

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

}
while (node !== null) {
while (node) {
const handler = node[key];

@@ -363,3 +363,3 @@ if (handler && !node.disabled) {

}
node = node.host && node.host !== node && node.host instanceof Node ? node.host : node.parentNode;
node = node._$host || node.parentNode || node.host;
}

@@ -556,3 +556,3 @@ }

}) : container;
Object.defineProperty(container, "host", {
Object.defineProperty(container, "_$host", {
get() {

@@ -559,0 +559,0 @@ return marker.parentNode;

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 too big to display

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