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

magicpen

Package Overview
Dependencies
Maintainers
1
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 0.1.1 to 0.1.2

3

lib/magicpen-default-format.js
/*global namespace*/
(function () {
var global = this;

@@ -42,3 +43,3 @@ function supportsColors() {

function defaultFormat() {
if (typeof window !== 'undefined' || typeof window.navigator !== 'undefined') {
if (typeof global.window !== 'undefined' && typeof global.window.navigator !== 'undefined') {
return 'html'; // Browser

@@ -45,0 +46,0 @@ } else if (supportsColors()) {

@@ -130,2 +130,3 @@ (function () {

(function () {
var global = this;

@@ -170,3 +171,3 @@ function supportsColors() {

function defaultFormat() {
if (typeof window !== 'undefined' || typeof window.navigator !== 'undefined') {
if (typeof global.window !== 'undefined' && typeof global.window.navigator !== 'undefined') {
return 'html'; // Browser

@@ -173,0 +174,0 @@ } else if (supportsColors()) {

{
"name": "magicpen",
"version": "0.1.1",
"version": "0.1.2",
"description": "Styled output in both consoles and browsers",

@@ -5,0 +5,0 @@ "main": "./lib/index.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