Skip to content

Commit

Permalink
Merge pull request #303 from convergence-rfq/eng-1932-debug-hxro-sdk-…
Browse files Browse the repository at this point in the history
…issue-in-the-api-repo

Fix hxro sdk issue in the api repo
  • Loading branch information
pindaroso authored Apr 26, 2024
2 parents 0adab70 + 66ede0a commit dbf9200
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @convergence-rfq/cli

## 6.6.10

### Patch Changes

- Fix an issue with hxro library when the SDK is imported as .mjs
- Updated dependencies
- @convergence-rfq/sdk@6.6.10

## 6.6.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/cli",
"description": "Official Convergence CLI",
"version": "6.6.9",
"version": "6.6.10",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -47,7 +47,7 @@
"cli": "ts-node src/index.ts"
},
"dependencies": {
"@convergence-rfq/sdk": "6.6.9",
"@convergence-rfq/sdk": "6.6.10",
"@solana/web3.js": "^1.87.6",
"@types/cookie": "^0.5.1",
"commander": "^10.0.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @convergence-rfq/sdk

## 6.6.10

### Patch Changes

- Fix an issue with hxro library when the SDK is imported as .mjs

## 6.6.9

### Patch Changes
Expand Down
5 changes: 3 additions & 2 deletions packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/sdk",
"description": "Official Convergence RFQ SDK",
"version": "6.6.9",
"version": "6.6.10",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -37,7 +37,8 @@
"lint": "eslint --ext js,ts,tsx src",
"lint:fix": "eslint --fix --ext js,ts,tsx src",
"clean": "rimraf dist",
"build": "yarn clean && tsc && tsc-alias && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && rollup -c",
"build": "yarn clean && yarn build:types && rollup -c",
"build:types": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test:coverage": "nyc ts-mocha --timeout 100000 tests/**/*.spec.ts",
"test": "ts-mocha --paths --timeout 100000 tests/**/*.spec.ts"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export const hxroManifestCache = useCache(async (cvg: Convergence) => {
console.debug = () => {};
let manifest: any; // dexterity doesn't export a type for a manifest
try {
manifest = await dexterity.getManifest(
// @ts-ignore the next line fixes a strange issue with dexterity default export when imported from .mjs files
const getManifest = dexterity.getManifest ?? dexterity.default.getManifest;

manifest = await getManifest(
cvg.connection.rpcEndpoint,
true,
new CvgWallet(cvg)
Expand Down
2 changes: 1 addition & 1 deletion packages/js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"esModuleInterop": true,
"module": "commonjs",
"declaration": true,
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"declarationDir": "dist/types",
}
}

0 comments on commit dbf9200

Please sign in to comment.