@ledgerhq/common
Advanced tools
Comparing version 2.2.0-beta.9d29a5c6 to 2.3.0
@@ -24,2 +24,4 @@ "use strict"; | ||
console.warn("DEPRECATED: @ledgerhq/common/lib/data/currency : use @ledgerhq/currencies instead"); | ||
// This define utility to deal with currencies, units, countervalues | ||
@@ -36,2 +38,3 @@ | ||
} | ||
function getFiatUnit(fiat) { | ||
@@ -38,0 +41,0 @@ var unit = _fiatUnits2.default[fiat]; |
@@ -7,3 +7,5 @@ "use strict"; | ||
console.warn("DEPRECATED: @ledgerhq/common/lib/data/fiat-units : use @ledgerhq/currencies instead"); | ||
// inspired by https://github.com/smirzaei/currency-formatter/blob/master/currencies.json | ||
var units = { | ||
@@ -216,3 +218,2 @@ AED: { name: "Emirati Dirham", code: "AED", symbol: "د.إ.", magnitude: 2 }, | ||
}; | ||
for (var u in units) { | ||
@@ -219,0 +220,0 @@ units[u].showAllDigits = true; |
{ | ||
"name": "@ledgerhq/common", | ||
"version": "2.2.0-beta.9d29a5c6", | ||
"version": "2.3.0", | ||
"description": "Ledger Hardware Wallet Common", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
<img src="https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png" height="100" /> | ||
## @ledgerhq/hw-common | ||
## @ledgerhq/common | ||
@@ -5,0 +5,0 @@ Library for Ledger Hardware Wallets. |
@@ -5,2 +5,6 @@ //@flow | ||
console.warn( | ||
"DEPRECATED: @ledgerhq/common/lib/data/currency : use @ledgerhq/currencies instead" | ||
); | ||
// This define utility to deal with currencies, units, countervalues | ||
@@ -7,0 +11,0 @@ |
//@flow | ||
import type { Unit } from "./types"; | ||
console.warn( | ||
"DEPRECATED: @ledgerhq/common/lib/data/fiat-units : use @ledgerhq/currencies instead" | ||
); | ||
// inspired by https://github.com/smirzaei/currency-formatter/blob/master/currencies.json | ||
@@ -4,0 +7,0 @@ const units: { [key: string]: Unit } = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
853899
13921
0
4