@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/CHANGELOG.md +23 -17
- package/dist/index.browser.js +8 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +8 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +39 -8
- package/dist/src/builder.class.js +7 -1
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/classes/cookies.class.d.ts +1 -1
- package/dist/src/functions/server-only-require.function.d.ts +1 -1
- package/dist/src/url.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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) ?
|