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

aurumjs

Package Overview
Dependencies
Maintainers
0
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurumjs - npm Package Compare versions

Comparing version 0.9.43 to 0.9.44

2

package.json
{
"name": "aurumjs",
"version": "0.9.43",
"version": "0.9.44",
"main": "prebuilt/esnext/aurumjs.js",

@@ -5,0 +5,0 @@ "type": "module",

@@ -197,3 +197,3 @@ import { CancellationToken } from '../utilities/cancellation_token.js';

pendingToken.setTimeout(() => {
connection.close(4001, 'no response');
connection.close(3008, 'no response');
reject();

@@ -200,0 +200,0 @@ client.masterToken.cancel();

@@ -50,3 +50,3 @@ import { DataSource } from '../stream/data_source.js';

.withInitial(urlDataSource.value)
.transform(dsMap((url) => (props.urlPreprocessing ? props.urlPreprocessing(url) : url)), dsMap((path) => ({ path, route: selectRoute(path, resolvedChildren) })), dsFilter((r) => (props.validateNavigation ? props.validateNavigation(r.path, r.route) : true)), dsTap((r) => activeRoute.update(r.route)), dsMap((r) => r.route.children));
.transform(dsMap((url) => (props.urlPreprocessing ? props.urlPreprocessing(url) : url)), dsMap((path) => ({ path, route: selectRoute(path, resolvedChildren) })), dsFilter((r) => (props.validateNavigation ? props.validateNavigation(r.path, r.route) : true)), dsTap((r) => activeRoute.update(r.route)), dsMap((r) => r.route?.children));
}

@@ -53,0 +53,0 @@ function selectRoute(url, routes) {

@@ -195,4 +195,4 @@ import { handleClass, handleStyle } from '../../nodes/rendering_helpers.js';

data.transform(dsUnique(), cleanUp).listen((v) => {
if (typeof v === 'string') {
node.setAttribute(key, v);
if (typeof v === 'string' || typeof v === 'number') {
node.setAttribute(key, v.toString());
}

@@ -199,0 +199,0 @@ else if (typeof v === 'boolean') {

@@ -9,3 +9,3 @@ import { Input } from '../nodes/input.js';

import { sanitizeHTML } from './sanitize.js';
import { dsTap, dsUnique } from '../stream/data_source_operators.js';
import { dsTap, dsUnique, dsUpdateToken } from '../stream/data_source_operators.js';
const nodeMap = {

@@ -181,3 +181,27 @@ address: Address,

const content = renderInternal(aurumRenderable, session);
if (content instanceof AurumElement) {
if (content instanceof DataSource) {
content.transform(dsUpdateToken()).listenAndRepeat(({ value, token }) => {
session.sessionToken.addCancellable(token);
if (value instanceof AurumElement) {
value.attachToDom(dom, dom.childNodes.length);
token.addCancellable(() => value.dispose());
}
else if (Array.isArray(value)) {
const root = new ArrayAurumElement(new ArrayDataSource(value), createAPI(session));
token.addCancellable(() => root.dispose());
root.attachToDom(dom, dom.childNodes.length);
}
else if (value == undefined) {
}
else {
dom.appendChild(value);
token.addCancellable(() => {
if (value.isConnected) {
dom.removeChild(value);
}
});
}
}, session.sessionToken);
}
else if (content instanceof AurumElement) {
content.attachToDom(dom, dom.childNodes.length);

@@ -184,0 +208,0 @@ session.sessionToken.addCancellable(() => content.dispose());

@@ -130,3 +130,3 @@ import { ArrayDataSource, SetDataSource } from '../stream/data_source.js';

if (e.key === key || e.key === '*') {
stream.updateDownstream(e.value != undefined ? e.value : defaultValue);
stream.updateDownstream(e.value != undefined ? (typeof defaultValue === 'number' ? parseInt(e.value) : e.value) : defaultValue);
}

@@ -133,0 +133,0 @@ }, cancellationToken);

@@ -319,3 +319,3 @@ import { ArrayDataSource, CollectionChange, DataSource, MapDataSource, SetDataSource } from '../stream/data_source.js';

pendingToken.setTimeout(() => {
connection.close(4001, 'no response');
connection.close(3008, 'no response');
reject();

@@ -322,0 +322,0 @@ client.masterToken.cancel();

@@ -77,3 +77,3 @@ import { AurumComponentAPI, AurumElementModel, Renderable } from '../rendering/aurum_element.js';

dsTap((r) => activeRoute.update(r.route)),
dsMap((r) => r.route.children)
dsMap((r) => r.route?.children)
);

@@ -80,0 +80,0 @@ }

@@ -263,4 +263,4 @@ import { handleClass, handleStyle } from '../../nodes/rendering_helpers.js';

data.transform(dsUnique(), cleanUp).listen((v) => {
if (typeof v === 'string') {
node.setAttribute(key, v);
if (typeof v === 'string' || typeof v === 'number') {
node.setAttribute(key, v.toString());
} else if (typeof v === 'boolean') {

@@ -267,0 +267,0 @@ if (v) {

@@ -172,3 +172,3 @@ import { HTMLNodeProps } from '../rendering/renderers/dom_adapter.js';

import { HTMLSanitizeConfig, sanitizeHTML } from './sanitize.js';
import { dsTap, dsUnique } from '../stream/data_source_operators.js';
import { dsTap, dsUnique, dsUpdateToken } from '../stream/data_source_operators.js';

@@ -359,3 +359,24 @@ export type AurumDecorator = (model: AurumElementModel<any>) => Renderable;

const content = renderInternal(aurumRenderable, session);
if (content instanceof AurumElement) {
if (content instanceof DataSource) {
content.transform(dsUpdateToken()).listenAndRepeat(({ value, token }) => {
session.sessionToken.addCancellable(token);
if (value instanceof AurumElement) {
value.attachToDom(dom, dom.childNodes.length);
token.addCancellable(() => value.dispose());
} else if (Array.isArray(value)) {
const root = new ArrayAurumElement(new ArrayDataSource(value), createAPI(session));
token.addCancellable(() => root.dispose());
root.attachToDom(dom, dom.childNodes.length);
} else if (value == undefined) {
} else {
dom.appendChild(value);
token.addCancellable(() => {
if (value.isConnected) {
dom.removeChild(value);
}
});
}
}, session.sessionToken);
} else if (content instanceof AurumElement) {
content.attachToDom(dom, dom.childNodes.length);

@@ -362,0 +383,0 @@ session.sessionToken.addCancellable(() => content.dispose());

@@ -157,3 +157,5 @@ import { ArrayDataSource, SetDataSource } from '../stream/data_source.js';

if (e.key === key || e.key === '*') {
stream.updateDownstream(e.value != undefined ? (e.value as unknown as T) : defaultValue);
stream.updateDownstream(
e.value != undefined ? ((typeof defaultValue === 'number' ? parseInt(e.value) : e.value) as unknown as T) : defaultValue
);
}

@@ -160,0 +162,0 @@ }, cancellationToken);

@@ -11,3 +11,2 @@ {

"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"incremental": true,

@@ -24,3 +23,4 @@ "jsx": "react",

"inlineSources": true,
"outDir": "prebuilt/esnext"
"outDir": "prebuilt/esnext",
"skipLibCheck": true
},

@@ -27,0 +27,0 @@ "include": [

@@ -11,3 +11,2 @@ {

"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"incremental": true,

@@ -24,3 +23,4 @@ "jsx": "react",

"inlineSources": true,
"outDir": "dist_test"
"outDir": "dist_test",
"skipLibCheck": true
},

@@ -27,0 +27,0 @@ "include": [

@@ -11,3 +11,2 @@ {

"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"incremental": true,

@@ -24,3 +23,4 @@ "jsx": "react",

"inlineSources": true,
"outDir": "dist_test"
"outDir": "dist_test",
"skipLibCheck": true
},

@@ -27,0 +27,0 @@ "include": [

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

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