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

be-hive

Package Overview
Dependencies
Maintainers
0
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-hive - npm Package Compare versions

Comparing version 0.0.217 to 0.0.218

12

aggEvt.js

@@ -5,7 +5,3 @@ export const rguid = 'XM5dz7tqZkeFCtytNXHPzw';

args;
// /**
// * Event view model
// * @type {{[key: string]: any}}
// */
// f;
f;
/**

@@ -25,5 +21,6 @@ * @type {Element}

// }
constructor(type, args, target) {
constructor(type, args, f, target) {
super(type);
this.args = args;
this.f = f;
this.target = target;

@@ -40,2 +37,5 @@ }

eq: (e) => e.r = e.args?.length === 0 ? true : e.args.find(x => e.args[0] !== x) === undefined,
'||': (e) => e.r = e.args.reduce((acc, arg) => acc || arg),
'&&': (e) => e.r = e.args.reduce((acc, arg) => acc && arg),
'{}': (e) => e.r = e.f,
};
import { EventListenerOrFn } from "./ts-refs/trans-render/be/types";
import {aggKeys} from './ts-refs/be-hive/types';

@@ -7,7 +8,3 @@ export const rguid = 'XM5dz7tqZkeFCtytNXHPzw';

args: Array<any>;
// /**
// * Event view model
// * @type {{[key: string]: any}}
// */
// f;
f: {[key: string]: any};
/**

@@ -27,5 +24,6 @@ * @type {Element}

// }
constructor(type: string, args: Array<any>, target: Element){
constructor(type: string, args: Array<any>, f: {[key: string]: any}, target: Element){
super(type);
this.args = args;
this.f = f;
this.target = target;

@@ -35,3 +33,3 @@ }

export const aggs: {[key: string]: (e: AggEvent) => void} = {
export const aggs: {[key: aggKeys & string]: (e: AggEvent) => void} = {
'+': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc + arg),

@@ -44,3 +42,6 @@ '*': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc * arg),

eq: (e: AggEvent) => e.r = e.args?.length === 0 ? true : e.args.find(x => e.args[0] !== x) === undefined,
'||': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc || arg),
'&&': (e: AggEvent) => e.r = e.args.reduce((acc, arg) => acc && arg),
'{}': (e: AggEvent) => e.r = e.f,
};
{
"name": "be-hive",
"version": "0.0.217",
"version": "0.0.218",
"keywords": [

@@ -5,0 +5,0 @@ "web-components",

@@ -21,5 +21,5 @@ import {EMC, EventListenerOrFn} from './ts-refs/trans-render/be/types';

}
scopedCustomHandlers.get(handlerName).push([q, handler]);
scopedCustomHandlers!.get(handlerName)!.push([q, handler]);
}
}
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