@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.cjs.js CHANGED
@@ -126,7 +126,7 @@ function assertAllowedPropertyName(name) {
126
126
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
127
127
  }
128
128
 
129
- var version = "2.1.0";
129
+ var version = "2.1.1";
130
130
 
131
131
  var Subscription = /** @class */ (function () {
132
132
  function Subscription(listeners, listener) {
@@ -1055,7 +1055,7 @@ function setCookie(name, value, expires) {
1055
1055
  expiresString +
1056
1056
  '; path=/' +
1057
1057
  "; domain=".concat(getTopLevelDomain(location.hostname)) +
1058
- (secure ? ';secure ; SameSite=None' : '');
1058
+ (secure ? '; secure; SameSite=None' : '');
1059
1059
  }
1060
1060
  catch (err) {
1061
1061
  console.warn('Could not set cookie', err);
@@ -2307,6 +2307,12 @@ var Builder = /** @class */ (function () {
2307
2307
  if ('noTraverse' in queue[0]) {
2308
2308
  queryParams.noTraverse = queue[0].noTraverse;
2309
2309
  }
2310
+ if ('includeUnpublished' in queue[0]) {
2311
+ queryParams.includeUnpublished = queue[0].includeUnpublished;
2312
+ }
2313
+ if (queue[0].sort) {
2314
+ queryParams.sort = queue[0].sort;
2315
+ }
2310
2316
  var pageQueryParams = typeof location !== 'undefined'
2311
2317
  ? QueryString.parseDeep(location.search.substr(1))
2312
2318
  : {}; // TODO: WHAT about SSR (this.request) ?