Socket
Socket
Sign inDemoInstall

@thi.ng/hdom

Package Overview
Dependencies
13
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.31 to 3.0.32

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="3.0.32"></a>
## [3.0.32](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@3.0.31...@thi.ng/hdom@3.0.32) (2018-08-01)
**Note:** Version bump only for package @thi.ng/hdom
<a name="3.0.31"></a>

@@ -8,0 +16,0 @@ ## [3.0.31](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@3.0.30...@thi.ng/hdom@3.0.31) (2018-08-01)

13

diff.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const equiv_1 = require("@thi.ng/equiv");
const isa = require("@thi.ng/checks/is-array");
const iss = require("@thi.ng/checks/is-string");
const diff = require("@thi.ng/diff");
const array_1 = require("@thi.ng/diff/array");
const object_1 = require("@thi.ng/diff/object");
const equiv_1 = require("@thi.ng/equiv");
const dom_1 = require("./dom");
const isArray = isa.isArray;
const isString = iss.isString;
const diffArray = diff.diffArray;
const diffObject = diff.diffObject;
const SEMAPHORE = Symbol("SEMAPHORE");
const SEMAPHORE = Symbol();
/**

@@ -37,3 +36,3 @@ * Takes a DOM root element and two hiccup trees, `prev` and `curr`.

function _diffElement(parent, prev, curr, child) {
const delta = diffArray(prev, curr, equiv_1.equiv, true);
const delta = array_1.diffArray(prev, curr, equiv_1.equiv, true);
if (delta.distance === 0) {

@@ -127,3 +126,3 @@ return;

let i, e, edits;
const delta = diffObject(prev, curr);
const delta = object_1.diffObject(prev, curr);
dom_1.removeAttribs(el, delta.dels, prev);

@@ -130,0 +129,0 @@ let value = SEMAPHORE;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const errors_1 = require("@thi.ng/errors");
const impf = require("@thi.ng/checks/implements-function");

@@ -10,2 +9,3 @@ const isa = require("@thi.ng/checks/is-array");

const iss = require("@thi.ng/checks/is-string");
const illegal_arguments_1 = require("@thi.ng/errors/illegal-arguments");
const api_1 = require("@thi.ng/hiccup/api");

@@ -45,3 +45,3 @@ const isArray = isa.isArray;

if (!isString(tag) || !(match = api_1.TAG_REGEXP.exec(tag))) {
errors_1.illegalArgs(`${tag} is not a valid tag name`);
illegal_arguments_1.illegalArgs(`${tag} is not a valid tag name`);
}

@@ -48,0 +48,0 @@ // return orig if already normalized and satisfies key requirement

{
"name": "@thi.ng/hdom",
"version": "3.0.31",
"version": "3.0.32",
"description": "Lightweight vanilla ES6 UI component & virtual DOM system",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc