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

react-inlinesvg

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-inlinesvg - npm Package Compare versions

Comparing version 0.5.5 to 0.6.0

.idea/php.xml

40

lib/index.js

@@ -9,2 +9,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require('react');

@@ -51,9 +55,7 @@

if (loadedIcons[url]) {
(function () {
var params = loadedIcons[url];
var params = loadedIcons[url];
setTimeout(function () {
return callback(params[0], params[1]);
}, 0);
})();
setTimeout(function () {
return callback(params[0], params[1]);
}, 0);
}

@@ -138,3 +140,3 @@

function InlineSVGError(message) {
var _ret2;
var _ret;

@@ -151,3 +153,3 @@ _classCallCheck(this, InlineSVGError);

return _ret2 = _this, _possibleConstructorReturn(_this, _ret2);
return _ret = _this, _possibleConstructorReturn(_this, _ret);
}

@@ -325,2 +327,3 @@

return this.props.wrapper({
style: this.props.style,
className: this.getClassName(),

@@ -338,12 +341,13 @@ dangerouslySetInnerHTML: this.state.loadedText ? {

InlineSVG.propTypes = {
cacheGetRequests: _react2.default.PropTypes.bool,
children: _react2.default.PropTypes.node,
className: _react2.default.PropTypes.string,
onError: _react2.default.PropTypes.func,
onLoad: _react2.default.PropTypes.func,
preloader: _react2.default.PropTypes.func,
src: _react2.default.PropTypes.string.isRequired,
supportTest: _react2.default.PropTypes.func,
uniquifyIDs: _react2.default.PropTypes.bool,
wrapper: _react2.default.PropTypes.func
cacheGetRequests: _propTypes2.default.bool,
children: _propTypes2.default.node,
className: _propTypes2.default.string,
onError: _propTypes2.default.func,
onLoad: _propTypes2.default.func,
preloader: _propTypes2.default.func,
src: _propTypes2.default.string.isRequired,
style: _propTypes2.default.object,
supportTest: _propTypes2.default.func,
uniquifyIDs: _propTypes2.default.bool,
wrapper: _propTypes2.default.func
};

@@ -350,0 +354,0 @@ InlineSVG.defaultProps = {

{
"name": "react-inlinesvg",
"version": "0.5.5",
"version": "0.6.0",
"description": "An SVG loader for React",

@@ -27,37 +27,39 @@ "repository": {

"devDependencies": {
"babel-core": "^6.17",
"babel-eslint": "^7.0",
"babel-core": "^6.24",
"babel-eslint": "^7.2",
"babel-plugin-add-module-exports": "^0.2",
"babel-plugin-rewire": "1.0.0",
"babel-preset-es2015": "^6.16",
"babel-preset-react": "^6.16",
"babel-preset-stage-1": "^6.16",
"babel-register": "^6.16",
"babel-plugin-rewire": "1.1.0",
"babel-preset-es2015": "^6.24",
"babel-preset-react": "^6.24",
"babel-preset-stage-1": "^6.24",
"babel-register": "^6.24",
"babelify": "^7.3",
"browserify": "^13.1",
"browserify": "^14.3",
"browserify-shim": "^3.8",
"cors": "^2.8",
"enzyme": "^2.4",
"eslint": "^3.7",
"eslint-config-airbnb": "^12.0",
"eslint-plugin-import": "^2.0",
"eslint-plugin-jsx-a11y": "^2.2",
"eslint-plugin-react": "^6.3",
"enzyme": "^2.8",
"eslint": "^3.19",
"eslint-config-airbnb": "^14.1",
"eslint-plugin-import": "^2.2",
"eslint-plugin-jsx-a11y": "^4.0",
"eslint-plugin-react": "^6.10",
"expect": "^1.20",
"gulp": "^3.9",
"gulp-babel": "^6.1",
"gulp-bump": "^2.4",
"gulp-bump": "^2.7",
"gulp-connect": "^5.0",
"gulp-load-plugins": "^1.3",
"gulp-load-plugins": "^1.5",
"gulp-rename": "^1.2",
"gulp-util": "^3.0",
"jsdom": "^9.6",
"mocha": "^3.1",
"react": "^15.3",
"react-addons-test-utils": "^15.3",
"react-dom": "^15.3",
"jsdom": "^10.1",
"mocha": "^3.3",
"prop-types": "^15.5",
"react": "^15.5",
"react-addons-test-utils": "^15.5",
"react-dom": "^15.5",
"vinyl-source-stream": "^1.1"
},
"peerDependencies": {
"react": "^0.14 || ^15.0"
"react": "^0.14 || ^15.0",
"prop-types": "^15.5"
},

@@ -64,0 +66,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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