@quintype/framework 7.10.1 → 7.10.4

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 CHANGED
@@ -2,9 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [7.10.1](https://github.com/quintype/quintype-node-framework/compare/v7.10.2...v7.10.1) (2022-10-04)
5
+ ### [7.10.4](https://github.com/quintype/quintype-node-framework/compare/v7.10.3...v7.10.4) (2022-10-04)
6
6
 
7
- ### [7.10.2](https://github.com/quintype/quintype-node-framework/compare/v7.8.1...v7.10.2) (2022-10-04)
7
+ ## [7.10.0](https://github.com/quintype/quintype-node-framework/compare/v7.7.7...v7.10.0) (2022-10-04)
8
+
9
+
10
+ ### Features
11
+
12
+ * add video support to web stories ([#322](https://github.com/quintype/quintype-node-framework/issues/322)) ([f41b82b](https://github.com/quintype/quintype-node-framework/commit/f41b82be8285b555970527204ec6478f21c47782))
13
+ * **SW:** Disable sw shell ([#321](https://github.com/quintype/quintype-node-framework/issues/321)) ([6d04bc8](https://github.com/quintype/quintype-node-framework/commit/6d04bc87dd42c647ec9763eca430ada2f4a4d8ea))
14
+
15
+ ## [7.9.0](https://github.com/quintype/quintype-node-framework/compare/v7.8.0...v7.9.0) (2022-10-03)
16
+
17
+
18
+ ### Features
19
+
20
+ * **SW:** Disable sw shell ([#321](https://github.com/quintype/quintype-node-framework/issues/321)) ([6d04bc8](https://github.com/quintype/quintype-node-framework/commit/6d04bc87dd42c647ec9763eca430ada2f4a4d8ea))
8
21
 
9
22
  ## [7.8.0](https://github.com/quintype/quintype-node-framework/compare/v7.7.7...v7.8.0) (2022-09-19)
10
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.10.1",
3
+ "version": "7.10.4",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -31,8 +31,8 @@
31
31
  "homepage": "https://github.com/quintype/quintype-node-framework#readme",
32
32
  "dependencies": {
33
33
  "@ampproject/toolbox-optimizer": "2.8.3",
34
- "@quintype/amp": "^2.6.0",
35
- "@quintype/backend": "^2.3.2",
34
+ "@quintype/amp": "^2.5.0",
35
+ "@quintype/backend": "^2.3.1",
36
36
  "@quintype/components": "^3.0.0",
37
37
  "@quintype/prerender-node": "^3.2.26",
38
38
  "@quintype/seo": "^1.39.0",
@@ -122,7 +122,7 @@ function getClientStub({
122
122
  } = {}) {
123
123
  return {
124
124
  getCollectionBySlug,
125
- getStoryById
125
+ getStoryById,
126
126
  };
127
127
  }
128
128
  const dummyPublisherConfig = {
@@ -155,7 +155,7 @@ describe("getInitialInlineConfig method of InfiniteScrollAmp helper function", f
155
155
  publisherConfig: dummyPublisherConfig,
156
156
  });
157
157
  const inlineConfig = await infiniteScrollAmp.getInitialInlineConfig({
158
- storyId: 1111,
158
+ storyId: 2222,
159
159
  });
160
160
  assert.strictEqual(inlineConfig, null);
161
161
  });
@@ -174,7 +174,7 @@ describe("getInitialInlineConfig method of InfiniteScrollAmp helper function", f
174
174
  publisherConfig: dummyPublisherConfig,
175
175
  });
176
176
  const inlineConfig = await infiniteScrollAmp.getInitialInlineConfig({
177
- storyId: 1111,
177
+ storyId: 2222,
178
178
  });
179
179
  assert.strictEqual(inlineConfig, null);
180
180
  });
@@ -186,7 +186,7 @@ describe("getInitialInlineConfig method of InfiniteScrollAmp helper function", f
186
186
  publisherConfig: dummyPublisherConfig,
187
187
  });
188
188
  const inlineConfig = await infiniteScrollAmp.getInitialInlineConfig({
189
- storyId: 1111,
189
+ storyId: 2222,
190
190
  });
191
191
  assert.strictEqual(false, /sports\/bb/.test(inlineConfig));
192
192
  assert.strictEqual(false, /bb\/b.jpg/.test(inlineConfig));
@@ -199,7 +199,7 @@ describe("getInitialInlineConfig method of InfiniteScrollAmp helper function", f
199
199
  publisherConfig: dummyPublisherConfig,
200
200
  });
201
201
  const inlineConfig = await infiniteScrollAmp.getInitialInlineConfig({
202
- storyId: 1111,
202
+ storyId: 3333,
203
203
  });
204
204
  assert.strictEqual(false, /sports\/bb/.test(inlineConfig));
205
205
  assert.strictEqual(false, /bb\/b.jpg/.test(inlineConfig));
@@ -213,7 +213,7 @@ describe("getInitialInlineConfig method of InfiniteScrollAmp helper function", f
213
213
  publisherConfig: dummyPublisherConfig,
214
214
  });
215
215
  const inlineConfig = await infiniteScrollAmp.getInitialInlineConfig({
216
- storyId: 1111,
216
+ storyId: 2222,
217
217
  });
218
218
  function isInlineConfigStructureValid(jsonStr) {
219
219
  const stories = JSON.parse(jsonStr);
@@ -240,7 +240,7 @@ describe("getResponse method of InfiniteScrollAmp helper function", function ()
240
240
  publisherConfig: dummyPublisherConfig,
241
241
  queryParams: { foo: "bar" },
242
242
  });
243
- const jsonResponse = await infiniteScrollAmp.getResponse();
243
+ const jsonResponse = await infiniteScrollAmp.getResponse({ itemsTaken: 2 });
244
244
  assert.strictEqual(jsonResponse instanceof Error, true);
245
245
  assert.throws(() => {
246
246
  throw new Error(`Query param "story-id" missing`);
@@ -259,7 +259,7 @@ describe("getResponse method of InfiniteScrollAmp helper function", function ()
259
259
  publisherConfig: dummyPublisherConfig,
260
260
  queryParams: { "story-id": 2222 },
261
261
  });
262
- const jsonResponse = await infiniteScrollAmp.getResponse();
262
+ const jsonResponse = await infiniteScrollAmp.getResponse({ itemsTaken: 2 });
263
263
  assert.strictEqual(jsonResponse instanceof Error, true);
264
264
  });
265
265
  it("should remove current story from response", async function () {
@@ -270,7 +270,7 @@ describe("getResponse method of InfiniteScrollAmp helper function", function ()
270
270
  publisherConfig: dummyPublisherConfig,
271
271
  queryParams: { "story-id": 4444 },
272
272
  });
273
- const jsonResponse = await infiniteScrollAmp.getResponse();
273
+ const jsonResponse = await infiniteScrollAmp.getResponse({ itemsTaken: 2 });
274
274
  assert.strictEqual(false, /sports\/dd/.test(jsonResponse));
275
275
  assert.strictEqual(false, /dd\/d.jpg/.test(jsonResponse));
276
276
  });
@@ -282,7 +282,7 @@ describe("getResponse method of InfiniteScrollAmp helper function", function ()
282
282
  publisherConfig: dummyPublisherConfig,
283
283
  queryParams: { "story-id": 4444 },
284
284
  });
285
- const jsonResponse = await infiniteScrollAmp.getResponse();
285
+ const jsonResponse = await infiniteScrollAmp.getResponse({ itemsTaken: 2 });
286
286
  assert.strictEqual(false, /sports\/bb/.test(jsonResponse));
287
287
  assert.strictEqual(false, /bb\/b.jpg/.test(jsonResponse));
288
288
  });
@@ -295,8 +295,7 @@ describe("getResponse method of InfiniteScrollAmp helper function", function ()
295
295
  publisherConfig: dummyPublisherConfig,
296
296
  queryParams: { "story-id": 4444 },
297
297
  });
298
- const jsonResponse = await infiniteScrollAmp.getResponse();
299
-
298
+ const jsonResponse = await infiniteScrollAmp.getResponse({ itemsTaken: 2 });
300
299
  function isJsonConfigStructureValid(jsonStr) {
301
300
  const parsed = JSON.parse(jsonStr);
302
301
  const stories = parsed.pages;