@builder.io/sdk 2.1.1-0 → 2.1.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.umd.js CHANGED
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "2.1.0";
155
+ var version = "2.1.1";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -1149,7 +1149,7 @@
1149
1149
  expiresString +
1150
1150
  '; path=/' +
1151
1151
  "; domain=".concat(getTopLevelDomain(location.hostname)) +
1152
- (secure ? ';secure ; SameSite=None' : '');
1152
+ (secure ? '; secure; SameSite=None' : '');
1153
1153
  }
1154
1154
  catch (err) {
1155
1155
  console.warn('Could not set cookie', err);
@@ -2401,6 +2401,12 @@
2401
2401
  if ('noTraverse' in queue[0]) {
2402
2402
  queryParams.noTraverse = queue[0].noTraverse;
2403
2403
  }
2404
+ if ('includeUnpublished' in queue[0]) {
2405
+ queryParams.includeUnpublished = queue[0].includeUnpublished;
2406
+ }
2407
+ if (queue[0].sort) {
2408
+ queryParams.sort = queue[0].sort;
2409
+ }
2404
2410
  var pageQueryParams = typeof location !== 'undefined'
2405
2411
  ? QueryString.parseDeep(location.search.substr(1))
2406
2412
  : {}; // TODO: WHAT about SSR (this.request) ?