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

@omnicar/sam-format

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@omnicar/sam-format - npm Package Compare versions

Comparing version 0.0.37 to 0.0.38

5

dist/formatDate/formatDate.d.ts

@@ -22,1 +22,6 @@ import { IsoLocale } from '@omnicar/sam-types';

export declare function formatLocalizedDate(date: Date, rawFormat: string, isoLocale: IsoLocale): string;
/**
* Get the date format for a country.
* It returns the string in capital letters because some things like for example react-date-picker needs that.
*/
export declare function getDateFormatInCapitalLetters(): string;

@@ -91,2 +91,11 @@ "use strict";

/**
* Get the date format for a country.
* It returns the string in capital letters because some things like for example react-date-picker needs that.
*/
function getDateFormatInCapitalLetters() {
var dateConfig = init_2.currentLocale.date;
return dateConfig.format.toUpperCase();
}
exports.getDateFormatInCapitalLetters = getDateFormatInCapitalLetters;
/**
* Get formatted date from underlying implementation

@@ -93,0 +102,0 @@ * @param number

2

dist/index.d.ts

@@ -1,2 +0,2 @@

export { formatDate, formatLocalizedDate } from './formatDate/formatDate';
export { formatDate, formatLocalizedDate, getDateFormatInCapitalLetters, } from './formatDate/formatDate';
export { formatMileage } from './formattedNumber/formatters/formatMileage';

@@ -3,0 +3,0 @@ export { formatCurrency } from './formattedNumber/formatters/formatCurrency';

@@ -6,2 +6,3 @@ "use strict";

exports.formatLocalizedDate = formatDate_1.formatLocalizedDate;
exports.getDateFormatInCapitalLetters = formatDate_1.getDateFormatInCapitalLetters;
var formatMileage_1 = require("./formattedNumber/formatters/formatMileage");

@@ -8,0 +9,0 @@ exports.formatMileage = formatMileage_1.formatMileage;

@@ -50,3 +50,3 @@ {

},
"version": "0.0.37"
"version": "0.0.38"
}

@@ -24,3 +24,3 @@ # SAM-format

There are 3 formatters:
There are 4 formatters:

@@ -27,0 +27,0 @@ ### formatMileage(value, [opts])

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