Socket
Socket
Sign inDemoInstall

@chasi/ui

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chasi/ui - npm Package Compare versions

Comparing version 0.1.50 to 0.1.51

2

dist/Actions/observer.d.ts

@@ -10,5 +10,5 @@ type ObserverParams = {

}
export default function (node: HTMLElement, { onIntersect, once }: ObserverParams): {
export default function (node: HTMLElement | SVGElement, { onIntersect, once }: ObserverParams): {
destroy: () => void;
};
export {};

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

export default function (node: HTMLElement, option: {
target: string;
export default function (node: HTMLElement | SVGElement, option: {
target: string | Element;
prepend?: boolean;
}): {
destroy: () => void;
destroy(): void;
};
export default function (node, option) {
const targetNode = document.querySelector(option.target);
const targetNode = option.target instanceof Element ? option.target : document.querySelector(option.target);
if (!targetNode)

@@ -4,0 +4,0 @@ throw 'Target Element must exist on the DOM';

{
"name": "@chasi/ui",
"version": "0.1.50",
"version": "0.1.51",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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