@builder.io/sdk 3.0.2-1 → 3.0.2-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.
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "3.0.2-0";
155
+ var version = "3.0.2-1";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -767,19 +767,6 @@
767
767
  return Animator;
768
768
  }());
769
769
 
770
- /**
771
- * Only gets one level up from hostname
772
- * wwww.example.com -> example.com
773
- * www.example.co.uk -> example.co.uk
774
- */
775
- function getTopLevelDomain(host) {
776
- var parts = host.split('.');
777
- if (parts.length > 2) {
778
- return parts.slice(1).join('.');
779
- }
780
- return host;
781
- }
782
-
783
770
  /**
784
771
  * RegExp to match field-content in RFC 7230 sec 3.2
785
772
  *
@@ -824,7 +811,6 @@
824
811
  if (opts && 'secure' in opts) {
825
812
  cookie.secure = !!opts.secure;
826
813
  }
827
- cookie.domain = req.headers.host && getTopLevelDomain(req.headers.host);
828
814
  pushCookie(headers, cookie);
829
815
  var setHeader = res.setHeader;
830
816
  setHeader.call(res, 'Set-Cookie', headers);
@@ -1149,7 +1135,6 @@
1149
1135
  (value || '') +
1150
1136
  expiresString +
1151
1137
  '; path=/' +
1152
- "; domain=".concat(getTopLevelDomain(location.hostname)) +
1153
1138
  (secure ? '; secure; SameSite=None' : '');
1154
1139
  }
1155
1140
  catch (err) {