@medely/react-fontawesome 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.es.js +2 -2
- package/index.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parse, icon } from '@
|
|
1
|
+
import { parse, icon } from '@medely/fontawesome-svg-core';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -140,7 +140,7 @@ var ICON_PACKS_STARTING_VERSION = '7.0.0';
|
|
|
140
140
|
// Try to get version from installed package first, fallback to env var, then default
|
|
141
141
|
var SVG_CORE_VERSION;
|
|
142
142
|
try {
|
|
143
|
-
var svgCorePackageJson = require('@
|
|
143
|
+
var svgCorePackageJson = require('@medely/fontawesome-svg-core/package.json');
|
|
144
144
|
SVG_CORE_VERSION = svgCorePackageJson.version;
|
|
145
145
|
} catch (e) {
|
|
146
146
|
// If package.json can't be loaded, try environment variable
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@medely/fontawesome-svg-core'), require('prop-types'), require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@medely/fontawesome-svg-core', 'prop-types', 'react'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["react-fontawesome"] = {}, global.FontAwesome, global.PropTypes, global.React));
|
|
5
5
|
})(this, (function (exports, fontawesomeSvgCore, PropTypes, React) { 'use strict';
|
|
6
6
|
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
// Try to get version from installed package first, fallback to env var, then default
|
|
148
148
|
var SVG_CORE_VERSION;
|
|
149
149
|
try {
|
|
150
|
-
var svgCorePackageJson = require('@
|
|
150
|
+
var svgCorePackageJson = require('@medely/fontawesome-svg-core/package.json');
|
|
151
151
|
SVG_CORE_VERSION = svgCorePackageJson.version;
|
|
152
152
|
} catch (e) {
|
|
153
153
|
// If package.json can't be loaded, try environment variable
|