@plasmicapp/loader-react 1.0.116 → 1.0.117

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.
@@ -396,11 +396,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
396
396
 
397
397
 
398
398
  var IteratorPrototype = {};
399
-
400
- IteratorPrototype[iteratorSymbol] = function () {
399
+ define(IteratorPrototype, iteratorSymbol, function () {
401
400
  return this;
402
- };
403
-
401
+ });
404
402
  var getProto = Object.getPrototypeOf;
405
403
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
406
404
 
@@ -411,8 +409,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
411
409
  }
412
410
 
413
411
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
414
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
415
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
412
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
413
+ define(Gp, "constructor", GeneratorFunctionPrototype);
414
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
416
415
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
417
416
  // Iterator interface in terms of a single ._invoke method.
418
417
 
@@ -517,11 +516,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
517
516
  }
518
517
 
519
518
  defineIteratorMethods(AsyncIterator.prototype);
520
-
521
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
519
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
522
520
  return this;
523
- };
524
-
521
+ });
525
522
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
526
523
  // AsyncIterator objects; they just return a Promise for the value of
527
524
  // the final result produced by the iterator.
@@ -698,13 +695,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
698
695
  // object to not be returned from this call. This ensures that doesn't happen.
699
696
  // See https://github.com/facebook/regenerator/issues/274 for more details.
700
697
 
701
- Gp[iteratorSymbol] = function () {
698
+ define(Gp, iteratorSymbol, function () {
702
699
  return this;
703
- };
704
-
705
- Gp.toString = function () {
700
+ });
701
+ define(Gp, "toString", function () {
706
702
  return "[object Generator]";
707
- };
703
+ });
708
704
 
709
705
  function pushTryEntry(locs) {
710
706
  var entry = {
@@ -1016,14 +1012,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1016
1012
  } catch (accidentalStrictMode) {
1017
1013
  // This module should not be running in strict mode, so the above
1018
1014
  // assignment should always work unless something is misconfigured. Just
1019
- // in case runtime.js accidentally runs in strict mode, we can escape
1015
+ // in case runtime.js accidentally runs in strict mode, in modern engines
1016
+ // we can explicitly access globalThis. In older engines we can escape
1020
1017
  // strict mode using a global Function call. This could conceivably fail
1021
1018
  // if a Content Security Policy forbids using Function, but in that case
1022
1019
  // the proper solution is to fix the accidental strict mode problem. If
1023
1020
  // you've misconfigured your bundler to force strict mode and applied a
1024
1021
  // CSP to forbid Function, and you're not willing to fix either of those
1025
1022
  // problems, please detail your unique predicament in a GitHub issue.
1026
- Function("r", "regeneratorRuntime = r")(runtime);
1023
+ if (typeof globalThis === "object") {
1024
+ globalThis.regeneratorRuntime = runtime;
1025
+ } else {
1026
+ Function("r", "regeneratorRuntime = r")(runtime);
1027
+ }
1027
1028
  }
1028
1029
  });
1029
1030