New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@palett/util-ansi

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@palett/util-ansi - npm Package Compare versions

Comparing version 0.8.18 to 0.9.0

dist/index.cjs

6

dist/index.cjs.js

@@ -101,6 +101,6 @@ 'use strict';

const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? '';
const concatSgr = (tx, el) => (tx !== null && tx !== void 0 && tx.length ? el !== null && el !== void 0 && el.length ? tx + ';' + el : tx : el) ?? '';
const hexToForeSgra = hex => {
if (!(hex != null && hex.length)) return '';
if (!(hex !== null && hex !== void 0 && hex.length)) return '';
const n = convert.hexToInt(hex);

@@ -113,3 +113,3 @@ const r = n >> 16 & 0xff,

const hexToBackSgra = hex => {
if (!(hex != null && hex.length)) return '';
if (!(hex !== null && hex !== void 0 && hex.length)) return '';
const n = convert.hexToInt(hex);

@@ -116,0 +116,0 @@ const r = n >> 16 & 0xff,

@@ -97,6 +97,6 @@ import { hexToInt, hslToRgb } from '@palett/convert';

const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? '';
const concatSgr = (tx, el) => (tx !== null && tx !== void 0 && tx.length ? el !== null && el !== void 0 && el.length ? tx + ';' + el : tx : el) ?? '';
const hexToForeSgra = hex => {
if (!(hex != null && hex.length)) return '';
if (!(hex !== null && hex !== void 0 && hex.length)) return '';
const n = hexToInt(hex);

@@ -109,3 +109,3 @@ const r = n >> 16 & 0xff,

const hexToBackSgra = hex => {
if (!(hex != null && hex.length)) return '';
if (!(hex !== null && hex !== void 0 && hex.length)) return '';
const n = hexToInt(hex);

@@ -112,0 +112,0 @@ const r = n >> 16 & 0xff,

{
"name": "@palett/util-ansi",
"version": "0.8.18",
"version": "0.9.0",
"description": "A color converter",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"files": [

@@ -19,3 +22,3 @@ "dist"

"dependencies": {
"@palett/convert": "^0.8.18"
"@palett/convert": "^0.9.0"
},

@@ -43,3 +46,3 @@ "devDependencies": {

"homepage": "https://github.com/hoyeungw/palett/util-ansi#readme",
"gitHead": "adf5812e323bc29bdaea384c59716e8c7ba39330"
"gitHead": "edabce66a91b4f0b6ded1274071a2711d0857475"
}
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