html-react-parser 4.2.7 → 4.2.8

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.
@@ -2235,41 +2235,6 @@
2235
2235
  var React$1 = require$$0;
2236
2236
  var styleToJS = cjs$1.default;
2237
2237
 
2238
- /**
2239
- * Swap key with value in an object.
2240
- *
2241
- * @param {object} obj - The object.
2242
- * @param {Function} [override] - The override method.
2243
- * @returns - The inverted object.
2244
- */
2245
- function invertObject(obj, override) {
2246
- if (!obj || typeof obj !== 'object') {
2247
- throw new TypeError('First argument must be an object');
2248
- }
2249
-
2250
- var isOverridePresent = typeof override === 'function';
2251
- var overrides = {};
2252
- var result = {};
2253
-
2254
- for (var key in obj) {
2255
- var value = obj[key];
2256
-
2257
- if (isOverridePresent) {
2258
- overrides = override(key, value);
2259
- if (overrides && overrides.length === 2) {
2260
- result[overrides[0]] = overrides[1];
2261
- continue;
2262
- }
2263
- }
2264
-
2265
- if (typeof value === 'string') {
2266
- result[value] = key;
2267
- }
2268
- }
2269
-
2270
- return result;
2271
- }
2272
-
2273
2238
  var RESERVED_SVG_MATHML_ELEMENTS = new Set([
2274
2239
  'annotation-xml',
2275
2240
  'color-profile',
@@ -2367,7 +2332,6 @@
2367
2332
  var utilities$2 = {
2368
2333
  PRESERVE_CUSTOM_ATTRIBUTES: PRESERVE_CUSTOM_ATTRIBUTES,
2369
2334
  ELEMENTS_WITH_NO_TEXT_CHILDREN: ELEMENTS_WITH_NO_TEXT_CHILDREN,
2370
- invertObject: invertObject,
2371
2335
  isCustomComponent: isCustomComponent,
2372
2336
  setStyleProp: setStyleProp$1,
2373
2337
  canTextBeChildOfNode: canTextBeChildOfNode$1,