New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jup-ag/api

Package Overview
Dependencies
Maintainers
7
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jup-ag/api - npm Package Compare versions

Comparing version 6.0.32 to 6.0.33

24

dist/index.d.ts

@@ -335,3 +335,3 @@ /**

*/
amount?: string;
amount: string;
/**

@@ -342,3 +342,3 @@ *

*/
feeBps?: number;
feeBps: number;
}

@@ -434,3 +434,3 @@ /**

*/
label?: string;
label: string;
/**

@@ -827,2 +827,8 @@ *

/**
* Allow a custom payer to pay for the transaction.
* @type {string}
* @memberof SwapRequest
*/
payer?: string;
/**
* Default is true. If true, will automatically wrap/unwrap SOL. If false, it will use wSOL token account. Will be ignored if `destinationTokenAccount` is set because the `destinationTokenAccount` may belong to a different user that we have no authority to close.

@@ -901,8 +907,2 @@ * @type {boolean}

*
* @type {QuoteResponse}
* @memberof SwapRequest
*/
quoteResponse: QuoteResponse;
/**
*
* @type {SwapRequestDynamicSlippage}

@@ -924,2 +924,8 @@ * @memberof SwapRequest

correctLastValidBlockHeight?: boolean;
/**
*
* @type {QuoteResponse}
* @memberof SwapRequest
*/
quoteResponse: QuoteResponse;
}

@@ -926,0 +932,0 @@ /**

@@ -554,2 +554,4 @@ "use strict";

let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "feeBps" in value;
return isInstance;

@@ -565,4 +567,4 @@ }

return {
"amount": !exists(json, "amount") ? void 0 : json["amount"],
"feeBps": !exists(json, "feeBps") ? void 0 : json["feeBps"]
"amount": json["amount"],
"feeBps": json["feeBps"]
};

@@ -624,2 +626,3 @@ }

isInstance = isInstance && "ammKey" in value;
isInstance = isInstance && "label" in value;
isInstance = isInstance && "inputMint" in value;

@@ -642,3 +645,3 @@ isInstance = isInstance && "outputMint" in value;

"ammKey": json["ammKey"],
"label": !exists(json, "label") ? void 0 : json["label"],
"label": json["label"],
"inputMint": json["inputMint"],

@@ -897,2 +900,3 @@ "outputMint": json["outputMint"],

"userPublicKey": json["userPublicKey"],
"payer": !exists(json, "payer") ? void 0 : json["payer"],
"wrapAndUnwrapSol": !exists(json, "wrapAndUnwrapSol") ? void 0 : json["wrapAndUnwrapSol"],

@@ -910,6 +914,6 @@ "useSharedAccounts": !exists(json, "useSharedAccounts") ? void 0 : json["useSharedAccounts"],

"allowOptimizedWrappedSolTokenAccount": !exists(json, "allowOptimizedWrappedSolTokenAccount") ? void 0 : json["allowOptimizedWrappedSolTokenAccount"],
"quoteResponse": QuoteResponseFromJSON(json["quoteResponse"]),
"dynamicSlippage": !exists(json, "dynamicSlippage") ? void 0 : SwapRequestDynamicSlippageFromJSON(json["dynamicSlippage"]),
"blockhashSlotsToExpiry": !exists(json, "blockhashSlotsToExpiry") ? void 0 : json["blockhashSlotsToExpiry"],
"correctLastValidBlockHeight": !exists(json, "correctLastValidBlockHeight") ? void 0 : json["correctLastValidBlockHeight"]
"correctLastValidBlockHeight": !exists(json, "correctLastValidBlockHeight") ? void 0 : json["correctLastValidBlockHeight"],
"quoteResponse": QuoteResponseFromJSON(json["quoteResponse"])
};

@@ -926,2 +930,3 @@ }

"userPublicKey": value.userPublicKey,
"payer": value.payer,
"wrapAndUnwrapSol": value.wrapAndUnwrapSol,

@@ -939,6 +944,6 @@ "useSharedAccounts": value.useSharedAccounts,

"allowOptimizedWrappedSolTokenAccount": value.allowOptimizedWrappedSolTokenAccount,
"quoteResponse": QuoteResponseToJSON(value.quoteResponse),
"dynamicSlippage": SwapRequestDynamicSlippageToJSON(value.dynamicSlippage),
"blockhashSlotsToExpiry": value.blockhashSlotsToExpiry,
"correctLastValidBlockHeight": value.correctLastValidBlockHeight
"correctLastValidBlockHeight": value.correctLastValidBlockHeight,
"quoteResponse": QuoteResponseToJSON(value.quoteResponse)
};

@@ -945,0 +950,0 @@ }

{
"name": "@jup-ag/api",
"version": "6.0.32",
"version": "6.0.33",
"description": "## Generate typescript types from swagger schema",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -46,3 +46,3 @@ # JavaScript API Client for Jupiter V6

// platformFeeBps: 10,
// asLegacyTransaction: true, // legacy transaction, default is versoined transaction
// asLegacyTransaction: true, // legacy transaction, default is versioned transaction
})

@@ -70,2 +70,2 @@ ```

You can also check out some of the [paid hosted APIs](https://station.jup.ag/docs/apis/self-hosted#paid-hosted-apis).
You can also check out some of the [paid hosted APIs](https://station.jup.ag/docs/apis/self-hosted#paid-hosted-apis).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc