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

calvin-svg

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calvin-svg - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

dist/index.module.js

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

import React,{memo,PureComponent,createRef}from"react";import PropTypes from"prop-types";import{arc,curveBasis,curveBasisClosed,curveBasisOpen,curveBundle,curveCardinal,curveCardinalClosed,curveCardinalOpen,curveCatmullRom,curveCatmullRomClosed,curveCatmullRomOpen,curveLinear,curveLinearClosed,curveMonotoneX,curveMonotoneY,curveNatural,curveStep,curveStepAfter,curveStepBefore,area,line,easeBack,easeBackIn,easeBackInOut,easeBackOut,easeBounce,easeBounceIn,easeBounceInOut,easeBounceOut,easeCircle,easeCircleIn,easeCircleInOut,easeCircleOut,easeCubic,easeCubicIn,easeCubicInOut,easeCubicOut,easeExp,easeExpIn,easeExpInOut,easeExpOut,easeLinear,easePolyIn,easePolyInOut,easePolyOut,easeQuad,easeQuadIn,easeQuadInOut,easeQuadOut,easeSin,easeSinIn,easeSinInOut,easeSinOut}from"d3";import hoistNonReactStatics from"hoist-non-react-statics";function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _possibleConstructorReturn(a,b){return b&&("object"==typeof b||"function"==typeof b)?b:_assertThisInitialized(a)}var SVG=function(a){var b=a.children,c=a.height,d=a.width,e=_objectWithoutProperties(a,["children","height","width"]);return React.createElement("svg",_extends({preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 ".concat(d," ").concat(c)},e),b)};SVG.defaultProps={children:void 0,height:0,width:0},SVG.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),height:PropTypes.number,width:PropTypes.number};var Layer=function(a){var b=a.children,c=a.x,d=a.y,e=_objectWithoutProperties(a,["children","x","y"]);return React.createElement("g",_extends({transform:"translate(".concat(c,", ").concat(d,")")},e),b)};Layer.defaultProps={children:void 0,x:0,y:0},Layer.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),x:PropTypes.number,y:PropTypes.number};var Layer$1=memo(Layer),Arc=function(a){var c=Math.min;function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"centroid",value:function(){var a=this.props,b=a.endAngle,d=a.gauge,e=a.height,f=a.startAngle,g=a.width,h=c(e,g/2);return arc().centroid({endAngle:b,innerRadius:h-d,outerRadius:h,startAngle:f})}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.endAngle,f=a.gauge,g=a.height,h=a.radius,i=a.startAngle,j=a.width,k=a.x,l=a.y,m=_objectWithoutProperties(a,["color","endAngle","gauge","height","radius","startAngle","width","x","y"]),n=b.d({endAngle:e,gauge:f,height:g,radius:h,startAngle:i,width:j});return React.createElement(Layer$1,{x:k,y:l},React.createElement("path",_extends({fill:c},m,{d:n,onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}],[{key:"d",value:function(a){var b=Math.PI,d=a.endAngle,e=a.gauge,f=a.height,g=a.radius,h=a.startAngle,i=a.width,j=c(f,i/2),k=arc();return g&&k.cornerRadius(g),k({endAngle:2*(d/360)*b,innerRadius:e?j-e:0,outerRadius:j,startAngle:2*(h/360)*b})}}]),b}(PureComponent);_defineProperty(Arc,"defaultProps",{color:void 0,endAngle:0,gauge:0,height:0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:0,startAngle:0,width:0,x:0,y:0}),_defineProperty(Arc,"propTypes",{color:PropTypes.string,endAngle:PropTypes.number,gauge:PropTypes.number,height:PropTypes.number,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,startAngle:PropTypes.number,width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var Curves={Basis:curveBasis,BasisClosed:curveBasisClosed,BasisOpen:curveBasisOpen,Bundle:curveBundle,Cardinal:curveCardinal,CardinalClosed:curveCardinalClosed,CardinalOpen:curveCardinalOpen,CatmullRom:curveCatmullRom,CatmullRomClosed:curveCatmullRomClosed,CatmullRomOpen:curveCatmullRomOpen,Linear:curveLinear,LinearClosed:curveLinearClosed,MonotoneX:curveMonotoneX,MonotoneY:curveMonotoneY,Natural:curveNatural,Step:curveStep,StepAfter:curveStepAfter,StepBefore:curveStepBefore},Area=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"centroid",value:function(){var a=this.props.points,b=a[0]||[0,0],c=a[a.length-1]||[0,0];return[(b[0]+c[0])/2,(b[1]+c[1])/2]}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.curve,f=a.points,g=a.x,h=a.y,i=_objectWithoutProperties(a,["color","curve","points","x","y"]),j=b.d({curve:e,points:f});return React.createElement(Layer$1,{x:g,y:h},React.createElement("path",_extends({fill:c},i,{d:j,onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}],[{key:"d",value:function(a){var b=a.curve,c=a.points,d=void 0===c?[]:c,e=area();return b&&e.curve(Curves[b]),e(d)}}]),b}(PureComponent);_defineProperty(Area,"defaultProps",{color:"#222222",curve:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},points:[],x:0,y:0}),_defineProperty(Area,"propTypes",{color:PropTypes.string,curve:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,points:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number)),x:PropTypes.number,y:PropTypes.number});var Circle=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.radius,d=a.x,e=a.y,f=_objectWithoutProperties(a,["color","radius","x","y"]);return React.createElement("circle",_extends({cx:d,cy:e,fill:b,r:c},f,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver}))}}]),b}(PureComponent);_defineProperty(Circle,"defaultProps",{onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:1,x:0,y:0}),_defineProperty(Circle,"propTypes",{color:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,x:PropTypes.number,y:PropTypes.number});function withDirection(a){var b=a.displayName||a.name,c=function(b){var c=b.bottom,d=b.left,e=b.right,f=b.top,g=_objectWithoutProperties(b,["bottom","left","right","top"]);return React.createElement(a,_extends({},g,{x1:d?1:0,x2:e?1:0,y1:f?1:0,y2:c?1:0}))};return c.displayName="withDirection(".concat(b,")"),c.defaultProps={bottom:!1,left:!1,right:!1,top:!1},c.propTypes={bottom:PropTypes.bool,left:PropTypes.bool,right:PropTypes.bool,top:PropTypes.bool},hoistNonReactStatics(c,a),c}var Stop=function(a){var b=a.color,c=a.offset,d=a.opacity,e=_objectWithoutProperties(a,["color","offset","opacity"]);return React.createElement("stop",_extends({offset:"".concat(c,"%"),stopColor:b,stopOpacity:d},e))};Stop.propTypes={color:PropTypes.string.isRequired,offset:PropTypes.number.isRequired,opacity:PropTypes.number},Stop.defaultProps={opacity:1};var Gradient=function(a){var b=a.children,c=a.id,d=_objectWithoutProperties(a,["children","id"]);return React.createElement("defs",null,React.createElement("linearGradient",_extends({id:c},d),b))};Gradient.defaultProps={children:void 0},Gradient.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),id:PropTypes.string.isRequired};var Gradient$1=withDirection(Gradient),Line=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"element",createRef()),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"length",value:function(){return this.element.current?this.element.current.getTotalLength():0}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.curve,f=a.points,g=a.width,h=a.x,i=a.y,j=_objectWithoutProperties(a,["color","curve","points","width","x","y"]),k=b.d({curve:e,points:f});return React.createElement(Layer$1,{x:h,y:i},React.createElement("path",_extends({stroke:c,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:g},j,{d:k,fill:"none",onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver,ref:this.element})))}}],[{key:"d",value:function(a){var b=a.curve,c=a.points,d=line();return b&&d.curve(Curves[b]),d(c)}}]),b}(PureComponent);_defineProperty(Line,"defaultProps",{color:"#222222",curve:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},points:[],width:1,x:0,y:0}),_defineProperty(Line,"propTypes",{color:PropTypes.string,curve:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,points:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number)),width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var Rect=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.height,e=b.onClick,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.height,e=b.onFocus,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.height,e=b.onMouseOver,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.radius,d=_objectWithoutProperties(a,["color","radius"]);return React.createElement("rect",_extends({fill:b,rx:c},d,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver}))}}]),b}(PureComponent);_defineProperty(Rect,"defaultProps",{color:"#222222",height:0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:0,width:0,x:0,y:0}),_defineProperty(Rect,"propTypes",{color:PropTypes.string,height:PropTypes.number,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var TEXT={center:"middle",left:"start",right:"end"},VERTICAL={baseline:"baseline",middle:"central",top:"hanging"},Text=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.textAlign,d=a.verticalAlign,e=a.x,f=a.y,g=_objectWithoutProperties(a,["color","textAlign","verticalAlign","x","y"]);return React.createElement(Layer$1,{x:e,y:f},React.createElement("text",_extends({alignmentBaseline:VERTICAL[d],dominantBaseline:VERTICAL[d],fill:b,textAnchor:TEXT[c]},g,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}]),b}(PureComponent);_defineProperty(Text,"defaultProps",{children:void 0,color:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},textAlign:"center",verticalAlign:"center",x:0,y:0}),_defineProperty(Text,"propTypes",{children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),color:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,textAlign:PropTypes.oneOf(["center","left","right"]),verticalAlign:PropTypes.oneOf(["baseline","middle","top"]),x:PropTypes.number,y:PropTypes.number});var Easings={back:easeBack,"back-in":easeBackIn,"back-in-out":easeBackInOut,"back-out":easeBackOut,bounce:easeBounce,"bounce-in":easeBounceIn,"bounce-in-out":easeBounceInOut,"bounce-out":easeBounceOut,circle:easeCircle,"circle-in":easeCircleIn,"circle-in-out":easeCircleInOut,"circle-out":easeCircleOut,cubic:easeCubic,"cubic-in":easeCubicIn,"cubic-in-out":easeCubicInOut,"cubic-out":easeCubicOut,exp:easeExp,"exp-in":easeExpIn,"exp-in-out":easeExpInOut,"exp-out":easeExpOut,linear:easeLinear,"poly-in":easePolyIn,"poly-in-out":easePolyInOut,"poly-out":easePolyOut,quad:easeQuad,"quad-in":easeQuadIn,"quad-in-out":easeQuadInOut,"quad-out":easeQuadOut,sin:easeSin,"sin-in":easeSinIn,"sin-in-out":easeSinInOut,"sin-out":easeSinOut},FPS=16,Animation=function(a){var b=a.attribute,c=a.callback,d=a.delay,e=a.duration,f=a.ease,g=a.from,h=a.to,i=_objectWithoutProperties(a,["attribute","callback","delay","duration","ease","from","to"]),j=c||function(a){return a*(h-g)+g},k=Easings[f]||Easings.linear,l=Math.round(e/FPS),m=Array(l).fill(0).map(function(a,b){return j(k(b/l))}).join(";");return React.createElement("animate",_extends({attributeName:b,begin:"".concat(d,"ms"),dur:"".concat(e,"ms"),from:g,to:h,repeatCount:1,values:"linear"!==f||"d"===b?m:void 0},i))};Animation.defaultProps={delay:0,duration:250,callback:void 0,ease:"linear",from:0,to:0},Animation.propTypes={attribute:PropTypes.string.isRequired,callback:PropTypes.func,delay:PropTypes.number,duration:PropTypes.number,ease:PropTypes.string,from:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),to:PropTypes.oneOfType([PropTypes.number,PropTypes.string])};var Shapes={Arc:Arc,Area:Area,Circle:Circle,Gradient:Gradient$1,Line:Line,Rect:Rect,Stop:Stop,Text:Text};export default SVG;export{Arc,Area,Circle,Gradient$1 as Gradient,Line,Rect,SVG,Stop,Text,Shapes,Animation,Layer$1 as Layer};
import React,{memo,PureComponent,createRef}from"react";import PropTypes from"prop-types";import{arc,curveBasis,curveBasisClosed,curveBasisOpen,curveBundle,curveCardinal,curveCardinalClosed,curveCardinalOpen,curveCatmullRom,curveCatmullRomClosed,curveCatmullRomOpen,curveLinear,curveLinearClosed,curveMonotoneX,curveMonotoneY,curveNatural,curveStep,curveStepAfter,curveStepBefore,area,line,easeBack,easeBackIn,easeBackInOut,easeBackOut,easeBounce,easeBounceIn,easeBounceInOut,easeBounceOut,easeCircle,easeCircleIn,easeCircleInOut,easeCircleOut,easeCubic,easeCubicIn,easeCubicInOut,easeCubicOut,easeExp,easeExpIn,easeExpInOut,easeExpOut,easeLinear,easePolyIn,easePolyInOut,easePolyOut,easeQuad,easeQuadIn,easeQuadInOut,easeQuadOut,easeSin,easeSinIn,easeSinInOut,easeSinOut}from"d3";import hoistNonReactStatics from"hoist-non-react-statics";function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(0<=b.indexOf(c))&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _possibleConstructorReturn(a,b){return b&&("object"==typeof b||"function"==typeof b)?b:_assertThisInitialized(a)}var SVG=function(a){var b=a.children,c=a.height,d=a.width,e=_objectWithoutProperties(a,["children","height","width"]);return React.createElement("svg",_extends({preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 ".concat(d," ").concat(c)},e),b)};SVG.defaultProps={children:void 0,height:0,width:0},SVG.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),height:PropTypes.number,width:PropTypes.number};var Layer=function(a){var b=a.children,c=a.x,d=a.y,e=_objectWithoutProperties(a,["children","x","y"]);return React.createElement("g",_extends({transform:"translate(".concat(c,", ").concat(d,")")},e),b)};Layer.defaultProps={children:void 0,x:0,y:0},Layer.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),x:PropTypes.number,y:PropTypes.number};var Layer$1=memo(Layer),Arc=function(a){var c=Math.min;function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"centroid",value:function(){var a=this.props,b=a.endAngle,d=a.gauge,e=a.height,f=a.startAngle,g=a.width,h=c(e,g/2);return arc().centroid({endAngle:b,innerRadius:h-d,outerRadius:h,startAngle:f})}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.endAngle,f=a.gauge,g=a.height,h=a.radius,i=a.startAngle,j=a.width,k=a.x,l=a.y,m=_objectWithoutProperties(a,["color","endAngle","gauge","height","radius","startAngle","width","x","y"]),n=b.d({endAngle:e,gauge:f,height:g,radius:h,startAngle:i,width:j});return React.createElement(Layer$1,{x:k,y:l},React.createElement("path",_extends({fill:c},m,{d:n,onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}],[{key:"d",value:function(a){var b=Math.PI,d=a.endAngle,e=a.gauge,f=a.height,g=a.radius,h=a.startAngle,i=a.width,j=c(f,i/2),k=arc();return g&&k.cornerRadius(g),k({endAngle:2*(d/360)*b,innerRadius:e?j-e:0,outerRadius:j,startAngle:2*(h/360)*b})}}]),b}(PureComponent);_defineProperty(Arc,"defaultProps",{color:void 0,endAngle:0,gauge:0,height:0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:0,startAngle:0,width:0,x:0,y:0}),_defineProperty(Arc,"propTypes",{color:PropTypes.string,endAngle:PropTypes.number,gauge:PropTypes.number,height:PropTypes.number,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,startAngle:PropTypes.number,width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var Curves={Basis:curveBasis,BasisClosed:curveBasisClosed,BasisOpen:curveBasisOpen,Bundle:curveBundle,Cardinal:curveCardinal,CardinalClosed:curveCardinalClosed,CardinalOpen:curveCardinalOpen,CatmullRom:curveCatmullRom,CatmullRomClosed:curveCatmullRomClosed,CatmullRomOpen:curveCatmullRomOpen,Linear:curveLinear,LinearClosed:curveLinearClosed,MonotoneX:curveMonotoneX,MonotoneY:curveMonotoneY,Natural:curveNatural,Step:curveStep,StepAfter:curveStepAfter,StepBefore:curveStepBefore},Area=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={centroid:c.centroid(),x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"centroid",value:function(){var a=this.props.points,b=a[0]||[0,0],c=a[a.length-1]||[0,0];return[(b[0]+c[0])/2,(b[1]+c[1])/2]}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.curve,f=a.points,g=a.x,h=a.y,i=_objectWithoutProperties(a,["color","curve","points","x","y"]),j=b.d({curve:e,points:f});return React.createElement(Layer$1,{x:g,y:h},React.createElement("path",_extends({fill:c},i,{d:j,onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}],[{key:"d",value:function(a){var b=a.curve,c=a.points,d=void 0===c?[]:c,e=area();return b&&e.curve(Curves[b]),e(d)}}]),b}(PureComponent);_defineProperty(Area,"defaultProps",{color:"#222222",curve:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},points:[],x:0,y:0}),_defineProperty(Area,"propTypes",{color:PropTypes.string,curve:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,points:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number)),x:PropTypes.number,y:PropTypes.number});var Circle=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.radius,f=b.x,g=b.y;a.shape={centroid:[(f+e)/2,(g+e)/2],radius:e,x:f,y:g},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.radius,d=a.x,e=a.y,f=_objectWithoutProperties(a,["color","radius","x","y"]);return React.createElement("circle",_extends({cx:d,cy:e,fill:b,r:c},f,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver}))}}]),b}(PureComponent);_defineProperty(Circle,"defaultProps",{onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:1,x:0,y:0}),_defineProperty(Circle,"propTypes",{color:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,x:PropTypes.number,y:PropTypes.number});function withDirection(a){var b=a.displayName||a.name,c=function(b){var c=b.bottom,d=b.left,e=b.right,f=b.top,g=_objectWithoutProperties(b,["bottom","left","right","top"]);return React.createElement(a,_extends({},g,{x1:d?1:0,x2:e?1:0,y1:f?1:0,y2:c?1:0}))};return c.displayName="withDirection(".concat(b,")"),c.defaultProps={bottom:!1,left:!1,right:!1,top:!1},c.propTypes={bottom:PropTypes.bool,left:PropTypes.bool,right:PropTypes.bool,top:PropTypes.bool},hoistNonReactStatics(c,a),c}var Stop=function(a){var b=a.color,c=a.offset,d=a.opacity,e=_objectWithoutProperties(a,["color","offset","opacity"]);return React.createElement("stop",_extends({offset:"".concat(c,"%"),stopColor:b,stopOpacity:d},e))};Stop.propTypes={color:PropTypes.string.isRequired,offset:PropTypes.number.isRequired,opacity:PropTypes.number},Stop.defaultProps={opacity:1};var Gradient=function(a){var b=a.children,c=a.id,d=_objectWithoutProperties(a,["children","id"]);return React.createElement("defs",null,React.createElement("linearGradient",_extends({id:c},d),b))};Gradient.defaultProps={children:void 0},Gradient.propTypes={children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),id:PropTypes.string.isRequired};var Gradient$1=withDirection(Gradient),Line=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"element",createRef()),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.width,f=b.x,g=b.y;a.shape={length:c.length(),width:e,x:f,y:g},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"length",value:function(){return this.element.current?this.element.current.getTotalLength():0}},{key:"render",value:function(){var a=this.props,c=a.color,e=a.curve,f=a.points,g=a.width,h=a.x,i=a.y,j=_objectWithoutProperties(a,["color","curve","points","width","x","y"]),k=b.d({curve:e,points:f});return React.createElement(Layer$1,{x:h,y:i},React.createElement("path",_extends({stroke:c,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:g},j,{d:k,fill:"none",onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver,ref:this.element})))}}],[{key:"d",value:function(a){var b=a.curve,c=a.points,d=line();return b&&d.curve(Curves[b]),d(c)}}]),b}(PureComponent);_defineProperty(Line,"defaultProps",{color:"#222222",curve:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},points:[],width:1,x:0,y:0}),_defineProperty(Line,"propTypes",{color:PropTypes.string,curve:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,points:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number)),width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var Rect=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.height,e=b.onClick,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.height,e=b.onFocus,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.height,e=b.onMouseOver,f=b.width,g=b.x,h=b.y;a.shape={centroid:[g+f/2,h+d],height:d,width:f,x:g,y:h},e(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.radius,d=_objectWithoutProperties(a,["color","radius"]);return React.createElement("rect",_extends({fill:b,rx:c},d,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver}))}}]),b}(PureComponent);_defineProperty(Rect,"defaultProps",{color:"#222222",height:0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},radius:0,width:0,x:0,y:0}),_defineProperty(Rect,"propTypes",{color:PropTypes.string,height:PropTypes.number,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,radius:PropTypes.number,width:PropTypes.number,x:PropTypes.number,y:PropTypes.number});var TEXT={center:"middle",left:"start",right:"end"},VERTICAL={baseline:"baseline",middle:"central",top:"hanging"},Text=function(a){function b(){var a,c;_classCallCheck(this,b);for(var d=arguments.length,e=Array(d),f=0;f<d;f++)e[f]=arguments[f];return c=_possibleConstructorReturn(this,(a=_getPrototypeOf(b)).call.apply(a,[this].concat(e))),_defineProperty(_assertThisInitialized(c),"handleClick",function(a){var b=c.props,d=b.onClick,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleFocus",function(a){var b=c.props,d=b.onFocus,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),_defineProperty(_assertThisInitialized(c),"handleMouseOver",function(a){var b=c.props,d=b.onMouseOver,e=b.x,f=b.y;a.shape={x:e,y:f},d(a)}),c}return _inherits(b,a),_createClass(b,[{key:"render",value:function(){var a=this.props,b=a.color,c=a.textAlign,d=a.verticalAlign,e=a.x,f=a.y,g=_objectWithoutProperties(a,["color","textAlign","verticalAlign","x","y"]);return React.createElement(Layer$1,{x:e,y:f},React.createElement("text",_extends({alignmentBaseline:VERTICAL[d],dominantBaseline:VERTICAL[d],fill:b,textAnchor:TEXT[c]},g,{onClick:this.handleClick,onFocus:this.handleFocus,onMouseOver:this.handleMouseOver})))}}]),b}(PureComponent);_defineProperty(Text,"defaultProps",{children:void 0,color:void 0,onClick:function(){},onFocus:function(){},onMouseOver:function(){},textAlign:"center",verticalAlign:"center",x:0,y:0}),_defineProperty(Text,"propTypes",{children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),color:PropTypes.string,onClick:PropTypes.func,onFocus:PropTypes.func,onMouseOver:PropTypes.func,textAlign:PropTypes.oneOf(["center","left","right"]),verticalAlign:PropTypes.oneOf(["baseline","middle","top"]),x:PropTypes.number,y:PropTypes.number});var Easings={back:easeBack,"back-in":easeBackIn,"back-in-out":easeBackInOut,"back-out":easeBackOut,bounce:easeBounce,"bounce-in":easeBounceIn,"bounce-in-out":easeBounceInOut,"bounce-out":easeBounceOut,circle:easeCircle,"circle-in":easeCircleIn,"circle-in-out":easeCircleInOut,"circle-out":easeCircleOut,cubic:easeCubic,"cubic-in":easeCubicIn,"cubic-in-out":easeCubicInOut,"cubic-out":easeCubicOut,exp:easeExp,"exp-in":easeExpIn,"exp-in-out":easeExpInOut,"exp-out":easeExpOut,linear:easeLinear,"poly-in":easePolyIn,"poly-in-out":easePolyInOut,"poly-out":easePolyOut,quad:easeQuad,"quad-in":easeQuadIn,"quad-in-out":easeQuadInOut,"quad-out":easeQuadOut,sin:easeSin,"sin-in":easeSinIn,"sin-in-out":easeSinInOut,"sin-out":easeSinOut},FPS=16,Animation=function(a){var b=a.attribute,c=a.callback,d=a.delay,e=a.duration,f=a.ease,g=a.from,h=a.to,i=_objectWithoutProperties(a,["attribute","callback","delay","duration","ease","from","to"]),j=c||function(a){return a*(h-g)+g},k=Easings[f]||Easings.linear,l=Math.round(e/FPS),m=Array(l).fill(0).map(function(a,b){return j(k(b/l))}).join(";");return React.createElement("animate",_extends({attributeName:b,begin:"".concat(d,"ms"),dur:"".concat(e,"ms"),from:g,to:h,repeatCount:1,values:"linear"!==f||"d"===b?m:void 0},i))};Animation.defaultProps={delay:0,duration:250,callback:void 0,ease:"linear",from:0,to:0},Animation.propTypes={attribute:PropTypes.string.isRequired,callback:PropTypes.func,delay:PropTypes.number,duration:PropTypes.number,ease:PropTypes.string,from:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),to:PropTypes.oneOfType([PropTypes.number,PropTypes.string])};var Shapes={Arc:Arc,Area:Area,Circle:Circle,Gradient:Gradient$1,Line:Line,Rect:Rect,Stop:Stop,Text:Text};export default SVG;export{Animation,Arc,Area,Circle,Gradient$1 as Gradient,Layer$1 as Layer,Line,Rect,SVG,Shapes,Stop,Text};
//# sourceMappingURL=index.module.js.map
{
"author": "Adrian de la Rosa <adrian@delarosab.me>",
"dependencies": {
"d3": "^5.9.1",
"d3": "^5.9.2",
"hoist-non-react-statics": "^3.3.0",

@@ -11,15 +11,15 @@ "underscore-es": "^1.9.8",

"devDependencies": {
"@babel/core": ">=7.2.2",
"@babel/plugin-proposal-class-properties": ">=7.2.1",
"@babel/core": "^7.4.0",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-export-namespace-from": ">=7.2.0",
"@babel/plugin-transform-runtime": ">=7.2.0",
"@babel/preset-env": ">=7.2.0",
"@babel/plugin-transform-runtime": "^7.4.0",
"@babel/preset-env": "^7.4.2",
"@babel/preset-react": ">=7.0.0",
"@babel/runtime": ">=7.2.0",
"@babel/runtime": "^7.4.2",
"babel-core": ">=7.0.0-bridge.0",
"babel-eslint": ">=10.0.1",
"babel-jest": ">=23.6.0",
"eslint": ">=5.10.0",
"babel-jest": "^24.5.0",
"eslint": "^5.15.3",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.5.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.14.0",

@@ -30,17 +30,18 @@ "eslint-plugin-jsx-a11y": "^6.1.2",

"husky": ">=1.3.0",
"jest": ">=23.6.0",
"lint-staged": ">=8.1.0",
"jest": "^24.5.0",
"lint-staged": "^8.1.5",
"prettier": ">=1.15.3",
"react": ">=16.7.0",
"regenerator-runtime": ">=0.13.1",
"rollup": ">=0.68.1",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"regenerator-runtime": "^0.13.2",
"rollup": "^1.7.4",
"rollup-plugin-babel": "^4.3.1",
"rollup-plugin-babel-minify": "^7.0.0",
"rollup-plugin-babel-minify": "^8.0.0",
"rollup-plugin-cleaner": ">=0.2.0",
"rollup-plugin-commonjs": ">=9.2.0",
"rollup-plugin-node-resolve": ">=4.0.0",
"rollup-plugin-commonjs": "^9.2.2",
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-peer-deps-external": ">=2.2.0",
"rollup-plugin-replace": ">=2.1.0",
"rollup-plugin-replace": "^2.1.1",
"rollup-plugin-size-snapshot": "^0.8.0",
"rollup-plugin-visualizer": ">=0.9.2"
"rollup-plugin-visualizer": "^1.1.0"
},

@@ -71,3 +72,3 @@ "files": [

"format:ci": "prettier --ignore-path .gitignore -l \"**/*.+(js|json|md|yml)\"",
"lint": "eslint \"**/*.js\" --fix",
"lint": "eslint \"src/**/*.js\" --fix",
"lint:ci": "npm run lint -- --max-warnings 0",

@@ -82,3 +83,3 @@ "postversion": "gitmoji --init",

},
"version": "1.1.0"
"version": "1.2.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