@quintype/framework 7.18.2-pub-upd-on.0 → 7.18.2-webengage.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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/server/routes.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.18.2-pub-upd-on.0",
3
+ "version": "7.18.2-webengage.0",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -8,6 +8,7 @@
8
8
  "npm": "^8.5.0"
9
9
  },
10
10
  "scripts": {
11
+ "prepublishOnly": "npm test && ./bin-dev-scripts/standard-version-release.sh",
11
12
  "test": "NODE_ENV=test npx mocha --recursive --require ./test/babel",
12
13
  "watch-test": "NODE_ENV=test npx mocha --recursive --watch --require ./test/babel",
13
14
  "coverage": "nyc --all npm test",
@@ -30,7 +31,7 @@
30
31
  "homepage": "https://github.com/quintype/quintype-node-framework#readme",
31
32
  "dependencies": {
32
33
  "@ampproject/toolbox-optimizer": "2.8.3",
33
- "@quintype/amp": "2.10.0-pub-upd-on.0",
34
+ "@quintype/amp": "^2.9.1",
34
35
  "@quintype/backend": "^2.3.3",
35
36
  "@quintype/components": "^3.3.0",
36
37
  "@quintype/prerender-node": "^3.2.26",
package/server/routes.js CHANGED
@@ -311,6 +311,7 @@ exports.isomorphicRoutes = function isomorphicRoutes(
311
311
  handleNotFound = true,
312
312
  redirectRootLevelStories = false,
313
313
  mobileApiEnabled = true,
314
+ feEnabled = true,
314
315
  mobileConfigFields = {},
315
316
  templateOptions = false,
316
317
  lightPages = false,
@@ -426,6 +427,10 @@ exports.isomorphicRoutes = function isomorphicRoutes(
426
427
 
427
428
  app.post("/register-fcm-topic", bodyParser.json(), withConfig(registerFCMTopic, { publisherConfig, fcmServerKey }));
428
429
 
430
+ app.post("/push-notification", (req, res) => {
431
+ res.json({ status: "webengage-notified" });
432
+ });
433
+
429
434
  if (manifestFn) {
430
435
  app.get("/manifest.json", withConfig(handleManifest, { manifestFn, logError }));
431
436
  }