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

magicpen

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicpen - npm Package Compare versions

Comparing version 4.3.3 to 4.3.4

9

lib/AnsiSerializer.js

@@ -7,2 +7,5 @@ var utils = require('./utils');

var cacheSize = 0;
var maxColorCacheSize = 1024;
var ansiStyles = utils.extend({}, require('ansi-styles'));

@@ -125,3 +128,7 @@ Object.keys(ansiStyles).forEach(function (styleName) {

}
ansiStyles[originalStyleName] = {open: open, close: close};
if (cacheSize < maxColorCacheSize) {
ansiStyles[originalStyleName] = {open: open, close: close};
cacheSize += 1;
}
content = open + content + close;

@@ -128,0 +135,0 @@ }

@@ -31,2 +31,5 @@ /*!

var cacheSize = 0;
var maxColorCacheSize = 1024;
var ansiStyles = utils.extend({}, require(12));

@@ -149,3 +152,7 @@ Object.keys(ansiStyles).forEach(function (styleName) {

}
ansiStyles[originalStyleName] = {open: open, close: close};
if (cacheSize < maxColorCacheSize) {
ansiStyles[originalStyleName] = {open: open, close: close};
cacheSize += 1;
}
content = open + content + close;

@@ -152,0 +159,0 @@ }

2

package.json
{
"name": "magicpen",
"version": "4.3.3",
"version": "4.3.4",
"description": "Styled output in both consoles and browsers",

@@ -5,0 +5,0 @@ "main": "./lib/MagicPen.js",

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