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

@assemble-inc/core

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assemble-inc/core - npm Package Compare versions

Comparing version

to
0.2.1

2

dist/cjs/StarRating/index.js

@@ -30,3 +30,3 @@ "use strict";

var isPartialStar = !Number.isInteger(filledStarCount) && i + 1 === Math.ceil(filledStarCount);
var isFilledStar = i + 1 < filledStarCount;
var isFilledStar = i + 1 <= filledStarCount;
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { flex: "0 0 ".concat(starSize, "px") } }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 51 48" }, { children: [(0, jsx_runtime_1.jsxs)("linearGradient", __assign({ id: "gradient-".concat(i), x1: "0%", y1: "0%", x2: "100%", y2: "0%" }, { children: [(0, jsx_runtime_1.jsx)("stop", { offset: "0%", style: { stopColor: fillColor, stopOpacity: isPartialStar || isFilledStar ? 1 : 0 } }, void 0), isPartialStar &&

@@ -33,0 +33,0 @@ (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("stop", { offset: "".concat((filledStarCount % 1) * 100, "%"), style: { stopColor: fillColor, stopOpacity: 1 } }, void 0), (0, jsx_runtime_1.jsx)("stop", { offset: "".concat(((filledStarCount + .01) % 1) * 100, "%"), style: { stopColor: fillColor, stopOpacity: 0 } }, void 0)] }, void 0), (0, jsx_runtime_1.jsx)("stop", { offset: "100%", style: { stopColor: fillColor, stopOpacity: isFilledStar && !isPartialStar ? 1 : 0 } }, void 0)] }), void 0), (0, jsx_runtime_1.jsx)("path", { stroke: strokeColor, strokeWidth: strokeWidth, fill: "url(#gradient-".concat(i, ")"), d: "m25 1 6 17h18L35 29l5 17-15-10-15 10 5-17L1 18h18z" }, void 0)] }), void 0) }), i));

{
"name": "@assemble-inc/core",
"version": "0.2.0",
"version": "0.2.1",
"description": "Assemble Component Library",

@@ -5,0 +5,0 @@ "author": "Assemble Frontend Team",