@contentful/field-editor-reference 5.3.1 → 5.3.2

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,12 @@
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
+ ## [5.3.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.3.1...@contentful/field-editor-reference@5.3.2) (2022-10-06)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **deps:** deduplicate dependencies ([#1259](https://github.com/contentful/field-editors/issues/1259)) ([01cf780](https://github.com/contentful/field-editors/commit/01cf780b84943e23a1a1805da62d1319ee0a0424))
11
+
6
12
  ## [5.3.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@5.3.0...@contentful/field-editor-reference@5.3.1) (2022-09-19)
7
13
 
8
14
  **Note:** Version bump only for package @contentful/field-editor-reference
@@ -804,11 +804,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
804
804
 
805
805
 
806
806
  var IteratorPrototype = {};
807
-
808
- IteratorPrototype[iteratorSymbol] = function () {
807
+ define(IteratorPrototype, iteratorSymbol, function () {
809
808
  return this;
810
- };
811
-
809
+ });
812
810
  var getProto = Object.getPrototypeOf;
813
811
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
814
812
 
@@ -819,8 +817,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
819
817
  }
820
818
 
821
819
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
822
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
823
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
820
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
821
+ define(Gp, "constructor", GeneratorFunctionPrototype);
822
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
824
823
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
825
824
  // Iterator interface in terms of a single ._invoke method.
826
825
 
@@ -925,11 +924,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
925
924
  }
926
925
 
927
926
  defineIteratorMethods(AsyncIterator.prototype);
928
-
929
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
927
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
930
928
  return this;
931
- };
932
-
929
+ });
933
930
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
934
931
  // AsyncIterator objects; they just return a Promise for the value of
935
932
  // the final result produced by the iterator.
@@ -1106,13 +1103,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1106
1103
  // object to not be returned from this call. This ensures that doesn't happen.
1107
1104
  // See https://github.com/facebook/regenerator/issues/274 for more details.
1108
1105
 
1109
- Gp[iteratorSymbol] = function () {
1106
+ define(Gp, iteratorSymbol, function () {
1110
1107
  return this;
1111
- };
1112
-
1113
- Gp.toString = function () {
1108
+ });
1109
+ define(Gp, "toString", function () {
1114
1110
  return "[object Generator]";
1115
- };
1111
+ });
1116
1112
 
1117
1113
  function pushTryEntry(locs) {
1118
1114
  var entry = {
@@ -1424,14 +1420,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1424
1420
  } catch (accidentalStrictMode) {
1425
1421
  // This module should not be running in strict mode, so the above
1426
1422
  // assignment should always work unless something is misconfigured. Just
1427
- // in case runtime.js accidentally runs in strict mode, we can escape
1423
+ // in case runtime.js accidentally runs in strict mode, in modern engines
1424
+ // we can explicitly access globalThis. In older engines we can escape
1428
1425
  // strict mode using a global Function call. This could conceivably fail
1429
1426
  // if a Content Security Policy forbids using Function, but in that case
1430
1427
  // the proper solution is to fix the accidental strict mode problem. If
1431
1428
  // you've misconfigured your bundler to force strict mode and applied a
1432
1429
  // CSP to forbid Function, and you're not willing to fix either of those
1433
1430
  // problems, please detail your unique predicament in a GitHub issue.
1434
- Function("r", "regeneratorRuntime = r")(runtime);
1431
+ if (typeof globalThis === "object") {
1432
+ globalThis.regeneratorRuntime = runtime;
1433
+ } else {
1434
+ Function("r", "regeneratorRuntime = r")(runtime);
1435
+ }
1435
1436
  }
1436
1437
  });
1437
1438