@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
207 lines (206 loc) • 4.69 kB
JavaScript
"use strict";
/* Socket Lib - Built with esbuild */
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var themes_exports = {};
__export(themes_exports, {
LUSH_THEME: () => LUSH_THEME,
SOCKET_THEME: () => SOCKET_THEME,
SUNSET_THEME: () => SUNSET_THEME,
TERRACOTTA_THEME: () => TERRACOTTA_THEME,
THEMES: () => THEMES,
ULTRA_THEME: () => ULTRA_THEME
});
module.exports = __toCommonJS(themes_exports);
const SOCKET_THEME = {
name: "socket",
displayName: "Socket Security",
colors: {
primary: [140, 82, 255],
success: "greenBright",
error: "redBright",
warning: "yellowBright",
info: "blueBright",
step: "cyanBright",
text: "white",
textDim: "gray",
link: "cyanBright",
prompt: "primary"
},
effects: {
spinner: {
color: "primary",
style: "socket"
},
shimmer: {
enabled: true,
color: "inherit",
direction: "ltr",
speed: 0.33
}
},
meta: {
description: "Signature theme with refined violet and subtle shimmer",
version: "1.0.0"
}
};
const SUNSET_THEME = {
name: "sunset",
displayName: "Sunset",
colors: {
primary: [255, 140, 100],
secondary: [200, 100, 180],
success: "greenBright",
error: "redBright",
warning: "yellowBright",
info: "magentaBright",
step: "magentaBright",
text: "white",
textDim: "gray",
link: "primary",
prompt: "primary"
},
effects: {
spinner: {
color: "primary",
style: "dots"
},
shimmer: {
enabled: true,
color: [
[200, 100, 180],
[255, 140, 100]
],
direction: "ltr",
speed: 0.4
}
},
meta: {
description: "Warm sunset theme with purple-to-orange gradient",
version: "2.0.0"
}
};
const TERRACOTTA_THEME = {
name: "terracotta",
displayName: "Terracotta",
colors: {
primary: [255, 100, 50],
secondary: [255, 150, 100],
success: "greenBright",
error: "redBright",
warning: "yellowBright",
info: "blueBright",
step: "cyanBright",
text: "white",
textDim: "gray",
link: "secondary",
prompt: "primary"
},
effects: {
spinner: {
color: "primary",
style: "socket"
},
shimmer: {
enabled: true,
color: "inherit",
direction: "ltr",
speed: 0.5
}
},
meta: {
description: "Solid theme with rich terracotta and ember warmth",
version: "1.0.0"
}
};
const LUSH_THEME = {
name: "lush",
displayName: "Lush",
colors: {
primary: [70, 130, 180],
secondary: [255, 215, 0],
success: "greenBright",
error: "redBright",
warning: "yellowBright",
info: "blueBright",
step: "cyanBright",
text: "white",
textDim: "gray",
link: "cyanBright",
prompt: "primary"
},
effects: {
spinner: {
color: "primary",
style: "dots"
}
},
meta: {
description: "Elegant theme with steel blue and golden harmony",
version: "1.0.0"
}
};
const ULTRA_THEME = {
name: "ultra",
displayName: "Ultra",
colors: {
primary: [140, 82, 255],
success: "greenBright",
error: "redBright",
warning: "yellowBright",
info: "cyanBright",
step: "magentaBright",
text: "whiteBright",
textDim: "gray",
link: "cyanBright",
prompt: "primary"
},
effects: {
spinner: {
color: "inherit",
style: "socket"
},
shimmer: {
enabled: true,
color: "rainbow",
direction: "bi",
speed: 0.5
}
},
meta: {
description: "Premium theme with prismatic shimmer for deep analysis",
version: "1.0.0"
}
};
const THEMES = {
__proto__: null,
socket: SOCKET_THEME,
sunset: SUNSET_THEME,
terracotta: TERRACOTTA_THEME,
lush: LUSH_THEME,
ultra: ULTRA_THEME
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
LUSH_THEME,
SOCKET_THEME,
SUNSET_THEME,
TERRACOTTA_THEME,
THEMES,
ULTRA_THEME
});