html-react-parser 5.2.2 → 5.2.4

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![NPM version](https://badgen.net/npm/v/html-react-parser)](https://www.npmjs.com/package/html-react-parser)
6
6
  [![Bundlephobia minified + gzip](https://badgen.net/bundlephobia/minzip/html-react-parser)](https://bundlephobia.com/package/html-react-parser)
7
- [![Build Status](https://github.com/remarkablemark/html-react-parser/workflows/build/badge.svg?branch=master)](https://github.com/remarkablemark/html-react-parser/actions?query=workflow%3Abuild)
7
+ [![build](https://github.com/remarkablemark/html-react-parser/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablemark/html-react-parser/actions/workflows/build.yml)
8
8
  [![codecov](https://codecov.io/gh/remarkablemark/html-react-parser/branch/master/graph/badge.svg?token=wosFd1DBIR)](https://codecov.io/gh/remarkablemark/html-react-parser)
9
9
  [![NPM downloads](https://badgen.net/npm/dm/html-react-parser)](https://www.npmjs.com/package/html-react-parser)
10
10
  [![Discord](https://badgen.net/discord/online-members/zkS3QDV?cache=300&icon=discord)](https://b.remarkabl.org/discord)
@@ -15,7 +15,7 @@ HTML to React parser that works on both the server (Node.js) and the client (bro
15
15
  HTMLReactParser(string[, options])
16
16
  ```
17
17
 
18
- The parser converts an HTML string to one or more [React elements](https://reactjs.org/docs/react-api.html#creating-react-elements).
18
+ The parser converts an HTML string to one or more [React elements](https://react.dev/reference/react/createElement).
19
19
 
20
20
  To replace an element with another element, check out the [`replace`](#replace) option.
21
21
 
@@ -106,7 +106,7 @@
106
106
  function requireNode () {
107
107
  if (hasRequiredNode) return node;
108
108
  hasRequiredNode = 1;
109
- var __extends = (node.__extends) || (function () {
109
+ var __extends = (node && node.__extends) || (function () {
110
110
  var extendStatics = function (d, b) {
111
111
  extendStatics = Object.setPrototypeOf ||
112
112
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -121,7 +121,7 @@
121
121
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
122
122
  };
123
123
  })();
124
- var __assign = (node.__assign) || function () {
124
+ var __assign = (node && node.__assign) || function () {
125
125
  __assign = Object.assign || function(t) {
126
126
  for (var s, i = 1, n = arguments.length; i < n; i++) {
127
127
  s = arguments[i];
@@ -588,7 +588,7 @@
588
588
  if (hasRequiredLib$2) return lib$2;
589
589
  hasRequiredLib$2 = 1;
590
590
  (function (exports) {
591
- var __createBinding = (lib$2.__createBinding) || (Object.create ? (function(o, m, k, k2) {
591
+ var __createBinding = (lib$2 && lib$2.__createBinding) || (Object.create ? (function(o, m, k, k2) {
592
592
  if (k2 === undefined) k2 = k;
593
593
  var desc = Object.getOwnPropertyDescriptor(m, k);
594
594
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -599,7 +599,7 @@
599
599
  if (k2 === undefined) k2 = k;
600
600
  o[k2] = m[k];
601
601
  }));
602
- var __exportStar = (lib$2.__exportStar) || function(m, exports) {
602
+ var __exportStar = (lib$2 && lib$2.__exportStar) || function(m, exports) {
603
603
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
604
604
  };
605
605
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1104,7 +1104,7 @@
1104
1104
  function requireHtmlToDom () {
1105
1105
  if (hasRequiredHtmlToDom) return htmlToDom;
1106
1106
  hasRequiredHtmlToDom = 1;
1107
- var __importDefault = (htmlToDom.__importDefault) || function (mod) {
1107
+ var __importDefault = (htmlToDom && htmlToDom.__importDefault) || function (mod) {
1108
1108
  return (mod && mod.__esModule) ? mod : { "default": mod };
1109
1109
  };
1110
1110
  Object.defineProperty(htmlToDom, "__esModule", { value: true });
@@ -2443,7 +2443,7 @@
2443
2443
  function requireCjs$1 () {
2444
2444
  if (hasRequiredCjs$1) return cjs$1;
2445
2445
  hasRequiredCjs$1 = 1;
2446
- var __importDefault = (cjs$1.__importDefault) || function (mod) {
2446
+ var __importDefault = (cjs$1 && cjs$1.__importDefault) || function (mod) {
2447
2447
  return (mod && mod.__esModule) ? mod : { "default": mod };
2448
2448
  };
2449
2449
  Object.defineProperty(cjs$1, "__esModule", { value: true });
@@ -2584,7 +2584,7 @@
2584
2584
  if (hasRequiredUtilities) return utilities$1;
2585
2585
  hasRequiredUtilities = 1;
2586
2586
  (function (exports) {
2587
- var __importDefault = (utilities$1.__importDefault) || function (mod) {
2587
+ var __importDefault = (utilities$1 && utilities$1.__importDefault) || function (mod) {
2588
2588
  return (mod && mod.__esModule) ? mod : { "default": mod };
2589
2589
  };
2590
2590
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2779,7 +2779,7 @@
2779
2779
  function requireDomToReact () {
2780
2780
  if (hasRequiredDomToReact) return domToReact;
2781
2781
  hasRequiredDomToReact = 1;
2782
- var __importDefault = (domToReact.__importDefault) || function (mod) {
2782
+ var __importDefault = (domToReact && domToReact.__importDefault) || function (mod) {
2783
2783
  return (mod && mod.__esModule) ? mod : { "default": mod };
2784
2784
  };
2785
2785
  Object.defineProperty(domToReact, "__esModule", { value: true });
@@ -2909,7 +2909,7 @@
2909
2909
  if (hasRequiredLib) return lib$3;
2910
2910
  hasRequiredLib = 1;
2911
2911
  (function (exports) {
2912
- var __importDefault = (lib$3.__importDefault) || function (mod) {
2912
+ var __importDefault = (lib$3 && lib$3.__importDefault) || function (mod) {
2913
2913
  return (mod && mod.__esModule) ? mod : { "default": mod };
2914
2914
  };
2915
2915
  Object.defineProperty(exports, "__esModule", { value: true });