@builder.io/sdk 6.0.6 → 6.0.7

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/dist/index.cjs.js CHANGED
@@ -958,7 +958,7 @@ function toError(err) {
958
958
 
959
959
  var DEFAULT_API_VERSION = 'v3';
960
960
 
961
- var SDK_VERSION = '6.0.6';
961
+ var SDK_VERSION = '6.0.7';
962
962
 
963
963
  function datePlusMinutes(minutes) {
964
964
  if (minutes === void 0) { minutes = 30; }
@@ -1299,6 +1299,9 @@ var Builder = /** @class */ (function () {
1299
1299
  return isTrusted;
1300
1300
  };
1301
1301
  Builder.isTrustedHostForEvent = function (event) {
1302
+ if (event.origin === 'null') {
1303
+ return false;
1304
+ }
1302
1305
  var url = parse(event.origin);
1303
1306
  return url.hostname && Builder.isTrustedHost(url.hostname);
1304
1307
  };