@atjson/renderer-hir
Advanced tools
Comparing version 0.21.13 to 0.21.14
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.21.14](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-hir@0.21.13...@atjson/renderer-hir@0.21.14) (2020-02-10) | ||
### Bug Fixes | ||
* just say no to Unknown-Unknowns! ([#292](https://github.com/CondeNast-Copilot/atjson/issues/292)) ([a90f294](https://github.com/CondeNast-Copilot/atjson/commit/a90f294b5964eb2c22a77eceeab70cdc600d4bf2)) | ||
## [0.21.13](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.21.12...@atjson/renderer-hir@0.21.13) (2020-01-24) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const document_1 = require("@atjson/document"); | ||
const hir_1 = require("@atjson/hir"); | ||
@@ -50,32 +51,6 @@ const escape = { | ||
} | ||
function getChildNodeAnnotations(childNode) { | ||
if (isTextAnnotation(childNode.annotation)) { | ||
return { | ||
type: "text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
text: childNode.text | ||
}, | ||
toJSON() { | ||
return { | ||
id: "Any<id>", | ||
type: "-atjson-text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
"-atjson-text": childNode.text | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
else { | ||
return childNode.annotation; | ||
} | ||
} | ||
function compile(renderer, node, context) { | ||
let annotation = node.annotation; | ||
let childNodes = node.children(); | ||
let childAnnotations = childNodes.map(getChildNodeAnnotations); | ||
let childAnnotations = childNodes.map(normalizeChildNode); | ||
let generator; | ||
@@ -105,2 +80,35 @@ if (context.parent == null) { | ||
} | ||
function normalizeChildNode(childNode) { | ||
if (isTextAnnotation(childNode.annotation)) { | ||
return textAnnotationFromNode(childNode); | ||
} | ||
else if (childNode.annotation instanceof document_1.UnknownAnnotation) { | ||
console.debug("Encountered unknown annotation in render:", childNode.annotation); | ||
throw new Error("Cannot render an unknown annotation. Ensure all annotations are converted or removed before attempting to render."); | ||
} | ||
else { | ||
return childNode.annotation; | ||
} | ||
} | ||
function textAnnotationFromNode(childNode) { | ||
return { | ||
type: "text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
text: childNode.text | ||
}, | ||
toJSON() { | ||
return { | ||
id: "Any<id>", | ||
type: "-atjson-text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
"-atjson-text": childNode.text | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
class Renderer { | ||
@@ -119,3 +127,7 @@ static render(...params) { | ||
} | ||
return yield; | ||
else { | ||
console.warn(`[${this.constructor.name}]: No handler present for annotations of type ${annotation.type}. Possibly important information has been dropped.`); | ||
console.debug("Unsupported annotation:", annotation); | ||
return yield; | ||
} | ||
} | ||
@@ -130,2 +142,2 @@ *root() { | ||
exports.default = Renderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxxQ0FBMkQ7QUFNM0QsTUFBTSxNQUFNLEdBQVk7SUFDdEIsR0FBRyxFQUFFLE9BQU87SUFDWixHQUFHLEVBQUUsTUFBTTtJQUNYLEdBQUcsRUFBRSxNQUFNO0lBQ1gsR0FBRyxFQUFFLFFBQVE7SUFDYixHQUFHLEVBQUUsUUFBUTtJQUNiLEdBQUcsRUFBRSxRQUFRO0lBQ2IsR0FBRyxFQUFFLFFBQVE7Q0FDZCxDQUFDO0FBSUYsU0FBUyxRQUFRLENBQUMsR0FBb0I7SUFDcEMsT0FBTyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDckIsQ0FBQztBQUVELFNBQWdCLFVBQVUsQ0FBQyxJQUFZO0lBQ3JDLE9BQU8sSUFBSSxDQUFDLE9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LENBQUM7U0FDekQ7YUFBTTtZQUVMLE9BQU8sQ0FBQyxJQUFJLENBQ1YsSUFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksaURBQWlELFVBQVUsQ0FBQyxJQUFJLG9EQUFvRCxDQUM5SSxDQUFDO1lBRUYsT0FBTyxDQUFDLEtBQUssQ0FBQyx5QkFBeUIsRUFBRSxVQUFVLENBQUMsQ0FBQztZQUNyRCxPQUFPLEtBQUssQ0FBQztTQUNkO0lBQ0gsQ0FBQztJQUVELENBQUMsSUFBSTtRQUNILE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUdELElBQUksQ0FBQyxJQUFZLEVBQUUsQ0FBVTtRQUMzQixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRjtBQTFDRCwyQkEwQ0MifQ== |
@@ -0,1 +1,2 @@ | ||
import { UnknownAnnotation } from "@atjson/document"; | ||
import { HIR } from "@atjson/hir"; | ||
@@ -46,32 +47,6 @@ const escape = { | ||
} | ||
function getChildNodeAnnotations(childNode) { | ||
if (isTextAnnotation(childNode.annotation)) { | ||
return { | ||
type: "text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
text: childNode.text | ||
}, | ||
toJSON() { | ||
return { | ||
id: "Any<id>", | ||
type: "-atjson-text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
"-atjson-text": childNode.text | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
else { | ||
return childNode.annotation; | ||
} | ||
} | ||
function compile(renderer, node, context) { | ||
let annotation = node.annotation; | ||
let childNodes = node.children(); | ||
let childAnnotations = childNodes.map(getChildNodeAnnotations); | ||
let childAnnotations = childNodes.map(normalizeChildNode); | ||
let generator; | ||
@@ -107,2 +82,35 @@ if (context.parent == null) { | ||
} | ||
function normalizeChildNode(childNode) { | ||
if (isTextAnnotation(childNode.annotation)) { | ||
return textAnnotationFromNode(childNode); | ||
} | ||
else if (childNode.annotation instanceof UnknownAnnotation) { | ||
console.debug("Encountered unknown annotation in render:", childNode.annotation); | ||
throw new Error("Cannot render an unknown annotation. Ensure all annotations are converted or removed before attempting to render."); | ||
} | ||
else { | ||
return childNode.annotation; | ||
} | ||
} | ||
function textAnnotationFromNode(childNode) { | ||
return { | ||
type: "text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
text: childNode.text | ||
}, | ||
toJSON() { | ||
return { | ||
id: "Any<id>", | ||
type: "-atjson-text", | ||
start: childNode.start, | ||
end: childNode.end, | ||
attributes: { | ||
"-atjson-text": childNode.text | ||
} | ||
}; | ||
} | ||
}; | ||
} | ||
export default class Renderer { | ||
@@ -121,3 +129,7 @@ static render(...params) { | ||
} | ||
return yield; | ||
else { | ||
console.warn(`[${this.constructor.name}]: No handler present for annotations of type ${annotation.type}. Possibly important information has been dropped.`); | ||
console.debug("Unsupported annotation:", annotation); | ||
return yield; | ||
} | ||
} | ||
@@ -131,2 +143,2 @@ *root() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEdBQUcsRUFBMkIsTUFBTSxhQUFhLENBQUM7QUFNM0QsTUFBTSxNQUFNLEdBQVk7SUFDdEIsR0FBRyxFQUFFLE9BQU87SUFDWixHQUFHLEVBQUUsTUFBTTtJQUNYLEdBQUcsRUFBRSxNQUFNO0lBQ1gsR0FBRyxFQUFFLFFBQVE7SUFDYixHQUFHLEVBQUUsUUFBUTtJQUNiLEdBQUcsRUFBRSxRQUFRO0lBQ2IsR0FBRyxFQUFFLFFBQVE7Q0FDZCxDQUFDO0FBSUYsU0FBUyxRQUFRLENBQUMsR0FBb0I7SUFDcEMsT0FBTyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDck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BQUksQ0FBQztZQUM3QixJQUFZLENBQUMsUUFBUSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQzNDLElBQUksU0FBUyxFQUFFO1lBQ2IsT0FBTyxLQUFLLENBQUMsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxVQUFVLEVBQUUsT0FBTyxDQUFDLENBQUM7U0FDekQ7YUFBTTtZQUVMLE9BQU8sQ0FBQyxJQUFJLENBQ1YsSUFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksaURBQWlELFVBQVUsQ0FBQyxJQUFJLG9EQUFvRCxDQUM5SSxDQUFDO1lBRUYsT0FBTyxDQUFDLEtBQUssQ0FBQyx5QkFBeUIsRUFBRSxVQUFVLENBQUMsQ0FBQztZQUNyRCxPQUFPLEtBQUssQ0FBQztTQUNkO0lBQ0gsQ0FBQztJQUVELENBQUMsSUFBSTtRQUNILE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUdELElBQUksQ0FBQyxJQUFZLEVBQUUsQ0FBVTtRQUMzQixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRiJ9 |
{ | ||
"name": "@atjson/renderer-hir", | ||
"version": "0.21.13", | ||
"version": "0.21.14", | ||
"description": "Generalized tools for generating documents in a hierarchical fashion", | ||
@@ -13,6 +13,6 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@atjson/hir": "0.21.13" | ||
"@atjson/hir": "0.21.14" | ||
}, | ||
"devDependencies": { | ||
"@atjson/document": "0.22.10" | ||
"@atjson/document": "0.22.11" | ||
}, | ||
@@ -22,3 +22,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "9ad942d45bfea3f34c004c6b856e67da9cf7d9e5" | ||
"gitHead": "29d85c980db70c1ed4133c26c6f777ad54ab0947" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
382290
327
1
+ Added@atjson/hir@0.21.14(transitive)
- Removed@atjson/hir@0.21.13(transitive)
Updated@atjson/hir@0.21.14