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

@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.2 to 5.0.3

7

dist/use-input.js

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

const inputRef = useRef(undefined);
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 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 valid = inputRef.current?.checkValidity();

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

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

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

{
"name": "@neovici/cosmoz-input",
"version": "5.0.2",
"version": "5.0.3",
"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