Socket
Socket
Sign inDemoInstall

shortcode-tree

Package Overview
Dependencies
0
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.10 to 1.4.11

6

dist/shortcode-tree.js

@@ -128,3 +128,7 @@ 'use strict';

// Topmost node with no children
nodeChildText = node.shortcode.stringifyAsHtml(null, options);
if (node.shortcode) {
nodeChildText = node.shortcode.stringifyAsHtml(null, options);
} else {
nodeChildText = node.text || "";
}
}

@@ -131,0 +135,0 @@ }

2

package.json
{
"name": "shortcode-tree",
"version": "1.4.10",
"version": "1.4.11",
"description": "Parser library for reading short codes (BB codes) into a tree structure",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -151,2 +151,9 @@ let ShortcodeTree = require('../src').ShortcodeTree;

});
it('does not crash and burn on html equiv text generation with blank input', function () {
let testInput = ``;
let html = ShortcodeTree.generateHtmlEquivalent(testInput);
expect(html).to.equal("");
});
});

@@ -153,0 +160,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc