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

ansi-to-react

Package Overview
Dependencies
Maintainers
15
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-to-react - npm Package Compare versions

Comparing version 4.0.4-alpha.0 to 4.0.4

lib/index.d.ts.map

2

__tests__/index.spec.ts

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

import { shallow } from "enzyme";
import * as React from "react";
import { shallow } from "enzyme";

@@ -4,0 +4,0 @@ import Ansi from "../src/index";

import * as React from "react";
declare type Props = {
declare interface Props {
children: string;
className?: string;
linkify: boolean;
};
}
export default function Ansi(props: Props): React.DetailedReactHTMLElement<{

@@ -8,0 +8,0 @@ className: string | undefined;

{
"name": "ansi-to-react",
"version": "4.0.4-alpha.0",
"version": "4.0.4",
"description": "ANSI to React Elements",

@@ -18,3 +18,3 @@ "main": "lib/index.js",

"author": "Kyle Kelley <rgbkrk@gmail.com>",
"license": "MPL-2.0",
"license": "BSD-3-Clause",
"dependencies": {

@@ -27,4 +27,3 @@ "anser": "^1.4.1",

"react-dom": "^16.3.2"
},
"gitHead": "683bdfa1a29472a8947f60457e3ddbdfdfbb328b"
}
}

@@ -0,4 +1,4 @@

import { AnserJsonEntry, ansiToJson } from "anser";
import { escapeCarriageReturn } from "escape-carriage";
import * as React from "react";
import { ansiToJson, AnserJsonEntry } from "anser";
import { escapeCarriageReturn } from "escape-carriage";

@@ -75,7 +75,7 @@ const LINK_REGEX = /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/;

declare type Props = {
declare interface Props {
children: string;
className?: string;
linkify: boolean;
};
}

@@ -82,0 +82,0 @@ export default function Ansi(props: Props) {

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