@followgate/js 0.9.5 → 0.9.6

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/dist/index.js CHANGED
@@ -643,7 +643,7 @@ var FollowGateClient = class {
643
643
  renderUsernameStep() {
644
644
  const content = this.getContentElement();
645
645
  if (!content) return;
646
- const handle = this.config?.twitter?.handle;
646
+ const handle = this.serverConfig?.targetHandle || this.config?.twitter?.handle;
647
647
  const hasRepost = !!this.config?.twitter?.tweetId;
648
648
  const allowSkip = this.serverConfig?.allowSkip ?? false;
649
649
  let explanationText = handle ? `Complete a quick follow${hasRepost ? " & repost" : ""} on X for @${handle} to unlock access.` : `Complete a quick social action to unlock access.`;
package/dist/index.mjs CHANGED
@@ -617,7 +617,7 @@ var FollowGateClient = class {
617
617
  renderUsernameStep() {
618
618
  const content = this.getContentElement();
619
619
  if (!content) return;
620
- const handle = this.config?.twitter?.handle;
620
+ const handle = this.serverConfig?.targetHandle || this.config?.twitter?.handle;
621
621
  const hasRepost = !!this.config?.twitter?.tweetId;
622
622
  const allowSkip = this.serverConfig?.allowSkip ?? false;
623
623
  let explanationText = handle ? `Complete a quick follow${hasRepost ? " & repost" : ""} on X for @${handle} to unlock access.` : `Complete a quick social action to unlock access.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followgate/js",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "FollowGate SDK - Grow your audience with every download. Require social actions (follow, repost) before users can access your app.",
5
5
  "author": "FollowGate <hello@followgate.app>",
6
6
  "homepage": "https://followgate.app",