Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@depay/local-currency

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@depay/local-currency - npm Package Compare versions

Comparing version 3.5.0 to 3.5.1

2

dist/esm/index.js

@@ -431,3 +431,3 @@ var timezoneToCurrency = {

this.amount = amount;
this.code = code || Currency.code || Currency.getCode(timeZone);
this.code = code || window._LocalCurrencyCode || Currency.getCode(timeZone);
this.timeZone = timeZone;

@@ -434,0 +434,0 @@ }

@@ -437,3 +437,3 @@ (function (global, factory) {

this.amount = amount;
this.code = code || Currency.code || Currency.getCode(timeZone);
this.code = code || window._LocalCurrencyCode || Currency.getCode(timeZone);
this.timeZone = timeZone;

@@ -440,0 +440,0 @@ }

{
"name": "@depay/local-currency",
"moduleName": "LocalCurrency",
"version": "3.5.0",
"version": "3.5.1",
"description": "JavaScript library that detects user's local currency and provides functionalities to convert between multiple currencies.",

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

@@ -84,8 +84,8 @@ ## Quickstart

### set currency
### set currency globally
Globally (e.g. tests etc.):
e.g. in tests etc.:
```javascript
Currency.code = 'EUR'
window._LocalCurrencyCode = 'EUR'
```

@@ -92,0 +92,0 @@

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