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

react-svg-icon

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-icon - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

8

build/lib/components/Icon.js

@@ -23,4 +23,2 @@ 'use strict';

render: function render() {
var useTag = '<use xlink:href="#i-' + this.props.name + '" />';
var className = ['i'];

@@ -31,3 +29,7 @@ if (this.props.className) {

return _react2['default'].createElement('svg', { className: className.join(' '), dangerouslySetInnerHTML: { __html: useTag } });
return _react2['default'].createElement(
'svg',
{ className: className.join(' ') },
_react2['default'].createElement('use', { xlinkHref: '#i-' + this.props.name })
);
}

@@ -34,0 +36,0 @@

{
"name": "react-svg-icon",
"version": "0.0.5",
"version": "0.1.1",
"description": "React SVG icon component",
"main": "./lib/index",
"main": "lib/index.js",
"repository": {

@@ -16,7 +16,9 @@ "type": "git",

"authors": [
"Thomas Winter"
"Thomas Winter",
"Vincent Audebert",
"Thibaud Colas"
],
"license": "MIT",
"peerDependencies": {
"react": "^0.13.3"
"react": "^0.14.3"
},

@@ -30,2 +32,3 @@ "tags": [

"react",
"react-component",
"svg",

@@ -32,0 +35,0 @@ "icon"

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

# React SVG Icon [![npm](https://img.shields.io/npm/v/react-svg-icon.svg?style=flat-square)](https://www.npmjs.com/package/react-svg-icon)
# React SVG Icon [![npm](https://img.shields.io/npm/v/react-svg-icon.svg?style=flat-square)](https://www.npmjs.com/package/react-svg-icon) [![Build Status](https://travis-ci.org/springload/react-svg-icon.svg?branch=master)](https://travis-ci.org/springload/react-svg-icon) [![devDependency Status](https://david-dm.org/springload/react-svg-icon/dev-status.svg)](https://david-dm.org/springload/react-svg-icon#info=devDependencies)

@@ -9,2 +9,14 @@ React SVG icon component

## Commands
You need `rackt-cli v0.5.3` to execute some of these commands.
- `npm install` install node dependencies
- `npm start` run server
- `npm test` run tests
- `npm build` build component
- `npm publish` publish component to npm (verify versions in package.json and bower.json)
- `rackt pages` rebuild gh-pages branch
## Include your icon component

@@ -20,1 +32,5 @@

```
## Example
You can find an example here: https://springload.github.io/react-svg-icon/
{
"name": "react-svg-icon",
"version": "0.1.1",
"version": "0.2.0",
"description": "React SVG icon component",
"main": "./dist/react-svg-icon",
"main": "./build/lib/index.js",
"repository": {

@@ -17,3 +17,4 @@ "type": "git",

"test": "rackt test --single-run --browsers Firefox",
"start": "rackt server"
"start": "rackt server",
"build": "rackt build"
},

@@ -20,0 +21,0 @@ "authors": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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