New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@freesewing/core

Package Overview
Dependencies
Maintainers
2
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freesewing/core - npm Package Compare versions

Comparing version
4.5.0
to
4.6.0
+1
-1
about.json
{
"id": "core",
"description": "A library for creating made-to-measure sewing patterns",
"version": "4.5.0"
"version": "4.6.0"
}
{
"name": "@freesewing/core",
"version": "4.5.0",
"version": "4.6.0",
"description": "A library for creating made-to-measure sewing patterns",

@@ -45,3 +45,3 @@ "author": "Joost De Cock <joost@joost.at> (https://codeberg.org/joostdecock)",

"dependencies": {
"@freesewing/core-plugins": "4.5.0",
"@freesewing/core-plugins": "4.6.0",
"bezier-js": "6.1.4",

@@ -48,0 +48,0 @@ "hooks": "0.3.2",

@@ -33,2 +33,3 @@ import { Bezier } from './bezier.mjs'

pctBasedOn,
pctBasedOnSa,
pointOnBeam,

@@ -88,2 +89,3 @@ pointOnCurve,

pctBasedOn,
pctBasedOnSa,
pointOnBeam,

@@ -90,0 +92,0 @@ pointOnCurve,

@@ -136,3 +136,3 @@ import set from 'lodash.set'

} else {
this.log.info(`Extending store with \`${path}\``)
this.log.debug(`Extending store with \`${path}\``)
set(this, path, (...args) => method(this, ...args))

@@ -139,0 +139,0 @@ }

@@ -607,3 +607,3 @@ import { Bezier } from './bezier.mjs'

/**
* Helper method to calculate abolute option value based on a measurement
* Helper method to calculate absolute option value based on a measurement
*

@@ -621,2 +621,14 @@ * @param {string} measurement - The measurement to base the calculation on

/**
* Helper method to calculate absolute option value based on the seam allowance
*
* @return {object} result - An object with the toAbs() and fromAbs() methods
*/
export function pctBasedOnSa() {
return {
toAbs: (val, { sa }) => (sa || 10) * val,
fromAbs: (val, { sa }) => Math.round((10000 * val) / (sa || 10)) / 10000,
}
}
export function snappedPctOption(measurement, config) {

@@ -623,0 +635,0 @@ return {