@cartridge/controller 0.11.2-alpha.4 → 0.11.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.
- package/.turbo/turbo-build$colon$deps.log +12 -17
- package/.turbo/turbo-build.log +14 -19
- package/dist/controller.d.ts +1 -6
- package/dist/iframe/keychain.d.ts +2 -1
- package/dist/index.js +289 -297
- 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-Baak9Kvr.js → provider-s-80NdXp.js} +6 -6
- package/dist/{provider-Baak9Kvr.js.map → provider-s-80NdXp.js.map} +1 -1
- package/dist/session.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +2 -2
- package/src/controller.ts +33 -56
- package/src/iframe/keychain.ts +8 -0
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.11.2
|
|
2
|
+
> @cartridge/controller@0.11.2 build:deps /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.11.2
|
|
6
|
+
> @cartridge/controller@0.11.2 build /home/runner/work/controller/controller/packages/controller
|
|
7
7
|
> pnpm build:browser && pnpm build:node
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @cartridge/controller@0.11.2
|
|
10
|
+
> @cartridge/controller@0.11.2 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
|
|
14
|
-
[96msrc/controller.ts[0m:[93m586[0m:[93m45[0m - [91merror[0m[90m TS2339: [0mProperty 'hasStorageAccess' does not exist on type 'AsyncMethodReturns<Keychain>'.
|
|
15
|
-
|
|
16
|
-
[7m586[0m const hasAccess = await this.keychain.hasStorageAccess();
|
|
17
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
|
|
18
|
-
|
|
19
14
|
transforming...
|
|
20
15
|
[32m✓[39m 231 modules transformed.
|
|
21
16
|
rendering chunks...
|
|
@@ -23,13 +18,13 @@ rendering chunks...
|
|
|
23
18
|
[vite:dts] Start generate declaration files...
|
|
24
19
|
computing gzip size...
|
|
25
20
|
[2mdist/[22m[36msession.js [39m[1m[2m 8.91 kB[22m[1m[22m[2m │ gzip: 2.75 kB[22m[2m │ map: 20.99 kB[22m
|
|
26
|
-
[2mdist/[22m[36mprovider-
|
|
27
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m141.
|
|
28
|
-
[vite:dts] Declaration files built in
|
|
21
|
+
[2mdist/[22m[36mprovider-s-80NdXp.js [39m[1m[2m 13.95 kB[22m[1m[22m[2m │ gzip: 5.76 kB[22m[2m │ map: 36.15 kB[22m
|
|
22
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m141.39 kB[22m[1m[22m[2m │ gzip: 36.09 kB[22m[2m │ map: 454.73 kB[22m
|
|
23
|
+
[vite:dts] Declaration files built in 4899ms.
|
|
29
24
|
|
|
30
|
-
[32m✓ built in 6.
|
|
25
|
+
[32m✓ built in 6.69s[39m
|
|
31
26
|
|
|
32
|
-
> @cartridge/controller@0.11.2
|
|
27
|
+
> @cartridge/controller@0.11.2 build:node /home/runner/work/controller/controller/packages/controller
|
|
33
28
|
> tsup --config tsup.node.config.ts
|
|
34
29
|
|
|
35
30
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -43,13 +38,13 @@ computing gzip size...
|
|
|
43
38
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
44
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.
|
|
45
40
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
46
|
-
[32mCJS[39m [1mdist/node/index.cjs [22m[32m22.
|
|
47
|
-
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m51.
|
|
41
|
+
[32mCJS[39m [1mdist/node/index.cjs [22m[32m22.32 KB[39m
|
|
42
|
+
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m51.36 KB[39m
|
|
48
43
|
[32mCJS[39m ⚡️ Build success in 385ms
|
|
49
|
-
[32mESM[39m [1mdist/node/index.js [22m[32m21.
|
|
44
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.53 KB[39m
|
|
50
45
|
[32mESM[39m [1mdist/node/index.js.map [22m[32m51.13 KB[39m
|
|
51
46
|
[32mESM[39m ⚡️ Build success in 386ms
|
|
52
47
|
[34mDTS[39m Build start
|
|
53
|
-
[32mDTS[39m ⚡️ Build success in
|
|
48
|
+
[32mDTS[39m ⚡️ Build success in 4180ms
|
|
54
49
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.94 KB[39m
|
|
55
50
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.94 KB[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.11.2
|
|
2
|
+
> @cartridge/controller@0.11.2 build /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build:browser && pnpm build:node
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.11.2
|
|
6
|
+
> @cartridge/controller@0.11.2 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
|
|
10
|
-
[96msrc/controller.ts[0m:[93m586[0m:[93m45[0m - [91merror[0m[90m TS2339: [0mProperty 'hasStorageAccess' does not exist on type 'AsyncMethodReturns<Keychain>'.
|
|
11
|
-
|
|
12
|
-
[7m586[0m const hasAccess = await this.keychain.hasStorageAccess();
|
|
13
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~[0m
|
|
14
|
-
|
|
15
10
|
transforming...
|
|
16
11
|
[32m✓[39m 231 modules transformed.
|
|
17
12
|
rendering chunks...
|
|
@@ -19,13 +14,13 @@ rendering chunks...
|
|
|
19
14
|
[vite:dts] Start generate declaration files...
|
|
20
15
|
computing gzip size...
|
|
21
16
|
[2mdist/[22m[36msession.js [39m[1m[2m 8.91 kB[22m[1m[22m[2m │ gzip: 2.75 kB[22m[2m │ map: 20.99 kB[22m
|
|
22
|
-
[2mdist/[22m[36mprovider-
|
|
23
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m141.
|
|
24
|
-
[vite:dts] Declaration files built in
|
|
17
|
+
[2mdist/[22m[36mprovider-s-80NdXp.js [39m[1m[2m 13.95 kB[22m[1m[22m[2m │ gzip: 5.76 kB[22m[2m │ map: 36.15 kB[22m
|
|
18
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m141.39 kB[22m[1m[22m[2m │ gzip: 36.09 kB[22m[2m │ map: 454.73 kB[22m
|
|
19
|
+
[vite:dts] Declaration files built in 5021ms.
|
|
25
20
|
|
|
26
|
-
[32m✓ built in
|
|
21
|
+
[32m✓ built in 7.03s[39m
|
|
27
22
|
|
|
28
|
-
> @cartridge/controller@0.11.2
|
|
23
|
+
> @cartridge/controller@0.11.2 build:node /home/runner/work/controller/controller/packages/controller
|
|
29
24
|
> tsup --config tsup.node.config.ts
|
|
30
25
|
|
|
31
26
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -36,16 +31,16 @@ computing gzip size...
|
|
|
36
31
|
[34mCLI[39m Cleaning output folder
|
|
37
32
|
[34mESM[39m Build start
|
|
38
33
|
[34mCJS[39m Build start
|
|
34
|
+
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
39
35
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
40
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.
|
|
41
|
-
|
|
42
|
-
[32mCJS[39m [1mdist/node/index.cjs [22m[32m22.33 KB[39m
|
|
43
|
-
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m51.37 KB[39m
|
|
44
|
-
[32mCJS[39m ⚡️ Build success in 284ms
|
|
45
|
-
[32mESM[39m [1mdist/node/index.js [22m[32m21.54 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.53 KB[39m
|
|
46
38
|
[32mESM[39m [1mdist/node/index.js.map [22m[32m51.13 KB[39m
|
|
47
|
-
[32mESM[39m ⚡️ Build success in
|
|
39
|
+
[32mESM[39m ⚡️ Build success in 282ms
|
|
40
|
+
[32mCJS[39m [1mdist/node/index.cjs [22m[32m22.32 KB[39m
|
|
41
|
+
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m51.36 KB[39m
|
|
42
|
+
[32mCJS[39m ⚡️ Build success in 282ms
|
|
48
43
|
[34mDTS[39m Build start
|
|
49
|
-
[32mDTS[39m ⚡️ Build success in
|
|
44
|
+
[32mDTS[39m ⚡️ Build success in 4180ms
|
|
50
45
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.94 KB[39m
|
|
51
46
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.94 KB[39m
|
package/dist/controller.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
10
10
|
private selectedChain;
|
|
11
11
|
private chains;
|
|
12
12
|
private referral;
|
|
13
|
+
private encryptedBlob?;
|
|
13
14
|
isReady(): boolean;
|
|
14
15
|
constructor(options?: ControllerOptions);
|
|
15
16
|
logout(): Promise<void>;
|
|
@@ -38,12 +39,6 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
38
39
|
* @param options - Configuration for redirect after authentication
|
|
39
40
|
*/
|
|
40
41
|
open(options?: OpenOptions): void;
|
|
41
|
-
/**
|
|
42
|
-
* Checks if the keychain iframe has first-party storage access.
|
|
43
|
-
* Returns true if the user has previously authenticated via standalone mode.
|
|
44
|
-
* @returns Promise<boolean> indicating if storage access is available
|
|
45
|
-
*/
|
|
46
|
-
hasFirstPartyAccess(): Promise<boolean>;
|
|
47
42
|
private initializeChains;
|
|
48
43
|
private createKeychainIframe;
|
|
49
44
|
private waitForKeychain;
|
|
@@ -8,10 +8,11 @@ type KeychainIframeOptions = IFrameOptions<Keychain> & KeychainOptions & {
|
|
|
8
8
|
needsSessionCreation?: boolean;
|
|
9
9
|
username?: string;
|
|
10
10
|
onSessionCreated?: () => void;
|
|
11
|
+
encryptedBlob?: string;
|
|
11
12
|
};
|
|
12
13
|
export declare class KeychainIFrame extends IFrame<Keychain> {
|
|
13
14
|
private walletBridge;
|
|
14
|
-
constructor({ url, policies, version, slot, namespace, tokens, preset, shouldOverridePresetPolicies, rpcUrl, ref, refGroup, needsSessionCreation, username, onSessionCreated, ...iframeOptions }: KeychainIframeOptions);
|
|
15
|
+
constructor({ url, policies, version, slot, namespace, tokens, preset, shouldOverridePresetPolicies, rpcUrl, ref, refGroup, needsSessionCreation, username, onSessionCreated, encryptedBlob, ...iframeOptions }: KeychainIframeOptions);
|
|
15
16
|
getWalletBridge(): WalletBridge;
|
|
16
17
|
}
|
|
17
18
|
export {};
|