@cartridge/controller 0.5.1 → 0.5.2

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 (67) hide show
  1. package/.turbo/turbo-build$colon$deps.log +116 -115
  2. package/.turbo/turbo-build.log +120 -0
  3. package/.turbo/turbo-format.log +25 -0
  4. package/dist/account.d.ts +2 -1
  5. package/dist/account.js +19 -4
  6. package/dist/account.js.map +1 -1
  7. package/dist/constants.d.ts +2 -1
  8. package/dist/constants.js +2 -0
  9. package/dist/constants.js.map +1 -1
  10. package/dist/controller.d.ts +2 -1
  11. package/dist/controller.js +27 -184
  12. package/dist/controller.js.map +1 -1
  13. package/dist/iframe/base.d.ts +2 -1
  14. package/dist/iframe/base.js +3 -177
  15. package/dist/iframe/base.js.map +1 -1
  16. package/dist/iframe/index.d.ts +2 -1
  17. package/dist/iframe/index.js +8 -180
  18. package/dist/iframe/index.js.map +1 -1
  19. package/dist/iframe/keychain.d.ts +2 -1
  20. package/dist/iframe/keychain.js +3 -177
  21. package/dist/iframe/keychain.js.map +1 -1
  22. package/dist/iframe/profile.d.ts +2 -1
  23. package/dist/iframe/profile.js +8 -180
  24. package/dist/iframe/profile.js.map +1 -1
  25. package/dist/index.d.ts +5 -2
  26. package/dist/index.js +166 -185
  27. package/dist/index.js.map +1 -1
  28. package/dist/lookup.d.ts +4 -0
  29. package/dist/lookup.js +56 -0
  30. package/dist/lookup.js.map +1 -0
  31. package/dist/provider.d.ts +2 -1
  32. package/dist/session/account.d.ts +2 -2
  33. package/dist/session/account.js +6 -170
  34. package/dist/session/account.js.map +1 -1
  35. package/dist/session/index.d.ts +2 -2
  36. package/dist/session/index.js +20 -183
  37. package/dist/session/index.js.map +1 -1
  38. package/dist/session/provider.d.ts +4 -3
  39. package/dist/session/provider.js +19 -14
  40. package/dist/session/provider.js.map +1 -1
  41. package/dist/telegram/provider.d.ts +7 -4
  42. package/dist/telegram/provider.js +19 -14
  43. package/dist/telegram/provider.js.map +1 -1
  44. package/dist/{types-ikHqoYmG.d.ts → types-1WsOoNO2.d.ts} +17 -37
  45. package/dist/types.d.ts +2 -1
  46. package/dist/types.js.map +1 -1
  47. package/dist/utils.d.ts +5 -5
  48. package/dist/utils.js +80 -14
  49. package/dist/utils.js.map +1 -1
  50. package/package.json +5 -3
  51. package/src/account.ts +2 -1
  52. package/src/constants.ts +1 -0
  53. package/src/controller.ts +1 -1
  54. package/src/iframe/base.ts +3 -9
  55. package/src/iframe/profile.ts +5 -3
  56. package/src/index.ts +3 -1
  57. package/src/lookup.ts +68 -0
  58. package/src/session/account.ts +0 -1
  59. package/src/session/index.ts +0 -2
  60. package/src/session/provider.ts +4 -4
  61. package/src/telegram/provider.ts +7 -7
  62. package/src/types.ts +23 -44
  63. package/src/utils.ts +100 -16
  64. package/dist/presets.d.ts +0 -8
  65. package/dist/presets.js +0 -170
  66. package/dist/presets.js.map +0 -1
  67. package/src/presets.ts +0 -167
@@ -1,115 +1,116 @@
1
-
2
- > @cartridge/controller@0.5.1 build:deps /home/runner/work/controller/controller/packages/controller
3
- > tsup --dts-resolve
4
-
5
- CLI Building entry: src/account.ts, src/constants.ts, src/controller.ts, src/errors.ts, src/icon.ts, src/index.ts, src/presets.ts, src/provider.ts, src/types.ts, src/utils.ts, src/iframe/base.ts, src/iframe/index.ts, src/iframe/keychain.ts, src/iframe/profile.ts, src/session/account.ts, src/session/backend.ts, src/session/index.ts, src/session/provider.ts, src/telegram/backend.ts, src/telegram/provider.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.3.0
8
- CLI Using tsup config: /home/runner/work/controller/controller/packages/controller/package.json
9
- CLI Target: es2020
10
- CLI Cleaning output folder
11
- ESM Build start
12
- ESM dist/account.js 2.61 KB
13
- ESM dist/iframe/base.js 7.17 KB
14
- ESM dist/session/account.js 5.86 KB
15
- ESM dist/telegram/backend.js 1.27 KB
16
- ESM dist/controller.js 35.73 KB
17
- ESM dist/errors.js 271.00 B
18
- ESM dist/constants.js 194.00 B
19
- ESM dist/icon.js 15.15 KB
20
- ESM dist/index.js 36.16 KB
21
- ESM dist/presets.js 3.71 KB
22
- ESM dist/provider.js 19.16 KB
23
- ESM dist/types.js 437.00 B
24
- ESM dist/utils.js 1.08 KB
25
- ESM dist/iframe/index.js 8.51 KB
26
- ESM dist/iframe/keychain.js 7.64 KB
27
- ESM dist/iframe/profile.js 8.04 KB
28
- ESM dist/session/backend.js 1.18 KB
29
- ESM dist/session/index.js 28.54 KB
30
- ESM dist/session/provider.js 24.26 KB
31
- ESM dist/telegram/provider.js 23.82 KB
32
- ESM dist/account.js.map 5.08 KB
33
- ESM dist/iframe/base.js.map 13.18 KB
34
- ESM dist/session/account.js.map 15.68 KB
35
- ESM dist/telegram/backend.js.map 1.98 KB
36
- ESM dist/errors.js.map 385.00 B
37
- ESM dist/constants.js.map 245.00 B
38
- ESM dist/controller.js.map 54.72 KB
39
- ESM dist/icon.js.map 15.20 KB
40
- ESM dist/presets.js.map 6.45 KB
41
- ESM dist/provider.js.map 22.49 KB
42
- ESM dist/types.js.map 5.23 KB
43
- ESM dist/index.js.map 59.88 KB
44
- ESM dist/utils.js.map 1.96 KB
45
- ESM dist/iframe/index.js.map 16.17 KB
46
- ESM dist/iframe/keychain.js.map 14.32 KB
47
- ESM dist/iframe/profile.js.map 15.17 KB
48
- ESM dist/session/backend.js.map 2.88 KB
49
- ESM dist/session/index.js.map 44.48 KB
50
- ESM dist/session/provider.js.map 32.62 KB
51
- ESM dist/telegram/provider.js.map 31.79 KB
52
- ESM ⚡️ Build success in 59ms
53
- DTS Build start
54
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
55
-
56
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
57
-
58
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
59
-
60
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
61
-
62
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
63
-
64
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
65
-
66
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
67
-
68
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
69
-
70
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
71
-
72
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
73
-
74
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
75
-
76
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
77
-
78
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
79
-
80
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
81
-
82
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
83
-
84
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
85
-
86
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
87
-
88
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
89
-
90
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
91
-
92
- ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
93
-
94
- DTS ⚡️ Build success in 5274ms
95
- DTS dist/index.d.ts 885.00 B
96
- DTS dist/session/index.d.ts 903.00 B
97
- DTS dist/account.d.ts 1.59 KB
98
- DTS dist/constants.d.ts 154.00 B
99
- DTS dist/icon.d.ts 15.11 KB
100
- DTS dist/controller.d.ts 1.04 KB
101
- DTS dist/utils.d.ts 501.00 B
102
- DTS dist/session/account.d.ts 1.99 KB
103
- DTS dist/session/backend.d.ts 2.29 KB
104
- DTS dist/errors.d.ts 100.00 B
105
- DTS dist/presets.d.ts 229.00 B
106
- DTS dist/session/provider.d.ts 924.00 B
107
- DTS dist/provider.d.ts 743.00 B
108
- DTS dist/telegram/backend.d.ts 1.27 KB
109
- DTS dist/telegram/provider.d.ts 706.00 B
110
- DTS dist/iframe/base.d.ts 151.00 B
111
- DTS dist/iframe/keychain.d.ts 139.00 B
112
- DTS dist/iframe/profile.d.ts 165.00 B
113
- DTS dist/iframe/index.d.ts 219.00 B
114
- DTS dist/types.d.ts 722.00 B
115
- DTS dist/types-ikHqoYmG.d.ts 6.70 KB
1
+
2
+
3
+ > @cartridge/controller@0.5.2 build:deps /home/broody/development/controller/packages/controller
4
+ > tsup --dts-resolve
5
+
6
+ CLI Building entry: src/account.ts, src/constants.ts, src/controller.ts, src/errors.ts, src/icon.ts, src/index.ts, src/lookup.ts, src/provider.ts, src/types.ts, src/utils.ts, src/iframe/base.ts, src/iframe/index.ts, src/iframe/keychain.ts, src/iframe/profile.ts, src/telegram/backend.ts, src/telegram/provider.ts, src/session/account.ts, src/session/backend.ts, src/session/index.ts, src/session/provider.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.3.0
9
+ CLI Using tsup config: /home/broody/development/controller/packages/controller/package.json
10
+ CLI Target: es2020
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ ESM dist/constants.js 247.00 B
14
+ ESM dist/icon.js 15.15 KB
15
+ ESM dist/account.js 2.81 KB
16
+ ESM dist/controller.js 32.23 KB
17
+ ESM dist/errors.js 271.00 B
18
+ ESM dist/index.js 36.44 KB
19
+ ESM dist/lookup.js 1.59 KB
20
+ ESM dist/provider.js 19.16 KB
21
+ ESM dist/types.js 437.00 B
22
+ ESM dist/utils.js 2.75 KB
23
+ ESM dist/iframe/keychain.js 3.86 KB
24
+ ESM dist/iframe/base.js 3.39 KB
25
+ ESM dist/iframe/index.js 4.81 KB
26
+ ESM dist/telegram/backend.js 1.27 KB
27
+ ESM dist/telegram/provider.js 23.91 KB
28
+ ESM dist/session/backend.js 1.18 KB
29
+ ESM dist/session/account.js 2.25 KB
30
+ ESM dist/session/index.js 24.95 KB
31
+ ESM dist/session/provider.js 24.35 KB
32
+ ESM dist/iframe/profile.js 4.34 KB
33
+ ESM dist/icon.js.map 15.20 KB
34
+ ESM dist/account.js.map 8.81 KB
35
+ ESM dist/constants.js.map 315.00 B
36
+ ESM dist/errors.js.map 385.00 B
37
+ ESM dist/controller.js.map 52.09 KB
38
+ ESM dist/lookup.js.map 3.49 KB
39
+ ESM dist/index.js.map 61.84 KB
40
+ ESM dist/types.js.map 4.66 KB
41
+ ESM dist/provider.js.map 22.49 KB
42
+ ESM dist/utils.js.map 5.64 KB
43
+ ESM dist/iframe/base.js.map 6.58 KB
44
+ ESM dist/iframe/keychain.js.map 7.78 KB
45
+ ESM dist/iframe/index.js.map 9.77 KB
46
+ ESM dist/telegram/backend.js.map 1.98 KB
47
+ ESM dist/session/backend.js.map 2.88 KB
48
+ ESM dist/iframe/profile.js.map 8.77 KB
49
+ ESM dist/session/index.js.map 40.10 KB
50
+ ESM dist/session/provider.js.map 35.18 KB
51
+ ESM dist/session/account.js.map 11.10 KB
52
+ ESM dist/telegram/provider.js.map 34.36 KB
53
+ ESM ⚡️ Build success in 41ms
54
+ DTS Build start
55
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
56
+
57
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
58
+
59
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
60
+
61
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
62
+
63
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
64
+
65
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
66
+
67
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
68
+
69
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
70
+
71
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
72
+
73
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
74
+
75
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
76
+
77
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
78
+
79
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
80
+
81
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
82
+
83
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
84
+
85
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
86
+
87
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
88
+
89
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
90
+
91
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
92
+
93
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
94
+
95
+ DTS ⚡️ Build success in 4597ms
96
+ DTS dist/index.d.ts 907.00 B
97
+ DTS dist/session/index.d.ts 735.00 B
98
+ DTS dist/account.d.ts 1.62 KB
99
+ DTS dist/constants.d.ts 215.00 B
100
+ DTS dist/icon.d.ts 15.11 KB
101
+ DTS dist/controller.d.ts 1.07 KB
102
+ DTS dist/lookup.d.ts 216.00 B
103
+ DTS dist/utils.d.ts 610.00 B
104
+ DTS dist/telegram/backend.d.ts 1.27 KB
105
+ DTS dist/telegram/provider.d.ts 831.00 B
106
+ DTS dist/session/account.d.ts 1.83 KB
107
+ DTS dist/session/backend.d.ts 2.29 KB
108
+ DTS dist/errors.d.ts 100.00 B
109
+ DTS dist/session/provider.d.ts 971.00 B
110
+ DTS dist/provider.d.ts 772.00 B
111
+ DTS dist/iframe/base.d.ts 180.00 B
112
+ DTS dist/iframe/keychain.d.ts 168.00 B
113
+ DTS dist/iframe/profile.d.ts 194.00 B
114
+ DTS dist/iframe/index.d.ts 248.00 B
115
+ DTS dist/types.d.ts 602.00 B
116
+ DTS dist/types-1WsOoNO2.d.ts 6.01 KB
@@ -0,0 +1,120 @@
1
+
2
+
3
+ > @cartridge/controller@0.5.2 build /home/broody/development/controller/packages/controller
4
+ > pnpm build:deps
5
+
6
+
7
+ > @cartridge/controller@0.5.2 build:deps /home/broody/development/controller/packages/controller
8
+ > tsup --dts-resolve
9
+
10
+ CLI Building entry: src/account.ts, src/constants.ts, src/controller.ts, src/errors.ts, src/icon.ts, src/index.ts, src/lookup.ts, src/provider.ts, src/types.ts, src/utils.ts, src/iframe/base.ts, src/iframe/index.ts, src/iframe/keychain.ts, src/iframe/profile.ts, src/session/account.ts, src/session/backend.ts, src/session/index.ts, src/session/provider.ts, src/telegram/backend.ts, src/telegram/provider.ts
11
+ CLI Using tsconfig: tsconfig.json
12
+ CLI tsup v8.3.0
13
+ CLI Using tsup config: /home/broody/development/controller/packages/controller/package.json
14
+ CLI Target: es2020
15
+ CLI Cleaning output folder
16
+ ESM Build start
17
+ ESM dist/account.js 2.81 KB
18
+ ESM dist/constants.js 247.00 B
19
+ ESM dist/controller.js 32.23 KB
20
+ ESM dist/errors.js 271.00 B
21
+ ESM dist/index.js 36.44 KB
22
+ ESM dist/lookup.js 1.59 KB
23
+ ESM dist/provider.js 19.16 KB
24
+ ESM dist/types.js 437.00 B
25
+ ESM dist/utils.js 2.75 KB
26
+ ESM dist/iframe/index.js 4.81 KB
27
+ ESM dist/iframe/keychain.js 3.86 KB
28
+ ESM dist/iframe/profile.js 4.34 KB
29
+ ESM dist/iframe/base.js 3.39 KB
30
+ ESM dist/icon.js 15.15 KB
31
+ ESM dist/session/account.js 2.25 KB
32
+ ESM dist/session/backend.js 1.18 KB
33
+ ESM dist/session/index.js 24.95 KB
34
+ ESM dist/session/provider.js 24.35 KB
35
+ ESM dist/telegram/backend.js 1.27 KB
36
+ ESM dist/telegram/provider.js 23.91 KB
37
+ ESM dist/account.js.map 8.81 KB
38
+ ESM dist/constants.js.map 315.00 B
39
+ ESM dist/errors.js.map 385.00 B
40
+ ESM dist/lookup.js.map 3.49 KB
41
+ ESM dist/controller.js.map 52.09 KB
42
+ ESM dist/provider.js.map 22.49 KB
43
+ ESM dist/index.js.map 61.84 KB
44
+ ESM dist/utils.js.map 5.64 KB
45
+ ESM dist/iframe/index.js.map 9.77 KB
46
+ ESM dist/iframe/keychain.js.map 7.78 KB
47
+ ESM dist/iframe/profile.js.map 8.77 KB
48
+ ESM dist/iframe/base.js.map 6.58 KB
49
+ ESM dist/icon.js.map 15.20 KB
50
+ ESM dist/types.js.map 4.66 KB
51
+ ESM dist/session/backend.js.map 2.88 KB
52
+ ESM dist/session/account.js.map 11.10 KB
53
+ ESM dist/session/index.js.map 40.10 KB
54
+ ESM dist/telegram/backend.js.map 1.98 KB
55
+ ESM dist/session/provider.js.map 35.18 KB
56
+ ESM dist/telegram/provider.js.map 34.36 KB
57
+ ESM ⚡️ Build success in 41ms
58
+ DTS Build start
59
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
60
+
61
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
62
+
63
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
64
+
65
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
66
+
67
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
68
+
69
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
70
+
71
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
72
+
73
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
74
+
75
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
76
+
77
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
78
+
79
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
80
+
81
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
82
+
83
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
84
+
85
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
86
+
87
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
88
+
89
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
90
+
91
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
92
+
93
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
94
+
95
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
96
+
97
+ ../tsconfig/base.json(6,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
98
+
99
+ DTS ⚡️ Build success in 4597ms
100
+ DTS dist/index.d.ts 907.00 B
101
+ DTS dist/session/index.d.ts 735.00 B
102
+ DTS dist/account.d.ts 1.62 KB
103
+ DTS dist/constants.d.ts 215.00 B
104
+ DTS dist/icon.d.ts 15.11 KB
105
+ DTS dist/controller.d.ts 1.07 KB
106
+ DTS dist/lookup.d.ts 216.00 B
107
+ DTS dist/utils.d.ts 610.00 B
108
+ DTS dist/session/account.d.ts 1.83 KB
109
+ DTS dist/session/backend.d.ts 2.29 KB
110
+ DTS dist/errors.d.ts 100.00 B
111
+ DTS dist/session/provider.d.ts 971.00 B
112
+ DTS dist/telegram/backend.d.ts 1.27 KB
113
+ DTS dist/telegram/provider.d.ts 831.00 B
114
+ DTS dist/provider.d.ts 772.00 B
115
+ DTS dist/iframe/base.d.ts 180.00 B
116
+ DTS dist/iframe/keychain.d.ts 168.00 B
117
+ DTS dist/iframe/profile.d.ts 194.00 B
118
+ DTS dist/iframe/index.d.ts 248.00 B
119
+ DTS dist/types.d.ts 602.00 B
120
+ DTS dist/types-1WsOoNO2.d.ts 6.01 KB
@@ -0,0 +1,25 @@
1
+
2
+
3
+ > @cartridge/controller@0.5.1 format /home/broody/development/controller/packages/controller
4
+ > prettier --write "src/**/*.ts"
5
+
6
+ src/account.tssrc/account.ts 196ms
7
+ src/constants.tssrc/constants.ts 4ms
8
+ src/controller.tssrc/controller.ts 59ms
9
+ src/errors.tssrc/errors.ts 5ms
10
+ src/icon.tssrc/icon.ts 5ms
11
+ src/iframe/base.tssrc/iframe/base.ts 31ms
12
+ src/iframe/index.tssrc/iframe/index.ts 3ms
13
+ src/iframe/keychain.tssrc/iframe/keychain.ts 5ms
14
+ src/iframe/profile.tssrc/iframe/profile.ts 8ms
15
+ src/index.tssrc/index.ts 3ms
16
+ src/lookup.tssrc/lookup.ts 16ms
17
+ src/provider.tssrc/provider.ts 24ms
18
+ src/session/account.tssrc/session/account.ts 7ms
19
+ src/session/backend.tssrc/session/backend.ts 8ms
20
+ src/session/index.tssrc/session/index.ts 2ms
21
+ src/session/provider.tssrc/session/provider.ts 21ms
22
+ src/telegram/backend.tssrc/telegram/backend.ts 9ms
23
+ src/telegram/provider.tssrc/telegram/provider.ts 12ms
24
+ src/types.tssrc/types.ts 16ms
25
+ src/utils.tssrc/utils.ts 17ms
package/dist/account.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { WalletAccount, AllowArray, Call, InvokeFunctionResponse, TypedData } from 'starknet';
2
2
  import { SPEC } from '@starknet-io/types-js';
3
- import { K as Keychain, j as KeychainOptions, M as Modal } from './types-ikHqoYmG.js';
3
+ import { K as Keychain, j as KeychainOptions, M as Modal } from './types-1WsOoNO2.js';
4
4
  import { AsyncMethodReturns } from '@cartridge/penpal';
5
5
  import BaseProvider from './provider.js';
6
+ import '@cartridge/presets';
6
7
 
7
8
  declare class ControllerAccount extends WalletAccount {
8
9
  address: string;
package/dist/account.js CHANGED
@@ -2,6 +2,21 @@
2
2
  import {
3
3
  WalletAccount
4
4
  } from "starknet";
5
+
6
+ // src/utils.ts
7
+ import {
8
+ addAddressPadding,
9
+ CallData,
10
+ getChecksumAddress,
11
+ hash,
12
+ typedData,
13
+ TypedDataRevision
14
+ } from "starknet";
15
+ function toArray(val) {
16
+ return Array.isArray(val) ? val : [val];
17
+ }
18
+
19
+ // src/account.ts
5
20
  var ControllerAccount = class extends WalletAccount {
6
21
  constructor(provider, address, keychain, options, modal) {
7
22
  super({ nodeUrl: provider.rpc.toString() }, provider);
@@ -23,7 +38,7 @@ var ControllerAccount = class extends WalletAccount {
23
38
  * @returns response from addTransaction
24
39
  */
25
40
  async execute(calls) {
26
- calls = Array.isArray(calls) ? calls : [calls];
41
+ calls = toArray(calls);
27
42
  return new Promise(async (resolve, reject) => {
28
43
  const sessionExecute = await this.keychain.execute(
29
44
  calls,
@@ -64,15 +79,15 @@ var ControllerAccount = class extends WalletAccount {
64
79
  * @returns the signature of the JSON object
65
80
  * @throws {Error} if the JSON object is not a valid JSON
66
81
  */
67
- async signMessage(typedData) {
82
+ async signMessage(typedData2) {
68
83
  return new Promise(async (resolve, reject) => {
69
- const sessionSign = await this.keychain.signMessage(typedData, "", true);
84
+ const sessionSign = await this.keychain.signMessage(typedData2, "", true);
70
85
  if (!("code" in sessionSign)) {
71
86
  resolve(sessionSign);
72
87
  return;
73
88
  }
74
89
  this.modal.open();
75
- const manualSign = await this.keychain.signMessage(typedData, "", false);
90
+ const manualSign = await this.keychain.signMessage(typedData2, "", false);
76
91
  if (!("code" in manualSign)) {
77
92
  resolve(manualSign);
78
93
  } else {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/account.ts"],"sourcesContent":["import {\n InvokeFunctionResponse,\n TypedData,\n WalletAccount,\n Call,\n AllowArray,\n} from \"starknet\";\n\nimport { SPEC } from \"@starknet-io/types-js\";\n\nimport {\n ConnectError,\n Keychain,\n KeychainOptions,\n Modal,\n ResponseCodes,\n} from \"./types\";\nimport { AsyncMethodReturns } from \"@cartridge/penpal\";\nimport BaseProvider from \"./provider\";\n\nclass ControllerAccount extends WalletAccount {\n address: string;\n private keychain: AsyncMethodReturns<Keychain>;\n private modal: Modal;\n private options?: KeychainOptions;\n\n constructor(\n provider: BaseProvider,\n address: string,\n keychain: AsyncMethodReturns<Keychain>,\n options: KeychainOptions,\n modal: Modal,\n ) {\n super({ nodeUrl: provider.rpc.toString() }, provider);\n\n this.address = address;\n this.keychain = keychain;\n this.options = options;\n this.modal = modal;\n }\n\n /**\n * Invoke execute function in account contract\n *\n * @param calls the invocation object or an array of them, containing:\n * - contractAddress - the address of the contract\n * - entrypoint - the entrypoint of the contract\n * - calldata - (defaults to []) the calldata\n * - signature - (defaults to []) the signature\n * @param abis (optional) the abi of the contract for better displaying\n *\n * @returns response from addTransaction\n */\n async execute(calls: AllowArray<Call>): Promise<InvokeFunctionResponse> {\n calls = Array.isArray(calls) ? calls : [calls];\n\n return new Promise(async (resolve, reject) => {\n const sessionExecute = await this.keychain.execute(\n calls,\n undefined,\n undefined,\n false,\n );\n\n // Session call succeeded\n if (sessionExecute.code === ResponseCodes.SUCCESS) {\n resolve(sessionExecute as InvokeFunctionResponse);\n return;\n }\n\n // Propagates session txn error back to caller\n if (this.options?.propagateSessionErrors) {\n reject((sessionExecute as ConnectError).error);\n return;\n }\n\n // Session call or Paymaster flow failed.\n // Session not avaialble, manual flow fallback\n this.modal.open();\n const manualExecute = await this.keychain.execute(\n calls,\n undefined,\n undefined,\n true,\n (sessionExecute as ConnectError).error,\n );\n\n // Manual call succeeded\n if (manualExecute.code === ResponseCodes.SUCCESS) {\n resolve(manualExecute as InvokeFunctionResponse);\n this.modal.close();\n return;\n }\n\n reject((manualExecute as ConnectError).error);\n return;\n });\n }\n\n /**\n * Sign an JSON object for off-chain usage with the starknet private key and return the signature\n * This adds a message prefix so it cant be interchanged with transactions\n *\n * @param json - JSON object to be signed\n * @returns the signature of the JSON object\n * @throws {Error} if the JSON object is not a valid JSON\n */\n async signMessage(typedData: TypedData): Promise<SPEC.SIGNATURE> {\n return new Promise(async (resolve, reject) => {\n const sessionSign = await this.keychain.signMessage(typedData, \"\", true);\n\n // Session sign succeeded\n if (!(\"code\" in sessionSign)) {\n resolve(sessionSign as SPEC.SIGNATURE);\n return;\n }\n\n // Session not avaialble, manual flow fallback\n this.modal.open();\n const manualSign = await this.keychain.signMessage(typedData, \"\", false);\n\n if (!(\"code\" in manualSign)) {\n resolve(manualSign as SPEC.SIGNATURE);\n } else {\n reject((manualSign as ConnectError).error);\n }\n this.modal.close();\n });\n }\n}\n\nexport default ControllerAccount;\n"],"mappings":";AAAA;AAAA,EAGE;AAAA,OAGK;AAcP,IAAM,oBAAN,cAAgC,cAAc;AAAA,EAM5C,YACE,UACA,SACA,UACA,SACA,OACA;AACA,UAAM,EAAE,SAAS,SAAS,IAAI,SAAS,EAAE,GAAG,QAAQ;AAEpD,SAAK,UAAU;AACf,SAAK,WAAW;AAChB,SAAK,UAAU;AACf,SAAK,QAAQ;AAAA,EACf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,MAAM,QAAQ,OAA0D;AACtE,YAAQ,MAAM,QAAQ,KAAK,IAAI,QAAQ,CAAC,KAAK;AAE7C,WAAO,IAAI,QAAQ,OAAO,SAAS,WAAW;AAC5C,YAAM,iBAAiB,MAAM,KAAK,SAAS;AAAA,QACzC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAGA,UAAI,eAAe,kCAAgC;AACjD,gBAAQ,cAAwC;AAChD;AAAA,MACF;AAGA,UAAI,KAAK,SAAS,wBAAwB;AACxC,eAAQ,eAAgC,KAAK;AAC7C;AAAA,MACF;AAIA,WAAK,MAAM,KAAK;AAChB,YAAM,gBAAgB,MAAM,KAAK,SAAS;AAAA,QACxC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,eAAgC;AAAA,MACnC;AAGA,UAAI,cAAc,kCAAgC;AAChD,gBAAQ,aAAuC;AAC/C,aAAK,MAAM,MAAM;AACjB;AAAA,MACF;AAEA,aAAQ,cAA+B,KAAK;AAC5C;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,YAAY,WAA+C;AAC/D,WAAO,IAAI,QAAQ,OAAO,SAAS,WAAW;AAC5C,YAAM,cAAc,MAAM,KAAK,SAAS,YAAY,WAAW,IAAI,IAAI;AAGvE,UAAI,EAAE,UAAU,cAAc;AAC5B,gBAAQ,WAA6B;AACrC;AAAA,MACF;AAGA,WAAK,MAAM,KAAK;AAChB,YAAM,aAAa,MAAM,KAAK,SAAS,YAAY,WAAW,IAAI,KAAK;AAEvE,UAAI,EAAE,UAAU,aAAa;AAC3B,gBAAQ,UAA4B;AAAA,MACtC,OAAO;AACL,eAAQ,WAA4B,KAAK;AAAA,MAC3C;AACA,WAAK,MAAM,MAAM;AAAA,IACnB,CAAC;AAAA,EACH;AACF;AAEA,IAAO,kBAAQ;","names":[]}
1
+ {"version":3,"sources":["../src/account.ts","../src/utils.ts"],"sourcesContent":["import {\n InvokeFunctionResponse,\n TypedData,\n WalletAccount,\n Call,\n AllowArray,\n} from \"starknet\";\n\nimport { SPEC } from \"@starknet-io/types-js\";\n\nimport {\n ConnectError,\n Keychain,\n KeychainOptions,\n Modal,\n ResponseCodes,\n} from \"./types\";\nimport { AsyncMethodReturns } from \"@cartridge/penpal\";\nimport BaseProvider from \"./provider\";\nimport { toArray } from \"./utils\";\n\nclass ControllerAccount extends WalletAccount {\n address: string;\n private keychain: AsyncMethodReturns<Keychain>;\n private modal: Modal;\n private options?: KeychainOptions;\n\n constructor(\n provider: BaseProvider,\n address: string,\n keychain: AsyncMethodReturns<Keychain>,\n options: KeychainOptions,\n modal: Modal,\n ) {\n super({ nodeUrl: provider.rpc.toString() }, provider);\n\n this.address = address;\n this.keychain = keychain;\n this.options = options;\n this.modal = modal;\n }\n\n /**\n * Invoke execute function in account contract\n *\n * @param calls the invocation object or an array of them, containing:\n * - contractAddress - the address of the contract\n * - entrypoint - the entrypoint of the contract\n * - calldata - (defaults to []) the calldata\n * - signature - (defaults to []) the signature\n * @param abis (optional) the abi of the contract for better displaying\n *\n * @returns response from addTransaction\n */\n async execute(calls: AllowArray<Call>): Promise<InvokeFunctionResponse> {\n calls = toArray(calls);\n\n return new Promise(async (resolve, reject) => {\n const sessionExecute = await this.keychain.execute(\n calls,\n undefined,\n undefined,\n false,\n );\n\n // Session call succeeded\n if (sessionExecute.code === ResponseCodes.SUCCESS) {\n resolve(sessionExecute as InvokeFunctionResponse);\n return;\n }\n\n // Propagates session txn error back to caller\n if (this.options?.propagateSessionErrors) {\n reject((sessionExecute as ConnectError).error);\n return;\n }\n\n // Session call or Paymaster flow failed.\n // Session not avaialble, manual flow fallback\n this.modal.open();\n const manualExecute = await this.keychain.execute(\n calls,\n undefined,\n undefined,\n true,\n (sessionExecute as ConnectError).error,\n );\n\n // Manual call succeeded\n if (manualExecute.code === ResponseCodes.SUCCESS) {\n resolve(manualExecute as InvokeFunctionResponse);\n this.modal.close();\n return;\n }\n\n reject((manualExecute as ConnectError).error);\n return;\n });\n }\n\n /**\n * Sign an JSON object for off-chain usage with the starknet private key and return the signature\n * This adds a message prefix so it cant be interchanged with transactions\n *\n * @param json - JSON object to be signed\n * @returns the signature of the JSON object\n * @throws {Error} if the JSON object is not a valid JSON\n */\n async signMessage(typedData: TypedData): Promise<SPEC.SIGNATURE> {\n return new Promise(async (resolve, reject) => {\n const sessionSign = await this.keychain.signMessage(typedData, \"\", true);\n\n // Session sign succeeded\n if (!(\"code\" in sessionSign)) {\n resolve(sessionSign as SPEC.SIGNATURE);\n return;\n }\n\n // Session not avaialble, manual flow fallback\n this.modal.open();\n const manualSign = await this.keychain.signMessage(typedData, \"\", false);\n\n if (!(\"code\" in manualSign)) {\n resolve(manualSign as SPEC.SIGNATURE);\n } else {\n reject((manualSign as ConnectError).error);\n }\n this.modal.close();\n });\n }\n}\n\nexport default ControllerAccount;\n","import {\n addAddressPadding,\n Call,\n CallData,\n getChecksumAddress,\n hash,\n typedData,\n TypedDataRevision,\n} from \"starknet\";\nimport wasm from \"@cartridge/account-wasm/controller\";\nimport { Policies, SessionPolicies } from \"@cartridge/presets\";\n\n// Whitelist of allowed property names to prevent prototype pollution\nconst ALLOWED_PROPERTIES = new Set([\n \"contracts\",\n \"messages\",\n \"target\",\n \"method\",\n \"name\",\n \"description\",\n \"types\",\n \"domain\",\n \"primaryType\",\n]);\n\nfunction validatePropertyName(prop: string): void {\n if (!ALLOWED_PROPERTIES.has(prop)) {\n throw new Error(`Invalid property name: ${prop}`);\n }\n}\n\nfunction safeObjectAccess<T>(obj: any, prop: string): T {\n validatePropertyName(prop);\n return obj[prop];\n}\n\nexport function normalizeCalls(calls: Call | Call[]) {\n return toArray(calls).map((call) => {\n return {\n entrypoint: call.entrypoint,\n contractAddress: addAddressPadding(call.contractAddress),\n calldata: CallData.toHex(call.calldata),\n };\n });\n}\n\nexport function toSessionPolicies(policies: Policies): SessionPolicies {\n return Array.isArray(policies)\n ? policies.reduce<SessionPolicies>(\n (prev, p) => {\n if (safeObjectAccess<string>(p, \"target\")) {\n const target = getChecksumAddress(\n safeObjectAccess<string>(p, \"target\"),\n );\n const entrypoint = safeObjectAccess<string>(p, \"method\");\n const contracts = safeObjectAccess<Record<string, any>>(\n prev,\n \"contracts\",\n );\n const item = {\n name: humanizeString(entrypoint),\n entrypoint: entrypoint,\n description: safeObjectAccess<string>(p, \"description\"),\n };\n\n if (target in contracts) {\n const methods = toArray(contracts[target].methods);\n contracts[target] = {\n methods: [...methods, item],\n };\n } else {\n contracts[target] = {\n methods: [item],\n };\n }\n } else {\n const messages = safeObjectAccess<any[]>(prev, \"messages\");\n messages.push(p);\n }\n\n return prev;\n },\n { contracts: {}, messages: [] },\n )\n : policies;\n}\n\nexport function toWasmPolicies(policies: SessionPolicies): wasm.Policy[] {\n return [\n ...Object.entries(policies.contracts ?? {}).flatMap(\n ([target, { methods }]) =>\n toArray(methods).map((m) => ({\n target,\n method: m.entrypoint,\n })),\n ),\n ...(policies.messages ?? []).map((p) => {\n const domainHash = typedData.getStructHash(\n p.types,\n \"StarknetDomain\",\n p.domain,\n TypedDataRevision.ACTIVE,\n );\n const typeHash = typedData.getTypeHash(\n p.types,\n p.primaryType,\n TypedDataRevision.ACTIVE,\n );\n\n return {\n scope_hash: hash.computePoseidonHash(domainHash, typeHash),\n };\n }),\n ];\n}\n\nexport function toArray<T>(val: T | T[]): T[] {\n return Array.isArray(val) ? val : [val];\n}\n\nfunction humanizeString(str: string): string {\n return (\n str\n // Convert from camelCase or snake_case\n .replace(/([a-z])([A-Z])/g, \"$1 $2\") // camelCase to spaces\n .replace(/_/g, \" \") // snake_case to spaces\n .toLowerCase()\n // Capitalize first letter\n .replace(/^\\w/, (c) => c.toUpperCase())\n );\n}\n"],"mappings":";AAAA;AAAA,EAGE;AAAA,OAGK;;;ACNP;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA4GA,SAAS,QAAW,KAAmB;AAC5C,SAAO,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,GAAG;AACxC;;;ADjGA,IAAM,oBAAN,cAAgC,cAAc;AAAA,EAM5C,YACE,UACA,SACA,UACA,SACA,OACA;AACA,UAAM,EAAE,SAAS,SAAS,IAAI,SAAS,EAAE,GAAG,QAAQ;AAEpD,SAAK,UAAU;AACf,SAAK,WAAW;AAChB,SAAK,UAAU;AACf,SAAK,QAAQ;AAAA,EACf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,MAAM,QAAQ,OAA0D;AACtE,YAAQ,QAAQ,KAAK;AAErB,WAAO,IAAI,QAAQ,OAAO,SAAS,WAAW;AAC5C,YAAM,iBAAiB,MAAM,KAAK,SAAS;AAAA,QACzC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAGA,UAAI,eAAe,kCAAgC;AACjD,gBAAQ,cAAwC;AAChD;AAAA,MACF;AAGA,UAAI,KAAK,SAAS,wBAAwB;AACxC,eAAQ,eAAgC,KAAK;AAC7C;AAAA,MACF;AAIA,WAAK,MAAM,KAAK;AAChB,YAAM,gBAAgB,MAAM,KAAK,SAAS;AAAA,QACxC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACC,eAAgC;AAAA,MACnC;AAGA,UAAI,cAAc,kCAAgC;AAChD,gBAAQ,aAAuC;AAC/C,aAAK,MAAM,MAAM;AACjB;AAAA,MACF;AAEA,aAAQ,cAA+B,KAAK;AAC5C;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,YAAYA,YAA+C;AAC/D,WAAO,IAAI,QAAQ,OAAO,SAAS,WAAW;AAC5C,YAAM,cAAc,MAAM,KAAK,SAAS,YAAYA,YAAW,IAAI,IAAI;AAGvE,UAAI,EAAE,UAAU,cAAc;AAC5B,gBAAQ,WAA6B;AACrC;AAAA,MACF;AAGA,WAAK,MAAM,KAAK;AAChB,YAAM,aAAa,MAAM,KAAK,SAAS,YAAYA,YAAW,IAAI,KAAK;AAEvE,UAAI,EAAE,UAAU,aAAa;AAC3B,gBAAQ,UAA4B;AAAA,MACtC,OAAO;AACL,eAAQ,WAA4B,KAAK;AAAA,MAC3C;AACA,WAAK,MAAM,MAAM;AAAA,IACnB,CAAC;AAAA,EACH;AACF;AAEA,IAAO,kBAAQ;","names":["typedData"]}
@@ -1,4 +1,5 @@
1
1
  declare const KEYCHAIN_URL = "https://x.cartridge.gg";
2
2
  declare const PROFILE_URL = "https://profile.cartridge.gg";
3
+ declare const API_URL = "https://api.cartridge.gg";
3
4
 
4
- export { KEYCHAIN_URL, PROFILE_URL };
5
+ export { API_URL, KEYCHAIN_URL, PROFILE_URL };
package/dist/constants.js CHANGED
@@ -1,7 +1,9 @@
1
1
  // src/constants.ts
2
2
  var KEYCHAIN_URL = "https://x.cartridge.gg";
3
3
  var PROFILE_URL = "https://profile.cartridge.gg";
4
+ var API_URL = "https://api.cartridge.gg";
4
5
  export {
6
+ API_URL,
5
7
  KEYCHAIN_URL,
6
8
  PROFILE_URL
7
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export const KEYCHAIN_URL = \"https://x.cartridge.gg\";\nexport const PROFILE_URL = \"https://profile.cartridge.gg\";\n"],"mappings":";AAAO,IAAM,eAAe;AACrB,IAAM,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export const KEYCHAIN_URL = \"https://x.cartridge.gg\";\nexport const PROFILE_URL = \"https://profile.cartridge.gg\";\nexport const API_URL = \"https://api.cartridge.gg\";\n"],"mappings":";AAAO,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,UAAU;","names":[]}
@@ -1,6 +1,7 @@
1
- import { g as ControllerOptions, l as ProfileContextTypeVariant, P as Policy } from './types-ikHqoYmG.js';
1
+ import { g as ControllerOptions, l as ProfileContextTypeVariant } from './types-1WsOoNO2.js';
2
2
  import BaseProvider from './provider.js';
3
3
  import { WalletAccount } from 'starknet';
4
+ import { Policy } from '@cartridge/presets';
4
5
  import '@starknet-io/types-js';
5
6
  import '@cartridge/penpal';
6
7