Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

cellery

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cellery - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+12
-24
lib/cells.js

@@ -18,7 +18,17 @@ class Cell {

_render() {
// impl
return this
}
render(opts = {}) {
const cell = this._render()
if (!cell.cellery) {
cell.register(this.cellery)
}
this.cellery.pub({
event: 'render',
id: this.id,
content: this.cellery.adapter.render(this),
id: cell.id,
content: this.cellery.adapter.render(cell),
...opts

@@ -44,23 +54,2 @@ })

class MultiCell {
constructor(opts = {}) {
this.id = opts.id
this.cellery = opts.cellery
}
sub(pattern, cb) {
this.cellery.sub(pattern).on('data', (d) => cb(this, d))
}
_render() {
// impl
}
render(opts = {}) {
const cell = this._render()
cell.register(this.cellery)
cell.render(opts)
}
}
class Container extends Cell {

@@ -112,3 +101,2 @@ // TODO: replace with classes

Cell,
MultiCell,
Container,

@@ -115,0 +103,0 @@ App,

{
"name": "cellery",
"version": "1.0.0",
"version": "1.0.1",
"description": "cellery",

@@ -5,0 +5,0 @@ "exports": {

@@ -53,3 +53,3 @@ # Cellery

| Cell | Description |
|-------------|------------------------------------------|
| ----------- | ---------------------------------------- |
| `Cell` | Base class for all components |

@@ -56,0 +56,0 @@ | `MultiCell` | Composes multiple cells into one render |