@meteora-ag/zap-sdk 1.0.4 → 1.0.5-rc.1

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/index.js CHANGED
@@ -902,7 +902,7 @@ var Zap = class {
902
902
  ]);
903
903
  inputTokenAccountIx && preInstructions.push(inputTokenAccountIx);
904
904
  outputTokenAccountIx && preInstructions.push(outputTokenAccountIx);
905
- if (inputMint.equals(import_spl_token5.NATIVE_MINT)) {
905
+ if ([inputMint, outputMint].includes(import_spl_token5.NATIVE_MINT)) {
906
906
  const wrapIxs = wrapSOLInstruction(
907
907
  user,
908
908
  inputTokenAccount,
package/dist/index.mjs CHANGED
@@ -871,7 +871,7 @@ var Zap = class {
871
871
  ]);
872
872
  inputTokenAccountIx && preInstructions.push(inputTokenAccountIx);
873
873
  outputTokenAccountIx && preInstructions.push(outputTokenAccountIx);
874
- if (inputMint.equals(NATIVE_MINT3)) {
874
+ if ([inputMint, outputMint].includes(NATIVE_MINT3)) {
875
875
  const wrapIxs = wrapSOLInstruction(
876
876
  user,
877
877
  inputTokenAccount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteora-ag/zap-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-rc.1",
4
4
  "description": "A Typescript SDK for interacting with the Zap program on Meteora.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -17,6 +17,11 @@
17
17
  "files": [
18
18
  "dist/**"
19
19
  ],
20
+ "scripts": {
21
+ "build": "rm -rf dist && tsup src/index.ts --format esm,cjs --dts",
22
+ "clean": "rm -rf dist && rm -rf node_modules rm -rf pnpm-lock.yaml",
23
+ "test": "ts-node -r dotenv/config examples/removeDlmmLiquidityAndZapOut.ts"
24
+ },
20
25
  "exports": {
21
26
  ".": {
22
27
  "types": "./dist/index.d.ts",
@@ -42,9 +47,5 @@
42
47
  "bn.js": "^5.2.2",
43
48
  "decimal.js": "^10.4.2",
44
49
  "jito-ts": "^4.2.0"
45
- },
46
- "scripts": {
47
- "build": "rm -rf dist && tsup src/index.ts --format esm,cjs --dts",
48
- "clean": "rm -rf dist && rm -rf node_modules rm -rf pnpm-lock.yaml"
49
50
  }
50
- }
51
+ }