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

@krautzource/sre-to-tree

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@krautzource/sre-to-tree - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.github/workflows/testing.yaml

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.0.1](https://github.com/krautzource/sre-to-tree/compare/v2.0.0...v2.0.1) (2021-04-12)
### Bug Fixes
* select all descendantNodes ([13fd676](https://github.com/krautzource/sre-to-tree/commit/13fd67600d35ad9dbb49e4b4b8dcba66aef2e4f9)), closes [#21](https://github.com/krautzource/sre-to-tree/issues/21)
## [2.0.0](https://github.com/krautzource/sre-to-tree/compare/v1.4.0...v2.0.0) (2021-03-18)

@@ -7,0 +14,0 @@

2

demo/quick.js
const sre2tree = require('../lib');
const tex2svg = require('../test/tex2svg');
const out = tex2svg('{\\mathbb{A}}^p_f');
const out = tex2svg(process.argv[2] || '{\\mathbb{A}}^p_f');
const svg = out.firstElementChild;
sre2tree(svg);
console.log(svg.outerHTML);

@@ -121,3 +121,3 @@ /**

const level = 0;
const descendantNodes = skeletonNode.querySelectorAll('*');
const descendantNodes = node.querySelectorAll('*');
const semanticIdTable = generateSemanticIdTable(descendantNodes);

@@ -124,0 +124,0 @@ rewriteNode(semanticIdTable, level, skeletonNode);

{
"name": "@krautzource/sre-to-tree",
"version": "2.0.0",
"version": "2.0.1",
"description": "Rewritig speech-rule-engine enriched DOM nodes to a labeled WAI ARIA tree",

@@ -30,3 +30,3 @@ "main": "lib.js",

"mathjax-full": "^3.1.2",
"speech-rule-engine": "^3.2.0-beta.2",
"speech-rule-engine": "^3.2.0-beta.4",
"standard-version": "^9.1.1",

@@ -33,0 +33,0 @@ "tape": "^5.2.0"

@@ -1,11 +0,10 @@

const test = require('tape');
const sre2tree = require('../lib');
const tex2svg = require('./tex2svg');
test('rewriteNode warnings', (t) => {
t.plan(1);
const out = tex2svg('\\begin{eqnarray} x \\tag{1} \\\\a \\tag{x}\\end{eqnarray}');
const svg = out.firstElementChild;
sre2tree(svg);
t.ok(true , 'FAKE TEST - check there were no console warnings!');
});
const out = tex2svg('\\begin{eqnarray} x \\tag{1} \\\\a \\tag{x}\\end{eqnarray}');
const svg = out.firstElementChild;
sre2tree(svg);
const sreProperOwns = tex2svg('= a{bc}');
const sreProperOwnsSvg = sreProperOwns.firstElementChild;
sre2tree(sreProperOwnsSvg);
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