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

itty-chroma

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-chroma - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

1

chroma.d.ts

@@ -15,2 +15,3 @@ type StyleFunction<T = string> = (value: T) => ColoredProxy;

border: StyleFunction;
style: StyleFunction;
log: ColoredProxy;

@@ -17,0 +18,0 @@ warn: ColoredProxy;

2

chroma.js

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

"use strict";const t=new Proxy((()=>{}),{get:(t,o,e,r="",c)=>new Proxy(((...t)=>{let o,e=[r],i="%c",s=r.match(/pad|dec/);for(let r of t)r=r.zq?.()??r,r?.[0]?.startsWith?.("%c")?(o=r[1].match(/pad|dec/),s&&(i=i.slice(0,-1)),s&&!o&&(i+="%c ",e.push("")),i+=r[0],e.push(...r.slice(1)),s=o):(i+="object"==typeof r?"%o ":"%s ",e.push(r));return c?console[c](i.trim(),...e):[i,...e]}),{get:(t,o,e,i=t=>o=>(r+=`${t}:${o};`)&&e)=>"zq"==o?e:"color"==o?i(o):"bold"==o?i("font-weight")(o):"italic"==o?i("font-style")(o):"underline"==o?i("text-decoration")(o):"strikethrough"==o?i("text-decoration")("line-through"):"font"==o?i("font-family"):"size"==o?i("font-size"):"bg"==o?i("background"):"radius"==o?i("border-radius"):"padding"==o||"border"==o?i(o):"log"==o||"warn"==o||"error"==o?(c=o)&&e:i("color")(o)})[o]});exports.chroma=t;
"use strict";const t=new Proxy((()=>{}),{get:(t,e,o,r="",c)=>new Proxy(((...t)=>{let e,o=[r],s="%c",i=r.match(/pad|dec/);for(let r of t)r=r?.zq?.()??r,r?.[0]?.startsWith?.("%c")?(e=r[1].match(/pad|dec/),i&&(s=s.slice(0,-1)),i&&!e&&(s+="%c ",o.push("")),s+=r[0],o.push(...r.slice(1)),i=e):(s+="object"==typeof r?"%o ":"%s ",o.push(r));return c?console[c](s.trim(),...o):[s,...o]}),{get:(t,e,o,s=t=>e=>(r+=(t?`${t}:${e}`:e)+";")&&o)=>"zq"==e?o:"color"==e?s(e):"bold"==e?s("font-weight")(e):"italic"==e?s("font-style")(e):"underline"==e?s("text-decoration")(e):"strike"==e?s("text-decoration")("line-through"):"font"==e?s("font-family"):"size"==e?s("font-size"):"bg"==e?s("background"):"radius"==e?s("border-radius"):"padding"==e||"border"==e?s(e):"style"==e?s(""):"log"==e||"warn"==e||"error"==e?(c=e)&&o:s("color")(e)})[e]});exports.chroma=t;
{
"name": "itty-chroma",
"version": "0.1.6",
"version": "0.1.7",
"description": "Powerful styling for the browser console in under 500 bytes.",

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

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