@superwall/cli 2.1.1 → 2.2.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 +9 -0
- package/dist/{apple-BHbX0jbn.js → apple-Bcr_PteR.js} +13 -13
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-4zhIBFRQ.js → billing-CWM1ds3K.js} +3 -3
- package/dist/{bind-CHLHmxgA.js → bind-DEYxsnZD.js} +4 -4
- package/dist/{build-5PQeSnNN.js → build--oQKfZU6.js} +6 -6
- package/dist/{client-BIvOmWPC.js → client-CimFymxG.js} +3 -3
- package/dist/{create-VK-pNfN7.js → create-BG9n4fvs.js} +22 -22
- package/dist/{create-BSNIFsnN.js → create-DTAyHkxb.js} +6 -6
- package/dist/create-kT2C9k4h.js +19 -0
- package/dist/{doctor-9JS96QkX.js → doctor-BkygMUe2.js} +6 -6
- package/dist/{drivers-BamBJ10Y.js → drivers-C6eXj5-r.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-eV7LEnSN.js → environment-CQn323uB.js} +1 -1
- package/dist/{existing-C8dSYHGk.js → existing-CvOluc9U.js} +2 -2
- package/dist/held-Bwkhufdj.js +16 -0
- package/dist/{held-BMisHn8F.js → held-QM7yfrXq.js} +6 -6
- package/dist/{integrate-VWtTNPCr.js → integrate-Ci_MLkQG.js} +21 -21
- package/dist/{login-BimbukE5.js → login-BIAWgdzM.js} +256 -33
- package/dist/{login-BmwG14LC.js → login-DLi71nJq.js} +1 -1
- package/dist/login-Dy9N5ZDH.js +16 -0
- package/dist/{lookup-k9EeOiZr.js → lookup-DZFrfzO0.js} +2 -2
- package/dist/{migrate-C86h6jeF.js → migrate-BKF1WckS.js} +21 -21
- package/dist/{notification-url-BVaTgWZ5.js → notification-url-erXQ1edb.js} +2 -2
- package/dist/{open-0tDCQOXC.js → open-BjvGVwJf.js} +10 -10
- package/dist/{org-DUwdrKPV.js → org-CvPGVSBF.js} +2 -2
- package/dist/{paths-BCbjCLP5.js → paths-oRuC18Kt.js} +1 -1
- package/dist/{playbook-oov9yV0q.js → playbook-CtTj1HBK.js} +10 -10
- package/dist/{promote-DPGPamkE.js → promote-BkJYISza.js} +16 -16
- package/dist/push-BIizJJOn.js +22 -0
- package/dist/{push-Cz4lJ8Qd.js → push-Ul2SW87i.js} +4 -4
- package/dist/{registry-CTczUigi.js → registry-OmPZ6dj0.js} +77 -36
- package/dist/{resources-B1qKDVXd.js → resources-FIrK7pE9.js} +1 -1
- package/dist/{run-DTPsVmFw.js → run-CwEY1eu5.js} +2 -2
- package/dist/{scan-Bb48xZqB.js → scan-CpbfZ2ju.js} +1 -1
- package/dist/scan-DjyvuWel.js +4 -0
- package/dist/{scope-B6UYGuwn.js → scope-BSqVfZvy.js} +4 -4
- package/dist/{selection-BbNk9r1q.js → selection-CHnVk8uw.js} +3 -3
- package/dist/server-BTveynqC.js +22 -0
- package/dist/{server-EYBMKAG1.js → server-D5xl5iKO.js} +66 -16
- package/dist/{session-xG9E8J2N.js → session-6lnJ0shD.js} +1 -1
- package/dist/{session-Crg9X-FI.js → session-BFwasPVq.js} +9 -8
- package/dist/session-Ds6tLC19.js +6 -0
- package/dist/skills/superwall/references/data-analytics.md +7 -8
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +2 -1
- package/dist/{skills-Dg3k6TRC.js → skills-B8uSuanf.js} +8 -8
- package/dist/{skills-BdMKE2uO.js → skills-D7sG0xom.js} +4 -4
- package/dist/{spinner-Ba3XhlMb.js → spinner-TZeZEeVv.js} +3 -3
- package/dist/{storage-CerJ5KLP.d.ts → storage-BbJF7z3l.d.ts} +1 -0
- package/dist/{storage-DIkYajce.js → storage-DqKJe13V.js} +12 -2
- package/dist/storekit-C_LFh8qy.js +16 -0
- package/dist/{storekit-C2UzIIMs.js → storekit-uyT3DWo4.js} +3 -3
- package/dist/{telemetry-CVP8O6Y3.js → telemetry-D_uIIuSk.js} +1 -1
- package/dist/{token-IWv2httm.js → token-BJsLGoSX.js} +1 -1
- package/dist/tools.d.ts +8 -8
- package/dist/tools.js +14 -4
- package/dist/{upgrade-1t3aQUxh.js → upgrade-BRM51As6.js} +1 -1
- package/dist/{upgrade-DLf0LJDh.js → upgrade-DV_rmhyV.js} +2 -2
- package/package.json +2 -2
- package/dist/create-oj3zXvHZ.js +0 -19
- package/dist/held-DeJW2gUk.js +0 -16
- package/dist/login-2JHCG6c1.js +0 -16
- package/dist/push-Chp21y3a.js +0 -22
- package/dist/scan-B1SkkUi7.js +0 -4
- package/dist/server-CwrZ-I1r.js +0 -22
- package/dist/session-DItGa4z0.js +0 -6
- package/dist/storekit-DHNxDDpA.js +0 -16
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { l as readJson, r as formatJson, u as state } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-
|
|
2
|
+
import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-CQn323uB.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/account/storage.ts
|
|
5
5
|
const sessionOrgName = (session) => {
|
|
6
6
|
return session?.authMethod === "api_key" ? session.orgName : void 0;
|
|
7
7
|
};
|
|
8
8
|
const FILE = "auth.json";
|
|
9
|
+
const PENDING_FILE = "pending-login.json";
|
|
10
|
+
function writePendingLogin(pending) {
|
|
11
|
+
state().write(PENDING_FILE, `${formatJson(pending)}\n`);
|
|
12
|
+
}
|
|
13
|
+
function readPendingLogin() {
|
|
14
|
+
return readJson(state(), PENDING_FILE) ?? null;
|
|
15
|
+
}
|
|
16
|
+
function removePendingLogin() {
|
|
17
|
+
state().remove(PENDING_FILE);
|
|
18
|
+
}
|
|
9
19
|
function writeSession(session) {
|
|
10
20
|
state().write(FILE, `${formatJson(session)}\n`);
|
|
11
21
|
}
|
|
@@ -28,4 +38,4 @@ function serializeSession(session) {
|
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
//#endregion
|
|
31
|
-
export {
|
|
41
|
+
export { resolveApiHost as a, writePendingLogin as c, removeSession as i, writeSession as l, readSession as n, serializeSession as o, removePendingLogin as r, sessionOrgName as s, readPendingLogin as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import "./client-CimFymxG.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./spinner-TZeZEeVv.js";
|
|
8
|
+
import "./ui-D_qf3Gvw.js";
|
|
9
|
+
import "./resources-FIrK7pE9.js";
|
|
10
|
+
import "./org-CvPGVSBF.js";
|
|
11
|
+
import "./lookup-DZFrfzO0.js";
|
|
12
|
+
import "./scope-BSqVfZvy.js";
|
|
13
|
+
import "./input-vi0bou04.js";
|
|
14
|
+
import { n as writeStoreKit, t as generateStoreKit } from "./storekit-uyT3DWo4.js";
|
|
15
|
+
|
|
16
|
+
export { generateStoreKit, writeStoreKit };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as formatJson } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { t as apiCall } from "./spinner-
|
|
3
|
-
import { m as listResource } from "./resources-
|
|
4
|
-
import { a as pickScope } from "./scope-
|
|
2
|
+
import { t as apiCall } from "./spinner-TZeZEeVv.js";
|
|
3
|
+
import { m as listResource } from "./resources-FIrK7pE9.js";
|
|
4
|
+
import { a as pickScope } from "./scope-BSqVfZvy.js";
|
|
5
5
|
import { r as textOf } from "./input-vi0bou04.js";
|
|
6
6
|
import { writeFileSync } from "node:fs";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST, v as VERSION } from "./environment-
|
|
1
|
+
import { S as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST, v as VERSION } from "./environment-CQn323uB.js";
|
|
2
2
|
import { h as writeTelemetryNoticeShown, l as telemetryNoticeShown, t as readAnonymousId } from "./config-BO1Y87kV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/support/telemetry.ts
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./storage-
|
|
1
|
+
import "./storage-BbJF7z3l.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/api/client.d.ts
|
|
4
4
|
|
|
@@ -21,13 +21,6 @@ type SuperwallApi = {
|
|
|
21
21
|
list<T>(path: string): Promise<T[]>;
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region src/core/state/store.d.ts
|
|
25
|
-
interface Store {
|
|
26
|
-
read(name: string): string | undefined;
|
|
27
|
-
write(name: string, text: string): void;
|
|
28
|
-
remove(name: string): void;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
24
|
//#region src/program/command.d.ts
|
|
32
25
|
|
|
33
26
|
interface JsonSchema {
|
|
@@ -40,6 +33,13 @@ interface JsonSchema {
|
|
|
40
33
|
additionalProperties?: boolean | JsonSchema;
|
|
41
34
|
}
|
|
42
35
|
//#endregion
|
|
36
|
+
//#region src/core/state/store.d.ts
|
|
37
|
+
interface Store {
|
|
38
|
+
read(name: string): string | undefined;
|
|
39
|
+
write(name: string, text: string): void;
|
|
40
|
+
remove(name: string): void;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
43
|
//#region src/tools.d.ts
|
|
44
44
|
interface ToolAnnotations {
|
|
45
45
|
title: string;
|