@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.
package/dist/index.esm.js CHANGED
@@ -118,7 +118,7 @@ function assertAllowedPropertyName(name) {
118
118
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
119
119
  }
120
120
 
121
- var version = "3.0.2-0";
121
+ var version = "3.0.2-1";
122
122
 
123
123
  var Subscription = /** @class */ (function () {
124
124
  function Subscription(listeners, listener) {
@@ -733,19 +733,6 @@ var Animator = /** @class */ (function () {
733
733
  return Animator;
734
734
  }());
735
735
 
736
- /**
737
- * Only gets one level up from hostname
738
- * wwww.example.com -> example.com
739
- * www.example.co.uk -> example.co.uk
740
- */
741
- function getTopLevelDomain(host) {
742
- var parts = host.split('.');
743
- if (parts.length > 2) {
744
- return parts.slice(1).join('.');
745
- }
746
- return host;
747
- }
748
-
749
736
  /**
750
737
  * RegExp to match field-content in RFC 7230 sec 3.2
751
738
  *
@@ -790,7 +777,6 @@ var Cookies = /** @class */ (function () {
790
777
  if (opts && 'secure' in opts) {
791
778
  cookie.secure = !!opts.secure;
792
779
  }
793
- cookie.domain = req.headers.host && getTopLevelDomain(req.headers.host);
794
780
  pushCookie(headers, cookie);
795
781
  var setHeader = res.setHeader;
796
782
  setHeader.call(res, 'Set-Cookie', headers);
@@ -1047,7 +1033,6 @@ function setCookie(name, value, expires) {
1047
1033
  (value || '') +
1048
1034
  expiresString +
1049
1035
  '; path=/' +
1050
- "; domain=".concat(getTopLevelDomain(location.hostname)) +
1051
1036
  (secure ? '; secure; SameSite=None' : '');
1052
1037
  }
1053
1038
  catch (err) {