Socket
Socket
Sign inDemoInstall

@neovici/cosmoz-input

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neovici/cosmoz-input - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

7

dist/use-input.js

@@ -6,3 +6,4 @@ import { useCallback, useEffect, useRef } from '@pionjs/pion';

const inputRef = useRef(undefined);
const onRef = useCallback((el) => (inputRef.current = el), []), onChange = useCallback((e) => host.dispatchEvent(new Event(e.type, { bubbles: e.bubbles })), []), onInput = useCallback((e) => notifyProperty(host, 'value', e.target.value), []), onFocus = useCallback((e) => notifyProperty(host, 'focused', e.type === 'focus'), []), focus = useCallback(() => inputRef.current?.focus(), []), validate = useCallback(() => {
const onRef = useCallback((el) => (inputRef.current = el), []);
const root = host.shadowRoot, onChange = useCallback((e) => host.dispatchEvent(new Event(e.type, { bubbles: e.bubbles })), []), onInput = useCallback((e) => notifyProperty(host, 'value', e.target.value), []), onFocus = useCallback((e) => notifyProperty(host, 'focused', e.type === 'focus'), []), focus = useCallback(() => inputRef.current?.focus(), []), validate = useCallback(() => {
const valid = inputRef.current?.checkValidity();

@@ -26,4 +27,4 @@ host.toggleAttribute('invalid', !valid);

};
host.addEventListener('mousedown', onMouseDown);
return () => host.removeEventListener('mousedown', onMouseDown);
root.addEventListener('mousedown', onMouseDown);
return () => root.removeEventListener('mousedown', onMouseDown);
}, [focus]);

@@ -30,0 +31,0 @@ return {

{
"name": "@neovici/cosmoz-input",
"version": "5.0.3",
"version": "5.0.4",
"description": "A input web component",

@@ -5,0 +5,0 @@ "keywords": [

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