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

need-css

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

need-css - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

9

build/cjs/src/index.js

@@ -67,3 +67,2 @@ "use strict";

mods.forEach(function (mod) {
var id = "react-css-".concat(mod, "-").concat(groupKey);
var url = (0, _getObjectValue["default"])(map, [mod]);

@@ -79,10 +78,8 @@ url = url ? cdn + url : mod;

if ((0, _winDoc.win)().__null) {
console.log("<link id=\"".concat(id, "\" rel=\"stylesheet\" type=\"text/css\" href=\"").concat(url, "\">"));
console.log("<link rel=\"stylesheet\" type=\"text/css\" href=\"".concat(url, "\">"));
} else {
var cssDom = _cssQuerySelector["default"].one("#" + id);
var cssDom = _cssQuerySelector["default"].one("[href=\"".concat(url, "\"]"));
if (!cssDom) {
(0, _createEl.css)()()(url, {
id: id
});
(0, _createEl.css)()()(url);
}

@@ -89,0 +86,0 @@ }

@@ -54,3 +54,2 @@ import { css } from "create-el";

mods.forEach(function (mod) {
var id = "react-css-".concat(mod, "-").concat(groupKey);
var url = get(map, [mod]);

@@ -66,10 +65,8 @@ url = url ? cdn + url : mod;

if (win().__null) {
console.log("<link id=\"".concat(id, "\" rel=\"stylesheet\" type=\"text/css\" href=\"").concat(url, "\">"));
console.log("<link rel=\"stylesheet\" type=\"text/css\" href=\"".concat(url, "\">"));
} else {
var cssDom = query.one("#" + id);
var cssDom = query.one("[href=\"".concat(url, "\"]"));
if (!cssDom) {
css()()(url, {
id: id
});
css()()(url);
}

@@ -76,0 +73,0 @@ }

{
"version": "0.0.7",
"version": "0.0.8",
"name": "need-css",

@@ -4,0 +4,0 @@ "repository": {

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