@tomo-inc/social-account-sdk 0.0.2-alpha.0 → 0.0.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/CHANGELOG.md +9 -0
- package/dist/index.cjs +1 -8
- package/dist/index.js +1 -8
- package/package.json +15 -16
- package/.turbo/turbo-build.log +0 -34
- package/.turbo/turbo-lint.log +0 -14
- package/.turbo/turbo-test.log +0 -13
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,16 +5,9 @@ var chainsService = require('@tomo-inc/chains-service');
|
|
|
5
5
|
var cubistWalletSdk = require('@tomo-inc/cubist-wallet-sdk');
|
|
6
6
|
var oidcAuth = require('@tomo-inc/oidc-auth');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
// src/index.ts
|
|
11
9
|
var CubeSocialAccount = class {
|
|
12
10
|
constructor({ chainType, chainId }, accountData) {
|
|
13
|
-
__publicField(this, "chainType");
|
|
14
|
-
__publicField(this, "chainId");
|
|
15
|
-
__publicField(this, "cubeSignService");
|
|
16
|
-
__publicField(this, "accountData");
|
|
17
|
-
__publicField(this, "userAPIs");
|
|
18
11
|
this.chainType = chainType;
|
|
19
12
|
this.chainId = chainId;
|
|
20
13
|
this.accountData = accountData;
|
package/dist/index.js
CHANGED
|
@@ -6,16 +6,9 @@ import { CubeAccountService, CubeSignService } from '@tomo-inc/cubist-wallet-sdk
|
|
|
6
6
|
export { CubeConnect } from '@tomo-inc/cubist-wallet-sdk';
|
|
7
7
|
export { OidcAuth } from '@tomo-inc/oidc-auth';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
|
+
// src/index.ts
|
|
12
10
|
var CubeSocialAccount = class {
|
|
13
11
|
constructor({ chainType, chainId }, accountData) {
|
|
14
|
-
__publicField(this, "chainType");
|
|
15
|
-
__publicField(this, "chainId");
|
|
16
|
-
__publicField(this, "cubeSignService");
|
|
17
|
-
__publicField(this, "accountData");
|
|
18
|
-
__publicField(this, "userAPIs");
|
|
19
12
|
this.chainType = chainType;
|
|
20
13
|
this.chainId = chainId;
|
|
21
14
|
this.accountData = accountData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomo-inc/social-account-sdk",
|
|
3
|
-
"version": "0.0.2
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"author": "tomo.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -18,21 +18,11 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --treeshake",
|
|
23
|
-
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
|
|
24
|
-
"prepare": "pnpm build",
|
|
25
|
-
"lint": "eslint src/**/*.ts",
|
|
26
|
-
"lint:fix": "eslint src/**/*.ts --fix",
|
|
27
|
-
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
28
|
-
"test": "vitest run",
|
|
29
|
-
"test:watch": "vitest"
|
|
30
|
-
},
|
|
31
21
|
"dependencies": {
|
|
32
|
-
"@tomo-inc/wallet-utils": "
|
|
33
|
-
"@tomo-inc/oidc-auth": "
|
|
34
|
-
"@tomo-inc/cubist-wallet-sdk": "
|
|
35
|
-
"@tomo-inc/chains-service": "
|
|
22
|
+
"@tomo-inc/wallet-utils": "0.0.2",
|
|
23
|
+
"@tomo-inc/oidc-auth": "0.0.2",
|
|
24
|
+
"@tomo-inc/cubist-wallet-sdk": "0.0.2",
|
|
25
|
+
"@tomo-inc/chains-service": "0.0.2"
|
|
36
26
|
},
|
|
37
27
|
"devDependencies": {
|
|
38
28
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -45,5 +35,14 @@
|
|
|
45
35
|
"@vitest/browser": "^3.2.4",
|
|
46
36
|
"playwright": "^1.44.1",
|
|
47
37
|
"vitest": "^3.2.4"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --treeshake",
|
|
41
|
+
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
|
|
42
|
+
"lint": "eslint src/**/*.ts",
|
|
43
|
+
"lint:fix": "eslint src/**/*.ts --fix",
|
|
44
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:watch": "vitest"
|
|
48
47
|
}
|
|
49
|
-
}
|
|
48
|
+
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @tomo-inc/social-account-sdk@0.0.1 build /home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk
|
|
3
|
-
> tsup src/index.ts --format esm,cjs --dts --treeshake
|
|
4
|
-
|
|
5
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.5.0
|
|
8
|
-
[34mCLI[39m Target: es2017
|
|
9
|
-
[34mESM[39m Build start
|
|
10
|
-
[34mCJS[39m Build start
|
|
11
|
-
[warn] [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mCannot find base config file "../../tsconfig.json"[0m [tsconfig.json]
|
|
12
|
-
|
|
13
|
-
tsconfig.json:2:13:
|
|
14
|
-
[37m 2 │ "extends": [32m"../../tsconfig.json"[37m,
|
|
15
|
-
╵ [32m~~~~~~~~~~~~~~~~~~~~~[0m
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[warn] [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mCannot find base config file "../../tsconfig.json"[0m [tsconfig.json]
|
|
19
|
-
|
|
20
|
-
tsconfig.json:2:13:
|
|
21
|
-
[37m 2 │ "extends": [32m"../../tsconfig.json"[37m,
|
|
22
|
-
╵ [32m~~~~~~~~~~~~~~~~~~~~~[0m
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[32mESM[39m [1mdist/index.js [22m[32m7.94 KB[39m
|
|
26
|
-
[32mESM[39m ⚡️ Build success in 170ms
|
|
27
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m8.62 KB[39m
|
|
28
|
-
[32mCJS[39m ⚡️ Build success in 171ms
|
|
29
|
-
[34mDTS[39m Build start
|
|
30
|
-
error TS5083: Cannot read file '/home/runner/work/tomo-wallet/tomo-wallet/out/full/tsconfig.json'.
|
|
31
|
-
|
|
32
|
-
[32mDTS[39m ⚡️ Build success in 3484ms
|
|
33
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m760.00 B[39m
|
|
34
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m760.00 B[39m
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @tomo-inc/social-account-sdk@0.0.1 lint /home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk
|
|
3
|
-
> eslint src/**/*.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk/src/cube-account.ts
|
|
7
|
-
1:1 error Parsing error: The keyword 'import' is reserved
|
|
8
|
-
|
|
9
|
-
/home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk/src/index.ts
|
|
10
|
-
1:1 error Parsing error: The keyword 'import' is reserved
|
|
11
|
-
|
|
12
|
-
✖ 2 problems (2 errors, 0 warnings)
|
|
13
|
-
|
|
14
|
-
ELIFECYCLE Command failed with exit code 1.
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @tomo-inc/social-account-sdk@0.0.1 test /home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk
|
|
3
|
-
> vitest run
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk[39m
|
|
7
|
-
|
|
8
|
-
[31mNo test files found, exiting with code 1
|
|
9
|
-
[39m
|
|
10
|
-
[2minclude: [22m[33m**/*.{test,spec}.?(c|m)[jt]s?(x)[39m
|
|
11
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/cypress/**[2m, [22m**/.{idea,git,cache,output,temp}/**[2m, [22m**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*[39m
|
|
12
|
-
|
|
13
|
-
ELIFECYCLE Test failed. See above for more details.
|