@freesewing/utils
Advanced tools
+1
-1
| { | ||
| "id": "utils", | ||
| "description": "A number of utilities, typically used by FreeSewing frontend code", | ||
| "version": "4.4.3" | ||
| "version": "4.5.0" | ||
| } |
+1
-1
| { | ||
| "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)", |
+1
-1
@@ -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 |
+5
-4
@@ -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 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
32456
0.35%735
0.14%