@plasmicpkgs/plasmic-cms 0.0.77 → 0.0.78

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.
@@ -262,11 +262,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
262
262
 
263
263
 
264
264
  var IteratorPrototype = {};
265
-
266
- IteratorPrototype[iteratorSymbol] = function () {
265
+ define(IteratorPrototype, iteratorSymbol, function () {
267
266
  return this;
268
- };
269
-
267
+ });
270
268
  var getProto = Object.getPrototypeOf;
271
269
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
272
270
 
@@ -277,8 +275,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
277
275
  }
278
276
 
279
277
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
280
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
281
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
278
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
279
+ define(Gp, "constructor", GeneratorFunctionPrototype);
280
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
282
281
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
283
282
  // Iterator interface in terms of a single ._invoke method.
284
283
 
@@ -383,11 +382,9 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
383
382
  }
384
383
 
385
384
  defineIteratorMethods(AsyncIterator.prototype);
386
-
387
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
385
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
388
386
  return this;
389
- };
390
-
387
+ });
391
388
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
392
389
  // AsyncIterator objects; they just return a Promise for the value of
393
390
  // the final result produced by the iterator.
@@ -564,13 +561,12 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
564
561
  // object to not be returned from this call. This ensures that doesn't happen.
565
562
  // See https://github.com/facebook/regenerator/issues/274 for more details.
566
563
 
567
- Gp[iteratorSymbol] = function () {
564
+ define(Gp, iteratorSymbol, function () {
568
565
  return this;
569
- };
570
-
571
- Gp.toString = function () {
566
+ });
567
+ define(Gp, "toString", function () {
572
568
  return "[object Generator]";
573
- };
569
+ });
574
570
 
575
571
  function pushTryEntry(locs) {
576
572
  var entry = {
@@ -882,14 +878,19 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
882
878
  } catch (accidentalStrictMode) {
883
879
  // This module should not be running in strict mode, so the above
884
880
  // assignment should always work unless something is misconfigured. Just
885
- // in case runtime.js accidentally runs in strict mode, we can escape
881
+ // in case runtime.js accidentally runs in strict mode, in modern engines
882
+ // we can explicitly access globalThis. In older engines we can escape
886
883
  // strict mode using a global Function call. This could conceivably fail
887
884
  // if a Content Security Policy forbids using Function, but in that case
888
885
  // the proper solution is to fix the accidental strict mode problem. If
889
886
  // you've misconfigured your bundler to force strict mode and applied a
890
887
  // CSP to forbid Function, and you're not willing to fix either of those
891
888
  // problems, please detail your unique predicament in a GitHub issue.
892
- Function("r", "regeneratorRuntime = r")(runtime);
889
+ if (typeof globalThis === "object") {
890
+ globalThis.regeneratorRuntime = runtime;
891
+ } else {
892
+ Function("r", "regeneratorRuntime = r")(runtime);
893
+ }
893
894
  }
894
895
  });
895
896