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

@pap-it/system-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pap-it/system-react - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

dist/src/HOC.js

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

"use strict";import{jsx as l}from"react/jsx-runtime";import r from"react";export function papHOC(c){const s=r.forwardRef((t,u)=>{const n=r.useRef(null),i=r.useRef(new Set),[d,o]=r.useState(!1);r.useEffect(()=>{typeof u=="function"?u(n.current):u&&(u.current=n.current),n.current&&o(!0)},[n.current]);const a={class:t.className};if(n.current)for(let e in t)if(typeof t[e]=="function"){if(e.startsWith("on")){if(i.current.has(e))continue;const f=m(e);if(f){n.current.addEventListener(f,t[e]),i.current.add(e);continue}}n.current[e]=t[e]}else typeof t[e]=="object"?n.current[e]=t[e]:a[e]=t[e];return l(c,{ref:n,...a,children:t.children})});return r.memo(s)}function m(c){return c.startsWith("on")?c.replace(/^on/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():null}
"use strict";import{jsx as l}from"react/jsx-runtime";import r from"react";export function papHOC(c){const o=r.forwardRef((t,u)=>{const n=r.useRef(null),i=r.useRef(new Set),[d,s]=r.useState(!1);r.useEffect(()=>{typeof u=="function"?u(n.current):u&&(u.current=n.current),n.current&&s(!0)},[n.current]);const f={class:t.className};if(n.current){for(let e in t)if(e!=="children")if(typeof t[e]=="function"){if(e.startsWith("on")){if(i.current.has(e))continue;const a=m(e);if(a){n.current.addEventListener(a,t[e]),i.current.add(e);continue}}n.current[e]=t[e]}else typeof t[e]=="object"?n.current[e]=t[e]:f[e]=t[e]}return l(c,{ref:n,...f,children:t.children})});return r.memo(o)}function m(c){return c.startsWith("on")?c.replace(/^on/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():null}
{
"name": "@pap-it/system-react",
"version": "0.0.6",
"version": "0.0.7",
"scripts": {

@@ -5,0 +5,0 @@ "test": ".scripts/test.sh",

@@ -5,6 +5,7 @@ # ReactSystem

Version: Version: Version: 0.0.6
Version: Version: Version: 0.0.7
## Development

@@ -11,0 +12,0 @@

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