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

magicpen

Package Overview
Dependencies
Maintainers
3
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 6.1.1 to 6.2.0

.editorconfig

4

lib/MagicPen.js

@@ -431,3 +431,3 @@ /*global window*/

for (var i = 0; i < height; i += 1) {
if (0 < i) {
if (i > 0) {
this.nl();

@@ -567,3 +567,3 @@ }

outputArray.forEach(function (line, i) {
if (0 < i) {
if (i > 0) {
replacedOutput.nl();

@@ -570,0 +570,0 @@ }

@@ -15,3 +15,3 @@ var platform = require('./platform');

var forceColor = void 0;
var forceColor;
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {

@@ -18,0 +18,0 @@ forceColor = 0;

@@ -10,3 +10,3 @@ module.exports = function (theme, styles) {

count += 1;
if (100 < count) {
if (count > 100) {
var index = stack.indexOf(themeMapping);

@@ -13,0 +13,0 @@ stack.push(themeMapping);

{
"name": "magicpen",
"version": "6.1.1",
"version": "6.2.0",
"description": "Styled output in both consoles and browsers",

@@ -14,17 +14,26 @@ "main": "./lib/MagicPen.js",

"scripts": {
"lint": "jshint .",
"test": "npm run lint && mocha -R spec",
"travis": "npm test && npm run coverage && (<coverage/lcov.info coveralls || true)",
"prepublish": "(echo '/*!' && <LICENSE sed -e's/^/ * /' | sed -e's/\\s+$//' && echo ' */' && browserify -p bundle-collapser/plugin -e lib/MagicPen -s weknowhow.MagicPen) > magicpen.js",
"coverage": "NODE_ENV=development istanbul cover _mocha --report text --report lcov -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"
"coverage": "nyc --reporter=lcov --reporter=text npm run test-node",
"lint": "eslint .",
"test": "npm run lint && npm run test-node && npm run test-browser",
"test-browser": "npm run prepublish && PSEUDO_BROWSER=yes mocha",
"test-node": "mocha",
"prepublish": "rollup -c"
},
"author": "Sune Simonsen",
"devDependencies": {
"browserify": "8.1.0",
"bundle-collapser": "1.1.1",
"coveralls": "2.11.1",
"del": "0.1.1",
"istanbul": "0.3.17",
"jshint": "*",
"mocha": "1.20.1",
"coveralls": "^3.0.9",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^14.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha": "^6.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"mocha": "^6.0.2",
"nyc": "^14.1.1",
"rollup": "^1.0.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.0.0",
"sinon": "1.9.1",

@@ -31,0 +40,0 @@ "unexpected": "9.5.0",

@@ -8,6 +8,6 @@ # MagicPen

[![NPM version](https://badge.fury.io/js/magicpen.png)](http://badge.fury.io/js/magicpen)
[![Build Status](https://travis-ci.org/sunesimonsen/magicpen.png)](https://travis-ci.org/sunesimonsen/magicpen)
[![Coverage Status](https://coveralls.io/repos/sunesimonsen/magicpen/badge.png)](https://coveralls.io/r/sunesimonsen/magicpen)
[![Dependency Status](https://david-dm.org/sunesimonsen/magicpen.png)](https://david-dm.org/sunesimonsen/magicpen)
[![NPM version](https://img.shields.io/npm/v/magicpen.svg)](https://www.npmjs.com/package/magicpen)
[![Build Status](https://img.shields.io/travis/sunesimonsen/magicpen/master.svg)](https://travis-ci.org/sunesimonsen/magicpen)
[![Coverage Status](https://img.shields.io/coveralls/sunesimonsen/magicpen.svg)](https://coveralls.io/r/sunesimonsen/magicpen)
[![Dependency Status](https://david-dm.org/sunesimonsen/magicpen.svg)](https://david-dm.org/sunesimonsen/magicpen)

@@ -14,0 +14,0 @@ ## Installation

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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