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

@paperbits/common

Package Overview
Dependencies
Maintainers
2
Versions
702
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperbits/common - npm Package Compare versions

Comparing version 0.1.568 to 0.1.569

14

behaviors/behavior.activate.ts

@@ -5,16 +5,20 @@ import { BehaviorHandle } from "./behavior";

export interface ActivateBehaviorOptions {
data: unknown;
onActivate: (data: unknown) => void;
}
export class ActivateBehavior {
public static attach(element: HTMLElement, config: any): BehaviorHandle {
public static attach(element: HTMLElement, config: ActivateBehaviorOptions): BehaviorHandle {
const onActivate = config.onActivate;
const data = config.data;
const data = config.data;
if (!onActivate) {
console.warn(`Callback function for binding handler "activate" in undefined.`);
return null;
const handle: BehaviorHandle = { detach: () => { } };
return handle;
}
const callback = onActivate; //.bind(viewModel);
const callback = onActivate;

@@ -21,0 +25,0 @@ const onClick = (event: MouseEvent): void => {

{
"name": "@paperbits/common",
"version": "0.1.568",
"version": "0.1.569",
"description": "Paperbits common components.",

@@ -5,0 +5,0 @@ "author": "Paperbits",

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