@quintype/framework 7.34.7 → 7.34.8-remove-custom-scripts.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.34.7",
3
+ "version": "7.34.8-remove-custom-scripts.0",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -125,7 +125,7 @@ function loadDataForPageType(
125
125
  .then((result) => {
126
126
  if (result && result.data) {
127
127
  if (result.data[ABORT_HANDLER] || (result.data.error && result.data.error.message)) {
128
- return null
128
+ return null;
129
129
  }
130
130
  }
131
131
  return result;
@@ -195,6 +195,8 @@ exports.handleIsomorphicShell = async function handleIsomorphicShell(
195
195
 
196
196
  function createStoreFromResult(url, result, opts = {}) {
197
197
  const isBotRequest = _.get(url, "query.botrequest", false);
198
+ const nothirdparty = _.get(url, "query.nothirdparty", false);
199
+ console.log("log--nothirdparty", nothirdparty);
198
200
  const qt = {
199
201
  pageType: result.pageType || opts.defaultPageType,
200
202
  subPageType: result.subPageType,
@@ -204,6 +206,7 @@ function createStoreFromResult(url, result, opts = {}) {
204
206
  primaryHostUrl: result.primaryHostUrl,
205
207
  isBotRequest: isBotRequest,
206
208
  lazyLoadImageMargin: opts.lazyLoadImageMargin,
209
+ removeThirdPartyScripts: nothirdparty,
207
210
  };
208
211
  return createBasicStore(result, qt, opts);
209
212
  }