@contentful/field-editor-rich-text 3.1.5 → 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.
@@ -818,11 +818,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
818
818
 
819
819
 
820
820
  var IteratorPrototype = {};
821
-
822
- IteratorPrototype[iteratorSymbol] = function () {
821
+ define(IteratorPrototype, iteratorSymbol, function () {
823
822
  return this;
824
- };
825
-
823
+ });
826
824
  var getProto = Object.getPrototypeOf;
827
825
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
828
826
 
@@ -833,8 +831,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
833
831
  }
834
832
 
835
833
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
836
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
837
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
834
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
835
+ define(Gp, "constructor", GeneratorFunctionPrototype);
836
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
838
837
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
839
838
  // Iterator interface in terms of a single ._invoke method.
840
839
 
@@ -939,11 +938,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
939
938
  }
940
939
 
941
940
  defineIteratorMethods(AsyncIterator.prototype);
942
-
943
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
941
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
944
942
  return this;
945
- };
946
-
943
+ });
947
944
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
948
945
  // AsyncIterator objects; they just return a Promise for the value of
949
946
  // the final result produced by the iterator.
@@ -1120,13 +1117,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1120
1117
  // object to not be returned from this call. This ensures that doesn't happen.
1121
1118
  // See https://github.com/facebook/regenerator/issues/274 for more details.
1122
1119
 
1123
- Gp[iteratorSymbol] = function () {
1120
+ define(Gp, iteratorSymbol, function () {
1124
1121
  return this;
1125
- };
1126
-
1127
- Gp.toString = function () {
1122
+ });
1123
+ define(Gp, "toString", function () {
1128
1124
  return "[object Generator]";
1129
- };
1125
+ });
1130
1126
 
1131
1127
  function pushTryEntry(locs) {
1132
1128
  var entry = {
@@ -1438,14 +1434,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1438
1434
  } catch (accidentalStrictMode) {
1439
1435
  // This module should not be running in strict mode, so the above
1440
1436
  // assignment should always work unless something is misconfigured. Just
1441
- // in case runtime.js accidentally runs in strict mode, we can escape
1437
+ // in case runtime.js accidentally runs in strict mode, in modern engines
1438
+ // we can explicitly access globalThis. In older engines we can escape
1442
1439
  // strict mode using a global Function call. This could conceivably fail
1443
1440
  // if a Content Security Policy forbids using Function, but in that case
1444
1441
  // the proper solution is to fix the accidental strict mode problem. If
1445
1442
  // you've misconfigured your bundler to force strict mode and applied a
1446
1443
  // CSP to forbid Function, and you're not willing to fix either of those
1447
1444
  // problems, please detail your unique predicament in a GitHub issue.
1448
- Function("r", "regeneratorRuntime = r")(runtime);
1445
+ if (typeof globalThis === "object") {
1446
+ globalThis.regeneratorRuntime = runtime;
1447
+ } else {
1448
+ Function("r", "regeneratorRuntime = r")(runtime);
1449
+ }
1449
1450
  }
1450
1451
  });
1451
1452