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

@easyv/config

Package Overview
Dependencies
Maintainers
11
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyv/config - npm Package Compare versions

Comparing version 1.1.35 to 1.1.36

46

lib/control.js

@@ -7,3 +7,32 @@ "use strict";

exports.control = void 0;
var defaultControl = {
height: 20,
color: "rgba(20, 95, 255, 0.1)",
margin: {
left: 40,
right: 40
},
drag: {
width: 30,
color: "RGBA(255, 255, 255, .3)"
}
};
var control = function control() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultControl,
_ref$height = _ref.height,
height = _ref$height === void 0 ? defaultControl.height : _ref$height,
_ref$color = _ref.color,
color = _ref$color === void 0 ? defaultControl.color : _ref$color,
_ref$margin = _ref.margin;
_ref$margin = _ref$margin === void 0 ? defaultControl.margin : _ref$margin;
var _ref$margin$left = _ref$margin.left,
left = _ref$margin$left === void 0 ? defaultControl.margin.left : _ref$margin$left,
_ref$margin$right = _ref$margin.right,
right = _ref$margin$right === void 0 ? defaultControl.margin.right : _ref$margin$right,
_ref$drag = _ref.drag;
_ref$drag = _ref$drag === void 0 ? defaultControl.drag : _ref$drag;
var _ref$drag$width = _ref$drag.width,
width = _ref$drag$width === void 0 ? defaultControl.drag.width : _ref$drag$width,
_ref$drag$color = _ref$drag.color,
dragColor = _ref$drag$color === void 0 ? defaultControl.drag.color : _ref$drag$color;
return {

@@ -15,3 +44,3 @@ name: "control",

displayName: "高度",
value: 20,
value: height,
type: "number"

@@ -21,3 +50,3 @@ }, {

displayName: "背景颜色",
value: "rgba(20, 95, 255, 0.1)",
value: color,
type: "color"

@@ -31,3 +60,3 @@ }, {

displayName: "左边距",
value: 40,
value: left,
type: "number",

@@ -40,3 +69,3 @@ config: {

displayName: "右边距",
value: 40,
value: right,
type: "number",

@@ -53,7 +82,8 @@ config: {

displayName: "宽度",
value: 30,
type: "number",
value: width,
type: "range",
config: {
suffix: "%",
min: 1
min: 1,
max: 100
}

@@ -63,3 +93,3 @@ }, {

displayName: "颜色",
value: "RGBA(255, 255, 255, .3)",
value: dragColor,
type: "color"

@@ -66,0 +96,0 @@ }]

2

package.json
{
"name": "@easyv/config",
"version": "1.1.35",
"version": "1.1.36",
"description": "",

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

@@ -1,2 +0,26 @@

export const control = () => {
const defaultControl={
height:20,
color:"rgba(20, 95, 255, 0.1)",
margin:{
left:40,
right:40
},
drag:{
width:30,
color:"RGBA(255, 255, 255, .3)"
}
}
export const control = ({
height = defaultControl.height,
color = defaultControl.color,
margin:{
left = defaultControl.margin.left,
right = defaultControl.margin.right
} = defaultControl.margin,
drag:{
width = defaultControl.drag.width,
color:dragColor = defaultControl.drag.color
} = defaultControl.drag
} = defaultControl) => {
return {

@@ -9,3 +33,3 @@ name: "control",

displayName: "高度",
value: 20,
value: height,
type: "number",

@@ -16,3 +40,3 @@ },

displayName: "背景颜色",
value: "rgba(20, 95, 255, 0.1)",
value: color,
type: "color",

@@ -28,3 +52,3 @@ },

displayName: "左边距",
value: 40,
value: left,
type: "number",

@@ -38,3 +62,3 @@ config: {

displayName: "右边距",
value: 40,
value: right,
type: "number",

@@ -54,7 +78,8 @@ config: {

displayName: "宽度",
value: 30,
type: "number",
value: width,
type: "range",
config: {
suffix: "%",
min: 1,
max:100
},

@@ -65,3 +90,3 @@ },

displayName: "颜色",
value: "RGBA(255, 255, 255, .3)",
value: dragColor,
type: "color",

@@ -68,0 +93,0 @@ },

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