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

@osskit/currencies

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osskit/currencies - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

3

dist/rate.js
import { toMajorUnit } from './conversion.js';
const JS_BUFFER_MULTIPLIER = 10_000;
export const calculateRate = (from, to) => {
const fromInMajor = toMajorUnit(from);
const toInMajor = toMajorUnit(to);
return toInMajor / fromInMajor;
return (JS_BUFFER_MULTIPLIER * toInMajor) / (JS_BUFFER_MULTIPLIER * fromInMajor);
};
//# sourceMappingURL=rate.js.map
{
"name": "@osskit/currencies",
"version": "1.1.1",
"version": "1.1.2",
"repository": {

@@ -5,0 +5,0 @@ "url": "https://github.com/osskit/currencies"

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