@cartridge/controller 0.10.1 → 0.10.3

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.
@@ -1,31 +1,30 @@
1
1
 
2
- > @cartridge/controller@0.10.1 build:deps /home/runner/work/controller/controller/packages/controller
2
+ > @cartridge/controller@0.10.3 build:deps /home/runner/work/controller/controller/packages/controller
3
3
  > pnpm build
4
4
 
5
5
 
6
- > @cartridge/controller@0.10.1 build /home/runner/work/controller/controller/packages/controller
6
+ > @cartridge/controller@0.10.3 build /home/runner/work/controller/controller/packages/controller
7
7
  > pnpm build:browser && pnpm build:node
8
8
 
9
9
 
10
- > @cartridge/controller@0.10.1 build:browser /home/runner/work/controller/controller/packages/controller
10
+ > @cartridge/controller@0.10.3 build:browser /home/runner/work/controller/controller/packages/controller
11
11
  > vite build
12
12
 
13
13
  vite v6.3.4 building for production...
14
14
  transforming...
15
- ✓ 233 modules transformed.
15
+ ✓ 230 modules transformed.
16
16
  rendering chunks...
17
- [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.4/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
18
17
 
19
18
  [vite:dts] Start generate declaration files...
20
19
  computing gzip size...
21
- dist/session.js  11.26 kB │ gzip: 3.51 kB │ map: 62.10 kB
22
- dist/provider-DSw1EyU9.js  13.59 kB │ gzip: 5.54 kB │ map: 33.38 kB
23
- dist/index.js 135.28 kB │ gzip: 34.32 kB │ map: 437.66 kB
24
- [vite:dts] Declaration files built in 4402ms.
20
+ dist/session.js  7.19 kB │ gzip: 2.35 kB │ map: 17.48 kB
21
+ dist/provider-S-IvFw23.js  13.61 kB │ gzip: 5.56 kB │ map: 33.44 kB
22
+ dist/index.js 135.52 kB │ gzip: 34.39 kB │ map: 438.19 kB
23
+ [vite:dts] Declaration files built in 4412ms.
25
24
 
26
- ✓ built in 6.17s
25
+ ✓ built in 6.20s
27
26
 
28
- > @cartridge/controller@0.10.1 build:node /home/runner/work/controller/controller/packages/controller
27
+ > @cartridge/controller@0.10.3 build:node /home/runner/work/controller/controller/packages/controller
29
28
  > tsup --config tsup.node.config.ts
30
29
 
31
30
  CLI Building entry: src/node/index.ts
@@ -39,13 +38,13 @@ computing gzip size...
39
38
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
40
39
  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
40
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
42
- CJS dist/node/index.cjs 21.94 KB
43
- CJS dist/node/index.cjs.map 50.53 KB
44
- CJS ⚡️ Build success in 385ms
45
- ESM dist/node/index.js 21.18 KB
46
- ESM dist/node/index.js.map 50.32 KB
47
- ESM ⚡️ Build success in 386ms
41
+ CJS dist/node/index.cjs 21.97 KB
42
+ CJS dist/node/index.cjs.map 50.59 KB
43
+ CJS ⚡️ Build success in 360ms
44
+ ESM dist/node/index.js 21.20 KB
45
+ ESM dist/node/index.js.map 50.38 KB
46
+ ESM ⚡️ Build success in 361ms
48
47
  DTS Build start
49
- DTS ⚡️ Build success in 4020ms
48
+ DTS ⚡️ Build success in 4249ms
50
49
  DTS dist/node/index.d.ts 5.87 KB
51
50
  DTS dist/node/index.d.cts 5.87 KB
@@ -1,27 +1,26 @@
1
1
 
2
- > @cartridge/controller@0.10.1 build /home/runner/work/controller/controller/packages/controller
2
+ > @cartridge/controller@0.10.3 build /home/runner/work/controller/controller/packages/controller
3
3
  > pnpm build:browser && pnpm build:node
4
4
 
5
5
 
6
- > @cartridge/controller@0.10.1 build:browser /home/runner/work/controller/controller/packages/controller
6
+ > @cartridge/controller@0.10.3 build:browser /home/runner/work/controller/controller/packages/controller
7
7
  > vite build
8
8
 
9
9
  vite v6.3.4 building for production...
10
10
  transforming...
11
- ✓ 233 modules transformed.
11
+ ✓ 230 modules transformed.
12
12
  rendering chunks...
13
- [vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.4/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
14
13
 
15
14
  [vite:dts] Start generate declaration files...
16
15
  computing gzip size...
17
- dist/session.js  11.26 kB │ gzip: 3.51 kB │ map: 62.10 kB
18
- dist/provider-DSw1EyU9.js  13.59 kB │ gzip: 5.54 kB │ map: 33.38 kB
19
- dist/index.js 135.28 kB │ gzip: 34.32 kB │ map: 437.66 kB
20
- [vite:dts] Declaration files built in 4332ms.
16
+ dist/session.js  7.19 kB │ gzip: 2.35 kB │ map: 17.48 kB
17
+ dist/provider-S-IvFw23.js  13.61 kB │ gzip: 5.56 kB │ map: 33.44 kB
18
+ dist/index.js 135.52 kB │ gzip: 34.39 kB │ map: 438.19 kB
19
+ [vite:dts] Declaration files built in 4323ms.
21
20
 
22
- ✓ built in 6.28s
21
+ ✓ built in 6.32s
23
22
 
24
- > @cartridge/controller@0.10.1 build:node /home/runner/work/controller/controller/packages/controller
23
+ > @cartridge/controller@0.10.3 build:node /home/runner/work/controller/controller/packages/controller
25
24
  > tsup --config tsup.node.config.ts
26
25
 
27
26
  CLI Building entry: src/node/index.ts
@@ -32,16 +31,16 @@ computing gzip size...
32
31
  CLI Cleaning output folder
33
32
  ESM Build start
34
33
  CJS Build start
34
+ "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
35
35
  "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
36
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.
37
- "constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
38
- CJS dist/node/index.cjs 21.94 KB
39
- CJS dist/node/index.cjs.map 50.53 KB
40
- CJS ⚡️ Build success in 287ms
41
- ESM dist/node/index.js 21.18 KB
42
- ESM dist/node/index.js.map 50.32 KB
43
- ESM ⚡️ Build success in 288ms
37
+ CJS dist/node/index.cjs 21.97 KB
38
+ CJS dist/node/index.cjs.map 50.59 KB
39
+ CJS ⚡️ Build success in 317ms
40
+ ESM dist/node/index.js 21.20 KB
41
+ ESM dist/node/index.js.map 50.38 KB
42
+ ESM ⚡️ Build success in 319ms
44
43
  DTS Build start
45
- DTS ⚡️ Build success in 4277ms
44
+ DTS ⚡️ Build success in 4324ms
46
45
  DTS dist/node/index.d.ts 5.87 KB
47
46
  DTS dist/node/index.d.cts 5.87 KB
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { WalletAccount as Nt, constants as V, num as rt, shortString as Oe } from "starknet";
2
- import { R as Q, t as Rt, K as Tt, B as Ut, N as v, p as zt, v as Dt, A as Ot } from "./provider-DSw1EyU9.js";
3
- import { F as qn, S as Gn, h as Xn, n as Jn, a as Zn, b as es } from "./provider-DSw1EyU9.js";
2
+ import { R as Q, t as Rt, K as Tt, B as Ut, N as v, p as zt, v as Dt, A as Ot } from "./provider-S-IvFw23.js";
3
+ import { F as qn, S as Gn, h as Xn, n as Jn, a as Zn, b as es } from "./provider-S-IvFw23.js";
4
4
  class Le extends Nt {
5
5
  keychain;
6
6
  modal;
@@ -3400,12 +3400,11 @@ class Ln extends Ut {
3400
3400
  async switchStarknetChain(e) {
3401
3401
  if (!this.keychain || !this.iframes.keychain)
3402
3402
  return console.error(new v().message), !1;
3403
+ const r = this.selectedChain;
3403
3404
  try {
3404
- if (this.selectedChain = e, (await this.keychain.probe(this.rpcUrl())).rpcUrl === this.rpcUrl())
3405
- return !0;
3406
- await this.keychain.switchChain(this.rpcUrl());
3407
- } catch (r) {
3408
- return console.error(r), !1;
3405
+ this.selectedChain = e, await this.keychain.switchChain(this.rpcUrl());
3406
+ } catch (n) {
3407
+ return console.error(n), this.selectedChain = r, !1;
3409
3408
  }
3410
3409
  return this.emitNetworkChanged(e), !0;
3411
3410
  }
@@ -4157,6 +4156,15 @@ var zn = [
4157
4156
  sort_order: 1,
4158
4157
  total_supply: null,
4159
4158
  logo_url: "https://assets.underware.gg/pistols/fame.svg"
4159
+ },
4160
+ {
4161
+ name: "Survivor",
4162
+ symbol: "SURVIVOR",
4163
+ decimals: 18,
4164
+ l2_token_address: "0x42dd777885ad2c116be96d4d634abc90a26a790ffb5871e037dd5ae7d2ec86b",
4165
+ sort_order: 1,
4166
+ total_supply: null,
4167
+ logo_url: "https://lootsurvivor.io/images/survivor_token.png"
4160
4168
  }
4161
4169
  ], Pt = {
4162
4170
  theme: {