@spare/entries-margin
Advanced tools
Comparing version 0.11.15 to 0.11.16
@@ -15,3 +15,3 @@ 'use strict'; | ||
rule | ||
} = {}) => EntriesMargin.build(entries, head, tail).stringify(keyRead, read).toVector(rule !== null && rule !== void 0 ? rule : ['..', '..']); | ||
} = {}) => EntriesMargin.build(entries, head, tail).stringify(keyRead, read).toVector(rule ?? ['..', '..']); | ||
class EntriesMargin extends vectorMargin.VectorMargin { | ||
@@ -27,3 +27,3 @@ constructor(entries, head, tail, dash) { | ||
l; | ||
if (!(l = (_entries = entries) === null || _entries === void 0 ? void 0 : _entries.length)) [entries, h, t, d] = [[], 0, 0, false]; | ||
if (!(l = (_entries = entries) == null ? void 0 : _entries.length)) [entries, h, t, d] = [[], 0, 0, false]; | ||
if (!h && !t || h >= l) [h, t, d] = [l, 0, false]; | ||
@@ -30,0 +30,0 @@ return new EntriesMargin(entriesMargin$1.marginCopy(entries, h, t, l), h, t, d); |
@@ -11,3 +11,3 @@ import { totx } from '@spare/util'; | ||
rule | ||
} = {}) => EntriesMargin.build(entries, head, tail).stringify(keyRead, read).toVector(rule !== null && rule !== void 0 ? rule : ['..', '..']); | ||
} = {}) => EntriesMargin.build(entries, head, tail).stringify(keyRead, read).toVector(rule ?? ['..', '..']); | ||
class EntriesMargin extends VectorMargin { | ||
@@ -23,3 +23,3 @@ constructor(entries, head, tail, dash) { | ||
l; | ||
if (!(l = (_entries = entries) === null || _entries === void 0 ? void 0 : _entries.length)) [entries, h, t, d] = [[], 0, 0, false]; | ||
if (!(l = (_entries = entries) == null ? void 0 : _entries.length)) [entries, h, t, d] = [[], 0, 0, false]; | ||
if (!h && !t || h >= l) [h, t, d] = [l, 0, false]; | ||
@@ -26,0 +26,0 @@ return new EntriesMargin(marginCopy(entries, h, t, l), h, t, d); |
{ | ||
"name": "@spare/entries-margin", | ||
"version": "0.11.15", | ||
"version": "0.11.16", | ||
"description": "A debugging tool", | ||
@@ -18,5 +18,5 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@spare/util": "^0.11.15", | ||
"@spare/vector-margin": "^0.11.15", | ||
"@vect/entries-margin": "^0.3.9" | ||
"@spare/util": "^0.11.16", | ||
"@spare/vector-margin": "^0.11.16", | ||
"@vect/entries-margin": "^0.3.10" | ||
}, | ||
@@ -39,3 +39,3 @@ "repository": { | ||
"homepage": "https://github.com/gadge/spare#readme", | ||
"gitHead": "42f18a61ee83db9134c813f3b63f277a3ddd8064" | ||
"gitHead": "082c77a5f72e6e609ae3cda21c111d6604a7e3e5" | ||
} |
7617
Updated@spare/util@^0.11.16
Updated@vect/entries-margin@^0.3.10