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

@spare/vector-margin

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spare/vector-margin - npm Package Compare versions

Comparing version 0.10.9 to 0.10.12

18

dist/index.cjs.js

@@ -9,3 +9,3 @@ 'use strict';

const marginSizing = (ar, head, tail) => {
const sizing = (ar, head, tail) => {
let l,

@@ -51,5 +51,5 @@ dash = true;

dash
} = marginSizing(ar, h, t);
const cutVec = vectorMargin$1.marginCopy(ar, head, tail);
return new VectorMargin(cutVec, head, tail, dash);
} = sizing(ar, h, t);
const margined = vectorMargin$1.marginCopy(ar, head, tail);
return new VectorMargin(margined, head, tail, dash);
}

@@ -100,6 +100,4 @@

* @param {*|number} [tail]
* @param {*|boolean} [dash]
* @param {*|function(*):string} [read]
* @param {*|string} [rule='..']
* @param {*|boolean} [validate=true]
* @return {{raw:*[],alt:*[]}}

@@ -111,8 +109,6 @@ */

tail,
dash,
read,
rule = '...',
validate = true
rule = '...'
} = {}) => {
const vn = validate ? VectorMargin.build(arr, head, tail) : new VectorMargin(arr, head, tail, dash);
const vn = VectorMargin.build(arr, head, tail);
return {

@@ -125,4 +121,4 @@ raw: vn.map(oneself.oneself).toVector(rule),

exports.VectorMargin = VectorMargin;
exports.marginSizing = marginSizing;
exports.sizing = sizing;
exports.vectorMargin = vectorMargin;
exports.vettro = vettro;

@@ -5,3 +5,3 @@ import { totx } from '@spare/util';

const marginSizing = (ar, head, tail) => {
const sizing = (ar, head, tail) => {
let l,

@@ -47,5 +47,5 @@ dash = true;

dash
} = marginSizing(ar, h, t);
const cutVec = marginCopy(ar, head, tail);
return new VectorMargin(cutVec, head, tail, dash);
} = sizing(ar, h, t);
const margined = marginCopy(ar, head, tail);
return new VectorMargin(margined, head, tail, dash);
}

@@ -96,6 +96,4 @@

* @param {*|number} [tail]
* @param {*|boolean} [dash]
* @param {*|function(*):string} [read]
* @param {*|string} [rule='..']
* @param {*|boolean} [validate=true]
* @return {{raw:*[],alt:*[]}}

@@ -107,8 +105,6 @@ */

tail,
dash,
read,
rule = '...',
validate = true
rule = '...'
} = {}) => {
const vn = validate ? VectorMargin.build(arr, head, tail) : new VectorMargin(arr, head, tail, dash);
const vn = VectorMargin.build(arr, head, tail);
return {

@@ -120,2 +116,2 @@ raw: vn.map(oneself).toVector(rule),

export { VectorMargin, marginSizing, vectorMargin, vettro };
export { VectorMargin, sizing, vectorMargin, vettro };
{
"name": "@spare/vector-margin",
"version": "0.10.9",
"version": "0.10.12",
"description": "A debugging tool",

@@ -19,3 +19,3 @@ "main": "dist/index.cjs.js",

"@ject/oneself": "^0.0.6",
"@spare/util": "^0.10.9",
"@spare/util": "^0.10.12",
"@vect/vector-margin": "^0.3.6"

@@ -39,3 +39,3 @@ },

"homepage": "https://github.com/gadge/spare#readme",
"gitHead": "1e539edef7fa9a05bd9fec7456892bbb36296c41"
"gitHead": "88fef8b9c5c5ffd0c9268d351649c5f6fc97a003"
}
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