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

glamaholic-to-collections

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glamaholic-to-collections - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

17

lib.js

@@ -12,2 +12,17 @@ import * as fs from "node:fs";

const isValidSlot = (slot) => {
switch (slot) {
case "MainHand":
case "OffHand":
case "Head":
case "Body":
case "Hands":
case "Legs":
case "Feet":
return true;
default:
return false;
}
};
export const convertPlates = (glamaholicConfig) =>

@@ -19,3 +34,3 @@ glamaholicConfig["Plates"].map((plate) => ({

(acc, [slot, item]) => {
if (slot === "$type") return acc;
if (!isValidSlot(slot)) return acc;

@@ -22,0 +37,0 @@ return {

2

package.json
{
"name": "glamaholic-to-collections",
"version": "1.0.2",
"version": "1.0.3",
"description": "Convert Glamaholic data to Collections",

@@ -5,0 +5,0 @@ "main": "index.js",

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