@cartridge/controller 0.7.14-alpha.0 → 0.7.14-alpha.1
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/.turbo/turbo-build$colon$deps.log +14 -14
- package/.turbo/turbo-build.log +12 -12
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/{provider-DAt9mAeP.js → provider-CwuOc9_a.js} +2 -2
- package/dist/{provider-DAt9mAeP.js.map → provider-CwuOc9_a.js.map} +1 -1
- package/dist/session.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +4 -4
- package/src/wallets/bridge.ts +5 -3
- package/src/wallets/metamask/index.ts +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
2
|
+
> @cartridge/controller@0.7.14-alpha.1 build:deps /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
6
|
+
> @cartridge/controller@0.7.14-alpha.1 build /home/runner/work/controller/controller/packages/controller
|
|
7
7
|
> pnpm build:browser && pnpm build:node
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
10
|
+
> @cartridge/controller@0.7.14-alpha.1 build:browser /home/runner/work/controller/controller/packages/controller
|
|
11
11
|
> vite build
|
|
12
12
|
|
|
13
13
|
[36mvite v6.3.4 [32mbuilding for production...[36m[39m
|
|
@@ -19,13 +19,13 @@ rendering chunks...
|
|
|
19
19
|
[vite:dts] Start generate declaration files...
|
|
20
20
|
computing gzip size...
|
|
21
21
|
[2mdist/[22m[36msession.js [39m[1m[2m 11.10 kB[22m[1m[22m[2m │ gzip: 3.45 kB[22m[2m │ map: 59.54 kB[22m
|
|
22
|
-
[2mdist/[22m[36mprovider-
|
|
23
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m201.
|
|
24
|
-
[vite:dts] Declaration files built in
|
|
22
|
+
[2mdist/[22m[36mprovider-CwuOc9_a.js [39m[1m[2m 12.78 kB[22m[1m[22m[2m │ gzip: 5.24 kB[22m[2m │ map: 30.48 kB[22m
|
|
23
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m201.32 kB[22m[1m[22m[2m │ gzip: 34.36 kB[22m[2m │ map: 428.46 kB[22m
|
|
24
|
+
[vite:dts] Declaration files built in 5253ms.
|
|
25
25
|
|
|
26
|
-
[32m✓ built in 6.
|
|
26
|
+
[32m✓ built in 6.92s[39m
|
|
27
27
|
|
|
28
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
28
|
+
> @cartridge/controller@0.7.14-alpha.1 build:node /home/runner/work/controller/controller/packages/controller
|
|
29
29
|
> tsup --config tsup.node.config.ts
|
|
30
30
|
|
|
31
31
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -36,16 +36,16 @@ computing gzip size...
|
|
|
36
36
|
[34mCLI[39m Cleaning output folder
|
|
37
37
|
[34mESM[39m Build start
|
|
38
38
|
[34mCJS[39m Build start
|
|
39
|
+
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
39
40
|
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
40
41
|
Entry module "dist/node/index.cjs" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
41
|
-
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
42
|
-
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.89 KB[39m
|
|
43
|
-
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m49.25 KB[39m
|
|
44
|
-
[32mCJS[39m ⚡️ Build success in 355ms
|
|
45
42
|
[32mESM[39m [1mdist/node/index.js [22m[32m21.12 KB[39m
|
|
46
43
|
[32mESM[39m [1mdist/node/index.js.map [22m[32m49.04 KB[39m
|
|
47
|
-
[32mESM[39m ⚡️ Build success in
|
|
44
|
+
[32mESM[39m ⚡️ Build success in 346ms
|
|
45
|
+
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.89 KB[39m
|
|
46
|
+
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m49.25 KB[39m
|
|
47
|
+
[32mCJS[39m ⚡️ Build success in 346ms
|
|
48
48
|
[34mDTS[39m Build start
|
|
49
|
-
[32mDTS[39m ⚡️ Build success in
|
|
49
|
+
[32mDTS[39m ⚡️ Build success in 4292ms
|
|
50
50
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.29 KB[39m
|
|
51
51
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.29 KB[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
2
|
+
> @cartridge/controller@0.7.14-alpha.1 build /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build:browser && pnpm build:node
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
6
|
+
> @cartridge/controller@0.7.14-alpha.1 build:browser /home/runner/work/controller/controller/packages/controller
|
|
7
7
|
> vite build
|
|
8
8
|
|
|
9
9
|
[36mvite v6.3.4 [32mbuilding for production...[36m[39m
|
|
@@ -15,13 +15,13 @@ rendering chunks...
|
|
|
15
15
|
[vite:dts] Start generate declaration files...
|
|
16
16
|
computing gzip size...
|
|
17
17
|
[2mdist/[22m[36msession.js [39m[1m[2m 11.10 kB[22m[1m[22m[2m │ gzip: 3.45 kB[22m[2m │ map: 59.54 kB[22m
|
|
18
|
-
[2mdist/[22m[36mprovider-
|
|
19
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m201.
|
|
20
|
-
[vite:dts] Declaration files built in
|
|
18
|
+
[2mdist/[22m[36mprovider-CwuOc9_a.js [39m[1m[2m 12.78 kB[22m[1m[22m[2m │ gzip: 5.24 kB[22m[2m │ map: 30.48 kB[22m
|
|
19
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m201.32 kB[22m[1m[22m[2m │ gzip: 34.36 kB[22m[2m │ map: 428.46 kB[22m
|
|
20
|
+
[vite:dts] Declaration files built in 5111ms.
|
|
21
21
|
|
|
22
22
|
[32m✓ built in 7.05s[39m
|
|
23
23
|
|
|
24
|
-
> @cartridge/controller@0.7.14-alpha.
|
|
24
|
+
> @cartridge/controller@0.7.14-alpha.1 build:node /home/runner/work/controller/controller/packages/controller
|
|
25
25
|
> tsup --config tsup.node.config.ts
|
|
26
26
|
|
|
27
27
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -32,16 +32,16 @@ computing gzip size...
|
|
|
32
32
|
[34mCLI[39m Cleaning output folder
|
|
33
33
|
[34mESM[39m Build start
|
|
34
34
|
[34mCJS[39m Build start
|
|
35
|
-
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
36
35
|
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
37
36
|
Entry module "dist/node/index.cjs" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
38
|
-
|
|
39
|
-
[32mESM[39m [1mdist/node/index.js.map [22m[32m49.04 KB[39m
|
|
40
|
-
[32mESM[39m ⚡️ Build success in 332ms
|
|
37
|
+
"constants", "getChecksumAddress", "Provider" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
41
38
|
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.89 KB[39m
|
|
42
39
|
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m49.25 KB[39m
|
|
43
|
-
[32mCJS[39m ⚡️ Build success in
|
|
40
|
+
[32mCJS[39m ⚡️ Build success in 278ms
|
|
41
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.12 KB[39m
|
|
42
|
+
[32mESM[39m [1mdist/node/index.js.map [22m[32m49.04 KB[39m
|
|
43
|
+
[32mESM[39m ⚡️ Build success in 278ms
|
|
44
44
|
[34mDTS[39m Build start
|
|
45
|
-
[32mDTS[39m ⚡️ Build success in
|
|
45
|
+
[32mDTS[39m ⚡️ Build success in 4487ms
|
|
46
46
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.29 KB[39m
|
|
47
47
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.29 KB[39m
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletAccount as Pe, shortString as G, num as Me } from "starknet";
|
|
2
|
-
import { R as E, t as Ne, K as De, P as Be, B as ze, N as y, p as Te, A as je } from "./provider-
|
|
3
|
-
import { F as fn, h as bn, n as yn, a as wn, b as vn } from "./provider-
|
|
2
|
+
import { R as E, t as Ne, K as De, P as Be, B as ze, N as y, p as Te, A as je } from "./provider-CwuOc9_a.js";
|
|
3
|
+
import { F as fn, h as bn, n as yn, a as wn, b as vn } from "./provider-CwuOc9_a.js";
|
|
4
4
|
import { connect as Ue } from "starknetkit";
|
|
5
5
|
import { InjectedConnector as Le } from "starknetkit/injected";
|
|
6
6
|
import { MetaMaskSDK as Oe } from "@metamask/sdk";
|
|
@@ -529,7 +529,7 @@ class gt {
|
|
|
529
529
|
this.MMSDK = new Oe({
|
|
530
530
|
dappMetadata: {
|
|
531
531
|
name: "Cartridge Controller",
|
|
532
|
-
url:
|
|
532
|
+
url: window.location.href
|
|
533
533
|
}
|
|
534
534
|
}), this.isAvailable() && this.MMSDK.sdkInitPromise?.then(() => {
|
|
535
535
|
this.MMSDK.getProvider()?.request({
|
|
@@ -964,7 +964,8 @@ class ut {
|
|
|
964
964
|
class ft {
|
|
965
965
|
walletAdapters;
|
|
966
966
|
constructor() {
|
|
967
|
-
this.walletAdapters = /* @__PURE__ */ new Map()
|
|
967
|
+
if (this.walletAdapters = /* @__PURE__ */ new Map(), typeof window > "u")
|
|
968
|
+
return;
|
|
968
969
|
const e = new gt();
|
|
969
970
|
e.isAvailable() && this.walletAdapters.set("metamask", e);
|
|
970
971
|
const t = new mt();
|
|
@@ -972,7 +973,7 @@ class ft {
|
|
|
972
973
|
const r = new pt();
|
|
973
974
|
r.isAvailable() && this.walletAdapters.set("argent", r);
|
|
974
975
|
const o = new ut();
|
|
975
|
-
o.isAvailable() && this.walletAdapters.set("rabby", o),
|
|
976
|
+
o.isAvailable() && this.walletAdapters.set("rabby", o), window.wallet_bridge = this;
|
|
976
977
|
}
|
|
977
978
|
getIFrameMethods() {
|
|
978
979
|
return {
|