@redeemid/emdash 0.0.15 → 0.0.17

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 (46) hide show
  1. package/README.md +416 -223
  2. package/docs/shopify-setup.md +1 -1
  3. package/package.json +2 -1
  4. package/src/access-admin.ts +754 -0
  5. package/src/access.ts +84 -18
  6. package/src/admin-api.ts +9 -2
  7. package/src/agents.ts +7 -3
  8. package/src/astro-modules.d.ts +4 -0
  9. package/src/components/AccessBadge.astro +7 -5
  10. package/src/components/Account.astro +1 -1
  11. package/src/components/Cart.astro +1 -1
  12. package/src/components/CartView.astro +1 -1
  13. package/src/components/Collection.astro +1 -1
  14. package/src/components/Content.astro +7 -3
  15. package/src/components/Contribution.astro +1 -1
  16. package/src/components/Gate.astro +4 -2
  17. package/src/components/LockedPanel.astro +1 -1
  18. package/src/components/MemberCard.astro +1 -1
  19. package/src/components/Notices.astro +2 -1
  20. package/src/components/Plan.astro +1 -1
  21. package/src/components/Preferences.astro +1 -1
  22. package/src/components/Product.astro +1 -1
  23. package/src/components/YourData.astro +1 -1
  24. package/src/config.ts +17 -5
  25. package/src/descriptor.ts +7 -0
  26. package/src/events.ts +3 -0
  27. package/src/features.ts +1 -1
  28. package/src/files.ts +1 -1
  29. package/src/guard.ts +5 -3
  30. package/src/index.ts +4 -1
  31. package/src/log.ts +96 -0
  32. package/src/monitor.ts +560 -0
  33. package/src/plugin.ts +202 -86
  34. package/src/rate-limit-cloudflare.ts +20 -0
  35. package/src/rate-limit.ts +66 -0
  36. package/src/routes/callback.ts +21 -4
  37. package/src/routes/preferences.ts +2 -2
  38. package/src/routes/privacy.ts +2 -2
  39. package/src/routes/webhook.ts +24 -11
  40. package/src/settings.ts +195 -0
  41. package/src/site-config.ts +38 -5
  42. package/src/staff.ts +12 -23
  43. package/src/storage.ts +12 -0
  44. package/src/text.ts +1 -0
  45. package/src/version.ts +1 -1
  46. package/src/webhooks.ts +2 -1
@@ -35,7 +35,7 @@ Shopify's compliance topics (`customers/data_request`, `customers/redact`, `shop
35
35
 
36
36
  ## 3. The site
37
37
 
38
- Add the package and config as in the [README](../README.md#install), with `shop` set to the store's domain. A custom customer-account domain works as well as `*.myshopify.com`.
38
+ Add the package and config as in the [README](../README.md#quick-start), with `shop` set to the store's domain. A custom customer-account domain works as well as `*.myshopify.com`.
39
39
 
40
40
  Set the secrets. On Cloudflare Workers:
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redeemid/emdash",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Shopify customer accounts, member levels and paywalls for EmDash sites. Shopify runs commerce; EmDash runs content.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -14,6 +14,7 @@
14
14
  ".": "./src/index.ts",
15
15
  "./access": "./src/access.ts",
16
16
  "./guard.ts": "./src/guard.ts",
17
+ "./rate-limit-cloudflare.ts": "./src/rate-limit-cloudflare.ts",
17
18
  "./storefront": "./src/storefront.ts",
18
19
  "./features": "./src/features.ts",
19
20
  "./events": "./src/events.ts",