wallaby-cash 3.0.2 → 3.1.0
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/dist/generated/api.d.ts +724 -1320
- package/dist/index.cjs.js +69 -178
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +69 -178
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +54 -171
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/authenticator.d.ts +1 -0
- package/dist/package.json +12 -21
- package/dist/types/auth.d.ts +1 -0
- package/dist/types/storage.d.ts +2 -0
- package/dist/types/wallet.d.ts +1 -2
- package/package.json +12 -21
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"prestart": "npm ./scripts/start.sh",
|
|
35
35
|
"prebuild": "rimraf dist",
|
|
36
36
|
"build": "rollup --config --sourcemap --validate --bundleConfigAsCjs",
|
|
37
|
-
"build:prod": "npm run
|
|
38
|
-
"build:dev": "rollup --config --bundleConfigAsCjs --watch",
|
|
37
|
+
"build:prod": "npm run build --compact --environment production",
|
|
38
|
+
"build:dev": "npm run generate:types && rollup --config --bundleConfigAsCjs --watch",
|
|
39
39
|
"test": "NODE_ENV=test jest",
|
|
40
40
|
"merge-coverage": "mkdir -p .nyc_output && npx istanbul-merge --out .nyc_output/out.json coverage/coverage-final.json && npx nyc report --reporter=json-summary --reporter=text-summary --report-dir=coverage && npx nyc check-coverage",
|
|
41
41
|
"test:coverage": "NODE_ENV=test npm run test --coverage",
|
|
@@ -48,21 +48,15 @@
|
|
|
48
48
|
"docs:generate": "npx typedoc",
|
|
49
49
|
"generate:types": "node scripts/generate-api-types.mjs",
|
|
50
50
|
"generate:types:local": "node scripts/generate-api-types.mjs --local",
|
|
51
|
-
"release:dry": "semantic-release --dry-run",
|
|
52
51
|
"release": "npm publish --access-public",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"release:alpha": "npm run tag:alpha && npm run build && npm publish --tag alpha",
|
|
59
|
-
"release:native": "npm run tag:native && npm run build && npm publish --tag native",
|
|
60
|
-
"release:beta": "npm run tag:beta && npm run build && npm publish --tag beta",
|
|
61
|
-
"release:rc": "npm version prerelease --preid=rc && npm run build:prod && npm publish --access public --tag rc",
|
|
62
|
-
"release:latest": "npm run tag:latest && npm run build && npm publish --access public",
|
|
63
|
-
"size": "size-limit --json"
|
|
52
|
+
"release:alpha": "npm run build && npm publish --tag alpha",
|
|
53
|
+
"release:native": "npm run build && npm publish --tag native",
|
|
54
|
+
"release:beta": "npm run build && npm publish --tag beta",
|
|
55
|
+
"release:rc": "npm run build:prod && npm publish --access public --tag rc",
|
|
56
|
+
"release:latest": "npm run build:prod && npm publish --access public"
|
|
64
57
|
},
|
|
65
58
|
"devDependencies": {
|
|
59
|
+
"@changesets/cli": "^2.31.0",
|
|
66
60
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
67
61
|
"@rollup/plugin-json": "^6.1.0",
|
|
68
62
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
@@ -140,21 +134,18 @@
|
|
|
140
134
|
"jsdom": {
|
|
141
135
|
"ws": "^8.20.1"
|
|
142
136
|
},
|
|
143
|
-
"minimatch": {
|
|
144
|
-
"brace-expansion": "^5.0.6"
|
|
145
|
-
},
|
|
146
137
|
"undici": "^7.19.0",
|
|
147
138
|
"js-yaml": "^4.1.1",
|
|
148
139
|
"pbkdf2": "^3.1.3",
|
|
149
140
|
"esbuild": "^0.25.0",
|
|
150
141
|
"ws": "^8.20.1",
|
|
151
|
-
"brace-expansion": "^5.0.6",
|
|
152
142
|
"@octokit/core": "^6.1.0",
|
|
153
143
|
"@octokit/request": "^8.4.1",
|
|
154
144
|
"@octokit/request-error": "^5.1.1",
|
|
155
145
|
"@octokit/plugin-paginate-rest": "^9.2.2",
|
|
156
146
|
"@octokit/plugin-throttling": "^8.1.0",
|
|
157
|
-
"serialize-javascript": "^7.0.3"
|
|
147
|
+
"serialize-javascript": "^7.0.3",
|
|
148
|
+
"shell-quote": "^1.8.4"
|
|
158
149
|
},
|
|
159
150
|
"size-limit": [
|
|
160
151
|
{
|
|
@@ -180,4 +171,4 @@
|
|
|
180
171
|
"functions": 61,
|
|
181
172
|
"branches": 38
|
|
182
173
|
}
|
|
183
|
-
}
|
|
174
|
+
}
|
package/dist/types/auth.d.ts
CHANGED
package/dist/types/storage.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type LocalStorage = Partial<{
|
|
|
16
16
|
}>;
|
|
17
17
|
export declare enum LocalStorageItems {
|
|
18
18
|
AccessToken = "access-token",
|
|
19
|
+
RefreshToken = "refresh-token",
|
|
19
20
|
EncryptedStandardSeedPhrase = "encrypted-standard-seedPhrase",
|
|
20
21
|
EncryptedKeyShares = "encrypted-key-shares",
|
|
21
22
|
PrimaryDeviceKeyShare = "primary-device-key-share",
|
|
@@ -47,6 +48,7 @@ export declare enum V1KeyNames {
|
|
|
47
48
|
}
|
|
48
49
|
export declare enum V2KeyNames {
|
|
49
50
|
AccessToken = "access-token",
|
|
51
|
+
RefreshToken = "refresh-token",
|
|
50
52
|
BackupDeviceKeyShare = "backup-device-key-share",
|
|
51
53
|
ClientAuthPublicKey = "client-auth-pub-key",
|
|
52
54
|
ClientAuthToken = "republic-jwt",
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -19,8 +19,7 @@ export type Share = {
|
|
|
19
19
|
export declare enum KeyTypeName {
|
|
20
20
|
WallabyShare = "wallaby_share",
|
|
21
21
|
OwnerMainDeviceShare = "owner_main_device_share",
|
|
22
|
-
OwnerBackupDeviceShare = "owner_backup_device_share"
|
|
23
|
-
AddedUserShare = "added_user_share"
|
|
22
|
+
OwnerBackupDeviceShare = "owner_backup_device_share"
|
|
24
23
|
}
|
|
25
24
|
export type AddNewDeviceResponse = {
|
|
26
25
|
share: Share;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"prestart": "npm ./scripts/start.sh",
|
|
35
35
|
"prebuild": "rimraf dist",
|
|
36
36
|
"build": "rollup --config --sourcemap --validate --bundleConfigAsCjs",
|
|
37
|
-
"build:prod": "npm run
|
|
38
|
-
"build:dev": "rollup --config --bundleConfigAsCjs --watch",
|
|
37
|
+
"build:prod": "npm run build --compact --environment production",
|
|
38
|
+
"build:dev": "npm run generate:types && rollup --config --bundleConfigAsCjs --watch",
|
|
39
39
|
"test": "NODE_ENV=test jest",
|
|
40
40
|
"merge-coverage": "mkdir -p .nyc_output && npx istanbul-merge --out .nyc_output/out.json coverage/coverage-final.json && npx nyc report --reporter=json-summary --reporter=text-summary --report-dir=coverage && npx nyc check-coverage",
|
|
41
41
|
"test:coverage": "NODE_ENV=test npm run test --coverage",
|
|
@@ -48,21 +48,15 @@
|
|
|
48
48
|
"docs:generate": "npx typedoc",
|
|
49
49
|
"generate:types": "node scripts/generate-api-types.mjs",
|
|
50
50
|
"generate:types:local": "node scripts/generate-api-types.mjs --local",
|
|
51
|
-
"release:dry": "semantic-release --dry-run",
|
|
52
51
|
"release": "npm publish --access-public",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"release:alpha": "npm run tag:alpha && npm run build && npm publish --tag alpha",
|
|
59
|
-
"release:native": "npm run tag:native && npm run build && npm publish --tag native",
|
|
60
|
-
"release:beta": "npm run tag:beta && npm run build && npm publish --tag beta",
|
|
61
|
-
"release:rc": "npm version prerelease --preid=rc && npm run build:prod && npm publish --access public --tag rc",
|
|
62
|
-
"release:latest": "npm run tag:latest && npm run build && npm publish --access public",
|
|
63
|
-
"size": "size-limit --json"
|
|
52
|
+
"release:alpha": "npm run build && npm publish --tag alpha",
|
|
53
|
+
"release:native": "npm run build && npm publish --tag native",
|
|
54
|
+
"release:beta": "npm run build && npm publish --tag beta",
|
|
55
|
+
"release:rc": "npm run build:prod && npm publish --access public --tag rc",
|
|
56
|
+
"release:latest": "npm run build:prod && npm publish --access public"
|
|
64
57
|
},
|
|
65
58
|
"devDependencies": {
|
|
59
|
+
"@changesets/cli": "^2.31.0",
|
|
66
60
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
67
61
|
"@rollup/plugin-json": "^6.1.0",
|
|
68
62
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
@@ -140,21 +134,18 @@
|
|
|
140
134
|
"jsdom": {
|
|
141
135
|
"ws": "^8.20.1"
|
|
142
136
|
},
|
|
143
|
-
"minimatch": {
|
|
144
|
-
"brace-expansion": "^5.0.6"
|
|
145
|
-
},
|
|
146
137
|
"undici": "^7.19.0",
|
|
147
138
|
"js-yaml": "^4.1.1",
|
|
148
139
|
"pbkdf2": "^3.1.3",
|
|
149
140
|
"esbuild": "^0.25.0",
|
|
150
141
|
"ws": "^8.20.1",
|
|
151
|
-
"brace-expansion": "^5.0.6",
|
|
152
142
|
"@octokit/core": "^6.1.0",
|
|
153
143
|
"@octokit/request": "^8.4.1",
|
|
154
144
|
"@octokit/request-error": "^5.1.1",
|
|
155
145
|
"@octokit/plugin-paginate-rest": "^9.2.2",
|
|
156
146
|
"@octokit/plugin-throttling": "^8.1.0",
|
|
157
|
-
"serialize-javascript": "^7.0.3"
|
|
147
|
+
"serialize-javascript": "^7.0.3",
|
|
148
|
+
"shell-quote": "^1.8.4"
|
|
158
149
|
},
|
|
159
150
|
"size-limit": [
|
|
160
151
|
{
|
|
@@ -180,4 +171,4 @@
|
|
|
180
171
|
"functions": 61,
|
|
181
172
|
"branches": 38
|
|
182
173
|
}
|
|
183
|
-
}
|
|
174
|
+
}
|