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

@badcss/core

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@badcss/core - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

15

lib/index.js

@@ -33,8 +33,17 @@ import { ButtonComponent } from "./components/Button.js";

const config = body.getAttribute("themostbad");
// Check if the config is valid
if (!config) {
console.warn("No config found");
}
const configObj = eval("(" + config + ")");
// Check if the config is valid
if (!configObj) {
console.warn("No config found JSON");
}
// Allowed plugins
const dataPlugins = {
fontawesome: `<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/${
configObj.plugins.fontawesome.version || "6.4.0"
configObj?.plugins?.fontawesome?.version || "6.4.0"
}/css/all.min.css" />`,

@@ -45,5 +54,5 @@ };

// Load the plugins
if (configObj.plugins.fontawesome) {
if (configObj?.plugins?.fontawesome) {
document.head.innerHTML += configObj.plugins.fontawesome.kitId
? `<script src="https://kit.fontawesome.com/${configObj.plugins.fontawesome.kitId}.js" crossorigin="anonymous"></script>`
? `<script src="https://kit.fontawesome.com/${configObj?.plugins?.fontawesome?.kitId}.js" crossorigin="anonymous"></script>`
: dataPlugins.fontawesome;

@@ -50,0 +59,0 @@ }

2

package.json
{
"name": "@badcss/core",
"version": "0.1.3",
"version": "0.1.4",
"description": "A lightweight and customizable framework designed to simplify web development and enhance the styling capabilities of your projects.",

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

Sorry, the diff of this file is not supported yet

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