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

@spare/deco

Package Overview
Dependencies
Maintainers
1
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spare/deco - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

13

dist/index.cjs.js

@@ -20,4 +20,4 @@ 'use strict';

var padString = require('@spare/pad-string');
var decoUtil = require('@spare/deco-util');
var columnMapper = require('@vect/column-mapper');
var enumChars = require('@spare/enum-chars');
var enums = require('@typen/enums');

@@ -138,7 +138,2 @@

const joinVector = (list, lv) => {
const rn = enumChars.LF + enumChars.TB.repeat(lv);
return `${rn} ${list.join(`,${rn + enumChars.TB}`)}${rn}`;
};
const lpad = padString.LPad({

@@ -157,3 +152,3 @@ ansi: true

vectorMapper.mutate(entries, ([k, v]) => `${k}: ${v}`);
return (wrap || lv < vo) && entries.length > 1 ? joinVector(entries, lv) : entries.join(', ');
return (wrap || lv < vo) && entries.length > 1 ? decoUtil.joinLines(entries, lv) : entries.join(', ');
};

@@ -182,3 +177,3 @@ const wrapInfo = function (entries) {

} = this;
if (lv < va) return joinVector(vector, lv);
if (lv < va) return decoUtil.joinLines(vector, lv);
let rows = [],

@@ -191,3 +186,3 @@ w = 0,

});
return rows.length > 1 ? joinVector(rows, lv) : vector.join(', ');
return rows.length > 1 ? decoUtil.joinLines(rows, lv) : vector.join(', ');
};

@@ -194,0 +189,0 @@

@@ -16,4 +16,4 @@ import { STR, NUM, BIG, OBJ, FUN as FUN$1, BOO, UND, SYM } from '@typen/enum-data-types';

import { LPad } from '@spare/pad-string';
import { joinLines } from '@spare/deco-util';
import { mutate } from '@vect/column-mapper';
import { TB, LF } from '@spare/enum-chars';
import { FUN } from '@typen/enums';

@@ -134,7 +134,2 @@

const joinVector = (list, lv) => {
const rn = LF + TB.repeat(lv);
return `${rn} ${list.join(`,${rn + TB}`)}${rn}`;
};
const lpad = LPad({

@@ -153,3 +148,3 @@ ansi: true

mutate$1(entries, ([k, v]) => `${k}: ${v}`);
return (wrap || lv < vo) && entries.length > 1 ? joinVector(entries, lv) : entries.join(', ');
return (wrap || lv < vo) && entries.length > 1 ? joinLines(entries, lv) : entries.join(', ');
};

@@ -178,3 +173,3 @@ const wrapInfo = function (entries) {

} = this;
if (lv < va) return joinVector(vector, lv);
if (lv < va) return joinLines(vector, lv);
let rows = [],

@@ -187,3 +182,3 @@ w = 0,

});
return rows.length > 1 ? joinVector(rows, lv) : vector.join(', ');
return rows.length > 1 ? joinLines(rows, lv) : vector.join(', ');
};

@@ -190,0 +185,0 @@

{
"name": "@spare/deco",
"version": "0.1.17",
"version": "0.1.18",
"description": "A light and simple console debug tool.",

@@ -24,5 +24,6 @@ "main": "dist/index.cjs.js",

"@palett/fluo-vector": "^0.0.17",
"@spare/enum-chars": "^0.1.17",
"@spare/lange": "^0.1.17",
"@spare/pad-string": "^0.1.17",
"@spare/deco-util": "^0.1.18",
"@spare/enum-chars": "^0.1.18",
"@spare/lange": "^0.1.18",
"@spare/pad-string": "^0.1.18",
"@typen/enum-data-types": "^0.0.3",

@@ -55,3 +56,3 @@ "@typen/enum-object-types": "^0.0.3",

"homepage": "https://github.com/hoyeungw/spare#readme",
"gitHead": "17def671379bb423041534f3698a0ff4640db677"
"gitHead": "02f2ee17add96468f0deafeedc65de4fb1b8ac98"
}
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