@bitgo/sdk-api 1.3.0-dev.1 → 1.5.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/package.json +20 -9
  3. package/dist/src/api.d.ts.map +1 -1
  4. package/dist/src/api.js +5 -5
  5. package/dist/src/bitgoAPI.d.ts +227 -6
  6. package/dist/src/bitgoAPI.d.ts.map +1 -1
  7. package/dist/src/bitgoAPI.js +612 -17
  8. package/dist/src/types.d.ts +110 -9
  9. package/dist/src/types.d.ts.map +1 -1
  10. package/dist/src/types.js +2 -14
  11. package/dist/src/util.d.ts +0 -8
  12. package/dist/src/util.d.ts.map +1 -1
  13. package/dist/src/util.js +2 -21
  14. package/dist/src/v1/blockchain.d.ts +5 -0
  15. package/dist/src/v1/blockchain.d.ts.map +1 -0
  16. package/dist/src/v1/blockchain.js +114 -0
  17. package/dist/src/v1/keychains.d.ts +5 -0
  18. package/dist/src/v1/keychains.d.ts.map +1 -0
  19. package/dist/src/v1/keychains.js +315 -0
  20. package/dist/src/v1/markets.d.ts +5 -0
  21. package/dist/src/v1/markets.d.ts.map +1 -0
  22. package/dist/src/v1/markets.js +63 -0
  23. package/dist/src/v1/pendingapproval.d.ts +6 -0
  24. package/dist/src/v1/pendingapproval.d.ts.map +1 -0
  25. package/dist/src/v1/pendingapproval.js +322 -0
  26. package/dist/src/v1/pendingapprovals.d.ts +6 -0
  27. package/dist/src/v1/pendingapprovals.d.ts.map +1 -0
  28. package/dist/src/v1/pendingapprovals.js +68 -0
  29. package/dist/src/v1/transactionBuilder.d.ts +5 -0
  30. package/dist/src/v1/transactionBuilder.d.ts.map +1 -0
  31. package/dist/src/v1/transactionBuilder.js +889 -0
  32. package/dist/src/v1/travelRule.d.ts +5 -0
  33. package/dist/src/v1/travelRule.d.ts.map +1 -0
  34. package/dist/src/v1/travelRule.js +257 -0
  35. package/dist/src/v1/wallet.d.ts +6 -0
  36. package/dist/src/v1/wallet.d.ts.map +1 -0
  37. package/dist/src/v1/wallet.js +2095 -0
  38. package/dist/src/v1/wallets.d.ts +5 -0
  39. package/dist/src/v1/wallets.d.ts.map +1 -0
  40. package/dist/src/v1/wallets.js +472 -0
  41. package/dist/web/main.js +1 -1
  42. package/dist/web/main.js.LICENSE.txt +41 -0
  43. package/package.json +20 -9
  44. package/dist/tsconfig.tsbuildinfo +0 -7006
@@ -1,3 +1,28 @@
1
+ /* @preserve
2
+ * The MIT License (MIT)
3
+ *
4
+ * Copyright (c) 2013-2018 Petka Antonov
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ *
24
+ */
25
+
1
26
  /*!
2
27
  * The buffer module from node.js, for the browser.
3
28
  *
@@ -27,6 +52,16 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
52
  PERFORMANCE OF THIS SOFTWARE.
28
53
  ***************************************************************************** */
29
54
 
55
+ /*! @preserve
56
+ *
57
+ * tcomb.js - Type checking and DDD for JavaScript
58
+ *
59
+ * The MIT License (MIT)
60
+ *
61
+ * Copyright (c) 2014-2016 Giulio Canti
62
+ *
63
+ */
64
+
30
65
  /*! OpenPGP.js v5.1.0 - 2022-01-24 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
31
66
 
32
67
  /*! https://mths.be/punycode v1.3.2 by @mathias */
@@ -47,3 +82,9 @@ PERFORMANCE OF THIS SOFTWARE.
47
82
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
48
83
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
49
84
  */
85
+
86
+ // @license MIT
87
+
88
+ // @preserve author Alexander Stetsyuk
89
+
90
+ // @preserve author Glenn Rempe <glenn@rempe.us>
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "@bitgo/sdk-api",
3
- "version": "1.3.0-dev.1",
3
+ "version": "1.5.0",
4
4
  "description": "REST wrapper for BitGoJS",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
8
- "node": "./dist/src/index.js",
9
- "default": "./dist/web/main.js"
8
+ "./package.json": "./package.json",
9
+ ".": {
10
+ "node": "./dist/src/index.js",
11
+ "default": "./dist/web/main.js"
12
+ }
13
+ },
14
+ "browser": {
15
+ "superagent-proxy": false
10
16
  },
11
17
  "scripts": {
12
18
  "build": "yarn tsc --build --incremental --verbose .",
@@ -14,11 +20,13 @@
14
20
  "check-fmt": "prettier --check .",
15
21
  "clean": "rm -r ./dist",
16
22
  "lint": "eslint --quiet .",
17
- "precommit": "yarn lint-staged",
18
23
  "prepare": "npm run build",
19
24
  "webpack-dev": "yarn webpack",
20
25
  "webpack-prod": "yarn webpack --mode=production --node-env=production",
21
- "prepublishOnly": "yarn webpack-prod"
26
+ "prepublishOnly": "yarn webpack-prod",
27
+ "test": "npm run coverage",
28
+ "coverage": "nyc -- npm run unit-test",
29
+ "unit-test": "mocha"
22
30
  },
23
31
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
24
32
  "license": "MIT",
@@ -42,20 +50,23 @@
42
50
  ]
43
51
  },
44
52
  "dependencies": {
45
- "@bitgo/sdk-core": "^1.2.0-dev.1",
53
+ "@bitgo/sdk-core": "^2.3.0",
46
54
  "@bitgo/sjcl": "^1.0.1",
47
- "@bitgo/utxo-lib": "^2.4.0-dev.0",
55
+ "@bitgo/unspents": "^0.11.1",
56
+ "@bitgo/utxo-lib": "^3.2.1",
48
57
  "@types/superagent": "4.1.15",
49
- "bip32": "^2.0.6",
50
58
  "bitcoinjs-message": "^2.0.0",
59
+ "bluebird": "^3.5.3",
51
60
  "browser-or-node": "2.0.0",
52
61
  "bs58": "^2.0.1",
53
62
  "debug": "3.1.0",
54
63
  "eol": "^0.5.0",
64
+ "lodash": "^4.17.15",
55
65
  "sanitize-html": "^1.27.5",
56
66
  "secp256k1": "^4.0.2",
67
+ "secrets.js-grempe": "^1.1.0",
57
68
  "superagent": "3.8.3",
58
69
  "superagent-proxy": "3.0.0"
59
70
  },
60
- "gitHead": "6dc7b0d27f8267f458c00673e0adbbb0a6c4df3a"
71
+ "gitHead": "1eed09b721d87e3c7591a4bee9f7af5c5d8adb46"
61
72
  }