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

cli-html

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-html - npm Package Compare versions

Comparing version 2.1.8 to 3.0.0

lib/tags/base-tags.js

4

index.js

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

import parse5 from 'parse5';
import { parse } from 'parse5';

@@ -10,3 +10,3 @@ import terminalSize from 'term-size';

const document = parse5.parse(rawHTML);
const document = parse(rawHTML);

@@ -13,0 +13,0 @@ // console.dir(

import tags from '../tags.js';
import { getAttribute } from '../utils.js';
import { concatTwoBlockTags } from '../utils/concat-block-tags.js';
import { concatTwoInlineTags } from '../utils/concat-inline-tags.js';
import { inlineToBlockTag } from '../utils/inline-to-block-tag.js';
import wrapLineWidth from '../wrap-line-width.js';
import { concatTwoBlockTags } from '../utils/concatBlockTags.js';
import { concatTwoInlineTags } from '../utils/concatInlineTags.js';
import { inlineToBlockTag } from '../utils/inlineToBlockTag.js';
import wrapLineWidth from '../wrapLineWidth.js';
/**

@@ -11,0 +9,0 @@ * @param wrapper

import tags from '../tags.js';
import { concatTwoInlineTags } from '../utils/concatInlineTags.js';
import { concatTwoInlineTags } from '../utils/concat-inline-tags.js';

@@ -5,0 +5,0 @@ const inlineTag = (wrapper) => (tag, context) => {

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

/* eslint-disable security/detect-object-injection */
import { textNode } from './tag-helpers/textNode.js';

@@ -26,3 +24,3 @@ import { blockTag } from './tag-helpers/blockTag.js';

hgroup,
} from './tags/baseTags.js';
} from './tags/base-tags.js';
import { blockquote } from './tags/blockquote.js';

@@ -75,3 +73,3 @@ import { br } from './tags/br.js';

wbr,
} from './tags/textStyles.js';
} from './tags/text-styles.js';

@@ -78,0 +76,0 @@ import {

@@ -7,3 +7,3 @@ import { stdout } from 'supports-hyperlinks';

import { getAttribute } from '../utils.js';
import findParrentTag from '../utils/findParrentTag.js';
import findParrentTag from '../utils/find-parrent-tag.js';

@@ -10,0 +10,0 @@ export const a = inlineTag((value, tag) => {

@@ -8,3 +8,3 @@ import Table from 'cli-table3';

import { concatTwoBlockTags } from '../utils/concatBlockTags.js';
import { concatTwoBlockTags } from '../utils/concat-block-tags.js';
import { getAttribute } from '../utils.js';

@@ -11,0 +11,0 @@

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

import { voidTag } from '../tag-helpers/voidTag.js';
export const script = voidTag;
export const style = voidTag;
export const meta = voidTag;
export const audio = voidTag;
export const applet = voidTag;
export const area = voidTag;
export const map = voidTag;
export const base = voidTag;
export const track = voidTag;
export const embed = voidTag;
export const keygen = voidTag;
export const link = voidTag;
export const param = voidTag;
export const source = voidTag;
export const summary = voidTag;
export const noscript = voidTag;
export const bgsound = voidTag;
export {
voidTag as script, voidTag as style, voidTag as meta, voidTag as audio, voidTag as applet, voidTag as area, voidTag as map, voidTag as base, voidTag as track, voidTag as embed, voidTag as keygen, voidTag as link, voidTag as param, voidTag as source, voidTag as summary, voidTag as noscript, voidTag as bgsound,
} from '../tag-helpers/voidTag.js';

@@ -8,3 +8,2 @@ import { NumberToAlphabet } from 'number-to-alphabet';

if (tagType) {
// eslint-disable-next-line security/detect-object-injection
return tagType;

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

// eslint-disable-next-line security/detect-object-injection
return symbolsChar[symbolType] || symbolsChar.disc;

@@ -38,0 +36,0 @@ };

{
"name": "cli-html",
"version": "2.1.8",
"version": "3.0.0",
"description": "There will be cli module who render HTML to Terminal",

@@ -29,3 +29,3 @@ "main": "index.js",

"engines": {
"node": ">=14.0.0",
"node": ">=14.16",
"npm": ">=7.0.0"

@@ -49,3 +49,3 @@ },

"number-to-alphabet": "^1.0.0",
"parse5": "^6.0.1",
"parse5": "^7.0.0",
"romanize": "^1.1.1",

@@ -57,12 +57,10 @@ "supports-hyperlinks": "^2.2.0",

"devDependencies": {
"ava": "^3.8.0",
"ava": "^4.3.0",
"confusing-browser-globals": "^1.0.11",
"eslint": "^8.5.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-es": "^4.1.0",
"eslint-config-standard-jsdoc": "^9.3.0",
"eslint-plugin-async-await": "0.0.0",
"eslint-plugin-ava": "^13.0.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.4.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-json": "^3.1.0",

@@ -73,4 +71,5 @@ "eslint-plugin-no-loops": "^0.3.0",

"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-unicorn": "^43.0.0",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0"
}
}

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