Socket
Socket
Sign inDemoInstall

albio

Package Overview
Dependencies
7
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.11 to 1.0.12

58

index.js

@@ -9,13 +9,13 @@ 'use strict';

function set_data(text, data) {
data = '' + data;
if (text.wholeText !== data)
text.data = data;
data = '' + data;
if (text.wholeText !== data) text.data = data;
}
function text(data) {
return document.createTextNode(data);
return document.createTextNode(data);
}
function check_dirty_deps(dirt, deps) {
if (dirt === null)
return false;
return Object.keys(dirt).some((key) => deps.indexOf(key) > -1);
if (dirt === null) return false;
return Object.keys(dirt).some((key) => deps.indexOf(key) > -1);
}

@@ -26,29 +26,35 @@

const resolved_promise = Promise.resolve();
function scheduleUpdate(update) {
workQueue.push(update);
if (!update_scheduled) {
update_scheduled = true;
resolved_promise.then(flush);
}
workQueue.push(update);
if (!update_scheduled) {
update_scheduled = true;
resolved_promise.then(flush);
}
}
function flush() {
while (workQueue.length > 0) {
const work = workQueue.shift();
if (work)
work();
}
update_scheduled = false;
while (workQueue.length > 0) {
const work = workQueue.shift();
if (work) work();
}
update_scheduled = false;
}
function $$invalidate(dirty, expression, update) {
let dependencies = new Set();
periscopic.extract_names(fetch_object(expression.left)).forEach((name) => dependencies.add(name));
[...dependencies].forEach((d) => (dirty[d] = true));
scheduleUpdate(update);
return eval(codeRed.print(expression).code);
let dependencies = new Set();
periscopic.extract_names(fetch_object((expression ).left)).forEach((name) =>
dependencies.add(name),
);
[...dependencies].forEach((d) => (dirty[d] = true));
scheduleUpdate(update);
return eval(codeRed.print(expression).code);
}
function fetch_object(node) {
while (node.type === 'MemberExpression')
node = node.object;
return node;
while (node.type === 'MemberExpression') node = node.object;
return node ;
}

@@ -55,0 +61,0 @@

@@ -9,13 +9,13 @@ 'use strict';

function set_data(text, data) {
data = '' + data;
if (text.wholeText !== data)
text.data = data;
data = '' + data;
if (text.wholeText !== data) text.data = data;
}
function text(data) {
return document.createTextNode(data);
return document.createTextNode(data);
}
function check_dirty_deps(dirt, deps) {
if (dirt === null)
return false;
return Object.keys(dirt).some((key) => deps.indexOf(key) > -1);
if (dirt === null) return false;
return Object.keys(dirt).some((key) => deps.indexOf(key) > -1);
}

@@ -26,29 +26,35 @@

const resolved_promise = Promise.resolve();
function scheduleUpdate(update) {
workQueue.push(update);
if (!update_scheduled) {
update_scheduled = true;
resolved_promise.then(flush);
}
workQueue.push(update);
if (!update_scheduled) {
update_scheduled = true;
resolved_promise.then(flush);
}
}
function flush() {
while (workQueue.length > 0) {
const work = workQueue.shift();
if (work)
work();
}
update_scheduled = false;
while (workQueue.length > 0) {
const work = workQueue.shift();
if (work) work();
}
update_scheduled = false;
}
function $$invalidate(dirty, expression, update) {
let dependencies = new Set();
periscopic.extract_names(fetch_object(expression.left)).forEach((name) => dependencies.add(name));
[...dependencies].forEach((d) => (dirty[d] = true));
scheduleUpdate(update);
return eval(codeRed.print(expression).code);
let dependencies = new Set();
periscopic.extract_names(fetch_object((expression ).left)).forEach((name) =>
dependencies.add(name),
);
[...dependencies].forEach((d) => (dirty[d] = true));
scheduleUpdate(update);
return eval(codeRed.print(expression).code);
}
function fetch_object(node) {
while (node.type === 'MemberExpression')
node = node.object;
return node;
while (node.type === 'MemberExpression') node = node.object;
return node ;
}

@@ -55,0 +61,0 @@

{
"name": "albio",
"version": "1.0.11",
"version": "1.0.12",
"description": "🚀 Tiny compiler-powered reactivity library for sensible web apps",

@@ -34,2 +34,3 @@ "main": "index",

},
"types": "types/runtime/index.d.ts",
"engines": {

@@ -39,3 +40,4 @@ "node": ">= 8"

"scripts": {
"build": "rimraf types && rollup -c",
"build": "rollup -c && pnpm tsd",
"tsd": "node ./generate-types.js",
"dev": "rollup -cw",

@@ -42,0 +44,0 @@ "test": "jest --silent --runInBand",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc