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

@solid-primitives/props

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/props - npm Package Compare versions

Comparing version 3.0.6 to 3.0.7

5

dist/index.js

@@ -107,3 +107,6 @@ import { $PROXY, createMemo, mergeProps } from 'solid-js';

const name = key.toLowerCase();
const callback = typeof v === "function" ? v : Array.isArray(v) ? v.length === 1 ? v[0] : v[0].bind(void 0, v[1]) : void 0;
const callback = typeof v === "function" ? v : (
// jsx event handlers can be tuples of [callback, arg]
Array.isArray(v) ? v.length === 1 ? v[0] : v[0].bind(void 0, v[1]) : void 0
);
if (callback)

@@ -110,0 +113,0 @@ listeners[name] ? listeners[name].push(callback) : listeners[name] = [callback];

4

package.json
{
"name": "@solid-primitives/props",
"version": "3.0.6",
"version": "3.0.7",
"description": "Library of primitives focused around component props.",

@@ -45,3 +45,3 @@ "author": "Damian Tarnawski <gthetarnav@gmail.com>",

"dependencies": {
"@solid-primitives/utils": "^5.0.0"
"@solid-primitives/utils": "^5.2.1"
},

@@ -48,0 +48,0 @@ "devDependencies": {

@@ -68,7 +68,7 @@ <p>

onClick: e => {},
onclick: e => {}
onclick: e => {},
},
{
onClick: [(n, e) => {}, 123]
}
onClick: [(n, e) => {}, 123],
},
);

@@ -96,3 +96,3 @@ // combined.onClick() will call all 3 of the functions above

margin: "2rem",
padding: "16px"
padding: "16px",
});

@@ -99,0 +99,0 @@ styles; // { margin: "2rem", border: "1px solid #121212", padding: "16px" }

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