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

albio

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

albio - npm Package Compare versions

Comparing version 1.0.35 to 1.0.36

21

index.js

@@ -5,3 +5,3 @@ 'use strict';

function set_data(text, data) {
function $$setData(text, data) {
data = '' + data;

@@ -11,7 +11,7 @@ if (text.wholeText !== data) text.data = data;

function text(data) {
function $$text(data) {
return document.createTextNode(data);
}
function check_dirty_deps(dirt, deps) {
function $$checkDirtyDeps(dirt, deps) {
if (dirt.length === 0) return false;

@@ -41,8 +41,7 @@ return dirt.some((key) => deps.indexOf(key) > -1);

function $$invalidate(dirty, name, ret, update) {
function $$invalidate(dirty, names, ret, update) {
let dependencies = new Set();
dependencies.add(name);
[...dependencies].forEach((d) => (dirty.push(d)));
const toDirty = names.split(',');
toDirty.forEach((name) => dependencies.add(name));
[...dependencies].forEach((dependency) => dirty.push(dependency));
scheduleUpdate(update);

@@ -53,5 +52,5 @@

exports.$$checkDirtyDeps = $$checkDirtyDeps;
exports.$$invalidate = $$invalidate;
exports.check_dirty_deps = check_dirty_deps;
exports.set_data = set_data;
exports.text = text;
exports.$$setData = $$setData;
exports.$$text = $$text;

@@ -5,3 +5,3 @@ 'use strict';

function set_data(text, data) {
function $$setData(text, data) {
data = '' + data;

@@ -11,7 +11,7 @@ if (text.wholeText !== data) text.data = data;

function text(data) {
function $$text(data) {
return document.createTextNode(data);
}
function check_dirty_deps(dirt, deps) {
function $$checkDirtyDeps(dirt, deps) {
if (dirt.length === 0) return false;

@@ -41,8 +41,7 @@ return dirt.some((key) => deps.indexOf(key) > -1);

function $$invalidate(dirty, name, ret, update) {
function $$invalidate(dirty, names, ret, update) {
let dependencies = new Set();
dependencies.add(name);
[...dependencies].forEach((d) => (dirty.push(d)));
const toDirty = names.split(',');
toDirty.forEach((name) => dependencies.add(name));
[...dependencies].forEach((dependency) => dirty.push(dependency));
scheduleUpdate(update);

@@ -53,7 +52,7 @@

exports.$$checkDirtyDeps = $$checkDirtyDeps;
exports.$$invalidate = $$invalidate;
exports.check_dirty_deps = check_dirty_deps;
exports.$$setData = $$setData;
exports.$$text = $$text;
exports.flush = flush;
exports.scheduleUpdate = scheduleUpdate;
exports.set_data = set_data;
exports.text = text;
{
"name": "albio",
"version": "1.0.35",
"version": "1.0.36",
"description": "🚀 Tiny compiler-powered reactivity library for sensible web apps",

@@ -5,0 +5,0 @@ "main": "index",

# 🚀 Albio
Under construction

@@ -28,4 +28,3 @@ import { type ASTNode, Binding, Listener, Props } from './interfaces';

populateDeps(bindings: Binding[]): void;
iterateExp(exp: any, deps: string[]): void;
}
export {};
export * from './parse/index';
export { default as Compiler } from './compile';
export { type ChildNode, type ParentNode, Element, Text, Comment } from 'domhandler';

@@ -0,0 +0,0 @@ export type ASTNode = BaseNode | TextTag | ElementTag | Binding | CommentTag;

@@ -0,0 +0,0 @@ import { Element, type AnyNode } from 'domhandler';

export * from './body';
export * from './script';
export * from './tags';

@@ -0,0 +0,0 @@ import { Props } from '../interfaces';

@@ -0,0 +0,0 @@ import { Listener, type ASTNode } from '../interfaces';

import { Node, Identifier } from 'estree';
export declare function fetch_object(node: Node): Identifier;
export declare function fetchObject(node: Node): Identifier;
export declare function destringify(str: string): string;

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

export { $$invalidate, text, set_data, check_dirty_deps } from './internal/index';
export { $$invalidate, $$text, $$setData, $$checkDirtyDeps } from './internal/index';

@@ -1,3 +0,3 @@

export declare function set_data(text: Text, data: any): void;
export declare function text(data: any): Text;
export declare function check_dirty_deps(dirt: string[], deps: string[]): boolean;
export declare function $$setData(text: Text, data: any): void;
export declare function $$text(data: any): Text;
export declare function $$checkDirtyDeps(dirt: string[], deps: string[]): boolean;
export * from './dom';
export * from './invalidate';
export * from './schedule';

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

export declare function $$invalidate(dirty: string[], name: string, ret: any, update: () => void): any;
export declare function $$invalidate(dirty: string[], names: string, ret: any, update: () => void): any;
export declare function scheduleUpdate(update: () => void): void;
export declare function flush(): void;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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