@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.
- package/README.md +416 -223
- package/docs/shopify-setup.md +1 -1
- package/package.json +2 -1
- package/src/access-admin.ts +754 -0
- package/src/access.ts +84 -18
- package/src/admin-api.ts +9 -2
- package/src/agents.ts +7 -3
- package/src/astro-modules.d.ts +4 -0
- package/src/components/AccessBadge.astro +7 -5
- package/src/components/Account.astro +1 -1
- package/src/components/Cart.astro +1 -1
- package/src/components/CartView.astro +1 -1
- package/src/components/Collection.astro +1 -1
- package/src/components/Content.astro +7 -3
- package/src/components/Contribution.astro +1 -1
- package/src/components/Gate.astro +4 -2
- package/src/components/LockedPanel.astro +1 -1
- package/src/components/MemberCard.astro +1 -1
- package/src/components/Notices.astro +2 -1
- package/src/components/Plan.astro +1 -1
- package/src/components/Preferences.astro +1 -1
- package/src/components/Product.astro +1 -1
- package/src/components/YourData.astro +1 -1
- package/src/config.ts +17 -5
- package/src/descriptor.ts +7 -0
- package/src/events.ts +3 -0
- package/src/features.ts +1 -1
- package/src/files.ts +1 -1
- package/src/guard.ts +5 -3
- package/src/index.ts +4 -1
- package/src/log.ts +96 -0
- package/src/monitor.ts +560 -0
- package/src/plugin.ts +202 -86
- package/src/rate-limit-cloudflare.ts +20 -0
- package/src/rate-limit.ts +66 -0
- package/src/routes/callback.ts +21 -4
- package/src/routes/preferences.ts +2 -2
- package/src/routes/privacy.ts +2 -2
- package/src/routes/webhook.ts +24 -11
- package/src/settings.ts +195 -0
- package/src/site-config.ts +38 -5
- package/src/staff.ts +12 -23
- package/src/storage.ts +12 -0
- package/src/text.ts +1 -0
- package/src/version.ts +1 -1
- package/src/webhooks.ts +2 -1
package/docs/shopify-setup.md
CHANGED
|
@@ -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#
|
|
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.
|
|
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",
|