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

@freesewing/utils

Package Overview
Dependencies
Maintainers
2
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freesewing/utils - npm Package Compare versions

Comparing version
4.4.3
to
4.5.0
+1
-1
about.json
{
"id": "utils",
"description": "A number of utilities, typically used by FreeSewing frontend code",
"version": "4.4.3"
"version": "4.5.0"
}
{
"name": "@freesewing/utils",
"version": "4.4.3",
"version": "4.5.0",
"description": "A number of utilities, typically used by FreeSewing frontend code",

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

@@ -14,3 +14,3 @@ <p align='center'><a

title="All Contributors"
><img src="https://img.shields.io/badge/all_contributors-132-pink.svg"
><img src="https://img.shields.io/badge/all_contributors-131-pink.svg"
alt="All Contributors"/>

@@ -17,0 +17,0 @@ </a></p><p align='center'><a

@@ -647,7 +647,7 @@ import tlds from 'tlds/index.json' with { type: 'json' }

*
* @param {object} measurements - The POJO of measurments
* @param {object} measurements - The POJO of measurements
* @return {object} design - The measurements structured as a design object
*/
export function structureMeasurementsAsDesign(measurements) {
return measurements.patternConfig ? measurements : { patternConfig: { measurements } }
return measurements?.patternConfig ? measurements : { patternConfig: { measurements } }
}

@@ -761,5 +761,6 @@ /*

* @param {string} timestamp - An optional timestamp to use
* @param {string} spacer - An optional spacer to use between yyyy, mm, and dd
* @return {string} yyyymmdd - The time in yyyymmdd format
*/
export const yyyymmdd = (timestamp = false) => {
export const yyyymmdd = (timestamp = false, spacer = '') => {
const ts = timestamp ? new Date(timestamp) : new Date()

@@ -772,3 +773,3 @@

return `${ts.getFullYear()}${m}${d}`
return `${ts.getFullYear()}${spacer}${m}${spacer}${d}`
}

@@ -775,0 +776,0 @@