New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apparel-sorter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apparel-sorter - npm Package Compare versions

Comparing version

to
0.2.1

3

lib/ApparelSorter.js

@@ -126,2 +126,5 @@ /*

exports.sortSizes = function(sizes) {
if (!sizes) {
return [];
}
return sizes

@@ -128,0 +131,0 @@ .map(matchSizesWithRegexes)

2

package.json
{
"name": "apparel-sorter",
"version": "0.2.0",
"version": "0.2.1",
"description": "ApparelSorter.js is a set of functions written in JavaScript that provide sorting for apparel sizes such as XS, S, M, L. It can also sort numeric sizes such as 12, 14, 16W, 18W, etc.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -6,2 +6,6 @@ var apparelSorter = require('../lib/ApparelSorter.js');

it("should return empty array if not passed any sizes", function() {
assert.deepEqual([], apparelSorter.sort());
});
it("should sort standard abbreviated sizes", function() {

@@ -8,0 +12,0 @@ var sizes = ["XL", "L", "S", "M", "XS","3XL","1XL","2XL"];