@contentful/field-editor-rich-text 3.1.4 → 3.1.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.1.5...@contentful/field-editor-rich-text@3.1.6) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
9
+
10
+ ## [3.1.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.1.4...@contentful/field-editor-rich-text@3.1.5) (2022-09-30)
11
+
12
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
13
+
6
14
  ## [3.1.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@3.1.3...@contentful/field-editor-rich-text@3.1.4) (2022-09-21)
7
15
 
8
16
  **Note:** Version bump only for package @contentful/field-editor-rich-text
@@ -825,11 +825,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
825
825
 
826
826
 
827
827
  var IteratorPrototype = {};
828
-
829
- IteratorPrototype[iteratorSymbol] = function () {
828
+ define(IteratorPrototype, iteratorSymbol, function () {
830
829
  return this;
831
- };
832
-
830
+ });
833
831
  var getProto = Object.getPrototypeOf;
834
832
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
835
833
 
@@ -840,8 +838,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
840
838
  }
841
839
 
842
840
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
843
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
844
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
841
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
842
+ define(Gp, "constructor", GeneratorFunctionPrototype);
843
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
845
844
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
846
845
  // Iterator interface in terms of a single ._invoke method.
847
846
 
@@ -946,11 +945,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
946
945
  }
947
946
 
948
947
  defineIteratorMethods(AsyncIterator.prototype);
949
-
950
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
948
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
951
949
  return this;
952
- };
953
-
950
+ });
954
951
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
955
952
  // AsyncIterator objects; they just return a Promise for the value of
956
953
  // the final result produced by the iterator.
@@ -1127,13 +1124,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1127
1124
  // object to not be returned from this call. This ensures that doesn't happen.
1128
1125
  // See https://github.com/facebook/regenerator/issues/274 for more details.
1129
1126
 
1130
- Gp[iteratorSymbol] = function () {
1127
+ define(Gp, iteratorSymbol, function () {
1131
1128
  return this;
1132
- };
1133
-
1134
- Gp.toString = function () {
1129
+ });
1130
+ define(Gp, "toString", function () {
1135
1131
  return "[object Generator]";
1136
- };
1132
+ });
1137
1133
 
1138
1134
  function pushTryEntry(locs) {
1139
1135
  var entry = {
@@ -1445,14 +1441,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1445
1441
  } catch (accidentalStrictMode) {
1446
1442
  // This module should not be running in strict mode, so the above
1447
1443
  // assignment should always work unless something is misconfigured. Just
1448
- // in case runtime.js accidentally runs in strict mode, we can escape
1444
+ // in case runtime.js accidentally runs in strict mode, in modern engines
1445
+ // we can explicitly access globalThis. In older engines we can escape
1449
1446
  // strict mode using a global Function call. This could conceivably fail
1450
1447
  // if a Content Security Policy forbids using Function, but in that case
1451
1448
  // the proper solution is to fix the accidental strict mode problem. If
1452
1449
  // you've misconfigured your bundler to force strict mode and applied a
1453
1450
  // CSP to forbid Function, and you're not willing to fix either of those
1454
1451
  // problems, please detail your unique predicament in a GitHub issue.
1455
- Function("r", "regeneratorRuntime = r")(runtime);
1452
+ if (typeof globalThis === "object") {
1453
+ globalThis.regeneratorRuntime = runtime;
1454
+ } else {
1455
+ Function("r", "regeneratorRuntime = r")(runtime);
1456
+ }
1456
1457
  }
1457
1458
  });
1458
1459