react-inlinesvg
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
27318
- Removedonce@^1.4.0
- Removedonce@1.4.0(transitive)
- Removedwrappy@1.0.2(transitive)