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

test-icon

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-icon - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

package.json
{
"name": "test-icon",
"version": "1.0.0",
"version": "1.0.1",
"peerDependencies": {
"react": ">=16.2.0",
"react-native-web": ">=0.3.4"
"react": ">=16.2.0"
}
}

2

utils/createIconComponent.js

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

Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createElement=require('react-native-web/dist/exports/createElement');var _createElement2=_interopRequireDefault(_createElement);var _StyleSheet=require('react-native-web/dist/exports/StyleSheet');var _StyleSheet2=_interopRequireDefault(_StyleSheet);var _react=require('react');var _react2=_interopRequireDefault(_react);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var createIconComponent=function createIconComponent(_ref){var content=_ref.content,height=_ref.height,width=_ref.width;return function(props){return(0,_createElement2.default)('svg',_extends({},props,{style:_StyleSheet2.default.compose(styles.root,props.style),viewBox:'0 0 '+width+' '+height}),content);};};var styles=_StyleSheet2.default.create({root:{display:'inline-block',fill:'currentcolor',height:'1.25em',maxWidth:'100%',position:'relative',userSelect:'none',textAlignVertical:'text-bottom'}});exports.default=createIconComponent;
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var createIconComponent=function createIconComponent(_ref){var content=_ref.content,height=_ref.height,width=_ref.width;return function(props){return _react2.default.createElement('svg',_extends({},props,{style:_extends({display:'inline-block',fill:'currentcolor',height:'1.25em',maxWidth:'100%',position:'relative',userSelect:'none',textAlignVertical:'text-bottom'},props.style),viewBox:'0 0 '+width+' '+height}),content);};};exports.default=createIconComponent;
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