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

@easyv/utils

Package Overview
Dependencies
Maintainers
9
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyv/utils - npm Package Compare versions

Comparing version 0.0.35 to 0.0.38

2

lib/getColor.js

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

result += (opacity == 0 ? color : 'rgba(' + r + ', ' + g + ', ' + b + ', ' + a * opacity + ') ') + offset + (i !== j - 1 ? '%, ' : '%)');
result += (a == 0 ? color : 'rgba(' + r + ', ' + g + ', ' + b + ', ' + a * opacity + ') ') + offset + (i !== j - 1 ? '%, ' : '%)');
}

@@ -68,0 +68,0 @@

@@ -13,9 +13,14 @@ "use strict";

var getFontStyle = function getFontStyle(_ref, type) {
var _ref2;
var color = _ref.color,
bold = _ref.bold,
italic = _ref.italic,
fontSize = _ref.fontSize,
_ref$fontSize = _ref.fontSize,
fontSize = _ref$fontSize === void 0 ? 12 : _ref$fontSize,
fontFamily = _ref.fontFamily,
letterSpacing = _ref.letterSpacing;
return (0, _defineProperty2["default"])({
letterSpacing = _ref.letterSpacing,
_ref$lineHeight = _ref.lineHeight,
lineHeight = _ref$lineHeight === void 0 ? fontSize : _ref$lineHeight;
return _ref2 = {
fontSize: fontSize,

@@ -26,5 +31,5 @@ fontFamily: fontFamily,

fontStyle: italic ? 'italic' : 'normal'
}, type == 'svg' ? 'fill' : 'color', color);
}, (0, _defineProperty2["default"])(_ref2, type == 'svg' ? 'fill' : 'color', color), (0, _defineProperty2["default"])(_ref2, "lineHeight", lineHeight + 'px'), _ref2;
};
exports.getFontStyle = getFontStyle;
{
"name": "@easyv/utils",
"version": "0.0.35",
"version": "0.0.38",
"description": "",

@@ -10,3 +10,6 @@ "main": "index.js",

"scripts": {
"make": "babel src -d lib"
"make": "babel src -d lib",
"release": "standard-version",
"publish": "npm run make && npm run release && npm publish --access public",
"prepare": "husky install"
},

@@ -27,6 +30,16 @@ "keywords": [],

"@babel/preset-react": "^7.10.4",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"babel-cli": "^6.26.0",
"babel-plugin-transform-import-styles": "0.0.11",
"babel-preset-env": "^1.7.0"
"babel-preset-env": "^1.7.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.4",
"standard-version": "^9.3.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
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