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

@atjson/hir

Package Overview
Dependencies
Maintainers
3
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.19.1 to 0.21.0

8

CHANGELOG.md

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

## [0.21.0](https://github.com/CondeNast/atjson/compare/@atjson/hir@0.19.1...@atjson/hir@0.21.0) (2019-09-12)
**Note:** Version bump only for package @atjson/hir
## [0.19.1](https://github.com/CondeNast/atjson/compare/@atjson/hir@0.19.0...@atjson/hir@0.19.1) (2019-08-26)

@@ -8,0 +16,0 @@

4

dist/commonjs/annotations/index.d.ts

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

export { default as Root } from './root';
export { default as Text } from './text';
export { default as Root } from "./root";
export { default as Text } from "./text";

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class RootAnnotation extends Annotation {

@@ -3,0 +3,0 @@ static vendorPrefix: string;

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

}
RootAnnotation.vendorPrefix = 'atjson';
RootAnnotation.type = 'root';
RootAnnotation.vendorPrefix = "atjson";
RootAnnotation.type = "root";
exports.default = RootAnnotation;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9yb290LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLGNBQWUsU0FBUSxxQkFBVTtJQUlwRCxJQUFJLElBQUk7UUFDTixPQUFPLENBQUMsQ0FBQztJQUNYLENBQUM7O0FBTE0sMkJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsbUJBQUksR0FBRyxNQUFNLENBQUM7QUFGdkIsaUNBT0MifQ==

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class TextAnnotation extends Annotation {

@@ -3,0 +3,0 @@ static vendorPrefix: string;

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

}
TextAnnotation.vendorPrefix = 'atjson';
TextAnnotation.type = 'text';
TextAnnotation.vendorPrefix = "atjson";
TextAnnotation.type = "text";
exports.default = TextAnnotation;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy90ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLGNBQWUsU0FBUSxxQkFBVTtJQU9wRCxJQUFJLElBQUk7UUFDTixPQUFPLFFBQVEsQ0FBQztJQUNsQixDQUFDOztBQVJNLDJCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLG1CQUFJLEdBQUcsTUFBTSxDQUFDO0FBRnZCLGlDQVVDIn0=

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

import { Annotation, JSON } from '@atjson/document';
import { Annotation, JSON } from "@atjson/document";
export interface Dictionary<T> {

@@ -3,0 +3,0 @@ [key: string]: T | undefined;

@@ -18,3 +18,3 @@ "use strict";

}
else if (typeof attribute === 'object') {
else if (typeof attribute === "object") {
return Object.keys(attribute).reduce((copy, key) => {

@@ -44,3 +44,3 @@ let value = attribute[key];

this.rank = annotation.rank;
this.text = '';
this.text = "";
}

@@ -54,3 +54,3 @@ else {

this.rank = annotation.rank;
this.text = annotation.text || '';
this.text = annotation.text || "";
}

@@ -96,7 +96,7 @@ }

if (!(this.annotation instanceof annotations_1.Root)) {
throw new Error('temporary exception; this should only exist in the root node subclass');
throw new Error("temporary exception; this should only exist in the root node subclass");
}
if (text.length === 0)
return;
if (text.length === 1 && this.end - this.start === 1 && text === '\uFFFC')
if (text.length === 1 && this.end - this.start === 1 && text === "\uFFFC")
return;

@@ -121,3 +121,3 @@ let annotation = new annotations_1.Text({

let insertedWholeNode = false;
if (this.type !== 'text') {
if (this.type !== "text") {
if (this.start === node.start && this.end === node.end) {

@@ -128,3 +128,5 @@ this.insertChild(node);

if (this.start <= node.start) {
if (node.start === node.end && this.end === node.end && this.rank === node.rank) {
if (node.start === node.end &&
this.end === node.end &&
this.rank === node.rank) {
this.insertSibling(node);

@@ -247,4 +249,4 @@ return;

}
let partial = this.annotation instanceof annotations_1.Text ?
new HIRNode({
let partial = this.annotation instanceof annotations_1.Text
? new HIRNode({
id: this.id,

@@ -257,4 +259,4 @@ type: this.type,

text: this.text.slice(newStart - this.start, newEnd - this.start)
}) :
new HIRNode({
})
: new HIRNode({
id: this.id,

@@ -270,6 +272,5 @@ type: this.type,

if (partial.start > partial.end) {
throw new Error('something has gone catastrophically wrong');
throw new Error("something has gone catastrophically wrong");
}
if (this.annotation instanceof annotations_1.Text &&
partial.text === '\uFFFC') {
if (this.annotation instanceof annotations_1.Text && partial.text === "\uFFFC") {
return;

@@ -281,2 +282,2 @@ }

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

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

import Document, { JSON } from '@atjson/document';
import HIRNode from './hir-node';
import Document, { JSON } from "@atjson/document";
import HIRNode from "./hir-node";
export default class HIR {

@@ -4,0 +4,0 @@ rootNode: HIRNode;

@@ -11,3 +11,3 @@ "use strict";

.forEach(a => {
document.insertText(a.start, '\uFFFC');
document.insertText(a.start, "\uFFFC");
a.start = Math.max(0, a.start - 1);

@@ -20,3 +20,4 @@ });

}));
document.annotations.sort((a, b) => {
document.annotations
.sort((a, b) => {
if (a.start === b.start) {

@@ -27,3 +28,3 @@ if (a.type === b.type) {

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

@@ -34,3 +35,4 @@ }

}
}).forEach((annotation) => this.rootNode.insertAnnotation(annotation));
})
.forEach((annotation) => this.rootNode.insertAnnotation(annotation));
this.rootNode.insertText(document.content);

@@ -43,2 +45,2 @@ }

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

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

import { Root as RootAnnotation, Text as TextAnnotation } from './annotations';
import HIR from './hir';
import HIRNode from './hir-node';
import { Root as RootAnnotation, Text as TextAnnotation } from "./annotations";
import HIR from "./hir";
import HIRNode from "./hir-node";
export { HIRNode, HIR, RootAnnotation, TextAnnotation };

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

export { default as Root } from './root';
export { default as Text } from './text';
export { default as Root } from "./root";
export { default as Text } from "./text";

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

export { default as Root } from './root';
export { default as Text } from './text';
export { default as Root } from "./root";
export { default as Text } from "./text";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sSUFBSSxJQUFJLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDekMsT0FBTyxFQUFFLE9BQU8sSUFBSSxJQUFJLEVBQUUsTUFBTSxRQUFRLENBQUMifQ==

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class RootAnnotation extends Annotation {

@@ -3,0 +3,0 @@ static vendorPrefix: string;

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class RootAnnotation extends Annotation {

@@ -7,4 +7,4 @@ get rank() {

}
RootAnnotation.vendorPrefix = 'atjson';
RootAnnotation.type = 'root';
RootAnnotation.vendorPrefix = "atjson";
RootAnnotation.type = "root";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9yb290LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLGNBQWUsU0FBUSxVQUFVO0lBSXBELElBQUksSUFBSTtRQUNOLE9BQU8sQ0FBQyxDQUFDO0lBQ1gsQ0FBQzs7QUFMTSwyQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUN4QixtQkFBSSxHQUFHLE1BQU0sQ0FBQyJ9

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class TextAnnotation extends Annotation {

@@ -3,0 +3,0 @@ static vendorPrefix: string;

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

import { Annotation } from '@atjson/document';
import { Annotation } from "@atjson/document";
export default class TextAnnotation extends Annotation {

@@ -7,4 +7,4 @@ get rank() {

}
TextAnnotation.vendorPrefix = 'atjson';
TextAnnotation.type = 'text';
TextAnnotation.vendorPrefix = "atjson";
TextAnnotation.type = "text";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy90ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLGNBQWUsU0FBUSxVQUFVO0lBT3BELElBQUksSUFBSTtRQUNOLE9BQU8sUUFBUSxDQUFDO0lBQ2xCLENBQUM7O0FBUk0sMkJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsbUJBQUksR0FBRyxNQUFNLENBQUMifQ==

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

import { Annotation, JSON } from '@atjson/document';
import { Annotation, JSON } from "@atjson/document";
export interface Dictionary<T> {

@@ -3,0 +3,0 @@ [key: string]: T | undefined;

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

import Document, { Annotation, ParseAnnotation } from '@atjson/document';
import { Root, Text } from './annotations';
import Document, { Annotation, ParseAnnotation } from "@atjson/document";
import { Root, Text } from "./annotations";
function toJSON(attribute) {

@@ -16,3 +16,3 @@ if (Array.isArray(attribute)) {

}
else if (typeof attribute === 'object') {
else if (typeof attribute === "object") {
return Object.keys(attribute).reduce((copy, key) => {

@@ -42,3 +42,3 @@ let value = attribute[key];

this.rank = annotation.rank;
this.text = '';
this.text = "";
}

@@ -52,3 +52,3 @@ else {

this.rank = annotation.rank;
this.text = annotation.text || '';
this.text = annotation.text || "";
}

@@ -94,7 +94,7 @@ }

if (!(this.annotation instanceof Root)) {
throw new Error('temporary exception; this should only exist in the root node subclass');
throw new Error("temporary exception; this should only exist in the root node subclass");
}
if (text.length === 0)
return;
if (text.length === 1 && this.end - this.start === 1 && text === '\uFFFC')
if (text.length === 1 && this.end - this.start === 1 && text === "\uFFFC")
return;

@@ -119,3 +119,3 @@ let annotation = new Text({

let insertedWholeNode = false;
if (this.type !== 'text') {
if (this.type !== "text") {
if (this.start === node.start && this.end === node.end) {

@@ -126,3 +126,5 @@ this.insertChild(node);

if (this.start <= node.start) {
if (node.start === node.end && this.end === node.end && this.rank === node.rank) {
if (node.start === node.end &&
this.end === node.end &&
this.rank === node.rank) {
this.insertSibling(node);

@@ -245,4 +247,4 @@ return;

}
let partial = this.annotation instanceof Text ?
new HIRNode({
let partial = this.annotation instanceof Text
? new HIRNode({
id: this.id,

@@ -255,4 +257,4 @@ type: this.type,

text: this.text.slice(newStart - this.start, newEnd - this.start)
}) :
new HIRNode({
})
: new HIRNode({
id: this.id,

@@ -268,6 +270,5 @@ type: this.type,

if (partial.start > partial.end) {
throw new Error('something has gone catastrophically wrong');
throw new Error("something has gone catastrophically wrong");
}
if (this.annotation instanceof Text &&
partial.text === '\uFFFC') {
if (this.annotation instanceof Text && partial.text === "\uFFFC") {
return;

@@ -278,2 +279,2 @@ }

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

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

import Document, { JSON } from '@atjson/document';
import HIRNode from './hir-node';
import Document, { JSON } from "@atjson/document";
import HIRNode from "./hir-node";
export default class HIR {

@@ -4,0 +4,0 @@ rootNode: HIRNode;

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

import { Root } from './annotations';
import HIRNode from './hir-node';
import { Root } from "./annotations";
import HIRNode from "./hir-node";
export default class HIR {

@@ -9,3 +9,3 @@ constructor(doc) {

.forEach(a => {
document.insertText(a.start, '\uFFFC');
document.insertText(a.start, "\uFFFC");
a.start = Math.max(0, a.start - 1);

@@ -18,3 +18,4 @@ });

}));
document.annotations.sort((a, b) => {
document.annotations
.sort((a, b) => {
if (a.start === b.start) {

@@ -25,3 +26,3 @@ if (a.type === b.type) {

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

@@ -32,3 +33,4 @@ }

}
}).forEach((annotation) => this.rootNode.insertAnnotation(annotation));
})
.forEach((annotation) => this.rootNode.insertAnnotation(annotation));
this.rootNode.insertText(document.content);

@@ -40,2 +42,2 @@ }

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

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

import { Root as RootAnnotation, Text as TextAnnotation } from './annotations';
import HIR from './hir';
import HIRNode from './hir-node';
import { Root as RootAnnotation, Text as TextAnnotation } from "./annotations";
import HIR from "./hir";
import HIRNode from "./hir-node";
export { HIRNode, HIR, RootAnnotation, TextAnnotation };

@@ -1,5 +0,5 @@

import { Root as RootAnnotation, Text as TextAnnotation } from './annotations';
import HIR from './hir';
import HIRNode from './hir-node';
import { Root as RootAnnotation, Text as TextAnnotation } from "./annotations";
import HIR from "./hir";
import HIRNode from "./hir-node";
export { HIRNode, HIR, RootAnnotation, TextAnnotation };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksSUFBSSxjQUFjLEVBQUUsSUFBSSxJQUFJLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEdBQUcsTUFBTSxPQUFPLENBQUM7QUFDeEIsT0FBTyxPQUFPLE1BQU0sWUFBWSxDQUFDO0FBQ2pDLE9BQU8sRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLGNBQWMsRUFBRSxjQUFjLEVBQUUsQ0FBQyJ9
{
"name": "@atjson/hir",
"version": "0.19.1",
"version": "0.21.0",
"description": "Libraries for annotated JSON documents",

@@ -28,3 +28,3 @@ "contributors": [

"devDependencies": {
"@atjson/document": "0.20.0"
"@atjson/document": "0.21.0"
},

@@ -34,3 +34,3 @@ "peerDependencies": {

},
"gitHead": "e4ccea39f42908c2f11d39d8511fd042c05fc941"
"gitHead": "c8d4b67b3c8b7491d611f1a09036c8ddb92c17c3"
}
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