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.2 to 0.5.3

111

dist/commonjs/hir-node.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ROOT_NODE_RANK = 0;
var BLOCK_NODE_RANK = 1;
var PARAGRAPH_NODE_RANK = 2;
var SPAN_NODE_RANK = 3;
var TEXT_NODE_RANK = Infinity;
var HIRNode = (function () {
function HIRNode(node) {
const ROOT_NODE_RANK = 0;
const BLOCK_NODE_RANK = 1;
const PARAGRAPH_NODE_RANK = 2;
const SPAN_NODE_RANK = 3;
const TEXT_NODE_RANK = Infinity;
class HIRNode {
constructor(node) {
this.type = node.type;

@@ -44,4 +44,4 @@ this.start = node.start;

}
HIRNode.prototype.toJSON = function (filter) {
var thisNode = this;
toJSON(filter) {
let thisNode = this;
if (filter) {

@@ -56,8 +56,8 @@ thisNode = filter(this);

attributes: thisNode.attributes,
children: thisNode.children().map(function (child) {
children: thisNode.children().map(child => {
return child.toJSON(filter);
})
};
};
HIRNode.prototype.children = function () {
}
children() {
if (this.child) {

@@ -69,4 +69,4 @@ return [this.child].concat(this.child.siblings());

}
};
HIRNode.prototype.siblings = function () {
}
siblings() {
if (this.sibling) {

@@ -78,13 +78,15 @@ return [this.sibling].concat(this.sibling.siblings());

}
};
HIRNode.prototype.insertAnnotation = function (annotation) {
var hirNode = new HIRNode(annotation);
}
insertAnnotation(annotation) {
let hirNode = new HIRNode(annotation);
this.insertNode(hirNode);
};
HIRNode.prototype.insertText = function (text) {
}
insertText(text) {
if (this.type !== 'root') {
throw new Error('temporary exception; this should only exist in the root node subclass');
}
var node = new HIRNode({
text: text,
if (text.length === 0)
return;
let node = new HIRNode({
text,
type: 'text',

@@ -95,16 +97,26 @@ start: this.start,

this.insertNode(node);
};
HIRNode.prototype.insertNode = function (node) {
if (this.start <= node.start) {
var childNode = node.trim(this.start, this.end);
if (childNode)
this.insertChild(childNode);
}
insertNode(node) {
let insertedWholeNode = false;
if (this.type !== 'text') {
if (this.start === node.start && this.end === node.end) {
this.insertChild(node);
return;
}
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);
if (childNode) {
this.insertChild(childNode);
if (childNode.end === node.end)
insertedWholeNode = true;
}
}
}
if (this.end <= node.end) {
var siblingNode = node.trim(this.end, node.end);
if (this.end <= node.end && !insertedWholeNode) {
let siblingNode = node.trim(this.end, node.end);
if (siblingNode)
this.insertSibling(siblingNode);
}
};
HIRNode.prototype.insertSibling = function (node) {
}
insertSibling(node) {
if (!this.sibling) {

@@ -116,4 +128,4 @@ this.sibling = node;

if (this.sibling.start < node.start) {
var preSibling = this.sibling.trim(this.end, node.start);
var postSibling = this.sibling.trim(node.start, this.sibling.end);
let preSibling = this.sibling.trim(this.end, node.start);
let postSibling = this.sibling.trim(node.start, this.sibling.end);
if (postSibling) {

@@ -137,4 +149,4 @@ node.insertNode(postSibling);

if (node.start < this.sibling.start) {
var preSibling = node.trim(this.end, this.sibling.start);
var postSibling = node.trim(this.sibling.start, node.end);
let preSibling = node.trim(this.end, this.sibling.start);
let postSibling = node.trim(this.sibling.start, node.end);
if (postSibling) {

@@ -153,4 +165,4 @@ this.sibling.insertNode(postSibling);

}
};
HIRNode.prototype.insertChild = function (node) {
}
insertChild(node) {
if (!this.child) {

@@ -162,4 +174,4 @@ this.child = node;

if (this.child.start < node.start) {
var preChild = this.child.trim(this.child.start, node.start);
var postChild = this.child.trim(this.start, this.child.end);
let preChild = this.child.trim(this.child.start, node.start);
let postChild = this.child.trim(this.start, this.child.end);
if (postChild) {

@@ -180,4 +192,4 @@ node.insertNode(postChild);

if (node.start < this.child.start) {
var preChild = node.trim(this.start, this.child.start);
var postChild = node.trim(this.child.start, node.end);
let preChild = node.trim(this.start, this.child.start);
let postChild = node.trim(this.child.start, node.end);
if (postChild) {

@@ -196,10 +208,10 @@ this.child.insertNode(postChild);

}
};
HIRNode.prototype.trim = function (start, end) {
var newStart = Math.max(this.start, start);
var newEnd = Math.min(this.end, end);
}
trim(start, end) {
let newStart = Math.max(this.start, start);
let newEnd = Math.min(this.end, end);
if (newStart === this.start && newEnd === this.end) {
return this;
}
var newNode = new HIRNode(this);
let newNode = new HIRNode(this);
newNode.start = Math.min(Math.max(newNode.start, start), newNode.end);

@@ -216,6 +228,5 @@ newNode.end = Math.max(newNode.start, Math.min(newNode.end, end));

return newNode;
};
return HIRNode;
}());
}
}
exports.default = HIRNode;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLW5vZGUuanMiLCJzb3VyY2VSb290IjoiL3VzZXJzL3RldmFuczMvY29uZGUvYXRqc29uLyIsInNvdXJjZXMiOlsiaGlyLW5vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFJQSxJQUFNLGNBQWMsR0FBRyxDQUFDLENBQUM7QUFDekIsSUFBTSxlQUFlLEdBQUcsQ0FBQyxDQUFDO0FBQzFCLElBQU0sbUJBQW1CLEdBQUcsQ0FBQyxDQUFDO0FBQzlCLElBQU0sY0FBYyxHQUFHLENBQUMsQ0FBQztBQUN6QixJQUFNLGNBQWMsR0FBRyxRQUFRLENBQUM7QUFFaEM7SUFlRSxpQkFBWSxJQUFvRjtRQUU5RixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7UUFFdEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQ3hCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUNwQixJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7UUFFbEMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FB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QUcsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ3ZGLENBQUM7UUFFRCxNQUFNLENBQUMsT0FBTyxDQUFDO0lBQ2pCLENBQUM7Q0FDRjtBQWpRRCwwQkFpUUMifQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@atjson/core");
var entities = require("entities");
var hir_node_1 = require("@atjson/hir/hir-node");
var HIR = (function () {
function HIR(atjson) {
const core_1 = require("@atjson/core");
const entities = require("entities");
const hir_node_1 = require("./hir-node");
class HIR {
constructor(atjson) {
if (atjson instanceof core_1.AtJSON) {

@@ -19,5 +19,5 @@ this.atjson = atjson;

}
HIR.prototype.toJSON = function () {
toJSON() {
if (this.atjson.contentType === 'text/html') {
return this.rootNode.toJSON(function (node) {
return this.rootNode.toJSON((node) => {
if (node.type === 'text' && typeof (node.text) === 'string') {

@@ -32,12 +32,11 @@ node.text = entities.decodeHTML5(node.text);

}
};
HIR.prototype.populateHIR = function () {
var _this = this;
var atjson = this.atjson;
}
populateHIR() {
let atjson = this.atjson;
atjson.annotations
.filter(function (a) { return a.type === 'parse-token'; })
.forEach(function (a) { return atjson.deleteText(a); });
.filter(a => a.type === 'parse-token')
.forEach(a => atjson.deleteText(a));
atjson.annotations
.filter(function (a) { return a.type === 'parse-token' || a.type === 'parse-element'; })
.forEach(function (a) { return atjson.removeAnnotation(a); });
.filter(a => a.type === 'parse-token' || a.type === 'parse-element')
.forEach(a => atjson.removeAnnotation(a));
this.rootNode = new hir_node_1.default({

@@ -49,3 +48,3 @@ type: 'root',

atjson.annotations
.sort(function (a, b) {
.sort((a, b) => {
if (a.start === b.start) {

@@ -57,9 +56,9 @@ return (b.end - b.start) - (a.end - a.start);

}
}).forEach(function (annotation) { return _this.rootNode.insertAnnotation(annotation); });
}).forEach(annotation => this.rootNode.insertAnnotation(annotation));
this.rootNode.insertText(atjson.content);
};
HIR.prototype.parseContent = function () {
}
parseContent() {
return this.getParser().parse(this.atjson.content);
};
HIR.prototype.getParser = function () {
}
getParser() {
switch (this.atjson.contentType) {

@@ -71,3 +70,3 @@ case undefined:

case 'text/atjson': {
return { parse: function () { return []; } };
return { parse() { return []; } };
}

@@ -78,7 +77,7 @@ default: {

}
};
HIR.prototype.plainTextParser = function (content) {
var prevIdx = 0;
var breakIdx = content.indexOf('\n\n', 0);
var annotations = [];
}
plainTextParser(content) {
let prevIdx = 0;
let breakIdx = content.indexOf('\n\n', 0);
let annotations = [];
while (breakIdx !== -1) {

@@ -111,6 +110,5 @@ annotations.push({

return annotations;
};
return HIR;
}());
}
}
exports.default = HIR;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlyLmpzIiwic291cmNlUm9vdCI6Ii91c2Vycy90ZXZhbnMzL2NvbmRlL2F0anNvbi8iLCJzb3VyY2VzIjpbImhpci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHFDQUFrRDtBQUNsRCxtQ0FBcUM7QUFDckMsaURBQWlDO0FBR2pDO0lBS0UsYUFBWSxNQUF1QjtRQUNqQyxFQUFFLENBQUMsQ0FBQyxNQUFNLFlBQVksYUFBTSxDQUFDLENBQUMsQ0FBQztZQUM3QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUN2QixDQUFDO1FBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sTUFBTSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7WUFDdEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLGFBQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUNuQyxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixNQUFNLElBQUksS0FBSyx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xDQUFDLE1BQU0sRUFBRSxRQUFRLEdBQUcsQ0FBQyxDQUFDLENBQUM7UUFDbkQsQ0FBQztRQUVELEVBQUUsQ0FBQyxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztZQUM3QixXQUFXLENBQUMsSUFBSSxDQUFDO2dCQUNmLElBQUksRUFBRSxXQUFXO2dCQUNqQixLQUFLLEVBQUUsT0FBTztnQkFDZCxHQUFHLEVBQUUsT0FBTyxDQUFDLE1BQU07YUFDTixDQUFDLENBQUM7UUFDbkIsQ0FBQztRQUVELE1BQU0sQ0FBQyxXQUFXLENBQUM7SUFDckIsQ0FBQztDQUNGO0FBMUhELHNCQTBIQyJ9
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var hir_1 = require("@atjson/hir/hir");
const hir_1 = require("./hir");
exports.HIR = hir_1.default;
var hir_node_1 = require("@atjson/hir/hir-node");
const hir_node_1 = require("./hir-node");
exports.HIRNode = hir_node_1.default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3VzZXJzL3RldmFuczMvY29uZGUvYXRqc29uLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx1Q0FBd0I7QUFFTixjQUZYLGFBQUcsQ0FFVztBQURyQixpREFBaUM7QUFDeEIsa0JBREYsa0JBQU8sQ0FDRSJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3VzZXJzL3RldmFuczMvY29uZGUvYXRqc29uLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBd0I7QUFFTixjQUZYLGFBQUcsQ0FFVztBQURyQix5Q0FBaUM7QUFDeEIsa0JBREYsa0JBQU8sQ0FDRSJ9

@@ -83,2 +83,4 @@ "use strict";

}
if (text.length === 0)
return;
let node = new HIRNode({

@@ -93,8 +95,18 @@ text,

insertNode(node) {
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);
if (childNode)
this.insertChild(childNode);
let insertedWholeNode = false;
if (this.type !== 'text') {
if (this.start === node.start && this.end === node.end) {
this.insertChild(node);
return;
}
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);
if (childNode) {
this.insertChild(childNode);
if (childNode.end === node.end)
insertedWholeNode = true;
}
}
}
if (this.end <= node.end) {
if (this.end <= node.end && !insertedWholeNode) {
let siblingNode = node.trim(this.end, node.end);

@@ -208,2 +220,2 @@ if (siblingNode)

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

@@ -5,2 +5,2 @@ "use strict";

export { HIRNode, HIR };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3VzZXJzL3RldmFuczMvY29uZGUvYXRqc29uLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sR0FBRyxNQUFNLE9BQU8sQ0FBQztBQUN4QixPQUFPLE9BQU8sTUFBTSxZQUFZLENBQUM7QUFDakMsT0FBTyxFQUFFLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3VzZXJzL3RldmFuczMvY29uZGUvYXRqc29uLyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sR0FBRyxNQUFNLE9BQU8sQ0FBQztBQUN4QixPQUFPLE9BQU8sTUFBTSxZQUFZLENBQUM7QUFDakMsT0FBTyxFQUFFLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyJ9
{
"name": "@atjson/hir",
"version": "0.5.2",
"version": "0.5.3",
"description": "Libraries for annotated JSON documents",

@@ -12,9 +12,9 @@ "contributors": [

"module": "dist/modules/index.js",
"types": "dist/amd/index.d.ts",
"types": "dist/commonjs/index.d.ts",
"scripts": {
"prepack": "npm run build",
"build": "rm -rf dist; tsc -p . --module AMD --outFile dist/amd/index.js; tsc -p . --module CommonJS --outDir dist/commonjs/; tsc -p . --module ESNext --outDir dist/modules/ --target ES2017; exit 0",
"prepublish": "npm run build",
"build": "rm -rf dist; tsc -p . & tsc -p . --module ESNext --outDir dist/modules/ --target ES2017; exit 0",
"test": "../../node_modules/jest/bin/jest.js packages/$(basename $PWD) --config=../../package.json"
},
"license": "Apache 2.0",
"license": "Apache-2.0",
"publishConfig": {

@@ -28,3 +28,3 @@ "access": "public"

"dependencies": {
"@atjson/core": "^0.5.2",
"@atjson/core": "^0.5.3",
"@types/entities": "^1.1.0",

@@ -31,0 +31,0 @@ "entities": "^1.1.1"

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

/// <amd-module name="@atjson/hir/hir-node"/>
import { Annotation } from '@atjson/core';

@@ -114,2 +113,4 @@ import JSONNode from './json-node';

if (text.length === 0) return;
let node = new HIRNode({

@@ -126,8 +127,27 @@ text,

insertNode(node: HIRNode): void {
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);
if (childNode) this.insertChild(childNode);
let insertedWholeNode = false;
/* Don't insert nodes into text nodes; always append them as siblings.
*
* FIXME this should probably check to see if the node in question overlaps
* with the text node, and if so, subsume the text node (this) into the
* given node (node)
*/
if (this.type !== 'text') {
if (this.start === node.start && this.end === node.end) {
this.insertChild(node);
return;
}
if (this.start <= node.start) {
let childNode = node.trim(this.start, this.end);
if (childNode) {
this.insertChild(childNode);
if (childNode.end === node.end) insertedWholeNode = true;
}
}
}
if (this.end <= node.end) {
if (this.end <= node.end && !insertedWholeNode) {
let siblingNode = node.trim(this.end, node.end);

@@ -134,0 +154,0 @@ if (siblingNode) this.insertSibling(siblingNode);

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

/// <amd-module name="@atjson/hir/hir"/>
import { Annotation, AtJSON } from '@atjson/core';

@@ -3,0 +2,0 @@ import * as entities from 'entities';

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

/// <amd-module name="@atjson/hir"/>
import HIR from './hir';
import HIRNode from './hir-node';
export { HIRNode, HIR };

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

/// <amd-module name="@atjson/hir/json-node"/>
export type node = JSONNode|string;

@@ -3,0 +2,0 @@

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