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

@atjson/hir

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atjson/hir - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

105

dist/commonjs/hir-node.js

@@ -104,7 +104,7 @@ "use strict";

}
if (this.type === 'paragraph' && node.type === 'paragraph') {
this.insertSibling(node);
return;
}
if (this.start <= node.start) {
if (node.start === node.end && this.end === node.end && this.rank === node.rank) {
this.insertSibling(node);
return;
}
let childNode = node.trim(this.start, this.end);

@@ -129,27 +129,38 @@ if (childNode) {

else {
let targetNode;
let siblingNode;
if (node.rank < this.sibling.rank) {
targetNode = this.sibling;
siblingNode = node;
if (this.sibling.start < node.start) {
let preSibling = this.sibling.trim(this.end, node.start);
let postSibling = this.sibling.trim(node.start, this.sibling.end);
if (postSibling) {
node.insertNode(postSibling);
}
if (preSibling) {
preSibling.insertNode(node);
this.sibling = preSibling;
}
else {
this.sibling = node;
}
}
else {
node.insertNode(this.sibling);
this.sibling = node;
}
}
else {
targetNode = node;
siblingNode = this.sibling;
}
if (targetNode.start < siblingNode.start) {
let leadingNode = targetNode.trim(targetNode.start, siblingNode.start);
let trailingNode = targetNode.trim(siblingNode.start, targetNode.end);
if (trailingNode) {
siblingNode.insertNode(trailingNode);
if (node.start < this.sibling.start) {
let preSibling = node.trim(this.end, this.sibling.start);
let postSibling = node.trim(this.sibling.start, node.end);
if (postSibling) {
this.sibling.insertNode(postSibling);
}
if (preSibling) {
preSibling.insertNode(this.sibling);
this.sibling = preSibling;
}
}
if (leadingNode) {
leadingNode.insertNode(siblingNode);
this.sibling = leadingNode;
else {
this.sibling.insertNode(node);
}
}
else {
siblingNode.insertNode(targetNode);
this.sibling = siblingNode;
}
}

@@ -162,27 +173,35 @@ }

else {
let targetNode;
let childNode;
if (node.rank < this.child.rank) {
targetNode = this.child;
childNode = node;
if (this.child.start < node.start) {
let preChild = this.child.trim(this.child.start, node.start);
let postChild = this.child.trim(this.start, this.child.end);
if (postChild) {
node.insertNode(postChild);
}
if (preChild) {
preChild.insertNode(node);
this.child = preChild;
}
}
else {
node.insertNode(this.child);
this.child = node;
}
}
else {
targetNode = node;
childNode = this.child;
}
if (targetNode.start < childNode.start) {
let leadingNode = targetNode.trim(targetNode.start, childNode.start);
let trailingNode = targetNode.trim(childNode.start, targetNode.end);
if (trailingNode) {
childNode.insertNode(trailingNode);
if (node.start < this.child.start) {
let preChild = node.trim(this.start, this.child.start);
let postChild = node.trim(this.child.start, node.end);
if (postChild) {
this.child.insertNode(postChild);
}
if (preChild) {
preChild.insertNode(this.child);
this.child = preChild;
}
}
if (leadingNode) {
leadingNode.insertNode(childNode);
this.child = leadingNode;
else {
this.child.insertNode(node);
}
}
else {
childNode.insertNode(targetNode);
this.child = childNode;
}
}

@@ -211,2 +230,2 @@ }

exports.default = HIRNode;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLW5vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGlyLW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQSxNQUFNLGNBQWMsR0FBRyxDQUFDLENBQUM7QUFDekIsTUFBTSxlQUFlLEdBQUcsQ0FBQyxDQUFDO0FBQzFCLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxDQUFDO0FBQzlCLE1BQU0sY0FBYyxHQUFHLENBQUMsQ0FBQztBQUN6QixNQUFNLGNBQWMsR0FBRyxRQUFRLENBQUM7QUFFaEM7SUFlRSxZQUFZLElBQW9GO1FBRTlGLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQztRQUV0QixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDeEIsSUFBSSxD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BSyxFQUFFLE9BQU8sQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ3ZGLENBQUM7UUFFRCxNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ2pCLENBQUM7Q0FDRjtBQXpRRCwwQkF5UUMifQ==

@@ -48,3 +48,8 @@ "use strict";

if (a.start === b.start) {
return (b.end - b.start) - (a.end - a.start);
if (a.type === b.type) {
return a.end - b.end;
}
else {
return (b.end - b.start) - (a.end - a.start);
}
}

@@ -108,2 +113,2 @@ else {

exports.default = HIR;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hpci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVDQUFrRDtBQUNsRCxxQ0FBcUM7QUFDckMseUNBQWlDO0FBR2pDO0lBS0UsWUFBWSxNQUF1QjtRQUNqQyxFQUFFLENBQUMsQ0FBQyxNQUFNLFlBQVksYUFBTSxDQUFDLENBQUMsQ0FBQztZQUM3QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUN2QixDQUFDO1FBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sTUFBTSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7WUFDdEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLGFBQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUNuQyxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixNQUFNLElBQUksS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUM7UUFDdEMsQ0FBQztRQUVELElBQUksQ0FBQyxXQUFXLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBRUQsTUFBTTtRQUNKLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQy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UFFLENBQUMsQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7WUFDN0IsV0FBVyxDQUFDLElBQUksQ0FBQztnQkFDZixJQUFJLEVBQUUsV0FBVztnQkFDakIsS0FBSyxFQUFFLE9BQU87Z0JBQ2QsR0FBRyxFQUFFLE9BQU8sQ0FBQyxNQUFNO2FBQ04sQ0FBQyxDQUFDO1FBQ25CLENBQUM7UUFFRCxNQUFNLENBQUMsV0FBVyxDQUFDO0lBQ3JCLENBQUM7Q0FDRjtBQTlIRCxzQkE4SEMifQ==

@@ -103,7 +103,7 @@ "use strict";

}
if (this.type === 'paragraph' && node.type === 'paragraph') {
this.insertSibling(node);
return;
}
if (this.start <= node.start) {
if (node.start === node.end && this.end === node.end && this.rank === node.rank) {
this.insertSibling(node);
return;
}
let childNode = node.trim(this.start, this.end);

@@ -128,27 +128,38 @@ if (childNode) {

else {
let targetNode;
let siblingNode;
if (node.rank < this.sibling.rank) {
targetNode = this.sibling;
siblingNode = node;
if (this.sibling.start < node.start) {
let preSibling = this.sibling.trim(this.end, node.start);
let postSibling = this.sibling.trim(node.start, this.sibling.end);
if (postSibling) {
node.insertNode(postSibling);
}
if (preSibling) {
preSibling.insertNode(node);
this.sibling = preSibling;
}
else {
this.sibling = node;
}
}
else {
node.insertNode(this.sibling);
this.sibling = node;
}
}
else {
targetNode = node;
siblingNode = this.sibling;
}
if (targetNode.start < siblingNode.start) {
let leadingNode = targetNode.trim(targetNode.start, siblingNode.start);
let trailingNode = targetNode.trim(siblingNode.start, targetNode.end);
if (trailingNode) {
siblingNode.insertNode(trailingNode);
if (node.start < this.sibling.start) {
let preSibling = node.trim(this.end, this.sibling.start);
let postSibling = node.trim(this.sibling.start, node.end);
if (postSibling) {
this.sibling.insertNode(postSibling);
}
if (preSibling) {
preSibling.insertNode(this.sibling);
this.sibling = preSibling;
}
}
if (leadingNode) {
leadingNode.insertNode(siblingNode);
this.sibling = leadingNode;
else {
this.sibling.insertNode(node);
}
}
else {
siblingNode.insertNode(targetNode);
this.sibling = siblingNode;
}
}

@@ -161,27 +172,35 @@ }

else {
let targetNode;
let childNode;
if (node.rank < this.child.rank) {
targetNode = this.child;
childNode = node;
if (this.child.start < node.start) {
let preChild = this.child.trim(this.child.start, node.start);
let postChild = this.child.trim(this.start, this.child.end);
if (postChild) {
node.insertNode(postChild);
}
if (preChild) {
preChild.insertNode(node);
this.child = preChild;
}
}
else {
node.insertNode(this.child);
this.child = node;
}
}
else {
targetNode = node;
childNode = this.child;
}
if (targetNode.start < childNode.start) {
let leadingNode = targetNode.trim(targetNode.start, childNode.start);
let trailingNode = targetNode.trim(childNode.start, targetNode.end);
if (trailingNode) {
childNode.insertNode(trailingNode);
if (node.start < this.child.start) {
let preChild = node.trim(this.start, this.child.start);
let postChild = node.trim(this.child.start, node.end);
if (postChild) {
this.child.insertNode(postChild);
}
if (preChild) {
preChild.insertNode(this.child);
this.child = preChild;
}
}
if (leadingNode) {
leadingNode.insertNode(childNode);
this.child = leadingNode;
else {
this.child.insertNode(node);
}
}
else {
childNode.insertNode(targetNode);
this.child = childNode;
}
}

@@ -209,2 +228,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLW5vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGlyLW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE1BQU0sY0FBYyxHQUFHLENBQUMsQ0FBQztBQUN6QixNQUFNLGVBQWUsR0FBRyxDQUFDLENBQUM7QUFDMUIsTUFBTSxtQkFBbUIsR0FBRyxDQUFDLENBQUM7QUFDOUIsTUFBTSxjQUFjLEdBQUcsQ0FBQyxDQUFDO0FBQ3pCLE1BQU0sY0FBYyxHQUFHLFFBQVEsQ0FBQztBQUVoQyxNQUFNLENBQUMsT0FBTztJQWVaLFlBQVksSUFBb0Y7UUF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BQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDdkYsQ0FBQztRQUVELE1BQU0sQ0FBQyxPQUFPLENBQUM7SUFDakIsQ0FBQztDQUNGIn0=

@@ -47,3 +47,8 @@ "use strict";

if (a.start === b.start) {
return (b.end - b.start) - (a.end - a.start);
if (a.type === b.type) {
return a.end - b.end;
}
else {
return (b.end - b.start) - (a.end - a.start);
}
}

@@ -106,2 +111,2 @@ else {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hpci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFjLE1BQU0sRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNsRCxPQUFPLEtBQUssUUFBUSxNQUFNLFVBQVUsQ0FBQztBQUNyQyxPQUFPLE9BQU8sTUFBTSxZQUFZLENBQUM7QUFHakMsTUFBTSxDQUFDLE9BQU87SUFLWixZQUFZLE1BQXVCO1FBQ2pDLEVBQUUsQ0FBQyxDQUFDLE1BQU0sWUFBWSxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQzdCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3ZCLENBQUM7UUFBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUMsT0FBTyxNQUFNLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQztZQUN0QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ25DLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNOLE1BQU0sSUFBSSxLQUFLLENBQUMsa0JBQWtCLEN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NuQixLQUFLLEVBQUUsUUFBUTtnQkFDZixHQUFHLEVBQUUsUUFBUSxHQUFHLENBQUM7YUFDSixDQUFDLENBQUM7WUFFakIsT0FBTyxHQUFHLFFBQVEsR0FBRyxDQUFDLENBQUM7WUFDdkIsUUFBUSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLFFBQVEsR0FBRyxDQUFDLENBQUMsQ0FBQztRQUNuRCxDQUFDO1FBRUQsRUFBRSxDQUFDLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQzdCLFdBQVcsQ0FBQyxJQUFJLENBQUM7Z0JBQ2YsSUFBSSxFQUFFLFdBQVc7Z0JBQ2pCLEtBQUssRUFBRSxPQUFPO2dCQUNkLEdBQUcsRUFBRSxPQUFPLENBQUMsTUFBTTthQUNOLENBQUMsQ0FBQztRQUNuQixDQUFDO1FBRUQsTUFBTSxDQUFDLFdBQVcsQ0FBQztJQUNyQixDQUFDO0NBQ0YifQ==
{
"name": "@atjson/hir",
"version": "0.5.10",
"version": "0.5.11",
"description": "Libraries for annotated JSON documents",

@@ -5,0 +5,0 @@ "contributors": [

@@ -143,8 +143,8 @@ import { Annotation } from '@atjson/core';

if (this.type === 'paragraph' && node.type === 'paragraph') {
this.insertSibling(node);
return;
}
if (this.start <= node.start) {
if (node.start === node.end && this.end === node.end && this.rank === node.rank) {
this.insertSibling(node);
return;
}
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);

@@ -168,28 +168,38 @@ if (childNode) {

} else {
let targetNode: HIRNode;
let siblingNode: HIRNode;
if (node.rank < this.sibling.rank) {
targetNode = this.sibling;
siblingNode = node;
} else {
targetNode = node;
siblingNode = this.sibling;
}
// FIXME FIXME FIXME this needs refacotring, as with below.
if (this.sibling.start < node.start) {
let preSibling = this.sibling.trim(this.end, node.start);
let postSibling = this.sibling.trim(node.start, this.sibling.end);
if (targetNode.start < siblingNode.start) {
let leadingNode = targetNode.trim(targetNode.start, siblingNode.start);
let trailingNode = targetNode.trim(siblingNode.start, targetNode.end);
if (postSibling) {
node.insertNode(postSibling);
}
if (trailingNode) {
siblingNode.insertNode(trailingNode);
if (preSibling) {
preSibling.insertNode(node);
this.sibling = preSibling;
} else {
this.sibling = node;
}
} else {
node.insertNode(this.sibling);
this.sibling = node;
}
} else {
if (node.start < this.sibling.start) {
let preSibling = node.trim(this.end, this.sibling.start);
let postSibling = node.trim(this.sibling.start, node.end);
if (leadingNode) {
leadingNode.insertNode(siblingNode);
this.sibling = leadingNode;
if (postSibling) {
this.sibling.insertNode(postSibling);
}
if (preSibling) {
preSibling.insertNode(this.sibling);
this.sibling = preSibling;
}
} else {
this.sibling.insertNode(node);
}
} else {
siblingNode.insertNode(targetNode);
this.sibling = siblingNode;
}

@@ -202,29 +212,38 @@ }

this.child = node;
} else {
let targetNode: HIRNode;
let childNode: HIRNode;
// FIXME FIXME FIXME this needs some refactoring for clarity / symmetry.
if (node.rank < this.child.rank) {
targetNode = this.child;
childNode = node;
} else {
targetNode = node;
childNode = this.child;
}
if (this.child.start < node.start) {
let preChild = this.child.trim(this.child.start, node.start);
let postChild = this.child.trim(this.start, this.child.end);
if (targetNode.start < childNode.start) {
let leadingNode = targetNode.trim(targetNode.start, childNode.start);
let trailingNode = targetNode.trim(childNode.start, targetNode.end);
if (postChild) {
node.insertNode(postChild);
}
if (trailingNode) {
childNode.insertNode(trailingNode);
if (preChild) {
preChild.insertNode(node);
this.child = preChild;
}
} else {
node.insertNode(this.child);
this.child = node;
}
} else {
if (node.start < this.child.start) {
let preChild = node.trim(this.start, this.child.start);
let postChild = node.trim(this.child.start, node.end);
if (leadingNode) {
leadingNode.insertNode(childNode);
this.child = leadingNode;
if (postChild) {
this.child.insertNode(postChild);
}
if (preChild) {
preChild.insertNode(this.child);
this.child = preChild;
}
} else {
this.child.insertNode(node);
}
} else {
childNode.insertNode(targetNode);
this.child = childNode;
}

@@ -231,0 +250,0 @@ }

@@ -61,3 +61,7 @@ import { Annotation, AtJSON } from '@atjson/core';

if (a.start === b.start) {
return (b.end - b.start) - (a.end - a.start);
if (a.type === b.type) {
return a.end - b.end;
} else {
return (b.end - b.start) - (a.end - a.start);
}
} else {

@@ -64,0 +68,0 @@ return a.start - b.start;

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