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

@spare/liner

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spare/liner - npm Package Compare versions

Comparing version 0.3.9 to 0.3.11

4

dist/index.cjs.js

@@ -14,2 +14,4 @@ 'use strict';

};
const LFREG = /\n/;
const COREG = /,/;
const liner = (lines, {

@@ -23,3 +25,3 @@ discrete = false,

const hover = !!bracket$1;
const joined = lines.length && /\n/.test(delim) ? joinLines(lines, /,/.test(delim) ? enumChars.CO : '', level, hover) : lines.join(delim);
const joined = lines.length && LFREG.test(delim) ? joinLines(lines, COREG.test(delim) ? enumChars.CO : '', level, hover) : lines.join(delim);
return bracket.br(joined, bracket$1);

@@ -26,0 +28,0 @@ };

@@ -10,2 +10,4 @@ import { TB, LF, CO } from '@spare/enum-chars';

};
const LFREG = /\n/;
const COREG = /,/;
const liner = (lines, {

@@ -19,3 +21,3 @@ discrete = false,

const hover = !!bracket;
const joined = lines.length && /\n/.test(delim) ? joinLines(lines, /,/.test(delim) ? CO : '', level, hover) : lines.join(delim);
const joined = lines.length && LFREG.test(delim) ? joinLines(lines, COREG.test(delim) ? CO : '', level, hover) : lines.join(delim);
return br(joined, bracket);

@@ -22,0 +24,0 @@ };

{
"name": "@spare/liner",
"version": "0.3.9",
"version": "0.3.11",
"description": "Join lines together",

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

"dependencies": {
"@spare/bracket": "^0.3.9",
"@spare/enum-brackets": "^0.3.9",
"@spare/enum-chars": "^0.3.9"
"@spare/bracket": "^0.3.11",
"@spare/enum-brackets": "^0.3.11",
"@spare/enum-chars": "^0.3.11"
},

@@ -39,3 +39,3 @@ "repository": {

"homepage": "https://github.com/hoyeungw/spare#readme",
"gitHead": "028ebcbe8435520c001ae45a558c5682333f77e6"
"gitHead": "0f2272e589b9f17eedd9892b40a4fee4faa4200c"
}
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