@builder.io/sdk 2.1.1 → 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.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 = "2.1.1-0";
121
+ var version = "2.1.1";
122
122
 
123
123
  var Subscription = /** @class */ (function () {
124
124
  function Subscription(listeners, listener) {
@@ -1047,7 +1047,7 @@ function setCookie(name, value, expires) {
1047
1047
  expiresString +
1048
1048
  '; path=/' +
1049
1049
  "; domain=".concat(getTopLevelDomain(location.hostname)) +
1050
- (secure ? ';secure ; SameSite=None' : '');
1050
+ (secure ? '; secure; SameSite=None' : '');
1051
1051
  }
1052
1052
  catch (err) {
1053
1053
  console.warn('Could not set cookie', err);
@@ -2299,6 +2299,12 @@ var Builder = /** @class */ (function () {
2299
2299
  if ('noTraverse' in queue[0]) {
2300
2300
  queryParams.noTraverse = queue[0].noTraverse;
2301
2301
  }
2302
+ if ('includeUnpublished' in queue[0]) {
2303
+ queryParams.includeUnpublished = queue[0].includeUnpublished;
2304
+ }
2305
+ if (queue[0].sort) {
2306
+ queryParams.sort = queue[0].sort;
2307
+ }
2302
2308
  var pageQueryParams = typeof location !== 'undefined'
2303
2309
  ? QueryString.parseDeep(location.search.substr(1))
2304
2310
  : {}; // TODO: WHAT about SSR (this.request) ?