@nlo/currency-formatter
Advanced tools
Comparing version 0.0.1-alpha.82 to 0.0.1-alpha.84
declare class CurrencyFormatter { | ||
formatCents(inputCents: number | string, allowNegative?: boolean): string | undefined; | ||
formatCentsRounded(cents: number | string, allowNegative?: boolean): string | undefined; | ||
formatCentsForText(cents: number | string, allowNegative?: boolean): string | undefined; | ||
formatEuroToCents(euro: string): number | undefined; | ||
@@ -5,0 +6,0 @@ private isUnsafeInteger; |
@@ -53,2 +53,6 @@ "use strict"; | ||
}; | ||
CurrencyFormatter.prototype.formatCentsForText = function (cents, allowNegative) { | ||
var money = this.formatCents(cents, allowNegative); | ||
return money ? money.replace(',00', ',-') : money; | ||
}; | ||
CurrencyFormatter.prototype.formatEuroToCents = function (euro) { | ||
@@ -55,0 +59,0 @@ var moneyStr = euro.replace(/\./g, '').replace(/,/g, '.'); |
import currencyFormatter from './currency-formatter'; | ||
export default currencyFormatter; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@nlo/currency-formatter", | ||
"version": "0.0.1-alpha.82+d957b39", | ||
"version": "0.0.1-alpha.84+4afcc9b", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "d957b39fa509ea2e5dd89eba787eb50da57646e0" | ||
"gitHead": "4afcc9b493bf488d41983d4cc214d53e327e79f4" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3980
92
2