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.3 to 1.1.4

2

lib/helpers.d.ts

@@ -9,3 +9,3 @@ export declare const canUseDOM: () => boolean;

}
export declare const isSupportedEnvironment: any;
export declare const isSupportedEnvironment: () => boolean | null;
export declare const randomString: (length: number) => string;

@@ -16,4 +16,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
var once_1 = require("once");
var exenv_1 = require("exenv");

@@ -43,3 +41,5 @@ exports.canUseDOM = function () { return exenv_1.canUseDOM; };

exports.InlineSVGError = InlineSVGError;
exports.isSupportedEnvironment = once_1.default(function () { return exports.supportsInlineSVG() && typeof window !== 'undefined' && window !== null; });
exports.isSupportedEnvironment = function () {
return exports.supportsInlineSVG() && typeof window !== 'undefined' && window !== null;
};
exports.randomString = function (length) {

@@ -46,0 +46,0 @@ var letters = 'abcdefghijklmnopqrstuvwxyz';

{
"name": "react-inlinesvg",
"version": "1.1.3",
"version": "1.1.4",
"description": "An SVG loader for React",

@@ -35,8 +35,8 @@ "author": "Gil Barbara <gilbarbara@gmail.com>",

"dependencies": {
"react-from-dom": "^0.2.3",
"exenv": "^1.2.2",
"once": "^1.4.0"
"react-from-dom": "^0.2.3"
},
"devDependencies": {
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/exenv": "^1.2.0",

@@ -47,3 +47,2 @@ "@types/fetch-mock": "^7.3.1",

"@types/node-fetch": "^2.5.0",
"@types/once": "^1.4.0",
"@types/react": "^16.8.23",

@@ -50,0 +49,0 @@ "@types/react-dom": "^16.8.5",

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