Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/abstract-lightning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
},
"dependencies": {
"@bitgo/public-types": "6.90.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0",
"@bitgo/statics": "^59.35.0",
"@bitgo/utxo-lib": "^11.25.2",
Expand Down
2 changes: 1 addition & 1 deletion modules/bitgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"superagent": "^9.0.1"
},
"devDependencies": {
"@bitgo/public-types": "6.90.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-opensslbytes": "^2.1.0",
"@bitgo/sdk-test": "^9.1.101",
"@openpgp/web-stream-tools": "0.0.14",
Expand Down
16 changes: 16 additions & 0 deletions modules/express/openapi-generator.rc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@
* Custom codec handlers for OpenAPI generation
*/

const { Project } = require('@api-ts/openapi-generator');

// The CLI merges this file over its built-in table one package key deep, so an 'io-ts' entry
// replaces every built-in io-ts handler. Fall back to the built-ins through the public
// Project#resolveKnownImport instead of copying them or importing the generator's dist internals.
const builtins = new Project();
const withBuiltins = (pkg, overrides) =>
new Proxy(overrides, {
get: (target, name) =>
typeof name === 'string' && !(name in target) ? builtins.resolveKnownImport(pkg, name) : target[name],
});

module.exports = (E) => {
return {
'io-ts': withBuiltins('io-ts', {
// A refinement only narrows decoding at runtime; its wire shape is the inner codec's.
refinement: (_, innerSchema) => E.right(innerSchema),
}),
'.': {
JsonFromStringifiedJson: () => E.right({ type: 'string' }),
Optional: (_, innerSchema) => E.right({ type: 'union', schemas: [innerSchema, { type: 'undefined' }] }),
Expand Down
2 changes: 1 addition & 1 deletion modules/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@api-ts/typed-express-router": "2.0.0",
"@bitgo/abstract-lightning": "^8.7.7",
"@bitgo/logger": "^1.4.0",
"@bitgo/public-types": "7.1.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0",
"@bitgo/utxo-lib": "^11.25.2",
"@types/proxyquire": "^1.3.31",
Expand Down
2 changes: 1 addition & 1 deletion modules/passkey-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"access": "public"
},
"dependencies": {
"@bitgo/public-types": "6.90.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-canton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
]
},
"dependencies": {
"@bitgo/public-types": "7.6.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0",
"@bitgo/statics": "^59.35.0",
"@protobuf-ts/runtime": "^2.11.1",
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-flrp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"nock": "^13.3.1"
},
"dependencies": {
"@bitgo/public-types": "6.90.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0",
"@bitgo/secp256k1": "^1.11.1",
"@bitgo/statics": "^59.35.0",
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-sol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"@bitgo/logger": "^1.4.0",
"@bitgo/public-types": "6.90.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-core": "^40.11.0",
"@bitgo/sdk-lib-mpc": "^11.7.1",
"@bitgo/statics": "^59.35.0",
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
]
},
"dependencies": {
"@bitgo/public-types": "7.6.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/sdk-lib-mpc": "^11.7.1",
"@bitgo/sdk-lib-safes": "^1.11.3",
"@bitgo/secp256k1": "^1.11.1",
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-lib-safes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"access": "public"
},
"dependencies": {
"@bitgo/public-types": "7.1.0",
"@bitgo/public-types": "7.6.5",
"@bitgo/secp256k1": "^1.11.1",
"@bitgo/statics": "^59.35.0",
"create-hmac": "^1.1.7",
Expand Down
30 changes: 4 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1034,32 +1034,10 @@
"@scure/base" "1.1.5"
micro-eth-signer "0.7.2"

"@bitgo/public-types@6.90.0":
version "6.90.0"
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-6.90.0.tgz#01cbded37315be24451c0e357df57f99dc7668ca"
integrity sha512-8JmcPhiovAjfm75/z5/BCtFJC/jjyCL6D52yE+LtQL2T2A58XccNrzEQZey5Ndo5gs1ARyFqxatL3CD8CZkoGw==
dependencies:
fp-ts "^2.0.0"
io-ts "npm:@bitgo-forks/io-ts@2.1.4"
io-ts-types "^0.5.16"
monocle-ts "^2.3.13"
newtype-ts "^0.3.5"

"@bitgo/public-types@7.1.0":
version "7.1.0"
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-7.1.0.tgz#659956b7dd280d5ba2f191783cf7e66af9dedaff"
integrity sha512-7HiK2ajVN2TVDc/YphQy/xPRAzoRIWsIMWLFn1k7ad/nnXYTtioTwrBIg2NzWSjaz2lAGy2hS2AkgBuf3x4GfQ==
dependencies:
fp-ts "^2.0.0"
io-ts "npm:@bitgo-forks/io-ts@2.1.4"
io-ts-types "^0.5.16"
monocle-ts "^2.3.13"
newtype-ts "^0.3.5"

"@bitgo/public-types@7.6.0":
version "7.6.0"
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-7.6.0.tgz#4e4bc12c105b5785928df3cc7c4288a3c8089e63"
integrity sha512-QHjU8Xj++gCU86AZv9uHEhh68ulYSiER15Sg7GtzZwpox0J7++SelytyQJ4PUwNETJ57spDeiNqAismwqmAzQA==
"@bitgo/public-types@7.6.5":
version "7.6.5"
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-7.6.5.tgz#6e9727fcc841911d3a98945eaf8706e4090920a4"
integrity sha512-E+gGIcFEQL+lZvANH2IGpfqxxIrooe3uzebiwZ19v7BvNGQ9GsyeQ7aaVhHg6L+2KYM35XC9SclZpYR9ZFPNCw==
dependencies:
fp-ts "^2.0.0"
io-ts "npm:@bitgo-forks/io-ts@2.1.4"
Expand Down
Loading