wiki-plugin-shoppe 0.0.36 → 0.0.37

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": "wiki-plugin-shoppe",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "Multi-tenant digital goods shoppe for federated wiki, powered by Sanora",
5
5
  "keywords": [
6
6
  "wiki",
package/server/server.js CHANGED
@@ -3180,6 +3180,8 @@ async function startServer(params) {
3180
3180
  ? `${ebookUrl}?pubKey=${encodeURIComponent(buyerPubKey)}&timestamp=${encodeURIComponent(buyerTimestamp)}&signature=${encodeURIComponent(buyerSignature)}`
3181
3181
  : ebookUrl;
3182
3182
 
3183
+ const clipUrl = `${wikiOrigin}${req.path}?${new URLSearchParams(req.query).toString()}`;
3184
+
3183
3185
  const html = fillTemplate(templateHtml, {
3184
3186
  title: product.title || title,
3185
3187
  description: product.description || '',
@@ -3196,7 +3198,8 @@ async function startServer(params) {
3196
3198
  shoppeUrl,
3197
3199
  payees,
3198
3200
  tenantUuid: tenant.uuid,
3199
- keywords: extractKeywords(product)
3201
+ keywords: extractKeywords(product),
3202
+ clipUrl,
3200
3203
  });
3201
3204
 
3202
3205
  res.set('Content-Type', 'text/html');
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.00, maximum-scale=1.00, minimum-scale=1.00">
7
7
  <!-- Shoppere App Clip — triggers on iOS Safari when user visits this buy page -->
8
8
  <meta name="apple-itunes-app"
9
- content="app-id=6760954663, app-clip-bundle-id=app.foures.shoppere.clip, app-clip-display=card">
9
+ content="app-id=6760954663, app-clip-bundle-id=app.foures.shoppere.shoppere, app-clip-display=card, app-clip-url={{clipUrl}}">
10
10
  <meta name="twitter:title" content="{{title}}">
11
11
  <meta name="description" content="{{description}}">
12
12
  <meta name="keywords" content="{{keywords}}">