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 4.1.3 to 4.1.4

4

dist/index.d.ts

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

import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
import React__default from 'react';

@@ -74,5 +74,5 @@ declare const STATUS: {

declare let cacheStore: CacheStore;
declare function InlineSVG(props: Props): string | number | boolean | Iterable<React.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
declare function InlineSVG(props: Props): string | number | boolean | Iterable<React__default.ReactNode> | React__default.JSX.Element | null | undefined;
export { type ErrorCallback, type FetchError, type LoadCallback, type PlainObject, type PreProcessorCallback, type Props, type Simplify, type State, type Status, type StorageItem, cacheStore, InlineSVG as default };
export = InlineSVG

@@ -31,6 +31,3 @@ "use client";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);

@@ -44,3 +41,3 @@ // src/index.tsx

module.exports = __toCommonJS(src_exports);
var import_react2 = require("react");
var import_react2 = __toESM(require("react"));
var import_react_from_dom2 = __toESM(require("react-from-dom"));

@@ -339,3 +336,2 @@

// src/index.tsx
var import_jsx_runtime = require("react/jsx-runtime");
var cacheStore;

@@ -550,3 +546,3 @@ function ReactInlineSVG(props) {

}
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReactInlineSVG, { ...props });
return /* @__PURE__ */ import_react2.default.createElement(ReactInlineSVG, { ...props });
}

@@ -553,0 +549,0 @@ // Annotate the CommonJS export names for ESM import in node:

{
"name": "react-inlinesvg",
"version": "4.1.3",
"version": "4.1.4",
"description": "An SVG loader for React",

@@ -54,34 +54,34 @@ "author": "Gil Barbara <gilbarbara@gmail.com>",

"dependencies": {
"react-from-dom": "^0.7.2"
"react-from-dom": "^0.7.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.0",
"@gilbarbara/eslint-config": "^0.7.4",
"@arethetypeswrong/cli": "^0.16.4",
"@gilbarbara/eslint-config": "^0.8.1",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@size-limit/preset-small-lib": "^11.0.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@size-limit/preset-small-lib": "^11.1.6",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
"@types/node": "^20.11.21",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^2.1.3",
"browser-cache-mock": "^0.1.7",
"del-cli": "^5.1.0",
"del-cli": "^6.0.0",
"fix-tsup-cjs": "^1.2.0",
"http-server": "^14.1.1",
"husky": "^9.0.11",
"husky": "^9.1.6",
"jest-extended": "^4.0.2",
"jsdom": "^24.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"jsdom": "^25.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"repo-tools": "^0.3.1",
"size-limit": "^11.0.2",
"start-server-and-test": "^2.0.3",
"size-limit": "^11.1.6",
"start-server-and-test": "^2.0.8",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1",
"vitest-fetch-mock": "^0.2.2"
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"vitest": "^2.1.3",
"vitest-fetch-mock": "^0.3.0"
},

@@ -88,0 +88,0 @@ "scripts": {

@@ -165,3 +165,3 @@ # react-inlinesvg

If you need to support legacy browsers, include a polyfill for `fetch` and `Number.isNaN` in your app. Take a look at [react-app-polyfill](https://www.npmjs.com/package/react-app-polyfill) or [polyfill.io](https://polyfill.io/v3/).
If you need to support legacy browsers, include a polyfill for `fetch` and `Number.isNaN` in your app.

@@ -168,0 +168,0 @@ ## CORS

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

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