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

react-inlinesvg

Package Overview
Dependencies
Maintainers
1
Versions
82
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.4 to 1.1.5

1

lib/index.d.ts

@@ -9,2 +9,3 @@ import * as React from 'react';

loader?: React.ReactNode;
innerRef?: React.Ref<HTMLElement>;
onError?: (error: InlineSVGError | IFetchError) => void;

@@ -11,0 +12,0 @@ onLoad?: (src: string, isCached: boolean) => void;

@@ -15,2 +15,13 @@ "use strict";

})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {

@@ -269,3 +280,3 @@ var t = {};

InlineSVG.prototype.getElement = function () {
var _a = this.props, baseURL = _a.baseURL, cacheRequests = _a.cacheRequests, children = _a.children, description = _a.description, 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", "onError", "onLoad", "loader", "preProcessor", "src", "title", "uniqueHash", "uniquifyIDs"]);
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 {

@@ -278,3 +289,3 @@ var node = this.getNode();

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

@@ -281,0 +292,0 @@ });

14

package.json
{
"name": "react-inlinesvg",
"version": "1.1.4",
"version": "1.1.5",
"description": "An SVG loader for React",

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

"peerDependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
"react": "^16.3.0",
"react-dom": "^16.3.0"
},

@@ -49,3 +49,2 @@ "dependencies": {

"@types/react-dom": "^16.8.5",
"bundlesize": "^0.18.0",
"chalk": "^2.4.2",

@@ -69,2 +68,3 @@ "cross-env": "^5.2.0",

"rimraf": "^2.6.3",
"size-limit": "^1.3.8",
"start-server-and-test": "^1.9.1",

@@ -92,3 +92,3 @@ "styled-components": "^4.3.2",

"validate": "npm run lint && npm run test && npm run build && npm run bundlesize",
"bundlesize": "bundlesize",
"bundlesize": "size-limit",
"prepublishOnly": "npm run validate"

@@ -107,6 +107,6 @@ },

},
"bundlesize": [
"size-limit": [
{
"path": "./lib/index.js",
"maxSize": "5 kB"
"limit": "8 KB"
}

@@ -113,0 +113,0 @@ ],

@@ -37,2 +37,5 @@ # react-inlinesvg

**innerRef** {React.Ref|function}
Get the SVG HTMLElement.
**loader** {node}

@@ -39,0 +42,0 @@ A component to be shown while the SVG is loading.

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