@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/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 +2 -3
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.
|
|
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
|
|
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) ?
|