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

@pancakeswap/swap-sdk-core

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pancakeswap/swap-sdk-core - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

12

dist/index.js

@@ -466,2 +466,13 @@ 'use strict';

}
function sortCurrencies(currencies) {
return currencies.sort((a, b) => {
if (a.isNative) {
return -1;
}
if (b.isNative) {
return 1;
}
return a.sortsBefore(b) ? -1 : 1;
});
}

@@ -494,4 +505,5 @@ exports.BaseCurrency = BaseCurrency;

exports.getTokenComparator = getTokenComparator;
exports.sortCurrencies = sortCurrencies;
exports.sortedInsert = sortedInsert;
exports.sqrt = sqrt;
exports.validateVMTypeInstance = validateVMTypeInstance;

1

dist/utils.d.ts

@@ -18,2 +18,3 @@ import { VMType } from './constants';

}): (tokenA: Token, tokenB: Token) => number;
export declare function sortCurrencies<T extends Currency>(currencies: T[]): T[];
//# sourceMappingURL=utils.d.ts.map

2

package.json
{
"name": "@pancakeswap/swap-sdk-core",
"license": "MIT",
"version": "1.1.0",
"version": "1.2.0",
"description": "🛠 An SDK for building applications on top of Pancakeswap.",

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

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