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

@atjson/renderer-hir

Package Overview
Dependencies
Maintainers
7
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atjson/renderer-hir - npm Package Compare versions

Comparing version 0.22.3 to 0.22.4-dev.0

29

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

## [0.22.3](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.2...@atjson/renderer-hir@0.22.3) (2020-03-11)
## [0.22.4-dev.0](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.3...@atjson/renderer-hir@0.22.4-dev.0) (2020-03-23)

@@ -15,43 +15,28 @@ **Note:** Version bump only for package @atjson/renderer-hir

## [0.22.2](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.1...@atjson/renderer-hir@0.22.2) (2020-03-02)
## [0.22.3](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.2...@atjson/renderer-hir@0.22.3) (2020-03-11)
**Note:** Version bump only for package @atjson/renderer-hir
## [0.22.2](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.1...@atjson/renderer-hir@0.22.2) (2020-03-02)
**Note:** Version bump only for package @atjson/renderer-hir
## [0.22.1](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.22.0...@atjson/renderer-hir@0.22.1) (2020-02-26)
### Bug Fixes
* update peer dependencies to @atjson/document ([49f5fd8](https://github.com/CondeNast/atjson/commit/49f5fd849e9c6c167509e244081593662424e4a2))
- update peer dependencies to @atjson/document ([49f5fd8](https://github.com/CondeNast/atjson/commit/49f5fd849e9c6c167509e244081593662424e4a2))
# [0.22.0](https://github.com/CondeNast/atjson/compare/@atjson/renderer-hir@0.21.14...@atjson/renderer-hir@0.22.0) (2020-02-20)
### Features
* add Annotation is type narrowing function ([#423](https://github.com/CondeNast/atjson/issues/423)) ([2858a4f](https://github.com/CondeNast/atjson/commit/2858a4f707dd14d0ece5d0bc576f38363dfbe5ba))
- add Annotation is type narrowing function ([#423](https://github.com/CondeNast/atjson/issues/423)) ([2858a4f](https://github.com/CondeNast/atjson/commit/2858a4f707dd14d0ece5d0bc576f38363dfbe5ba))
## [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))
- 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)

@@ -58,0 +43,0 @@

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

"`": "`",
"=": "="
"=": "=",
};

@@ -42,7 +42,3 @@ function doEscape(chr) {

function classify(type) {
return type
.toLowerCase()
.split("-")
.map(classifyWord)
.join("");
return type.toLowerCase().split("-").map(classifyWord).join("");
}

@@ -73,3 +69,3 @@ exports.classify = classify;

next: childAnnotations[idx + 1] || null,
document: context.document
document: context.document,
};

@@ -100,3 +96,3 @@ if (childNode.type === "text") {

attributes: {
text: childNode.text
text: childNode.text,
},

@@ -110,6 +106,6 @@ toJSON() {

attributes: {
"-atjson-text": childNode.text
}
"-atjson-text": childNode.text,
},
};
}
},
};

@@ -144,2 +140,2 @@ }

exports.default = Renderer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdL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ELFVBQVUsQ0FBQyxJQUFJLG9EQUFvRCxDQUM5SSxDQUFDO1lBRUYsT0FBTyxDQUFDLEtBQUssQ0FBQyx5QkFBeUIsRUFBRSxVQUFVLENBQUMsQ0FBQztZQUNyRCxPQUFPLEtBQUssQ0FBQztTQUNkO0lBQ0gsQ0FBQztJQUVELENBQUMsSUFBSTtRQUNILE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUdELElBQUksQ0FBQyxJQUFZLEVBQUUsQ0FBVTtRQUMzQixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRjtBQTFDRCwyQkEwQ0MifQ==

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

import { UnknownAnnotation, is } from "@atjson/document";
import { UnknownAnnotation, is, } from "@atjson/document";
import { HIR } from "@atjson/hir";

@@ -10,3 +10,3 @@ const escape = {

"`": "`",
"=": "="
"=": "=",
};

@@ -39,7 +39,3 @@ function doEscape(chr) {

export function classify(type) {
return type
.toLowerCase()
.split("-")
.map(classifyWord)
.join("");
return type.toLowerCase().split("-").map(classifyWord).join("");
}

@@ -60,3 +56,3 @@ function isTextAnnotation(a) {

...context,
children: childAnnotations
children: childAnnotations,
});

@@ -73,3 +69,3 @@ }

next: childAnnotations[idx + 1] || null,
document: context.document
document: context.document,
};

@@ -79,3 +75,3 @@ if (childNode.type === "text") {

...childContext,
children: []
children: [],
});

@@ -104,3 +100,3 @@ }

attributes: {
text: childNode.text
text: childNode.text,
},

@@ -114,6 +110,6 @@ toJSON() {

attributes: {
"-atjson-text": childNode.text
}
"-atjson-text": childNode.text,
},
};
}
},
};

@@ -147,2 +143,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBaUIsRUFHZixpQkFBaUIsRUFDakIsRUF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ZQUNiLE9BQU8sS0FBSyxDQUFDLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFLE9BQU8sQ0FBQyxDQUFDO1NBQ3pEO2FBQU07WUFFTCxPQUFPLENBQUMsSUFBSSxDQUNWLElBQUksSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLGlEQUFpRCxVQUFVLENBQUMsSUFBSSxvREFBb0QsQ0FDOUksQ0FBQztZQUVGLE9BQU8sQ0FBQyxLQUFLLENBQUMseUJBQXlCLEVBQUUsVUFBVSxDQUFDLENBQUM7WUFDckQsT0FBTyxLQUFLLENBQUM7U0FDZDtJQUNILENBQUM7SUFFRCxDQUFDLElBQUk7UUFDSCxPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7SUFHRCxJQUFJLENBQUMsSUFBWSxFQUFFLENBQVU7UUFDM0IsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDO0NBQ0YifQ==
{
"name": "@atjson/renderer-hir",
"version": "0.22.3",
"version": "0.22.4-dev.0",
"description": "Generalized tools for generating documents in a hierarchical fashion",

@@ -13,6 +13,6 @@ "main": "dist/commonjs/index.js",

"dependencies": {
"@atjson/hir": "0.22.3"
"@atjson/hir": "0.22.4-dev.0"
},
"devDependencies": {
"@atjson/document": "0.23.2"
"@atjson/document": "0.23.3-dev.0"
},

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

},
"gitHead": "99fe83777655fe4cd308b7f5c5074559d8c1ab8a"
"gitHead": "7714a788163e3fa7fd0cca6d51bc4ed32857f886"
}

@@ -24,6 +24,5 @@ # 🌳 @atjson/renderer-hir

```ts
import Renderer from '@atjson/renderer-hir';
import Renderer from "@atjson/renderer-hir";
export default class SlackRenderer extends Renderer {
}
export default class SlackRenderer extends Renderer {}
```

@@ -36,3 +35,3 @@

```ts
import Renderer from '@atjson/renderer-hir';
import Renderer from "@atjson/renderer-hir";

@@ -42,3 +41,3 @@ export default class SlackRenderer extends Renderer {

let text = yield;
return text.join('');
return text.join("");
}

@@ -53,13 +52,13 @@ }

```ts
import OffsetSource from '@atjson/offset-annotations';
import SlackRenderer from '../src';
import OffsetSource from "@atjson/offset-annotations";
import SlackRenderer from "../src";
describe('SlackRenderer', () => {
test('it returns text', () => {
describe("SlackRenderer", () => {
test("it returns text", () => {
let doc = new OffsetSource({
content: 'Hello!',
annotations: []
content: "Hello!",
annotations: [],
});
expect(SlackRenderer.render(doc)).toBe('Hello!');
expect(SlackRenderer.render(doc)).toBe("Hello!");
});

@@ -112,3 +111,3 @@ });

```ts
import Renderer from '@atjson/renderer-hir';
import Renderer from "@atjson/renderer-hir";

@@ -118,3 +117,3 @@ export default class SlackRenderer extends Renderer {

let text = yield;
return `*${text.join('')}*`;
return `*${text.join("")}*`;
}

@@ -124,3 +123,3 @@

let text = yield;
return text.join('');
return text.join("");
}

@@ -137,3 +136,3 @@ }

```ts
import Renderer from '@atjson/renderer-hir';
import Renderer from "@atjson/renderer-hir";

@@ -143,3 +142,3 @@ export default class SlackRenderer extends Renderer {

let text = yield;
return `*${text.join('')}*`;
return `*${text.join("")}*`;
}

@@ -149,3 +148,3 @@

let text = yield;
return `_${text.join('')}_`;
return `_${text.join("")}_`;
}

@@ -155,3 +154,3 @@

let text = yield;
return `~${text.join('')}~`;
return `~${text.join("")}~`;
}

@@ -161,5 +160,5 @@

let text = yield;
return text.join('');
return text.join("");
}
}
```

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

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