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

react-inlinesvg

Package Overview
Dependencies
Maintainers
1
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 1.1.6 to 1.1.7

src/helpers.ts

7

lib/index.js

@@ -283,3 +283,2 @@ "use strict";

InlineSVG.prototype.getElement = function () {
var _a = this.props, baseURL = _a.baseURL, cacheRequests = _a.cacheRequests, children = _a.children, description = _a.description, innerRef = _a.innerRef, onError = _a.onError, onLoad = _a.onLoad, loader = _a.loader, preProcessor = _a.preProcessor, src = _a.src, title = _a.title, uniqueHash = _a.uniqueHash, uniquifyIDs = _a.uniquifyIDs, rest = __rest(_a, ["baseURL", "cacheRequests", "children", "description", "innerRef", "onError", "onLoad", "loader", "preProcessor", "src", "title", "uniqueHash", "uniquifyIDs"]);
try {

@@ -292,3 +291,3 @@ var node = this.getNode();

this.setState({
element: React.cloneElement(element, __assign({ ref: innerRef }, rest)),
element: element,
status: exports.STATUS.READY,

@@ -343,5 +342,5 @@ });

var _a = this.state, element = _a.element, status = _a.status;
var _b = this.props, _c = _b.children, children = _c === void 0 ? null : _c, _d = _b.loader, loader = _d === void 0 ? null : _d;
var _b = this.props, baseURL = _b.baseURL, cacheRequests = _b.cacheRequests, _c = _b.children, children = _c === void 0 ? null : _c, description = _b.description, innerRef = _b.innerRef, _d = _b.loader, loader = _d === void 0 ? null : _d, onError = _b.onError, onLoad = _b.onLoad, preProcessor = _b.preProcessor, src = _b.src, title = _b.title, uniqueHash = _b.uniqueHash, uniquifyIDs = _b.uniquifyIDs, rest = __rest(_b, ["baseURL", "cacheRequests", "children", "description", "innerRef", "loader", "onError", "onLoad", "preProcessor", "src", "title", "uniqueHash", "uniquifyIDs"]);
if (element) {
return element;
return React.cloneElement(element, __assign({ ref: innerRef }, rest));
}

@@ -348,0 +347,0 @@ if ([exports.STATUS.UNSUPPORTED, exports.STATUS.FAILED].indexOf(status) > -1) {

{
"name": "react-inlinesvg",
"version": "1.1.6",
"version": "1.1.7",
"description": "An SVG loader for React",

@@ -22,3 +22,4 @@ "author": "Gil Barbara <gilbarbara@gmail.com>",

"files": [
"lib"
"lib",
"src"
],

@@ -41,3 +42,3 @@ "types": "lib/index.d.ts",

"@gilbarbara/tsconfig": "^0.1.0",
"@size-limit/preset-small-lib": "^2.1.1",
"@size-limit/preset-small-lib": "^2.1.6",
"@types/enzyme": "^3.10.3",

@@ -47,8 +48,8 @@ "@types/enzyme-adapter-react-16": "^1.0.5",

"@types/fetch-mock": "^7.3.1",
"@types/jest": "^24.0.17",
"@types/node": "^12.7.2",
"@types/node-fetch": "^2.5.0",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.8.5",
"cross-env": "^5.2.0",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.7",
"@types/node-fetch": "^2.5.2",
"@types/react": "^16.9.3",
"@types/react-dom": "^16.9.1",
"cross-env": "^6.0.0",
"enzyme": "^3.10.0",

@@ -58,8 +59,8 @@ "enzyme-adapter-react-16": "^1.14.0",

"http-server": "^0.11.1",
"husky": "^3.0.4",
"husky": "^3.0.5",
"jest": "^24.9.0",
"jest-chain": "^1.1.2",
"jest-enzyme": "^7.1.0",
"jest-enzyme": "^7.1.1",
"jest-extended": "^0.11.2",
"jest-watch-typeahead": "^0.3.1",
"jest-watch-typeahead": "^0.4.0",
"node-fetch": "^2.6.0",

@@ -71,11 +72,11 @@ "prettier": "^1.18.2",

"rimraf": "^3.0.0",
"size-limit": "^2.1.1",
"size-limit": "^2.1.6",
"start-server-and-test": "^1.10.0",
"styled-components": "^4.3.2",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"styled-components": "^4.4.0",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
"tslint-react": "^4.0.0",
"typescript": "^3.5.3"
"tslint-react": "^4.1.0",
"typescript": "^3.6.3"
},

@@ -82,0 +83,0 @@ "scripts": {

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