@whop/cli 0.15.0 → 0.16.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.
- package/README.md +2 -2
- package/dist/index.js +9934 -4528
- package/dist/index.js.map +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +37 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop-accounts/SKILL.md +24 -8
- package/skills/whop-apps/SKILL.md +1 -1
- package/skills/whop-audiences/SKILL.md +3 -3
- package/skills/whop-bounties/SKILL.md +2 -0
- package/skills/whop-bounty-submissions/SKILL.md +3 -3
- package/skills/whop-cards/SKILL.md +2 -2
- package/skills/whop-exports/SKILL.md +2 -2
- package/skills/whop-notifications/SKILL.md +1 -1
- package/skills/whop-payment-method-domains/SKILL.md +1 -1
- package/skills/whop-payments/SKILL.md +1 -1
- package/skills/whop-payouts/SKILL.md +4 -4
- package/skills/whop-people/SKILL.md +1 -1
- package/skills/whop-plans/SKILL.md +2 -0
- package/skills/whop-products/SKILL.md +1 -0
- package/skills/whop-recommended-actions/SKILL.md +19 -1
- package/skills/whop-setup-intents/SKILL.md +1 -1
- package/skills/whop-stats/SKILL.md +2 -0
- package/skills/whop-verifications/SKILL.md +2 -2
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
|
@@ -788,7 +788,40 @@ function pack(distDir) {
|
|
|
788
788
|
`[whop] packed ${client.length + server.length} files \u2192 dist/${OUTPUT_ZIP} (sha256 ${checksum.slice(0, 12)}\u2026)`
|
|
789
789
|
);
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function whopDevServer() {
|
|
792
|
+
return {
|
|
793
|
+
name: "whop-dev-server",
|
|
794
|
+
apply: "serve",
|
|
795
|
+
config() {
|
|
796
|
+
const port = Number(process.env.WHOP_DEV_PORT);
|
|
797
|
+
const publicOrigin = process.env.WHOP_DEV_PUBLIC_ORIGIN;
|
|
798
|
+
const server = {};
|
|
799
|
+
if (Number.isFinite(port) && port > 0) {
|
|
800
|
+
server.port = port;
|
|
801
|
+
server.strictPort = true;
|
|
802
|
+
}
|
|
803
|
+
if (process.env.WHOP_DEV_HOST) server.host = process.env.WHOP_DEV_HOST;
|
|
804
|
+
if (publicOrigin) {
|
|
805
|
+
let parsed;
|
|
806
|
+
try {
|
|
807
|
+
parsed = new URL(publicOrigin);
|
|
808
|
+
} catch {
|
|
809
|
+
parsed = void 0;
|
|
810
|
+
}
|
|
811
|
+
if (parsed) {
|
|
812
|
+
server.allowedHosts = [parsed.hostname];
|
|
813
|
+
server.hmr = {
|
|
814
|
+
protocol: parsed.protocol === "https:" ? "wss" : "ws",
|
|
815
|
+
host: parsed.hostname,
|
|
816
|
+
clientPort: parsed.port ? Number(parsed.port) : parsed.protocol === "https:" ? 443 : 80
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return Object.keys(server).length > 0 ? { server } : {};
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function whopPack() {
|
|
792
825
|
let distDir = "dist";
|
|
793
826
|
return {
|
|
794
827
|
name: "whop-hosting",
|
|
@@ -803,6 +836,9 @@ function whop() {
|
|
|
803
836
|
}
|
|
804
837
|
};
|
|
805
838
|
}
|
|
839
|
+
function whop() {
|
|
840
|
+
return [whopDevServer(), whopPack()];
|
|
841
|
+
}
|
|
806
842
|
var vite_default = whop;
|
|
807
843
|
export {
|
|
808
844
|
vite_default as default,
|