@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 CHANGED
@@ -1,3 +1,12 @@
1
1
  # @tomo-inc/social-account-sdk
2
2
 
3
+ ## 0.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @tomo-inc/chains-service@0.0.2
8
+ - @tomo-inc/cubist-wallet-sdk@0.0.2
9
+ - @tomo-inc/oidc-auth@0.0.2
10
+ - @tomo-inc/wallet-utils@0.0.2
11
+
3
12
  ## 0.0.1
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
- var __defProp = Object.defineProperty;
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
- var __defProp = Object.defineProperty;
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-alpha.0",
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": "workspace:*",
33
- "@tomo-inc/oidc-auth": "workspace:*",
34
- "@tomo-inc/cubist-wallet-sdk": "workspace:*",
35
- "@tomo-inc/chains-service": "workspace:*"
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
+ }
@@ -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
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Target: es2017
9
- ESM Build start
10
- CJS Build start
11
- [warn] ▲ [WARNING] Cannot find base config file "../../tsconfig.json" [tsconfig.json]
12
-
13
- tsconfig.json:2:13:
14
-  2 │ "extends": "../../tsconfig.json",
15
- ╵ ~~~~~~~~~~~~~~~~~~~~~
16
-
17
-
18
- [warn] ▲ [WARNING] Cannot find base config file "../../tsconfig.json" [tsconfig.json]
19
-
20
- tsconfig.json:2:13:
21
-  2 │ "extends": "../../tsconfig.json",
22
- ╵ ~~~~~~~~~~~~~~~~~~~~~
23
-
24
-
25
- ESM dist/index.js 7.94 KB
26
- ESM ⚡️ Build success in 170ms
27
- CJS dist/index.cjs 8.62 KB
28
- CJS ⚡️ Build success in 171ms
29
- DTS Build start
30
- error TS5083: Cannot read file '/home/runner/work/tomo-wallet/tomo-wallet/out/full/tsconfig.json'.
31
-
32
- DTS ⚡️ Build success in 3484ms
33
- DTS dist/index.d.ts 760.00 B
34
- DTS dist/index.d.cts 760.00 B
@@ -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.
@@ -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
-  RUN  v3.2.4 /home/runner/work/tomo-wallet/tomo-wallet/out/full/packages/social-account-sdk
7
-
8
- No test files found, exiting with code 1
9
- 
10
- include: **/*.{test,spec}.?(c|m)[jt]s?(x)
11
- exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
12
-
13
-  ELIFECYCLE  Test failed. See above for more details.