html-react-parser 5.2.7 → 5.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.
@@ -2170,14 +2170,15 @@
2170
2170
 
2171
2171
  var utilities$1 = {};
2172
2172
 
2173
- var cjs$1 = {};
2173
+ var cjs$2 = {};
2174
2174
 
2175
- var inlineStyleParser;
2176
- var hasRequiredInlineStyleParser;
2175
+ var cjs$1;
2176
+ var hasRequiredCjs$2;
2177
+
2178
+ function requireCjs$2 () {
2179
+ if (hasRequiredCjs$2) return cjs$1;
2180
+ hasRequiredCjs$2 = 1;
2177
2181
 
2178
- function requireInlineStyleParser () {
2179
- if (hasRequiredInlineStyleParser) return inlineStyleParser;
2180
- hasRequiredInlineStyleParser = 1;
2181
2182
  // http://www.w3.org/TR/CSS21/grammar.html
2182
2183
  // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
2183
2184
  var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
@@ -2211,7 +2212,7 @@
2211
2212
  * @throws {TypeError}
2212
2213
  * @throws {Error}
2213
2214
  */
2214
- inlineStyleParser = function (style, options) {
2215
+ function index (style, options) {
2215
2216
  if (typeof style !== 'string') {
2216
2217
  throw new TypeError('First argument must be a string');
2217
2218
  }
@@ -2424,7 +2425,7 @@
2424
2425
 
2425
2426
  whitespace();
2426
2427
  return declarations();
2427
- };
2428
+ }
2428
2429
 
2429
2430
  /**
2430
2431
  * Trim `str`.
@@ -2435,20 +2436,23 @@
2435
2436
  function trim(str) {
2436
2437
  return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
2437
2438
  }
2438
- return inlineStyleParser;
2439
+
2440
+ cjs$1 = index;
2441
+
2442
+ return cjs$1;
2439
2443
  }
2440
2444
 
2441
2445
  var hasRequiredCjs$1;
2442
2446
 
2443
2447
  function requireCjs$1 () {
2444
- if (hasRequiredCjs$1) return cjs$1;
2448
+ if (hasRequiredCjs$1) return cjs$2;
2445
2449
  hasRequiredCjs$1 = 1;
2446
- var __importDefault = (cjs$1 && cjs$1.__importDefault) || function (mod) {
2450
+ var __importDefault = (cjs$2 && cjs$2.__importDefault) || function (mod) {
2447
2451
  return (mod && mod.__esModule) ? mod : { "default": mod };
2448
2452
  };
2449
- Object.defineProperty(cjs$1, "__esModule", { value: true });
2450
- cjs$1.default = StyleToObject;
2451
- const inline_style_parser_1 = __importDefault(requireInlineStyleParser());
2453
+ Object.defineProperty(cjs$2, "__esModule", { value: true });
2454
+ cjs$2.default = StyleToObject;
2455
+ const inline_style_parser_1 = __importDefault(requireCjs$2());
2452
2456
  /**
2453
2457
  * Parses inline style to object.
2454
2458
  *
@@ -2486,7 +2490,7 @@
2486
2490
  return styleObject;
2487
2491
  }
2488
2492
 
2489
- return cjs$1;
2493
+ return cjs$2;
2490
2494
  }
2491
2495
 
2492
2496
  var utilities = {};