New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/keyed

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/keyed - npm Package Compare versions

Comparing version

to
1.1.4

20

dist/index.js

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

import { onCleanup, $TRACK, untrack, createRoot, createSignal, createMemo, on } from 'solid-js';
import { onCleanup, $TRACK, untrack, createRoot, createSignal, createMemo, mapArray, on } from 'solid-js';

@@ -84,12 +84,12 @@ // src/index.ts

const mapFn = props.children;
const mapped = keyArray(
() => props.of && Object.entries(props.of),
(v) => v[0],
mapFn.length < 3 ? (keyvalue) => mapFn(
keyvalue()[0],
() => keyvalue()[1]
) : (keyvalue, i) => mapFn(keyvalue()[0], () => keyvalue()[1], i),
"fallback" in props ? { fallback: () => props.fallback } : void 0
return createMemo(
mapArray(
() => props.of && Object.keys(props.of),
mapFn.length < 3 ? (key) => mapFn(
key,
() => props.of[key]
) : (key, i) => mapFn(key, () => props.of[key], i),
"fallback" in props ? { fallback: () => props.fallback } : void 0
)
);
return createMemo(mapped);
}

@@ -96,0 +96,0 @@ function Rerun(props) {

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

import { createMemo, on } from 'solid-js';
import { createMemo, mapArray, on } from 'solid-js';

@@ -33,12 +33,12 @@ // src/index.ts

const mapFn = props.children;
const mapped = keyArray(
() => props.of && Object.entries(props.of),
(v) => v[0],
mapFn.length < 3 ? (keyvalue) => mapFn(
keyvalue()[0],
() => keyvalue()[1]
) : (keyvalue, i) => mapFn(keyvalue()[0], () => keyvalue()[1], i),
"fallback" in props ? { fallback: () => props.fallback } : void 0
return createMemo(
mapArray(
() => props.of && Object.keys(props.of),
mapFn.length < 3 ? (key) => mapFn(
key,
() => props.of[key]
) : (key, i) => mapFn(key, () => props.of[key], i),
"fallback" in props ? { fallback: () => props.fallback } : void 0
)
);
return createMemo(mapped);
}

@@ -45,0 +45,0 @@ function Rerun(props) {

{
"name": "@solid-primitives/keyed",
"version": "1.1.3",
"version": "1.1.4",
"description": "Control Flow primitives and components that require specifying explicit keys to identify or rerender elements.",

@@ -62,10 +62,10 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",

"devDependencies": {
"@solid-primitives/immutable": "^0.1.3",
"@solid-primitives/refs": "^0.3.3",
"@solid-primitives/utils": "^3.1.0",
"solid-js": "^1.5.0",
"@solid-primitives/immutable": "^0.1.4",
"@solid-primitives/refs": "^0.3.4",
"@solid-primitives/utils": "^4.0.0",
"solid-js": "^1.6.0",
"solid-transition-group": "^0.0.8"
},
"peerDependencies": {
"solid-js": "^1.5.0"
"solid-js": "^1.6.0"
},

@@ -72,0 +72,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet